[gdal-dev] Easy way to tell if my image is EPSG 4326

Even Rouault even.rouault at mines-paris.org
Fri Jul 13 01:50:23 PDT 2012


> So in the end my question is this: how can I tell from the projection
> string metadata that I get from a GDAL Dataset object (Java) if it is
> EPSG:4326.

You can try the AutoIdentifyEPSG() method of the SpatialReference class. And
then check that GetAuthorityName() returns "EPSG" and GetAuthorityCode() returns
4326.

>
> thanks
>




More information about the gdal-dev mailing list