[GRASS-dev] [bug #5427] (grass) v.overlay does not run properly with operator=and

Request Tracker grass-bugs at intevation.de
Wed Jan 10 10:34:45 EST 2007


this bug's URL: http://intevation.de/rt/webrt?serial_num=5427
-------------------------------------------------------------------------

Subject: v.overlay does not run properly with operator=and

Platform: GNU/Linux/x86
grass obtained from: Other (CDROM etc)
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: 6.2.0-1 

I've tested the following : create the intersection from layer B to
layer A compared with intersection from layer A to layer B :

CASE 1 : 
v.overlay ainput=mpnetwork atype=area binput=management_polygones
atype=area output=base_cells operator=and


CASE 2 :
v.overlay ainput=management_polygones atype=area binput=mpnetwork
atype=area output=base_cells operator=and


The resulting intersection are different and seems to be uncorrect :

CASE 1 :
GRASS 6.2.0 (ALMERIA):~/Documents/ucl/alert/grass > v.db.select
map=base_cells column=a_cat,b_cat,a_area_tot,b_area_tot where="a_cat=37"
a_cat|b_cat|a_area_tot|b_area_tot
37|10|1000000|15000
37|13|1000000|0
37|1|1000000|0
37|8|1000000|0
37|14|1000000|0
37|11|1000000|1527000


CASE 2 : 
GRASS 6.2.0 (ALMERIA):~/Documents/ucl/alert/grass > v.db.select
map=base_cells column=a_cat,b_cat,a_area_tot,b_area_tot where="b_cat=37"
a_cat|b_cat|a_area_tot|b_area_tot

... this is a very strange behaviour ... the CASE 1 gives the correct
intersection and not the CASE2 ...

The problem is bigger that that :

The attribute table created in CASE1 is not totally correct. The b_input as a b_tot_area value for all the vectors but in the resulting attribute table, you see that for b_cat 13, 1,8 and 14, the outputed value is 0.

I can provide the input file if needed.

Didrik <dpinte at itae.be>

-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list