[gdal-dev] How do I tell if an OGRSpatialReference has been initialized?
Etienne Tourigny
etourigny.dev at gmail.com
Tue Jul 23 08:59:47 PDT 2013
You could try calling exportToWkt() and test if the string is null or empty
(although I haven't tested that) - make sure to free the string afterwards.
Etienne
On Mon, Jul 22, 2013 at 8:44 PM, David Strip <gdal at stripfamily.net> wrote:
> Given an OGRSpatialReference class object, how do I tell if it's been
> initialized to anything? (ie,clear() was called or else was constructed
> with a null string an no further action was taken to set the SRS?)
> I've looked over the interface and can't spot anything that tells me it's
> in a clear state, but of course I might have missed it.
>
> Thanks
> David
>
>
> ______________________________**_________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/gdal-dev<http://lists.osgeo.org/mailman/listinfo/gdal-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130723/4debd611/attachment.html>
More information about the gdal-dev
mailing list