[Gdal-dev] invalid/no projection information in output TAB format files

Peter.Rushforth at statcan.ca Peter.Rushforth at statcan.ca
Mon May 29 12:01:38 EDT 2006


Hello list,

I am using ogr2ogr to convert gml files to mapinfo TAB format, using
the following command option and syntax:

ogr2ogr -a_srs WGS84 -f "MapInfo File" test.map test.gml

The test.map and associated files are created, but the projection about
the layer is not set correctly and Mapinfo 7 crashes when exiting if the file
is not closed first, a concern.

When I go through MIF format, and then to TAB, the projection info is correctly
set in the TAB file and no problems with Mapinfo are encountered:

ogr2ogr -a_srs WGS84 -f "MapInfo File" -dsco FORMAT=MIF temp.mif test.gml
ogr2ogr -f "MapInfo File" test.tab temp.mif

So first converting to mid/mif, then to tab is an option, but is
there some way to skip that step?

Thanks for any advice,

Peter




More information about the Gdal-dev mailing list