[GRASS-dev] [GRASS GIS] #3184: v.vect.stats: errors in counts and statistics
GRASS GIS
trac at osgeo.org
Sat Oct 22 14:40:44 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 mmetz):
Replying to [comment:10 veroandreo]:
> Ahhh! Thanks for the explanation :)
>
> So, I applied the second patch "instead" of the first one, and it works
as expected, at least for the counts of points in polygons. I tested both
with the test data previously attached and with data of my own. Thanks so
much! I will test more and report back :)
The patch to remove duplicate area categories seems correct to me, but
does not account for the case when no area categories are found. This test
is missing in the code anyway and should be done before removing duplicate
area categories.
>
> Regarding the statistics... I'm not sure how to, but even if the
attribute data in the points is integer, wouldn't that be better to have
the "real" average, standard deviation, etc., and not a truncated version
of them??
Right. The stats that can be integer are "category number of lowest
value", "category number of highest value", and "number of different
values", all else should be floating point. Count is treated differently
(not a method option but triggered with the count_column option). This
"half" addition of 0.5 comes from r.neighbors in G6 which is ignored by
r.neighbors in G7.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3184#comment:11>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list