[Qgis-developer] Plugin Georeference handle files with existing georeferencing information

Luiz Motta motta.luiz at gmail.com
Sun Jul 11 14:06:27 EDT 2010


Hi Devs,

I wonder if someone is working on Ticket #2465:
Georeferencer: does not correctly handle files with existing 
georeferencing information.

I use a images with georeferencing information (example CBERS satellite 
image), and for use Georeference
i need make some steps:
1) Create JPG image from original (GeoTIF)
2) Delete file [name original image].jpg.aux.xml
3) Use JPG in georeference plugin
Add GCP's, in this case, i get the maps coordinate with same projection 
of original image (geotif).
For this i use the plugin "Coordinate Capture"
4) Get strig to GDAL (gdal_translate and gdalwarp)
5) Changes this string and run in console
5.1) gdal_translate: put EPSG with original image
gdal_translate -a_srs EPSG:29180 -of GTiff [-gcp pixel line -gcp pixel 
line] "original.tif" "original_gcp.tif"
* [-gcp pixel line -gcp pixel line] = gcp's show in string
5.2) gdalwarp:
gdalwarp -r near -order 1 -co  -dstalpha -tr 2.500000 -2.500000 
original_gcp.tif georef.tif
* in my case i not use COMPRESS

Maybe this steps would be util for someone.

Best Regards,
Luiz



More information about the Qgis-developer mailing list