v.area.stats
Populates attribute values from vector features.
v.area.stats [-get] map=name [layer=string] [output=name] [separator=character] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]
Example:
v.area.stats map=name
grass.script.run_command("v.area.stats", map, layer="1", output=None, separator="pipe", flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("v.area.stats", map="name")
Parameters
map=name [required]
Name of vector map
Or data source for direct OGR access
layer=string
Layer number or name (write to)
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 1
output=name
Name for output file (if omitted or "-" output to stdout)
separator=character
Field separator
Special characters: pipe, comma, space, tab, newline
Default: pipe
-g
Print the stats in shell script style
-e
Calculate extended statistics
-t
Table output format instead of standard output format
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
map : str, required
Name of vector map
Or data source for direct OGR access
Used as: input, vector, name
layer : str, optional
Layer number or name (write to)
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Used as: input, layer
Default: 1
output : str, optional
Name for output file (if omitted or "-" output to stdout)
Used as: output, file, name
separator : str, optional
Field separator
Special characters: pipe, comma, space, tab, newline
Used as: input, separator, character
Default: pipe
flags : str, optional
Allowed values: g, e, t
g
Print the stats in shell script style
e
Calculate extended statistics
t
Table output format instead of standard output format
overwrite: bool, optional
Allow output files to overwrite existing files
Default: False
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
SOURCE CODE
Available at: v.area.stats source code
(history)
Latest change: Wednesday Feb 19 09:13:35 2025 in commit 9c03296