On 13/08/12 9:43 PM, Hamish wrote:
Sylvain wrote:
- use your bounding box points to make a vrt raster for each of your png files
- use gdalwarp to georectify your png files
here's a couple of other ways too:

translate the bounding box into a "world file" (a little bit of automatable
math is involved), call it by the same filename as the .png image but with
a .wld extension, use r.in.gdal to import it, it will see the world file
and geo-ref the PNG automatically.
   http://gdal.org/frmt_various.html#PNG



or, use gdal_translate to set the bounds and create a geotiff you can
import.

        -a_ullr ulx uly lrx lry:
            Assign/override the georeferenced bounds of the output
            file. This assigns georeferenced bounds to the output
            file, ignoring what would have been derived from the
            source file.

use your bbox to fill in the values.


Hamish

Thanks Hamish and Sylvain - the gdal_translate worked best, because it was the easiest to automate. I just imported the bounding box values into a database, and ran a selection loop to get the values for gdal_translate.

Cheers,
Richard
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to