[gdal-dev] EPSG codes
Norman Barker
norman at cloudant.com
Tue Dec 9 18:38:45 PST 2014
Hi,
I am trying to extract the EPSG code from the SpatialReference object as
follow;
const char * pszEpsg;
char **papszTokens;
if (poSpatialRef->IsProjected())
pszEpsg =
poSpatialRef->GetAttrNode("projcs")->GetNode("authority")->GetValue();
else
pszEpsg =
poSpatialRef->GetAttrNode("geogcs")->GetNode("authority")->GetValue();
It seems that GetAttrNode returns NULL even ogrinfo -so reports that this
is present.
Any ideas?
Thanks,
Norman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141209/1198105e/attachment.html>
More information about the gdal-dev
mailing list