Opened 20 years ago

Last modified 20 years ago

#628 closed defect (fixed)

ogr -skipfailures not working

Reported by: jerl.simpso@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: blocker Keywords:
Cc:

Description

The problem is when I starts to do conversions (ogr2ogr) or gather information
(ogrinfo), I get the following error:
ERROR 3: Failed to read record 5218 of TGR02240.RT2
And the process stops.
I used the "-skipfailures" in ogr2ogr but this seems to have no
affect, it still dies at this point and gives no more data.

I have ogr2ogr/ogrinfo compiled from gdal 1.2.1
TIGER/Line files from 2003

I got the data from:
http://www2.census.gov/geo/tiger/tiger2003/AK/

If this not enough information please let me know.

Change History (1)

comment:1 by warmerdam, 20 years ago

Jerl, 

This was a bug in gdal/ogr/ogrsf_frmts/tiger/tigercompletechain.cpp that only
triggered if the final "shape record" for a chain happened to be full.  I have
fixed it in CVS.  You might want to upgrade to a nightly snapshot of the code
tomorror or I could provide just this file for you if you wish.

The -skipfailures can't really continue getting shapes from a given layer after
an error due to the way internal OGR stuff works.  If you are translating more
than one layer at a time it should continue to the next shape though.

Thanks for your feedback.

Note: See TracTickets for help on using tickets.