[gdal-dev] What's the best way to fix an incorrect projection in a geotiff

Frank Warmerdam warmerdam at pobox.com
Tue May 28 08:38:26 PDT 2013


David,

The simpliest way of correcting the coordinate system might be something
like:

  gdal_translate -a_srs EPSG:27700 wrong.tif right.tif

This assumes the coordinates are ok.  This does result in copying the whole
image and repacking it but avoids any resampling that might occur with
gdalwarp.

Best regards,
Frank



On Tue, May 28, 2013 at 8:25 AM, David Strip <gdal at stripfamily.net> wrote:

> I have a geotiff that contains data in Penn. State-Plane, but the
> coordinate system is listed as GCS WGS84. What's the best way to fix this,
> esp if I have multiple files with this problem?
> I can use listgeo to get a file of the all the tags, edit the coordinate
> system to the correct value, then use tiffcp on each file to strip out the
> tags and then use geotifcp to put back the correct ones, but I suspect
> there's a better way, perhaps using gdalwarp with the -to option set to
> override the input SRS, creating a trivial warp? Or maybe something simpler
> that I'm not seeing.
> thanks
> David
>
>
> ______________________________**_________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/gdal-dev<http://lists.osgeo.org/mailman/listinfo/gdal-dev>
>



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130528/8eb26071/attachment-0001.html>


More information about the gdal-dev mailing list