#229: v.random: add random sampling from vector points map
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: vector | Platform: All
Cpu: All |
-------------------------+--------------------------------------------------
In v.random, there is no possibility to do random sampling from
a vector points map (as r.random does). I have seen that most
vector code is already in
{{{
raster/r.random/random.c
}}}
incl DBMS support since r.random also support vector points (but
only from *raster* maps). Maybe not a big issue for someone familiar
with vector/DBMS...
#229: v.random: add random sampling from vector points map
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: closed
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: fixed | Keywords: vector
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Changes (by neteler):
* status: new => closed
* resolution: => fixed
Comment:
Maris wrote:
> v.extract now supports extraction of N random categories matching vector
features.
> To extract N points, simply provide random=N option.
> Current implementation has one small(?) problem - it operates on CAT's
> and not feature ID's and thus will extract ALL features matching
> randomly selected CAT values.
He implemented it in r33639.
Tested and works fine.