![]() ![]() I am not familiar with the KML and the GPX standard, I just wished there was a handy script to convert one to the other. I've tried this python script kml2gpx.py at which looking at the code should iterate through the KML processing it as "normal XML" content (using stuff like import xml.sax), but the output does not contain any of the POIs in the orginal KML. ogr2ogr -nlt POINT -f GPX -dsco GPX_USE_EXTENSIONS=YES -lco FORCE_GPX_TRACK=YES my_file.gpx my_file.kml.gives ERROR 1: Features without geometry or with non-ponctual geometries not supported by GPX writer in waypoints layer. ![]() ogr2ogr -nlt POINT -f GPX -dsco GPX_USE_EXTENSIONS=YES my_file.gpx my_file.kml.then it also gives ERROR 1: Features without geometry or with non-ponctual geometries not supported by GPX writer in waypoints layer.ĮRROR 1: Unable to write feature 2 from layer MY_LAYER_XYZ.Use GPX_USE_EXTENSIONS creation option to allow use of the element. gives many errors on various fields (which I guess come from how Google builds the KML) similar to ERROR 6: Field of name 'description' is not supported in GPX schema.ogr2ogr -nlt POINT -f GPX my_file.gpx my_file.kml.gives ERROR 6: Cannot create GPX layer MY_LAYER_XYZ with unknown geometry type.I would like to convert the KML with tools like ogr2ogr from the GDAL library or some python scripts, but I find it very hard. GPSBabel converts waypoints, tracks, and routes between popular GPS receivers such as Garmin or Magellan and mapping programs like Google Earth or Basecamp. This KML has many layers, each layer with many POIs. I have a KML file I downloaded from Google Maps "My Maps". ![]()
0 Comments
Leave a Reply. |