[GRASS-dev] r.in.gdal problems

Hamish hamish_b at yahoo.com
Thu Jun 11 01:37:56 EDT 2009


> Hamish wrote:
> > due to the grid vs cell center registration difference
> > between srtm tiles and grass's raster maps I think it is
> > normal that the cell edges seem to hang 1/2 a cell beyond
> > exact round numbers.
> 
> (which in this case causes a slight overlap)

.... and can be solved by cropping away the left or rightmost
column of cells, either with r.region+'g.region w=w+$ewres'+
r.mapcalc  or with 'gdal_translate -srcwin'

maybe you need to set r.region to some temporary fake values
to do the cropping then set them back to real values after?


Hamish



      



More information about the grass-dev mailing list