[GRASS-user] Raster with bounding box

Hamish hamish_b at yahoo.com
Mon Aug 13 04:43:03 PDT 2012


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


More information about the grass-user mailing list