Google
Official Google Earth Download Site

Google Earth Community

Earth >> Dynamic Data Layers

Jump to first unread post. Pages: 1
A_Skwar
Tourist


Reged: 06/13/06
Posts: 6
Loc: Wuppertal, Germany
Howto create a dynmaic data layer?
      #452781 - 06/15/06 02:03 AM

Hello.

I'd like to create a KML file which lists all the LPG/autogas fueling stations in Germany. I do have access to a database which is daily updated with added/removed gas stations and also with current prices.

As this database changes very often and is rather big (~1500 places in Germany alone right now), I'd rather not update a KML/KMZ file here every day. I'd rather have it so, that Google Earth automatically fetches the most current data from my server. Much like it's done with the "Google Earth Community" layer.

How can this be done?

Thanks a lot,
Alexander


Post Extras: Print Post   Remind Me!   Report this Post  
Valery35
Master Craftsman


Reged: 09/02/05
Posts: 2269
Loc: Russia, Perm, Sun
Re: Howto create a dynmaic data layer? [Re: A_Skwar]
      #461276 - 06/18/06 10:08 AM

1. Create KMZ with placemarks and store this by "http://mysite/myfile.kmz"
2. Create Network link, open Property and paste into string Link path to base kmz file ("http://mysite/myfile.kmz")
3. If base kmz file large, you can place this as distribute KMZ ("http://mysite/myfile1.kmz", "http://mysite/myfile2.kmz"...) and make folder with need count of network links

Myfile (folder)
-NL1 (to "http://mysite/myfile1.kmz")
-NL2 (to "http://mysite/myfile2.kmz")
...

Also can see my flash animations
"Step 3. My first network link".
http://www.mi-perm.ru/gis/earth/present/step3.htm

Example (and history) of large NL see
http://bbs.keyhole.com/ubb/showflat.php/Cat/0/Number/220598

Regards!

--------------------
Applications | Blog | Geoblog(ru) | Spreadsheets | Photos | Pict'Earth | Eastgeology (ru)

Edited by Valery35 (08/18/06 04:39 PM)


Post Extras: Print Post   Remind Me!   Report this Post  
A_Skwar
Tourist


Reged: 06/13/06
Posts: 6
Loc: Wuppertal, Germany
Re: Howto create a dynmaic data layer? [Re: Valery35]
      #461384 - 06/18/06 11:09 AM

Thanks a lot - now everything's clear!

Post Extras: Print Post   Remind Me!   Report this Post  
linus_atpug
Tourist


Reged: 07/15/05
Posts: 25
Loc: Berkshire, england
Re: Howto create a dynmaic data layer? [Re: Valery35]
      #561486 - 08/18/06 03:54 PM

better still follow the api guidelines, write your PHP or whatever server side code that interrogates a database and all it has to do is spit out valid KML.

your script has to expect a parameter on the querystring callled BBOX which contains the top left and bottom right latitude and longitudes of the current viewport in google earth

. eg http//yourserver.com/yourdynamiclayerurl?BOX=-0.8552169799804689,51.407879760074316,-0.7137680053710938,51.456574106519724

the instructions in the API guide are not particularly easy to follow so best way id to create an example kml by hand and then write your code to generate that kml.


Post Extras: Print Post   Remind Me!   Report this Post  
Pages: 1




Extra information
0 registered and 9 anonymous users are browsing this forum.

Moderator:  Hill, Jumble, Kempster, mcshea98, jeffryv, dulce, esterrett, NormB, Frank_McVey, BeadieJay, TheLedge, Cyclonic, no_stranger, LuciaM, tekgergedan, Noisette, danescombe, Michal_Drewniak, mutex, marinerfan, Delta102, bebop 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3939

Rate this topic

Jump to

earth.google.com    bbs.keyhole.com

*
UBB.threads™ 6.5.1.1