Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6950 closed defect (fixed)

2.1 regression: cannot get attributes in AVC bin coverages

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.5
Component: OGR_SF Version: 2.1.0
Severity: normal Keywords: avcbin
Cc:

Description

Reported on mailing list https://lists.osgeo.org/pipermail/gdal-dev/2017-June/046831.html

I'm having trouble with OGR converting ESRI polygon coverages to 
shapefiles.  Basically the newer versions of ogr ignore the attributes 
on the polygons and show only the ArcIds attribute. 
Details:

Ogrinfo in GDAL version 1.11.0 works fine (note all the attributes after 
ArcIds):
========================================================
C:\Projects>C:\Programs\gdal-1-11-0-mapserver-6-4-1\bin\ogrinfo.exe 
--version
GDAL 1.11.0, released 2014/04/16

C:\Projects>C:\Programs\gdal-1-11-0-mapserver-6-4-1\bin\ogrinfo -geom=no 
ea_20090105 PAL | more
Had to open data source read-only.
INFO: Open of `ea_20090105'
       using driver `AVCBin' successful.

Layer name: PAL
Geometry: Polygon
Feature Count: 467
Extent: (-195031.966405, 2723260.836220) - (1970740.118994, 5186575.947505)
Layer SRS WKT:
     :

ArcIds: IntegerList (0.0)
AREA: Real (18.5)
PERIMETER: Real (18.5)
EA_20090105#: Integer (5.0)
EA_20090105-ID: Integer (5.0)
A_LEGEND: String (11.0)
REGION: String (2.0)
DATE_CARTE: String (10.0)
SOURCE: String (5.0)
MOD: String (1.0)
EGG_ID: Integer (5.0)
PNT_TYPE: Integer (3.0)
EGG_NAME: String (2.0)
EGG_SCALE: Integer (5.0)
EGG_ATTR: String (49.0)
USER_ATTR: String (49.0)
ROTATION: Integer (3.0)
E_CT: String (2.0)
E_CA: String (1.0)
E_CB: String (1.0)
     :

========================================================
while GDAL version 2.1.3 just shows the ArcIds attribute:

C:\Projects>ogrinfo.exe --version
GDAL 2.1.3, released 2017/20/01

C:\Projects>ogrinfo -geom=no ea_20090105 PAL | more
Had to open data source read-only.
INFO: Open of `ea_20090105'
       using driver `AVCBin' successful.

Layer name: PAL
Geometry: Polygon
Feature Count: 467
Extent: (-195031.966405, 2843291.569215) - (1870695.841972, 4961994.591590)
Layer SRS WKT:
     :

ArcIds: IntegerList (0.0)
OGRFeature(PAL):2
   ArcIds (IntegerList) = 
(146:883,-893,-889,-868,-890,-898,-886,-885,-880,-875,-854,-856,-841,-840,...)

OGRFeature(PAL):3
   ArcIds (IntegerList) = (5:1,12,14,15,2)

==============================================================
To try it out, download the e00 file:
http://ice-glaces.ec.gc.ca//www_archive/AOI_11/Coverages/rgc_a11_20090105_CEXPREA.e00

and use "avcimport" to convert it to a coverage
avcimport gc_a11_20090105_CEXPREA.e00 ea_20090105
then use the ogrinfo command shown above.

Change History (4)

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: assignedclosed

In 39390:

AVCBin: fix 2.1 regression regarding attributes fetching (fixes #6950)

comment:2 by Even Rouault, 7 years ago

In 39391:

AVCBin: fix 2.1 regression regarding attributes fetching (fixes #6950)

comment:3 by Even Rouault, 7 years ago

In 39392:

AVCBin: fix 2.1 regression regarding attributes fetching (fixes #6950)

comment:4 by Even Rouault, 7 years ago

Milestone: 2.1.5
Note: See TracTickets for help on using tickets.