[GRASS-dev] [grass-code I][489] g.region vect=map res=1 -a: region one cell of to the south

grass-dev at grass.itc.it grass-dev at grass.itc.it
Fri Sep 21 05:12:04 EDT 2007


code I item #489, was opened at 2007-09-21 11:12
Status: Open
Priority: 5
Submitted By: Maciej Sieczka (msieczka)
Assigned to: Nobody (None)
Summary: g.region vect=map res=1 -a: region one cell of to the south 
Issue type: module bug
Issue status: None
GRASS version: CVS HEAD
GRASS component: general
Operating system: all
Operating system version: 
GRASS CVS checkout date, if applies (YYMMDD): 070921


Initial Comment:
Setting region to cover only the selected vector alligning to resolution fails. To reproduce:

#import line:
$ echo "L  2 1
 602473.66691719 5680962.45268225
 602448.70284465 5680961.09147704
1     1" | v.in.ascii -n form=standard out=line

# set the region somewhat bigger than the line:
$ g.region g.region n=5680965 s=5680959 w=602430 e=602493 res=1

#now try to set the region to cover the vector, alligning to resolution:
$ g.region vect=linia res=1 -a

#let's see what was the region set to:
n=5680963
s=5680960
w=602448
e=602474
nsres=1
ewres=1
rows=3
cols=26
cells=78

That's wrong. Rows should be 2, as south should be 5680961, not 5680960, because vector's south extent is at 5680961.09147704.

The bug is present only in 6.3 CVS! Can't reproduce it in current 6.2 CVS.


----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=489&group_id=21




More information about the grass-dev mailing list