[gdal-dev] ImportFromESRIStatePlaneWKT access from python

Even Rouault even.rouault at spatialys.com
Thu Aug 9 06:02:09 PDT 2018


On jeudi 9 août 2018 08:42:57 CEST Glen Rice - NOAA Federal wrote:
> Hello,
> 
> I am looking for any hints for how to access ImportFromESRIStatePlaneWKT in
> the OGRSpatialReference class through the python bindings.  I am working
> with xyz text files where the header contains a FIPS zone reference and I
> would like to convert it to another system.

You can't from Python. This method is only available from C++.

But perhaps the osr.SetStatePlane(int zone, int is_nad83 = 1, char const 
*unitsname = "", double units = 0.0) that corresponds to
OGRSpatialReference::SetStatePlane() will do the job ?

Even

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


More information about the gdal-dev mailing list