Opened 7 years ago

Closed 7 years ago

#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 7 years ago.

Download all attachments as: .zip

Change History (11)

by martinl, 7 years ago

comment:1 by martinl, 7 years ago

Description: modified (diff)

comment:2 by martinl, 7 years ago

In 72416:

v.random restrict wrong categories assigned, see #3524

comment:3 by martinl, 7 years ago

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

comment:4 by martinl, 7 years ago

In 72421:

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

comment:5 by martinl, 7 years ago

In 72495:

v.random restrict wrong categories assigned, see #3524

comment:6 by martinl, 7 years ago

In 72496:

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

comment:7 by martinl, 7 years ago

In 72497:

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

comment:8 by martinl, 7 years ago

Milestone: 7.2.37.0.7

comment:9 by martinl, 7 years ago

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

comment:10 by martinl, 7 years ago

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