Re: [gdal-dev] copy GCPs from .xml to GTiff

2008-09-24 Thread Brent Fraser
Shawn, I had a similar need some time ago. I hacked gdalinfo to output only the GCPs in a GDAL-friendly format (one "-GCP Pixel Line X Y" per line) and redirected the results to a text file of command-line options: my_gdalinfo file1.tif > file1_gcps.opt Then attached them to my othe

[gdal-dev] copy GCPs from .xml to GTiff

2008-09-24 Thread Gong, Shawn (Contractor)
Hi list, I have two Radarsat-2 files File A: product.xml File B: single channel GTiff I am looking for a simple way to copy file A's GCPs and GCP Projection to file B, delete 4 existing GCPs in file B, and resave (as GTiff). Basically replacing the below Blue text with Red text.