[gdal-dev] ogr2ogr midmif to tab format conversion

Zoltan Szecsei zoltans at geograph.co.za
Fri Apr 29 08:25:38 EDT 2011


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

-- 

===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.

34° 6'16.35"S 18°28'5.62"E

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323     www.geograph.co.za
===========================================



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1209 / Virus Database: 1500/3603 - Release Date: 04/28/11



More information about the gdal-dev mailing list