[GRASS-user] Raster with bounding box

Richard Chirgwin rchirgwin at ozemail.com.au
Mon Aug 13 18:10:30 PDT 2012


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


More information about the grass-user mailing list