[gdal-dev] Question about GDAL API: way to find out if CS is SPCS

Even Rouault even.rouault at spatialys.com
Fri Feb 7 09:30:00 PST 2020


> thanks for the answer. I am using C/C++ and I was expecting to find a
> function/method like "GetSPCSZone", "IzSPCS" or similar.

There's no such function. But you can just open the data/stateplane.csv file 
to find a match of EPSG code.

An alternative is to use exportToWkt() with WKT2 output and look at the value 
of CONVERSION[]

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list