[gdal-dev] Bad result when writing into KML without -t_srs
Jukka Rahkonen
jukka.rahkonen at mmmtike.fi
Thu Jun 6 16:26:58 PDT 2013
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.
Gdal version is "GDAL 1.10.0, released 2013/04/13" from gisinternals
-Jukka Rahkonen-
More information about the gdal-dev
mailing list