Opened 14 years ago

Closed 14 years ago

#2396 closed bug (duplicate)

ogr2ogr Mapinfo export not working

Reported by: sowelu Owned by: borysiasty
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Python plugins and bindings Version: Trunk
Keywords: ogr converter, mapinfo Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Kubuntu 9.10 Awaiting user input: no

Description

QGIS trunk Kubuntu 9.10 AMD64 GDAL 1.8dev

When I choose a ESRI Shapefile and supply an input filename name then choose target format of "MapInfo File" and press Browse nothing happens at all. If you then just press OK it tells you that the target dataset is missing. I had a look at the code and it looks to me like the line

add( Format( "MapInfo", "MapInfo File", Format::eFile ) );

in format.cpp has the "MapInfo" and "MapInfo File" around the wrong way. If you reverse these and re-compile, QGIS then allows you to choose the output target file, but then crashes when you press OK. Looking in the target directory, OGR Converter writes out the dat, id and map files, but there is no tab file. If you just enter a name (ie. without '.tab') as the target filename, it creates a directory and writes the dat, id and map files, again without the tab.

My GDAL appears to be working as I can do the conversion using ogr2ogr.

Change History (2)

comment:1 by lutra, 14 years ago

Priority: critical: causes crash or data corruptionmajor: does not work as expected

Is this part of #1729? if yes please add your notes to that ticket and close this as duplicate.

comment:2 by sowelu, 14 years ago

Resolution: duplicate
Status: newclosed

Yes, this appears to be much the same as #1729. My notes have been added to that ticket.

Note: See TracTickets for help on using tickets.