libkml driver use document name as name of layer
|Reported by:||rashadkm||Owned by:||warmerdam|
This question has been raised on gdal-dev list. As Even said, current gdal libkml driver reports layername if the name tag is under <Folder> tag. If no folder tag is present, it simply takes the name of file. I had modified libkml driver source to take Document's name tag if no folder tag is present. If <Document> does not have a name it will fall back to old behavior and use filename as layer name.
Following EvenR's advice, I had added a testcase for this in gdal's autotest code.