[Gdal-dev] ogr2ogr Lambert 2 etendu to latlong

Julien Demaria dem at acri-st.fr
Tue Jul 12 03:22:41 EDT 2005


Hi,

I try to convert with oogr2ogr a MapInfo vector data (the file "Fhd03.TAB" 
in the last MapInfo) with this projection :

$ ogrinfo Fhd03.TAB Fhd03 | more
Had to open data source read-only.
INFO: Open of `Fhd03.TAB'
using driver `MapInfo File' successful.

Layer name: Fhd03
Geometry: Unknown (any)
Feature Count: 8486
Extent: (75692.351355, 1633578.266952) - (1197468.936297, 2674331.601748)
Layer SRS WKT:
PROJCS["unnamed",
     GEOGCS["unnamed",
         DATUM["MIF 1002",
             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",45.898918964419],
     PARAMETER["standard_parallel_2",47.696014502038],
     PARAMETER["latitude_of_origin",46.8],
     PARAMETER["central_meridian",0],
     PARAMETER["false_easting",600000],
     PARAMETER["false_northing",2200000],
     UNIT["Meter",1.0]]
TOPONYMIE: String (27.0)
...

to latlong with this command : ogr2ogr -f "MapInfo File" -t_srs 
'+proj=latlong' france_hydro.tab Fhd03.TAB Fhd03
It works but the output seems have an offset of ~4.5°W...

I failed too to translate to Shapefile : "ERROR 1: Attempt to write 
non-linestring (POLYGON) geometry to ARC type shapefile."
I tried -lco SHPT=POLYGON and -nlt=POLYGON but it doesn't work.

I use GDAL 1.2.6.

Thanks in advance,

Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20050712/8ee3feb6/attachment.html


More information about the Gdal-dev mailing list