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

John C. Tull jctull at gmail.com
Mon Jul 12 14:23:17 EDT 2010


Perhaps it is a bit off-topic, but I was unable to successfully georeference an image in trunk last week no matter what settings I tried. I kept getting a georeference of sorts, but way off location. I'd be happy to provide more information to the developer off-list.

John

On Jul 11, 2010, at 11:06 AM, Luiz Motta wrote:

> 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
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list