RE: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Martin Chapman
To: Martin Chapman Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt() On Thu, Jan 12, 2012 at 6:30 PM, Martin Chapman wrote: > Frank, > > > > I think there is a bug in OGRSpatialReference::importFromWkt().  I did > the &g

Re: [gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Frank Warmerdam
On Thu, Jan 12, 2012 at 6:30 PM, Martin Chapman wrote: > Frank, > > > > I think there is a bug in OGRSpatialReference::importFromWkt().  I did the > following: > > > > char* wkt = NULL; > > sourceSRS.exportToWkt(&wkt); > > targetSRS.importFromWkt(&wkt); > > CPLFree(wkt); > > > > It blows up on the

[gdal-dev] Possible bug in OGRSpatialReference:: importFromWkt()

2012-01-12 Thread Martin Chapman
Frank, I think there is a bug in OGRSpatialReference::importFromWkt(). I did the following: char* wkt = NULL; sourceSRS.exportToWkt(&wkt); targetSRS.importFromWkt(&wkt); CPLFree(wkt); It blows up on the CPLFree(). Why you might ask. Because it looks like the importFromWkt() incre