How to split a KML pack in to individual KMLs

1,163 views
Skip to first unread message

Srini vas

unread,
Dec 15, 2011, 1:09:20 PM12/15/11
to kml-support-g...@googlegroups.com
Hi all,
I recently downloaded a KML file and opended it in Google earth and found it has around 100 individual KML placemarks included in it. Please suggest how to split them in to individual KML files and use selected place marks from the whole pack. Currently I am saving them separately by right clicking and selecting save as in Google earth and then uploading it to My Maps and using ht KNL URL generated. Is there any better way to accomplish this. Link to the KML pack, geocommons.com/overlays/25182.kml . 

With regards
Srinivas

GuyKelly

unread,
Dec 20, 2011, 11:32:28 AM12/20/11
to kml-support-g...@googlegroups.com
Srinivas,

Do you know how to use a scripting language like Python?  If so, you easily parse the file using a scripting language and automatically generate the individual output files.

If not, you can just use brute force.  Simply open the KML as a text file, and then copy-paste each placemark into its own text file.  You'll also have to provide the KML headers information to each file.  Obviously, this is a time-consuming task.  Using a scripting language like Python can save you a lot of time.

Cheers,
Kelly

Srini vas

unread,
Dec 20, 2011, 11:50:13 AM12/20/11
to kml-support-g...@googlegroups.com
Hi Kelly, 
First of all thanks for your suggestion. I am no expert in Python language and in handling KML. I need individual KML URLs for overlying them in Google Mapmaker for Mapping. Currently I right click on individual KMLs and click properties and then copy the co-ordinates appearing and paste them in search field and map them. If it is less time consuming and easy work could you split it for me just for Mapping. Thanks in advance.

With regards
Srinivas
Reply all
Reply to author
Forward
0 new messages