[GRASS-dev] Re: [GRASS GIS] #229: v.random: add random sampling from vector points map

GRASS GIS trac at osgeo.org
Mon Aug 11 08:54:09 EDT 2008


#229: v.random: add random sampling from vector points map
--------------------------+-------------------------------------------------
  Reporter:  neteler      |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  default      |     Version:  svn-trunk                
Resolution:               |    Keywords:  vector                   
  Platform:  All          |         Cpu:  All                      
--------------------------+-------------------------------------------------
Comment (by neteler):

 The idea to use separately v.random and v.what.vect fails as it introduces
 new data points:

 {{{
 v.info -c lidar1map
 g.region vect=lidar1map
 v.random output=random_samples10 n=3800 --o
 v.db.addtable map=random_samples10 columns='cat integer, height double
 precision'
 v.what.vect vector=random_samples10 column=height qvector=lidar1map
 qcolumn=N3 dmax=100
 }}}

 while it should subset existing data points.

 Suggestion: maybe better use v.extract and add a "random=" parameter there
 which populates internally the "list=" list of categories?

 Markus

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


More information about the grass-dev mailing list