Opened 15 years ago

Closed 15 years ago

#2710 closed defect (fixed)

Incorrect mif/mid import with empty text values

Reported by: gislab Owned by: aboudreault
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: mitab
Cc: Daniel Morissette

Description

Seems like importing some varieties of mif/mid files produces incorrect (incomplete results). See attached file for example.

OGR importer simply stops importing after finding constructions like this one:

Text

"" -1607.10886261090784 -9.31495897050048896 -1606.60886261090784 -8.81495897050048896 Font ("Arial CYR",2,0,0) Angle 70

If value "" is substituted with anything like "test", importers goes further. I'm not sure if this is an inconsistency in generated mif/mid, but original Mapinfo tool - Universal Translator (FME based) imported these mif/mid just fine. The biggest problem is that importer skips any records after this one, which is very inconvenient.

Please note, mid has more records than mif, as I was trimming down mif to look where exactly importer fails. Hope this is not a problem.

-Maxim

Attachments (1)

mif-import-bug.zip (273.2 KB ) - added by gislab 15 years ago.
example mif/mid illustrating the problem

Download all attachments as: .zip

Change History (4)

by gislab, 15 years ago

Attachment: mif-import-bug.zip added

example mif/mid illustrating the problem

comment:1 by Even Rouault, 15 years ago

Component: defaultOGR_SF
Keywords: mitab added
Owner: changed from warmerdam to Daniel Morissette

comment:2 by Daniel Morissette, 15 years ago

Cc: Daniel Morissette added
Owner: changed from Daniel Morissette to aboudreault

Assigned to Alan...

comment:3 by aboudreault, 15 years ago

Resolution: fixed
Status: newclosed

This bug have been fixed in mitab and will be integrated in gdal/ogr for the 1.6.1 release.

See related bug: http://bugzilla.maptools.org/show_bug.cgi?id=1978

Note: See TracTickets for help on using tickets.