Count points in areas, calculate statistics.
vector, database, attribute table
v.vect.stats
v.vect.stats help
v.vect.stats [-p] points=name areas=name [type=string[,string,...]] [player=integer] [alayer=integer] [method=string] [pcolumn=name] [ccolumn=string] [scolumn=string] [fs=character|space|tab] [--verbose] [--quiet]
Print output to stdout, do not update attribute table
First column is always area category
Verbose module output
Quiet module output
Name of existing vector map with points
Name of existing vector map with areas
Feature type
Feature type
Options: point,centroid
Default: point
Layer number for points map
A single vector map can be connected to multiple database tables. This number determines which table to use.
Default: 1
Layer number for area map
A single vector map can be connected to multiple database tables. This number determines which table to use.
Default: 1
Method for aggregate statistics
Options: sum,average,median,mode,minimum,min_cat,maximum,max_cat,range,stddev,variance,diversity
Column name of points map to use for statistics
Column of points map must be numeric
Column name to upload points count
Column to hold points count, must be of type integer, will be created if not existing
Column name to upload statistics
Column to hold statistics, must be of type double, will be created if not existing
Field separator
Output field separator
Default: |
v.vect.stats counts the number of points in vector map points falling into each area in vector map areas. Optionally statistics on point attributes in points are calculated for each area. The results are either uploaded to the attribute table of the vector map areas or printed to stdout.
Statistical Methods: Using numeric attribute values of all points falling into a given area, a new value is detmined with the selected method. v.vect.stats can perform the following operations:
The sum of values.
The average value of all point attributes (sum / count).
The value found half-way through a list of the attribute values, when these are ranged in numerical order.
The most frequently occurring value.
The minimum observed value.
The point category corresponding to the minimum observed value.
The maximum observed value.
The point category corresponding to the maximum observed value.
The range of the observed values.
The statistical standard deviation of the attribute values.
The statistical variance of the attribute values.
The number of different attribute values.
Points not falling into any area are ignored. Areas without category (no centroid attached or centroid without category) are ignored. If no points are falling into a given area, the point count is set to 0 (zero) and the statistics result to "null".
The columns count_column and stats_column are created if not existing. If they do already exist, the count_column must be of type integer and the stats_column of type double.
v.distance, r.distance, v.what.vect
Markus Metz
Last changed: $Date: 2008-08-13 21:52:37 +0200 (Wed, 13 Aug 2008) $
Full index
� 2003-2014 GRASS Development Team