[gdal-dev] libkml driver get document name

Even Rouault even.rouault at spatialys.com
Thu Feb 25 01:14:26 PST 2016


On Thursday 25 February 2016 14:17:01 Rashad Kanavath wrote:
> Hello Even,
> 
> On Wed, Feb 24, 2016 at 5:23 AM, Even Rouault <even.rouault at spatialys.com>
> 
> wrote:
> > Le mardi 23 février 2016 14:50:35, jan vaillant a écrit :
> > > Hi list,
> > > 
> > > I am reading a zipped kml with gdal's libkml driver. I am trying to
> > 
> > access
> > 
> > > the name tag of the document:
> > > 
> > > <kml>
> > > 
> > >   <Document>
> > >   
> > >     <name>a_name</name>
> > 
> > I did a quick testing It appears that the driver will report a <name> as
> > the
> > layer name only if it inside a <Folder> tag, but not as a direct child of
> > <Document>
> 
> I am wondering if this could this be fixed in the upstream?

Sure that would be desirable. Anyone wants to create a ticket with a patch to 
fix that ? Preferably with a new test in autotest/ogr/ogr_libkml.py


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list