Opened 3 years ago

Closed 19 months 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: dmorissette

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 3 years ago.
Buggy mid/mif dataset
mitab.diff (1.9 KB) - added by drons 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by drons

Attachment: layer1_bad.ZIP added

Buggy mid/mif dataset

comment:1 Changed 3 years ago by Even Rouault

Cc: dmorissette added
Component: defaultOGR_SF
Keywords: mitab added

Changed 3 years ago by drons

Attachment: mitab.diff added

comment:2 Changed 3 years ago by drons

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

comment:3 Changed 2 years ago by Jukka Rahkonen

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 Changed 2 years ago by Jukka Rahkonen

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 Changed 19 months ago by Even Rouault

Milestone: 2.0.2

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

comment:6 Changed 19 months ago by Even Rouault

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.