Script to extract waypoints for KML MultiGeometries

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Script to extract waypoints for KML MultiGeometries

Terry Brown-2
Hi, just made a set of waypoints for a trip using Google Earth,
and found that a lot of the points (PlaceMarks) weren't brought in by

    gpsbabel -i kml -o gpx mnpls.kml mnpls.gpx

because they were <MultiGeometry><Point/><LineString/></MultiGeometry>
instead of just <Point/>

This small python script replaces the MultiGeometries with the first
Point within them, allowing gpsbabel to make a GPX with all the


    python < mnpls.kml > mnpls_pts.kml
    gpsbabel -i kml -o gpx mnpls_pts.kml mnpls.gpx

QGIS didn't load all the points either, FWIW.

Cheers -Terry

Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
Gpsbabel-misc mailing list
[hidden email]
To unsubscribe, change list options, or see archives, visit: