<div dir="ltr">Hi,<br><br>For a raster file header how do I transform the GCP Projection and GCP into a format where instead the Coordinate System contains corner coordinates?<br><br><b>Below is an example of a portion of a header file containing GCP Projection and GCP and below the dotted line is how I would like it transformed.</b><br>
<br>Driver: GTiff/GeoTIFF<br>Size is 11601, 9027<br>Coordinate System is `&#39;<br>GCP Projection = GEOGCS[&quot;WGS 84&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;WGS 84&quot;,6378137,298.2572235630016,AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;degree&quot;,0.0174532925199433],AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>
GCP[&nbsp; 0]: Id=1, Info=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (264,8127) -&gt; (-95.8337916667,28.533825,0)<br>GCP[&nbsp; 1]: Id=2, Info=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (264,275) -&gt; (-95.8337916667,29.1006305556,0)<br>GCP[&nbsp; 2]: Id=3, Info=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (11245,275) -&gt; (-94.9336861111,29.1006305556,0)<br>
GCP[&nbsp; 3]: Id=4, Info=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (11245,8127) -&gt; (-94.9336861111,28.533825,0)<br>GCP[&nbsp; 4]: Id=5, Info=<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (10436,8127) -&gt; (-94.9999972222,28.533825,0)<br><br><b>..............................................................................</b><br>
<br>Driver: GTiff/GeoTIFF<br>Size is 1800, 900<br>Coordinate System is:<br>GEOGCS[&quot;WGS 84&quot;,<br>&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;WGS 84&quot;,6378137,298.2572235630016,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<br>&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<br>&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>Origin = (-99.000000000000000,27.000000000000000)<br>
Pixel Size = (0.001111111111111,-0.001666666666667)<br>Metadata:<br>&nbsp; AREA_OR_POINT=Area<br>&nbsp; TIFFTAG_SOFTWARE=Adobe Photoshop CS Windows<br>&nbsp; TIFFTAG_DATETIME=2005:12:26 22:09:51<br>&nbsp; TIFFTAG_XRESOLUTION=72<br>&nbsp; TIFFTAG_YRESOLUTION=72<br>
&nbsp; TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>Corner Coordinates:<br>Upper Left&nbsp; ( -99.0000000,&nbsp; 27.0000000) ( 99d 0&#39;0.00&quot;W, 27d 0&#39;0.00&quot;N)<br>Lower Left&nbsp; ( -99.0000000,&nbsp; 25.5000000) ( 99d 0&#39;0.00&quot;W, 25d30&#39;0.00&quot;N)<br>
Upper Right ( -97.0000000,&nbsp; 27.0000000) ( 97d 0&#39;0.00&quot;W, 27d 0&#39;0.00&quot;N)<br>Lower Right ( -97.0000000,&nbsp; 25.5000000) ( 97d 0&#39;0.00&quot;W, 25d30&#39;0.00&quot;N)<br>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( -98.0000000,&nbsp; 26.2500000) ( 98d 0&#39;0.00&quot;W, 26d15&#39;0.00&quot;N)<br>
Band 1 Block=1800x1 Type=Byte, ColorInterp=Red<br>Band 2 Block=1800x1 Type=Byte, ColorInterp=Green<br>Band 3 Block=1800x1 Type=Byte, ColorInterp=Blue<br clear="all"><br>-- <br>John J. Mitchell<br>
</div>