Re: [gdal-dev] Copy only georeference between two images

2010-09-14 Thread Giacomo Piva
I think that you want to work in this way: You can "copy" the georeference from an already opened dataset (inputhDataset) ... pszTargetSRS = (char *)GDALGetProjectionRef(inputhDataset); GDALGetGeoTransform(inputhDataset, padfGeoTransform); nGCPCount = GDALGetGCPCount(inp

Re: [gdal-dev] Copy only georeference between two images

2010-09-13 Thread Ralf Suhr
Use listgeo -tfw FILE and rename the new worldfile to the filename without georeferentiation. listgeo is from geotiff. Gr Ralf Am Montag 13 September 2010 16:45:30 schrieb canduc17: > One simple question: > > I have two identical images, exept for their their georeferentiation. They > represent

Re: [gdal-dev] Copy only georeference between two images

2010-09-13 Thread christian . mueller
Do you have the georeference information included in your image file (geotiff for example) or do you have an extra world file containing 6 lines of numbers. In the second case, it is easy. Quoting canduc17 : One simple question: I have two identical images, exept for their their georefere

[gdal-dev] Copy only georeference between two images

2010-09-13 Thread canduc17
One simple question: I have two identical images, exept for their their georeferentiation. They represent the same scene, their sizes are identical, but one of them has a correct UTM georeferentiation and the second one hasn't. In which way can I copy and paste the correct georeferentiation from