Re: [gdal-dev] libkml driver get document name

2016-02-25 Thread Rashad Kanavath
On Thu, Feb 25, 2016 at 2:44 PM, Even Rouault wrote: > 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.roua...@spatialys.com> > > > > wrote: > > > Le mardi 23 février 2016 14:50:35, jan vaillant a écrit :

Re: [gdal-dev] libkml driver get document name

2016-02-25 Thread Even Rouault
On Thursday 25 February 2016 14:17:01 Rashad Kanavath wrote: > Hello Even, > > On Wed, Feb 24, 2016 at 5:23 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 >

Re: [gdal-dev] libkml driver get document name

2016-02-25 Thread Rashad Kanavath
Hello Even, On Wed, Feb 24, 2016 at 5:23 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: > > > > > > > > a_name > > I di

Re: [gdal-dev] libkml driver get document name

2016-02-24 Thread Jan Vaillant
On 02/24/2016 06:30 PM, Damian Dixon wrote: Hi, I've been meaning to submit a patch for awhile to libkml driver but have not had time to do so. The fix is a one line change highlighted below: Great! Thank you. I'll give it a try. Jan int OGRLIBKMLDataSource::OpenKml ( const char *psz

Re: [gdal-dev] libkml driver get document name

2016-02-24 Thread Damian Dixon
Hi, I've been meaning to submit a patch for awhile to libkml driver but have not had time to do so. The fix is a one line change highlighted below: int OGRLIBKMLDataSource::OpenKml ( const char *pszFilename, int bUpdate ) { std::string oKmlKml; char szBuffer[1024+1]; VSILFI

Re: [gdal-dev] libkml driver get document name

2016-02-24 Thread Jan Vaillant
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: a_name I did a quick testing It appears that the driver will repor

Re: [gdal-dev] libkml driver get document name

2016-02-23 Thread Even Rouault
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: > > > > a_name I did a quick testing It appears that the driver will report a as the layer name only if it

[gdal-dev] libkml driver get document name

2016-02-23 Thread jan vaillant
Hi list, I am reading a zipped kml with gdal's libkml driver. I am trying to access the name tag of the document: a_name ... If I look at the source code I can see a way to set those options here for writing kml void OGRLIBKMLDataSource::SetCommonOptions(ContainerPtr poKmlContainer,