[gdal-dev] ogr2ogr midmif to tab format conversion

Luca Sigfrido Percich sigfrido at tiscali.it
Fri Apr 29 08:58:35 EDT 2011


Hi Zoltan,

I have MapInfo installed, if you post a mif/mid file I can test it
before/after conversion with ogr2ogr, imut (which is based on FME) and
MapInfo Import command.

Have you tried to open in geomedia the Shape generated by ogr2og2, at
least to see if its geom is ok?

All the best

Sig


Il giorno ven, 29/04/2011 alle 14.25 +0200, Zoltan Szecsei ha scritto:
> Hi All,
> I am trying to convert a bunch of MapInfo MID-MIF files to MapInfo TAB 
> files, because GeoMedia 6.1 will not "connect" to MIDMIF files.
> Using this script on Ubuntu 10.04, ogr2ogr from GDAL 1.8.0, released 
> 2011/01/12
> 
> 
> 
> for m in `ls *.mif` ; do n=`echo $m | awk -F . ' { print $1".tab" } ' ` 
> ; echo "******************** Starting $m" ; ogr2ogr -F "MapInfo File" $n 
> $m ; done
> 
> (Basically: ogr2ogr -F "MapInfo File" boundaries.tab boundaries.mif )
> 
> 
> 
> 
> When I load the resulting .TAB, .ID, .MAP and .DAT files into GeoMedia, 
> I get coarse boxes and diagonal lines, albeit in the correct LatLong region.
> 
> When I use a very old "imutgui" from an old MapInfo to convert the same 
> MID MIFs to SHAPE, I can (correctly) load the SHAPEs into GeoMedia.
> 
> I cannot use the SHAPEfile route as the field names are truncated when 
> converting from MIDMIF to SHAPE.
> 
> 
> Any idea why the TAB route messes up the geometries?
> 
> TIA,
> Zoltan
> 



More information about the gdal-dev mailing list