Adam August 29th, 2007
Filed under: Computers and Technology , Software
Tags: development, GIS/GPS, KML, PHP
As of a few days ago, I am now able to generate KML versions of Flickr photosets for viewing in Google Earth/Maps. With that taken care of, I also want to easily combine these KML documents of images together with other KML files that show additional information, such as paths traveled, points of interest, etc.
To accomplish this task, I have written a new script, the KML Joiner that will combine any KML documents on the web together into a single (referenced) KML document. (try it out)
More Detail: for those interested in KML
The resulting document is a collection of network links, each of which points to one of the KML URLs specified. Doing this rather than combining their text together into a static KML document prevents style collisions as well as allows changes in the source data to propagate to the combined document.
Refresh intervals can optionally be specified for every source document allowing for a server-friendly combination of static data with rapidly changing data. By default, no refresh interval is specified, making the linked documents load only once when first accessed.
View the KML Joiner with fields filled in that generates the map below.
View Larger Map
The map above is of the trip mentioned in a previous blog post, but this time the data sources (1. a static KML file with the path and house placemark, 2. a dynamic KML document generated with my Photo set to KML script) joined together with the KML Joiner script instead of manually put together with a text editor.
You are welcome to use this script hosted on my site, or you can download it and run it on your own computer/webserver.
This script is available under the GNU General Public License (GPL) version 3 or later. (Source Code)
Please post any suggestions for fixes or changes. Thanks!