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 <g...@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@lists.osgeo.org > http://lists.osgeo.org/**mailman/listinfo/gdal-dev<http://lists.osgeo.org/mailman/listinfo/gdal-dev> >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev