Opened 13 years ago

Closed 13 years ago

#3983 closed defect (fixed)

importFromESRI() : support POLYCONIC projection from old style files

Reported by: cgsbob Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: OGR_SRS Version: unspecified
Severity: major Keywords:
Cc:

Description

I'm trying to convert e00 files that you can find at (http://geopubs.wr.usgs.gov/open-file/of03-103 ). When I use ogr2ogr on them I get a 0 length .prj file.

These are the steps I took:

bob@bobs-laptop:/tmp$ ogrinfo -al -so bch_geo.e00 PAL
Had to open data source read-only.
INFO: Open of `bch_geo.e00'
      using driver `AVCBin' successful.

Layer name: PAL
Geometry: Polygon
Feature Count: 234
Extent: (-5799.426758, 13865.420898) - (-5402.603516, 13865.652344)
Layer SRS WKT:
LOCAL_CS["POLYCONIC",
    UNIT["METERS",1]]
ArcIds: IntegerList (0.0)
AREA: Real (18.5)
PERIMETER: Real (18.5)
BCH_GEO#: Integer (5.0)
BCH_GEO-ID: Integer (5.0)
LABL: String (35.0)
SHD: Integer (3.0)
PLABL: String (35.0)
SHDFIL: Integer (3.0)
NAME: String (200.0)
bob@bobs-laptop:/tmp$ ogr2ogr bch_geo_poly.shp bch_geo.e00 PAL
ERROR 6: Can't create fields of type IntegerList on shapefile layers.

bob@bobs-laptop:/tmp$ ls -l bch_geo_poly.*
-rw-r--r-- 1 bob bob 75903 2011-02-24 21:00 bch_geo_poly.dbf
-rw-r--r-- 1 bob bob     0 2011-02-24 21:00 bch_geo_poly.prj
-rw-r--r-- 1 bob bob 82956 2011-02-24 21:00 bch_geo_poly.shp
-rw-r--r-- 1 bob bob  1972 2011-02-24 21:00 bch_geo_poly.shx
bob@bobs-laptop:/tmp$  sed -n '/^PRJ/,/^EOP/p' bch_geo.e00
PRJ  3
Projection    POLYCONIC
~
Zunits        NO
~
Units         METERS
~
Spheroid      CLARKE1866
~
Xshift        0.0000000000
~
Yshift        0.0000000000
~
Parameters
~
-117  3 45.000 /* longitude of central meridian
~
 33 30  0.000 /* latitude of projection's origin
~
0.00000 /* false easting (meters)
~
0.00000 /* false northing (meters)
~
EOP

<cgs_bob> this is the first time I seen a srs like this: "LOCAL_CS["POLYCONIC",UNIT["METERS",1]]"

Change History (1)

comment:1 by Even Rouault, 13 years ago

Milestone: 1.9.0
Resolution: fixed
Status: newclosed
Summary: Using ogr2ogr with e00 files makes 0 length .prj fileimportFromESRI() : support POLYCONIC projection from old style files
Version: svn-trunkunspecified

r21849 /trunk/gdal/ogr/ogr_srs_esri.cpp: importFromESRI() : support POLYCONIC projection from old style files (#3983)

Note: See TracTickets for help on using tickets.