[gdal-dev] GDAL 1.9.2 - converting from shp to MapInfo get wrong SRS

Eduardo Kanegae eduardo.kanegae at gmail.com
Thu Jun 6 13:28:20 PDT 2013


hi,

I'm trying to convert a shapefile layer (EPSG:22523) for the same SRS
in a MapInfo TAB file, but despite I try to do it using:

$ ogr2ogr  -f "MapInfo File" -s_srs EPSG:22523 -t_srs EPSG:22523
-a_srs EPSG:22523 /mapinfo_target_folder/ /shp_source_folder
my_layer_1

And despite an "orginfo -so " is dumping same extent values for source
and target files, the full dump for TARGET mapinfo file is displaying
the follwing metadata for SRS:
Layer SRS WKT:
PROJCS["unnamed",
    GEOGCS["unnamed",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563],
            TOWGS84[0,0,0,-0,-0,-0,0]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-45],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",10000000],
    UNIT["Meter",1.0]]

and finally, when opening the target file at Mapinfo application, this
layer is being displayed shifted.

Is there any creation option to be passed to ogr2ogr to fix this WGS metadata?

thanks in advance,

Eduardo Patto Kanegae
http://www.webmapit.com | @webmapit


More information about the gdal-dev mailing list