On mercredi 15 février 2017 16:21:09 CET Kahly, Philip D. wrote:
> Hey all,
> 
> I'm attempting to process some KML files from an outside source and
> sometimes a <Placemark> will contain two <MultiGeometry> blocks.
> 
> GDAL will not process these placemarks: layer.GetNextFeature() will return
> null, and GetLastErrorMsg() returns an empty string.
> 
> I've attached a sample file "broken.kml", along with two copies in which
> one of the geometry blocks was deleted. GDAL processes these "part*.kml"
> files correctly.
> 
> 
> Google Earth uses the last geometry and ignores the others. Are there any
> settings I could use to get GDAL to exhibit the same behavior?

Philip,

From a quick try, I'd say that you must use the "old" KML driver. With the 
LIBKML driver, the 
reported geometry is the last one.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to