NAME
r.vect.stats - Bins vector points into a raster map.
KEYWORDS
raster,
vector,
points,
binning
SYNOPSIS
r.vect.stats
r.vect.stats --help
r.vect.stats input=name output=name [column=name] [method=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
Flags:
- --overwrite
- Allow output files to overwrite existing files
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- input=name [required]
- Name of input vector map
- Or data source for direct OGR access
- output=name [required]
- Name for output raster map
- column=name
- Name of attribute column for statistics
- method=string
- Statistic to use for attribute column
- Options: min, max, range, sum, mean, stddev, variance, coeff_var, median, percentile, skewness, trimmean
- Default: mean
r.vect.stats bins points from a vector map into a raster map.
Use g.region to set the extent and
resolution of the resulting raster.
Calculate number of schools in grid of spatial resolution 1km:
g.region res=1000 vector=schools_wake
r.vect.stats input=schools_wake output=schools_count
Calculate sum of atribute column CAPACITYTO:
r.vect.stats input=schools_wake output=schools_capacity_sum column=CAPACITYTO method=sum
Figure: Number of schools (left part) and sum of CAPACITYTO attribute column (right part) in grid of spatial resolution 1km.
g.region,
v.out.ascii,
r.in.xyz,
r.in.lidar
Vaclav Petras,
NCSU GeoForAll Lab
Column and method parameters added by Martin
Landa,
CTU
GeoForAll Lab
Last changed: $Date: 2017-10-08 08:33:54 +0200 (Sun, 08 Oct 2017) $
SOURCE CODE
Available at: r.vect.stats source code (history)
Main index |
Raster index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2018
GRASS Development Team,
GRASS GIS 7.4.1svn Reference Manual