[postgis-devel] SRS Magic

Even Rouault even.rouault at spatialys.com
Thu Oct 29 10:22:08 PDT 2015


Le jeudi 29 octobre 2015 17:23:14, Paul Ramsey a écrit :
> One of the constant requests to make postgis easier to use is SRID
> detection. At this point GDAL has almost all the bits and pieces to do
> SRID detection from PRJ inputs. 

Paul,

if by PRJ, you mean ESRI Shapefile .prj files whose WKT definition strips off the 
EPSG code even when the WKT is derived from an EPSG definition, then indeed 
there's some magic to add in GDAL to guess the EPSG code. There's a 
AutoIdentifyEPSG() method ( 
http://www.gdal.org/classOGRSpatialReference.html#acb0373c83927bfd694048da6f79e33ea 
) but it is fairly limited.

Even

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



More information about the postgis-devel mailing list