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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to