40

How do I convert MapInfo TAB and/or MIF files to SHP using only free tools or ArcGIS itself?

I've not had much luck trying to do this in the past and I don't want to have to shell out for the ArcGIS Data Interoperability extension which seems to be the 'official' way to go about this.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Charles Roper
  • 1,002
  • 3
  • 12
  • 15
  • 2
    Or you can export it as an MapInfo (.mif) file and open it in QGIS. Then you can do anything you wish. Long live opensource software... :) –  Sep 16 '13 at 09:26

15 Answers15

52

You can also do this with QGIS. Basically, QGIS acts as a GUI for ogr2ogr.

Just load the Mapinfo file, right-click the layer in TOC and go to "Save as ..." where you can chose from many output formats.

underdark
  • 84,148
  • 21
  • 231
  • 413
  • To load the Mapinfo file in QGIS, what are the options to choose? Vector... and is it the .TAB or the .MAP file that needs to be loaded? – user3386170 Jun 13 '18 at 16:02
38

You can use ogr2ogr:

ogr2ogr -f 'ESRI Shapefile' output.shp input.mif

NB: For Windows, use double quotes around the driver name: ogr2ogr -f "ESRI Shapefile" output.shp input.mif

To handle different geometries in one file in one pass (windows example):

for %%a in (linestring point polygon) do ogr2ogr -skipfailures -nlt %%a outdir\%%a input.tab

Or in Linux (Bash):

for a in linestring point polygon; do ogr2ogr -skipfailures -nlt $a outdir/$a input.tab; done
Alex Tereshenkov
  • 29,912
  • 4
  • 54
  • 119
fmark
  • 9,381
  • 9
  • 39
  • 45
  • 7
    If you have different geometries in the MapInfo file, you need to generate several shapefiles, e.g. ogr2ogr -f 'ESRI Shapefile' -skipfailures -nlt LINESTRING output.shp input.tab. (Substitute LINESTRING with POLYGON and POINT as needed.) – Florian Jenn Mar 19 '12 at 14:10
  • 1
    On windows you also need double quotes around "ESRI Shapefile" – Gerd K Oct 09 '15 at 09:43
27

George is correct, although for me, the toolbar is named ArcView 8x Tools.

For TAB files, ogr is pretty handy as well, and will handle lots of formats - Link

ogr2ogr - Link

Easiest install is probably with FWTools - http://fwtools.maptools.org/windows-main.html

Glorfindel
  • 1,096
  • 2
  • 9
  • 14
wwnick
  • 5,478
  • 1
  • 34
  • 22
10

Go to mapinfo, under TOOLS click universal translator and choose which format you want your file to convert to. this works!

underdark
  • 84,148
  • 21
  • 231
  • 413
Franc
  • 101
  • 1
  • 2
  • 2
    This is correct although IIRC it is possible to install MapInfo without installing the Universal Translator, though you'd have to be a fool or a masochist to do so. – Mr_Chimp Jan 19 '12 at 13:16
7

You can also download and use FME at www.safe.com

Or check out the free online file converter at http://fmeserver.com/userweb/sharper/Portal/EasyTranslator/index.html

which provides standard file translation as a free service. It doesn't leverage the transformation capabilities of FME but hey it is free with nothing to install.

donatsafe
  • 91
  • 1
  • 1
  • the free online service is interesting, but only of use if your in and out spatial references are one of 3 (Texas State Plane, UTM Zone 14, or unprojected wgs84). – matt wilkie Nov 09 '12 at 18:47
3

If you want to do it in batch, have a look at http://www.ogr2gui.ca/en/index.php. As ogr2ogr in any mentioned before would not do it in batch. Also in ArcCatalog there are conversion tools, which will do MIFtoSHP, also single and batch. Though I would recommend Ogr2ogr. Cheers.

Tomek
  • 2,923
  • 1
  • 32
  • 38
  • Having a command line tool, it is easy to write your own scripts that do exactly what you want with it (batch convertions too). Also if you write such things as you would recommend ogr2ogr over Arc, please tell why. Other than link to GUI for OGR (okey, someone might find useful), I wouldn't say that your answer has given any value to the already closed issue. – Mykolas Simutis Jun 13 '11 at 11:40
  • 1
  • Not all people can write scripts for batching and also since there is user friendly GUI (free), why would you write additional script. 2. Ogr2ogr either command line or with GUI over Arc converter, as it supports .tab. Also in the past I had some problems with batching .mif in Arc. 3. I guess since Mykolas decided, that in the end link to OGR GUI may be useful, I will not elaborate longer on the value of my anwser.
  • – Tomek Jun 13 '11 at 14:17