[gdal-dev] orginfo and prj files

Lucena, Ivan ivan.lucena at pmldnet.com
Thu Aug 14 11:02:58 EDT 2008


Hi there,

Correct if I am wrong.

If there is a .PRJ file associated with a .SHP, ogrinfo will just print 
out the content of the .PRJ. Ex.:


"""
D:\Data\ESRIDATA\USA> ogrinfo -so states.shp states
INFO: Open of `states.shp'
       using driver `ESRI Shapefile' successful.
Layer name: states
Geometry: Polygon
Feature Count: 51
Extent: (-178.217598, 18.924782) - (-66.969271, 71.406235)
Layer SRS WKT:
GEOGCS["GCS_North_American_1983",
     DATUM["North_American_Datum_1983",
         SPHEROID["GRS_1980",6378137,298.257222101]],
     PRIMEM["Greenwich",0],
     UNIT["Degree",0.0174532925199433]]
"""

It will not going to run "OGRImportFromESRI()" to get EPSG Authority 
codes. Isn't it right?

Thanks in advance for any help.

Ivan



More information about the gdal-dev mailing list