#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 mmetz):

 I have uploaded a patch (v_vect_stats_unique_cats_no_half.diff​) that
 correctly removes duplicate cats (similar to
 v_vect_stats_unique_cats.2.diff) and additionally eliminates the usage of
 half (adding 0.5 to the result). This half makes only sense if the result
 is to be converted to integer and if the result is a positive number. The
 result is always floating point, therefore adding 0.5 causes wrong
 results.

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

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to