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

Richard Matsunaga richard.matsunaga at waypointinfo.com
Mon May 29 13:13:27 EDT 2006


 
What version of GDAL/OGR are you using?

There was a bug with MapInfo files and projections that was fixed in the
latest release.

Richard

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of
Peter.Rushforth at statcan.ca
Sent: May 29, 2006 12:02 PM
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] invalid/no projection information in output TAB
formatfiles

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

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list