[GRASS-dev] [GRASS GIS] #3184: v.vect.stats: errors in counts and statistics

GRASS GIS trac at osgeo.org
Wed Oct 19 11:48:03 PDT 2016


#3184: v.vect.stats: errors in counts and statistics
-------------------------+--------------------------
  Reporter:  veroandreo  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.2.0
 Component:  Vector      |    Version:  svn-trunk
Resolution:              |   Keywords:  v.vect.stats
       CPU:  x86-64      |   Platform:  Linux
-------------------------+--------------------------

Comment (by mlennert):

 I think I found the issue.

 When running with g.gisenv set=DEBUG=1, I get:


 {{{
 v.vect.stats -p points=gc type=centroid areas=grid_one_cat points_col=col
 countcol=count statscol=sum method=sum
 [...]
 D1/1: 9 cats loaded from vector (including duplicates)
 D1/1: 5 cats loaded from vector (unique)
 [...]
 }}}

 There should be only 1 unique cat.

 The attached patch seems to solve this for me, but it needs testing and
 review.

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



More information about the grass-dev mailing list