Opened 12 years ago

Closed 9 years ago

#4333 closed defect (worksforme)

ogr2ogr mid/mif to mtab fails for POINT (and maybe LINE)

Reported by: zoltan Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: 1.8.0
Severity: normal Keywords: ogr2ogr MapInfo
Cc: Daniel Morissette

Description

ERROR 6: GetFeatureRef() failed: invalid point line: 'Point 29.77813883395650 -28.43940301496810'

I've found that this error goes away if I change the coord precision to 10 decimal places. 14 places get created by GeoMedia export so is not user controlable. 14 places works for PLine and Region, so presumably will also fail for LINE because both POINT and LINE features have the coords on the same line as the geometry type line in the MIF files.

Change History (4)

comment:1 by Even Rouault, 12 years ago

Cc: Daniel Morissette added

Could you attach a (small) sample file that shows the issue ? Thanks

in reply to:  1 comment:2 by zoltan, 12 years ago

Replying to rouault:

Could you attach a (small) sample file that shows the issue ? Thanks

Drat! It seems like I can't. When I artificially create a 1 line MID plus relevant MIF file, ogr2ogr works no matter how many decimal places I put on the coords. On my production file, simply dropping the 11th-14th decimal place on the first Point moved the error to the second Point in the MIF file, so I created a filter to convert the whole file, and do not have the original data any more. It takes 6 hours to rerun the job - I will try to do that in the next few days.....

comment:3 by Jukka Rahkonen, 9 years ago

Let's wait still a day or two and if the promised test file does not appear I will close the ticket as invalid :)

comment:4 by Jukka Rahkonen, 9 years ago

Resolution: worksforme
Status: newclosed

Could not be reproduced.

Note: See TracTickets for help on using tickets.