Opened 12 years ago

Closed 12 years ago

#4811 closed defect (invalid)

ISO8211 library support error

Reported by: frankyang Owned by: warmerdam
Priority: highest Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

When the record length is zero, some S57 files can't be processed normally, cause the program frozen.

Attachments (1)

CN544258.rar (244.7 KB ) - added by frankyang 12 years ago.
Unsupported S57 zip file

Download all attachments as: .zip

Change History (4)

by frankyang, 12 years ago

Attachment: CN544258.rar added

Unsupported S57 zip file

comment:1 by Even Rouault, 12 years ago

I don't see any obvious issue when running "ogr2ogr CN544258 CN544258.000 -skip" with GDAL 1.9.x or later. Could you elaborate more on the version and platforms you are using ?

comment:2 by frankyang, 12 years ago

Sorry I think I use too old CPL library, at the line:

VSIFSeekL(fp, pos, SEEK_SET);

On Windows XP, this line doesn't move the file pointer to correct position, I changed:

VSIFSeek(fp, pos, SEEK_SET); It is working normally!

comment:3 by Even Rouault, 12 years ago

Resolution: invalid
Status: newclosed

Hum, I'm not sure how/with what you're building the ISO8211 library, but generally you shouldn't mix VSIF* and VSIF*L API, unless one is really aliases to the other one

Closing the ticket on the assumptium that the issue you had was due to oddities related to your custom build

Note: See TracTickets for help on using tickets.