<div>I&#39;m trying to a shapefile to KML. The Shapefile driver indicates that &quot;If a .prj files&nbsp;(...) is present, it will be read and used to associate a projection with features.&quot;. In addition, the OGR KML driver documentation says &quot;All OGR KML output will be presented in EPSG:4326.&quot;.
</div>
<div>&nbsp;</div>
<div>Let&#39;s say the input files&nbsp;are myshape.shp, myshape.shx, myshape.dbf and myshape.prj and I try&nbsp;&quot;ogr2ogr -f kml out.kml myshape.shp&quot;.</div>
<div>then the resulting coordinates are still in the source coordinate system: Why? I espected that theya re transformed to WGS84 according to the documentation mentioned.</div>
<div>&nbsp;</div>
<div>This is what finally worked: &quot;ogr2ogr -f kml del_prairie.kml del_prairie.shp -s_srs EPSG:21781 -t_srs EPSG:4326&quot;. But indicating &quot;-s_srs EPSG:21781&quot; seems to me redundant to the existing file myshape.prj
. Any explanations?</div>
<div>&nbsp;</div>
<div>-- Stefan</div>