Solimyr,<br><br>It's hard to express the SRS WKT on command line. The easiest way is to save the srs wkt into a file and use the filename in place of the srs_def for the -a_srs option in the command.<br><br><div class="gmail_quote">
On Mon, Jul 11, 2011 at 3:42 PM, Solimyr <span dir="ltr"><<a href="mailto:giannicristian@msn.com">giannicristian@msn.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thx, I tried to copy the file .prj but didn't work so I moved to use the<br>
ogr2ogr method using -a_srs but I'm not able to do that...<br>
I get the spatialRef using ogrinfo, like:<br>
<br>
<br>
GEOGCS["GCS_WGS_1984",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS_1984",637813.0,298.252223563]],<br>
PRIMEM["Greenwich",0.0],<br>
UNIT["Degree",0.0174532925199433]]<br>
<br>
But I don't know how use it with the ogr2ogr utility. I think that I must<br>
just use this spatialRef to the new shapefile but I don't know why I must<br>
put the source and also the dst....I tried:<br>
<br>
<br>
ogr2ogr -a_srs GEOGCS["GCS_WGS_1984",\n DATUM["WGS_1984",\n<br>
SPHEROID["WGS_1984",637813.0,298.252223563]],\n<br>
PRIMEM["Greenwich",0.0],\n UNIT["Degree",0.0174532925199433]] shape.shp<br>
<br>
But doesn't work...<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Change-the-spatial-reference-of-a-shapeile-tp6561998p6570374.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Change-the-spatial-reference-of-a-shapeile-tp6561998p6570374.html</a><br>
</font><div><div></div><div class="h5">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>