[gdal-dev] Re: Change the spatial reference of a shapeile

Chaitanya kumar CH chaitanya.ch at gmail.com
Mon Jul 11 10:35:53 EDT 2011


Solimyr,

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.

On Mon, Jul 11, 2011 at 3:42 PM, Solimyr <giannicristian at msn.com> wrote:

> Thx, I tried to copy the file .prj but didn't work so I moved to use the
> ogr2ogr method using -a_srs but I'm not able to do that...
> I get the spatialRef using ogrinfo, like:
>
>
> GEOGCS["GCS_WGS_1984",
>    DATUM["WGS_1984",
>        SPHEROID["WGS_1984",637813.0,298.252223563]],
>    PRIMEM["Greenwich",0.0],
>    UNIT["Degree",0.0174532925199433]]
>
> But I don't know how use it with the ogr2ogr utility. I think that I must
> just use this spatialRef to the new shapefile but I don't know why I must
> put the source and also the dst....I tried:
>
>
> ogr2ogr -a_srs GEOGCS["GCS_WGS_1984",\n    DATUM["WGS_1984",\n
> SPHEROID["WGS_1984",637813.0,298.252223563]],\n
> PRIMEM["Greenwich",0.0],\n    UNIT["Degree",0.0174532925199433]] shape.shp
>
> But doesn't work...
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Change-the-spatial-reference-of-a-shapeile-tp6561998p6570374.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110711/1b0ac666/attachment.html


More information about the gdal-dev mailing list