<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 `'<br>GCP Projection = GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.2572235630016,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]<br>
GCP[ 0]: Id=1, Info=<br> (264,8127) -> (-95.8337916667,28.533825,0)<br>GCP[ 1]: Id=2, Info=<br> (264,275) -> (-95.8337916667,29.1006305556,0)<br>GCP[ 2]: Id=3, Info=<br> (11245,275) -> (-94.9336861111,29.1006305556,0)<br>
GCP[ 3]: Id=4, Info=<br> (11245,8127) -> (-94.9336861111,28.533825,0)<br>GCP[ 4]: Id=5, Info=<br> (10436,8127) -> (-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["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.2572235630016,<br> AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br> PRIMEM["Greenwich",0],<br> UNIT["degree",0.0174532925199433],<br> AUTHORITY["EPSG","4326"]]<br>Origin = (-99.000000000000000,27.000000000000000)<br>
Pixel Size = (0.001111111111111,-0.001666666666667)<br>Metadata:<br> AREA_OR_POINT=Area<br> TIFFTAG_SOFTWARE=Adobe Photoshop CS Windows<br> TIFFTAG_DATETIME=2005:12:26 22:09:51<br> TIFFTAG_XRESOLUTION=72<br> TIFFTAG_YRESOLUTION=72<br>
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>Corner Coordinates:<br>Upper Left ( -99.0000000, 27.0000000) ( 99d 0'0.00"W, 27d 0'0.00"N)<br>Lower Left ( -99.0000000, 25.5000000) ( 99d 0'0.00"W, 25d30'0.00"N)<br>
Upper Right ( -97.0000000, 27.0000000) ( 97d 0'0.00"W, 27d 0'0.00"N)<br>Lower Right ( -97.0000000, 25.5000000) ( 97d 0'0.00"W, 25d30'0.00"N)<br>Center ( -98.0000000, 26.2500000) ( 98d 0'0.00"W, 26d15'0.00"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>