<div dir="ltr"><span style="font-size:13.3333339691162px">Hi,</span><div style="font-size:13.3333339691162px"><br></div><div style="font-size:13.3333339691162px">I am trying to extract the EPSG code from the SpatialReference object as follow;</div><div style="font-size:13.3333339691162px"><br></div><div style="font-size:13.3333339691162px"><div>            const char * pszEpsg;</div><div>            char **papszTokens;</div><div><br></div><div>            if (poSpatialRef->IsProjected()) </div><div>                pszEpsg = poSpatialRef->GetAttrNode("projcs")->GetNode("authority")->GetValue();</div><div>            else</div><div>                pszEpsg = poSpatialRef->GetAttrNode("geogcs")->GetNode("authority")->GetValue();</div><div><br></div></div><div style="font-size:13.3333339691162px">It seems that GetAttrNode returns NULL even ogrinfo -so reports that this is present.</div><div style="font-size:13.3333339691162px"><br></div><div style="font-size:13.3333339691162px">Any ideas?</div><div style="font-size:13.3333339691162px"><br></div><div style="font-size:13.3333339691162px">Thanks,</div><div style="font-size:13.3333339691162px"><br></div><div style="font-size:13.3333339691162px">Norman</div></div>