Opened 15 years ago

Closed 13 years ago

#1729 closed enhancement (wontfix)

MapInfo: OGR layer converter doesn't work

Reported by: 1969 Owned by:
Priority: minor: annoyance Milestone: Version 1.6.0
Component: C++ Plugins Version: Trunk
Keywords: Cc: mateusz@…
Must Fix for Release: No Platform: Linux
Platform Version: Awaiting user input: no

Description

MapInfo ogr driver doesn't work as expected using OGR Converter plugin. When running the plugin and choosing the MapInfo driver in source format just remote source is enabled File and directory are unabled.

Change History (11)

comment:1 by pcav, 15 years ago

Cc: mateusz@… added
Component: Build/InstallPlugins

I cannot confirm: in my installation (QGIS self compiled from trunk on Debian testing) I can select MapInfo files, but when I select a target directory and press the run button, I get a segfault

comment:2 by pcav, 15 years ago

Summary: MapInfo org driver doesn't workMapInfo OGR driver doesn't work

comment:3 by pcav, 15 years ago

Priority: major: does not work as expectedcritical: causes crash or data corruption

I confirm the segfault

comment:4 by lutra, 15 years ago

Milestone: Version 1.2.0
Platform: WindowsAll
Platform Version: Window XP sp3 Ubuntu 8.04Window XP sp3, Ubuntu 8.04, Ubuntu 9.04

Same on Ubuntu 9.04 with Qgis from trunk: I cannot open the mapinfo files trough the ogr converter (remote source enabled, File and directory disabled).

comment:5 by lutra, 15 years ago

Summary: MapInfo OGR driver doesn't workMapInfo: OGR layer converter doesn't work

By the way: it is possible to open mapinfo files trough the normal "add vector" dialog window, so I guess is better to change the title.

comment:6 by lutra, 15 years ago

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

comment:7 by pcav, 15 years ago

Owner: 1969 removed

comment:8 by lutra, 15 years ago

Resolution: wontfix
Status: newclosed

I gave a closer look to this and I have to admit that at the end it works, at least with the latest development version of qgis under both linux and windows.

It happens that under linux the "dataset" field misses the "browse" button, but if you enter by hand the path were the mapinfo files reside, then you can click "connect" and see in "layers" the list of available ones.

Under windows there is the "browse" button so no problem at all.

comment:9 by lutra, 15 years ago

Keywords: MapInfo Tab and Mif/Mid driver removed
Platform: AllLinux
Platform Version: Window XP sp3, Ubuntu 8.04, Ubuntu 9.04
Priority: major: does not work as expectedminor: annoyance
Resolution: wontfix
Status: closedreopened
Type: bugenhancement

It would be better to add the "browse" button also under linux. As said under windows there is already and it works, under OsX I don't know.

comment:10 by sowelu, 14 years ago

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.

Roland

comment:11 by pcav, 13 years ago

Resolution: wontfix
Status: reopenedclosed

Plugin removed as per r15331

Note: See TracTickets for help on using tickets.