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
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
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