#3524 closed defect (fixed)

v.random restrict wrong categories assigned

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: Vector Version: svn-trunk
Keywords: v.random, restrict, cats Cc:
CPU: Unspecified Platform: Unspecified

Description (last modified by martinl)

G7:v.random together with restrict option assigns to points also categories of related area (centroid) if layer > 0. See example below

g.region vector=geology
v.random out=test n=1 --o restrict=geology layer=1
v.category test opt=print
1727/1

The assigned categories are sometimes wrong, see

Related area (centroid) of category 625, the point has wrongly assigned category 28.

Attachments (1)

v-random-restrict-cats-2.png (19.8 KB) - added by martinl 19 months ago.

Download all attachments as: .zip

Change History (11)

Changed 19 months ago by martinl

comment:1 Changed 19 months ago by martinl

Description: modified (diff)

comment:2 Changed 19 months ago by martinl

In 72416:

v.random restrict wrong categories assigned, see #3524

comment:3 Changed 19 months ago by martinl

Should be fixed in r72416. Needs some testing in order to backport.

comment:4 Changed 19 months ago by martinl

In 72421:

v.random: cosmetics related to r72416, see #3524

comment:5 Changed 19 months ago by martinl

In 72495:

v.random restrict wrong categories assigned, see #3524

comment:6 Changed 19 months ago by martinl

In 72496:

v.random restrict wrong categories assigned, see #3524 (merge r72416 + r72421 from trunk)

comment:7 Changed 19 months ago by martinl

In 72497:

v.random restrict wrong categories assigned, see #3524 (g70: merge r72416 + r72421 from trunk)

comment:8 Changed 19 months ago by martinl

Milestone: 7.2.37.0.7

comment:9 Changed 19 months ago by martinl

Fixed in all affected branches (trunk, g74, g72, g70).

comment:10 Changed 19 months ago by martinl

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.