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

Hermann Peifer peifer at gmx.eu
Wed May 1 17:07:46 PDT 2013


FYI, some 4 years ago, I reported an XML schema validation error related 
to the <Schema> element: http://trac.osgeo.org/gdal/ticket/2858. IIRC, 
the explanation at the time was that there are some limitations with the 
kml driver and "the real solution is to switch to libkml..."

Hermann


On 2013-05-01 19:40, Frank Warmerdam wrote:
> Nikos,
>
> Could you file a ticket, and attach a working and nonworking kml example?
>
> Any idea if this behavior varies across versions of google earth?  I
> wonder if libkml can read the file(s) ok.
>
> Best regards,
> Frank
>
>
> On Wed, May 1, 2013 at 3:30 PM, Nikos Alexandris
> <nik at nikosalexandris.net <mailto:nik at nikosalexandris.net>> wrote:
>
>     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
>     _______________________________________________
>     gdal-dev mailing list
>     gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
>     http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
>
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com <mailto:warmerdam at pobox.com>
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Software Developer
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



More information about the gdal-dev mailing list