On 02/24/2016 12:53 AM, Even Rouault 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>

Yes, thank you. I tried the kml driver as well and it stores the Document/name and makes it available with layer.getName().

Bye
Jan
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to