Selon Jukka Rahkonen <[email protected]>: > Hi, > > I have a shapefile in EPSG:2393 but without .prj file and I am getting a bad > result if I convert it into KML format with command: > > ogr2ogr -f KML -s_srs epsg:2393 test_2.kml test_region.shp > ERROR 1: Latitude 6785184.157800 is invalid. Valid range is [-90,90]. This > warning will not be issued any more > Warning 1: Longitude 3304050.889898 has been modified to fit into range > [-180,180]. This warning will not be issued any more > > The result is good if I add parameter -t_srs epsg:4326. However, this should > be unnecessary with KML because it is always EPSG:4326 and also the driver > manual page http://www.gdal.org/ogr/drv_kml.html claims the same in the text > and in the examples.
Several emails in the queue related to the reprojection area. Logical behaviour when considering how -s_srs works. Basically -s_srs is ignored completely if you don't also specify -t_srs. Probably a warning should be issued to warn the user, and this should be documented in the manual page. > > Gdal version is "GDAL 1.10.0, released 2013/04/13" from gisinternals > > -Jukka Rahkonen- > > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
