Opened 10 years ago

Closed 8 years ago

#5405 closed defect (fixed)

[PATCH] Error while read mid/mif files with empty values in data columns

Reported by: drons Owned by: warmerdam
Priority: normal Milestone: 2.0.2
Component: OGR_SF Version: unspecified
Severity: normal Keywords: mitab
Cc: Daniel Morissette

Description

When we try to read mid/mif file with empty fields in first several columns GDAL reported error "Error during reading Record". But in fact it is correct mid/mif dataset and MapInfo can read it.

I found an old ticket (#954) in which it is offered to skip tabulation symbols at the beginning of lines in the MIF file (for now tab symbols are skiped in mitab_middatafile.cpp:218). But the symbol of tabulation is a default delimiter of fields ( we can it see at MapInfo ® Data Interchange Format pp 677&693 ) and if we skip it, we won't read empty fields. And in this case feature will be corrupted.

Attachments (2)

layer1_bad.ZIP (3.8 KB ) - added by drons 10 years ago.
Buggy mid/mif dataset
mitab.diff (1.9 KB ) - added by drons 10 years ago.

Download all attachments as: .zip

Change History (8)

by drons, 10 years ago

Attachment: layer1_bad.ZIP added

Buggy mid/mif dataset

comment:1 by Even Rouault, 10 years ago

Cc: Daniel Morissette added
Component: defaultOGR_SF
Keywords: mitab added

by drons, 10 years ago

Attachment: mitab.diff added

comment:2 by drons, 10 years ago

Hellow! I'm add small patch (mitab.diff) to avoid this problem.

comment:3 by Jukka Rahkonen, 9 years ago

After reading a few of these tickets I feel that every time when a GDAL ticket leads to a mitab ticket and things get corrected on that side, the info never gets back here and GDAL tickets will stay open forever.

What might be the situation with this issue?

comment:4 by Jukka Rahkonen, 9 years ago

Summary: Error while read mid/mif files with empty values in data columns[PATCH] Error while read mid/mif files with empty values in data columns

comment:5 by Even Rouault, 8 years ago

Milestone: 2.0.2

trunk r30886, branches/2.0 r30887 "MITAB: read MID files with TAB delimiter and empty first field (#5405)"

comment:6 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

Batch closing of MITAB tickets fixed in GDAL. They were kept open because not merged into MITAB separate repository, but the latter one is inactive, so let's close them definitely.

Note: See TracTickets for help on using tickets.