[gdal-dev] GoogleEarth wont read KML files created by ogr2ogr: Unknown element <Schema>

Nikos Alexandris nik at nikosalexandris.net
Wed May 1 15:30:57 PDT 2013


Hi!

I work with GDAL 1.9.2, compiled from source with support for expat and KML 
under Kubuntu 12.10.  Any attempt to convert a(ny) shapefile (be it of type 
point or polygon) using ogr2ogr (or exporting from GRASS GIS or/and QGIS -- 
all based on the same GDAL librairies) results in a .kml file that Google-
Earth (version 7. ) wont read with the "excuse": Unknown element <Schema>.

Even the example KML file over at 
<https://developers.google.com/kml/articles/vector> is rejected by GE with the 
same error message.

Removing the <Schema> entries altogether, makes the file readable by GE.

Anyhow, GE reads without problems a KML example (that includes Schema 
elements) to be found over at 
<https://developers.google.com/kml/documentation/extendeddata> (look for the 
Example under "Adding Typed Data to a Feature").

What are the odds?

Thank you, Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130502/d6c9b361/attachment.pgp>


More information about the gdal-dev mailing list