<div dir="ltr">David,<div><br></div><div style>The simpliest way of correcting the coordinate system might be something like:</div><div style><br></div><div style>  gdal_translate -a_srs EPSG:27700 wrong.tif right.tif</div>
<div style><br></div><div style>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. </div><div style><br></div><div style>
Best regards,</div><div style>Frank</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 8:25 AM, David Strip <span dir="ltr"><<a href="mailto:gdal@stripfamily.net" target="_blank">gdal@stripfamily.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?<br>

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

thanks<br>
David<br>
<br>
<br>
______________________________<u></u>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Software Developer<br>
</div>