[gdal-dev] libkml driver get document name

Jan Vaillant jvail at gmx.de
Wed Feb 24 09:00:41 PST 2016


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


More information about the gdal-dev mailing list