[gdal-dev] ogr not reading the prj file

Even Rouault even.rouault at spatialys.com
Sat Jan 19 00:35:55 PST 2019


On vendredi 18 janvier 2019 23:44:48 CET TUELLER, SHAYNE R CIV USAF AFMC 519 
SMXS/MXDEC wrote:
> Hello,
> 
> I'm using gdal 2.3.1 that I built from source. I run the following command
> to inspect the contents of a shapefile...
> 
> ogrinfo -al circles.shp
> 
> When I run this command on the shapefile, I get the SRS information "Layer
> SRS_WKT" reporting from what is found in the "data" folder and not the SRS
> information defined in the circles.prj file.

For shapefiles, GDAL will try to identify the SRS information from the .prj 
against one known SRS from the EPSG database. In case of a match, it will use 
the later definition, in particular to get the code of the SRS, which is 
practical in many uses.
Is it a case of wrong identification ?
If so, could you share the .prj file ?

Even

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


More information about the gdal-dev mailing list