[GRASS-dev] [GRASS GIS] #3524: v.random restrict wrong categories assigned

GRASS GIS trac at osgeo.org
Tue Mar 20 08:27:20 PDT 2018


#3524: v.random restrict wrong categories assigned
--------------------------+--------------------------------------
  Reporter:  martinl      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.3
 Component:  Vector       |    Version:  svn-trunk
Resolution:               |   Keywords:  v.random, restrict, cats
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+--------------------------------------
Description changed by martinl:

Old description:

> 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

New description:

 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

 [[Image(v-random-restrict-cats-2.png, 500px)]]

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

--

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3524#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list