GoogleEarth wont read KML files created by ogr2ogr: Unknown element <Schema>
|Reported by:||Nikos Alexandris||Owned by:||warmerdam|
|Severity:||normal||Keywords:||ogr2ogr, kml, schema|
Any attempt to create/convert a kml file (from a shapefile) using ogr2ogr, e.g.
ogr2ogr -f 'KML' SomePoint_from_OGR.kml SomePoint?.shp
results in a .kml file that Google-Earth, both version 6 (from the Ubuntu 12.10 repositories) and 7 (the "official" 64-bit deb package), wont read with the "excuse": Unknown element <Schema>. Moreover, the example over at <https://developers.google.com/kml/articles/vector> is rejected by GE with the same error message.
It is noteworthy that, removing the <Schema> instructions altogether, makes the OGR-produced kml files readable.
An example that works fine is to be found at <https://developers.google.com/kml/documentation/extendeddata> (look for the "Example" under "Adding Typed Data to a Feature").
Attached a simple point created in GE (working), exported as kml, converted to ESRI Shapefile successfully using ogr2ogr and converted back to kml (non-working).
Change History (5)
Changed 4 years ago by