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

Even Rouault even.rouault at mines-paris.org
Tue May 28 09:35:57 PDT 2013

Selon David Strip <gdal at stripfamily.net>:

> 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.

You can use the gdal_edit utility with the -a_srs option. See

> thanks
> David
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

More information about the gdal-dev mailing list