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

2020-02-07 Thread Even Rouault
> 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 an

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

2020-02-07 Thread Sergey Suloev
hi, Alan, On 2/7/20 5:36 PM, Alan Snow wrote: If you use python, the pyproj CRS class can help. >>> from pyproj import CRS >>> crs = CRS("EPSG:26945") >>> crs Name: NAD83 / California zone 5 Axis Info [cartesian]: - X[east]: Easting (metre) - Y[north]: Northing (metre) Area of Use: - name: U

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

2020-02-07 Thread Alan Snow
If you use python, the pyproj CRS class can help. >>> from pyproj import CRS >>> crs = CRS("EPSG:26945") >>> crs Name: NAD83 / California zone 5 Axis Info [cartesian]: - X[east]: Easting (metre) - Y[north]: Northing (metre) Area of Use: - name: USA - California - SPCS83 - 5 - bounds: (-121.42, 32.

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

2020-02-07 Thread Sergey Suloev
Hello, in my project I am using GDAL to manage coordinate systems. I am looking for a function/class that can tell me if a specific coordinate system is a State Plane Coordinate System and give a zone number. Thank you very much ___ gdal-dev mailing