Re: [gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Luca Sigfrido Percich
Hi all, Zoltan sent me a couple of MIF files. The problem is that the Coordinate System declaration in the MIF file is wrong, because it says it's unreferenced cartesian with units=meters, while the coordinates are in decimal degrees (probably WGS84). When the coordsys declaration is corrected in

Re: [gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Frank Warmerdam
On 11-04-29 10:27 AM, Zoltan Szecsei wrote: Spot on, Frank - thank you. (it works as desired, now). I'm not sure if anything is mentioned in the overview docs or help area, but perhaps that comment regarding assumed precision could be added somewhere obvious even to skip-readers like me? [just to

Re: [gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Zoltan Szecsei
On 2011-04-29 16:03, Frank Warmerdam wrote: On 11-04-29 08:25 AM, Zoltan Szecsei wrote: Any idea why the TAB route messes up the geometries? As discussed in http://www.gdal.org/ogr/drv_mitab.html the driver needs to set a bounds for coordinates which determines precision. If it doesn't know

Re: [gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Frank Warmerdam
On 11-04-29 08:25 AM, Zoltan Szecsei wrote: 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=

Re: [gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Zoltan Szecsei
On 2011-04-29 14:58, Luca Sigfrido Percich wrote: Hi Zoltan, I have MapInfo installed, if you post a mif/mid file I can test it I will send you one off-list. Thanks & regards, Zoltan before/after conversion with ogr2ogr, imut (which is based on FME) and MapInfo Import command. Have you tr

Re: [gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Luca Sigfrido Percich
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 I

[gdal-dev] ogr2ogr midmif to tab format conversion

2011-04-29 Thread Zoltan Szecsei
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" } '