[GRASS-dev] [bug #4469] (grass) g.region: nsres & ewres are rounded differently

Hamish hamish_nospam at yahoo.com
Fri May 19 01:25:59 EDT 2006


> I would prefer that either the region boundary be expanded or
> contracted by a small amount and not shifted. Let say your original
> raster is just the right size and data fills every pixel. If you
> enlarge the boundary (rounding up) on the res adjustment, some pixels
> extend into regions of possible no data. If you contract the region
> (round down), you will have valid data for the entire boundary. If you
> shift, as is currently the case, the west/south edges are ok, but east
> and north may extend into a no data region. 
> 
> I think the -a flag is useful for when you want to preserve a
> particular res= setting, but the behavior is a little odd. 

It should crop to fit in the x-monitor display?



also watch out for the situation where cells don't align with 10^x,
(grid coords vs cell center conventions)

g.region s=100025 n=101075 res=50

d.zoom will shift to s=100000 n=101050 and data will be shifted in both
x,y by 25m.


Hamish




More information about the grass-dev mailing list