[gdal-dev] Problem in ogr converting polygon coverages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[gdal-dev] Problem in ogr converting polygon coverages

Brent Fraser
Hi all,

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. Looks like a bug
possibly introduced during RFC 50
(https://trac.osgeo.org/gdal/wiki/rfc50_ogr_field_subtype).

   If there is a option to the command line to fix this, please let me
know, otherwise I'll file a bug report.

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.


--
Best Regards,
Brent Fraser


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in ogr converting polygon coverages

Even Rouault-2

Brent,

 

>

> 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. Looks like a bug

> possibly introduced during RFC 50

> (https://trac.osgeo.org/gdal/wiki/rfc50_ogr_field_subtype).

 

I don't think this is related. More likely a regression caused by a code cleanup/hardening.

 

>

> If there is a option to the command line to fix this, please let me

> know, otherwise I'll file a bug report.

 

Please file a bug report

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in ogr converting polygon coverages

Even Rouault-2

On jeudi 29 juin 2017 21:28:19 CEST Even Rouault wrote:

> Brent,

>

> > 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. Looks like a bug

> > possibly introduced during RFC 50

> > (https://trac.osgeo.org/gdal/wiki/rfc50_ogr_field_subtype).

>

> I don't think this is related. More likely a regression caused by a code

> cleanup/hardening.

> > If there is a option to the command line to fix this, please let me

> >

> > know, otherwise I'll file a bug report.

>

> Please file a bug report

 

Actually I've just done it with https://trac.osgeo.org/gdal/ticket/6950 and committed the fix.

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in ogr converting polygon coverages

Brent Fraser
You're awesome Even!  Thanks!
 
Brent
 
 
 

From: "Even Rouault" <[hidden email]>
Sent: Thursday, June 29, 2017 2:29 PM
To: [hidden email]
Subject: Re: [gdal-dev] Problem in ogr converting polygon coverages
 

On jeudi 29 juin 2017 21:28:19 CEST Even Rouault wrote:

> Brent,

>

> > 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. Looks like a bug

> > possibly introduced during RFC 50

> > (https://trac.osgeo.org/gdal/wiki/rfc50_ogr_field_subtype).

>

> I don't think this is related. More likely a regression caused by a code

> cleanup/hardening.

> > If there is a option to the command line to fix this, please let me

> >

> > know, otherwise I'll file a bug report.

>

> Please file a bug report

 

Actually I've just done it with https://trac.osgeo.org/gdal/ticket/6950 and committed the fix.

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Loading...