[gdal-dev] ogr2ogr projection problem

Guillaume Sueur guillaume.sueur at neogeo-online.net
Fri Jun 20 11:36:37 EDT 2008


Hi,

I've noticed a problem using ogr2ogr for MapInfo files creation. the 
destination projection doesn't seem to be set in the resulting file, 
causing MapInfo opening it as 'non earth projection'.
Here is the ogrinfo of my input file :
PROJCS["unnamed",
     GEOGCS["unnamed",
         DATUM["NTF_Paris_Meridian",
             SPHEROID["Clarke 1880 (modified for 
IGN)",6378249.2,293.4660213],
             TOWGS84[-168,-60,320,-0,-0,-0,0]],
         PRIMEM["non-Greenwich",2.337229166667],
         UNIT["degree",0.0174532925199433]],
     PROJECTION["Lambert_Conformal_Conic_2SP"],
     PARAMETER["standard_parallel_1",43.199291275544],
     PARAMETER["standard_parallel_2",44.996093814511],
     PARAMETER["latitude_of_origin",44.1],
     PARAMETER["central_meridian",0],
     PARAMETER["false_easting",600000],
     PARAMETER["false_northing",200000],
     UNIT["Meter",1.0]]

If I create a shapefile, with :
  ogr2ogr -a_srs 'EPSG:27563' -t_srs 'EPSG:27563' -f 'ESRI Shapefile' 
test myfile.TAB

the ogrinfo on the new shapefile gives :
PROJCS["NTF (Paris) / Lambert Sud France",
     GEOGCS["NTF (Paris)",
         DATUM["Nouvelle_Triangulation_Francaise",
             SPHEROID["Clarke_1880_IGN",6378249.2,293.4660212936269]],
         PRIMEM["Paris",2.33722917],
         UNIT["grad",0.01570796326794897]],
     PROJECTION["Lambert_Conformal_Conic_1SP"],
     PARAMETER["latitude_of_origin",49],
     PARAMETER["central_meridian",0],
     PARAMETER["scale_factor",0.999877499],
     PARAMETER["false_easting",600000],
     PARAMETER["false_northing",200000],
     UNIT["Meter",1]]

but the same transformation for a mapInfo file gives back :
Layer SRS WKT:
LOCAL_CS["Nonearth",
     UNIT["Meter",1.0]]

these commands with s_srs instead of a_srs gives the same results.

Any hint ?

Thanks

-- 
Guillaume SUEUR




More information about the gdal-dev mailing list