[gdal-dev] Mixed SRSes ?

Yves Jacolin (Free) yjacolin at free.fr
Fri Nov 30 05:33:47 PST 2012


Le vendredi 30 novembre 2012 13:52:57 Pierrick.BRIHAYE at region-bretagne.fr a 
écrit :
> Hello,
> 
> When I try to export some GML files to .shp (using : .\bin\ogr2ogr.exe -f
> "ESRI Shapefile" polygons.shp polygons.gml -t_srs EPSG:27572 -nlt POLYGON
> -lco ENCODING=ISO-8859-1), with ogr2ogr version "GDAL 1.9.2, released
> 2012/10/08" on Windows, I get :
> 
> Can't transform coordinates, source layer has no
> coordinate system.  Use -s_srs to set one.
> 
> I guess this is due to mixed SRSes in my files (namely "
> http://www.opengis.net/gml/srs/epsg.xml#27572" and ""
> http://www.opengis.net/gml/srs/epsg.xml#27562").
> 
> If so, how could I get around my problem ?
> 
> Cheers,
> 

Pierrick,

did you try something like this (ie with s_srs EPSG:27562):

 .\bin\ogr2ogr.exe -f "ESRI Shapefile" polygons.shp polygons.gml -t_srs 
EPSG:27572 -s_srs EPSG:27562 -nlt POLYGON -lco ENCODING=ISO-8859-1

Y.


More information about the gdal-dev mailing list