v.info1grass
Outputs basic information about a vector map.
Usage
v.info
v.info --help
v.info [-hcget]
map=name
[layer=string]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
vector, metadata, topology, extent, history, attribute columns, level1
Overview
v.info reports some basic information (metadata) about a user-specified vector map and its topology status.
If topology info is not available (i.e., vector map cannot be opened on level 2), vector map extends and number of features need to be counted on the fly which may take some time.
Note that the flag -c only works when the vector map is connected to one or several attribute table(s). This connection can be shown or set with v.db.connect.
Examples
Basic metadata information
v.info map=geology+----------------------------------------------------------------------------+| Name: geology || Mapset: PERMANENT || Project: nc_spm_08 || Database: /home/martin/grassdata || Title: North Carolina geology map (polygon map) || Map scale: 1:1 || Map format: native || Name of creator: helena || Organization: NC OneMap || Source date: Mon Nov 6 15:48:53 2006 ||----------------------------------------------------------------------------|| Type of map: vector (level: 2) || || Number of points: 0 Number of centroids: 1832 || Number of lines: 0 Number of boundaries: 3649 || Number of areas: 1832 Number of islands: 907 || || Map is 3D: No || Number of dblinks: 1 || || Projection: Lambert Conformal Conic || || N: 318117.43741634 S: 10875.82723209 || E: 930172.31282271 W: 123971.19498978 || || Digitization threshold: 0 || Comment: || |+----------------------------------------------------------------------------+
Map history
v.info -h map=geologyCOMMAND: v.in.ogr input="geol.shp" output="geology" min_area=0.0001 snap=-1GISDBASE: /bigdata/grassdata05LOCATION: ncfromfile MAPSET: PERMANENT USER: helena DATE: Mon Nov 6 15:48:53 2006---------------------------------------------------------------------------------1832 input polygonstotal area: 1.276093e+11 (1832 areas)overlapping area: 0.000000e+00 (0 areas)area without category: 0.000000e+00 (0 areas)---------------------------------------------------------------------------------
Note that while "project" is used by v.info elsewhere, history output uses the legacy term "location" because "LOCATION" is currently a part of the native vector format.
Attribute columns for given layer
v.info -c map=geologyDisplaying column types/names for database connection of layer <1>:INTEGER|catDOUBLE PRECISION|onemap_proDOUBLE PRECISION|PERIMETERINTEGER|GEOL250_INTEGER|GEOL250_IDCHARACTER|GEO_NAMEDOUBLE PRECISION|SHAPE_areaDOUBLE PRECISION|SHAPE_len
Basic metadata information in shell script style
v.info -get map=geologyname=geologymapset=PERMANENTproject=nc_spm_08database=/home/martin/grassdatatitle=North Carolina geology map (polygon map)scale=1:1format=nativecreator=helenaorganization=NC OneMapsource_date=Mon Nov 6 15:48:53 2006level=2map3d=0num_dblinks=1projection=Lambert Conformal Conicdigitization_threshold=0.000000comment=north=318117.43741634south=10875.82723209east=930172.31282271west=123971.19498978top=0.000000bottom=0.000000nodes=4556points=0lines=0boundaries=3649centroids=1832areas=1832islands=907primitives=5481
v.info -g map=geologynorth=318117.43741634south=10875.82723209east=930172.31282271west=123971.19498978top=0.000000bottom=0.000000
Python
See Python Scripting Library for more info.
Note: The Python tab in the wxGUI can be used for entering the following code:
import grass.script as gcoregcore.vector_columns(’geology’) # for `v.info -c`gcore.vector_info_topo(’geology’) # for `v.info shell=topo`
Source code
Available at: v.info source code (history)
Accessed: Monday Feb 24 17:51:14 2025
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.