1v.what(1)                   GRASS GIS User's Manual                  v.what(1)
2
3
4

NAME

6       v.what  - Queries a vector map at given locations.
7

KEYWORDS

9       vector, querying, position
10

SYNOPSIS

12       v.what
13       v.what --help
14       v.what    [-dagjm]   map=name[,name,...]    [layer=string[,string,...]]
15       [type=string[,string,...]]   coordinates=east,north    [distance=float]
16       [--help]  [--verbose]  [--quiet]  [--ui]
17
18   Flags:
19       -d
20           Print topological information (debugging)
21
22       -a
23           Print attribute information
24
25       -g
26           Print the stats in shell script style
27
28       -j
29           Print the stats in JSON
30
31       -m
32           Print multiple features if overlapping features are found
33
34       --help
35           Print usage summary
36
37       --verbose
38           Verbose module output
39
40       --quiet
41           Quiet module output
42
43       --ui
44           Force launching GUI dialog
45
46   Parameters:
47       map=name[,name,...] [required]
48           Name of vector map(s)
49
50       layer=string[,string,...]
51           Layer number or name (’-1’ for all layers)
52           A  single  vector map can be connected to multiple database tables.
53           This number determines which table to use. When  used  with  direct
54           OGR access this is the layer name.
55           Default: -1
56
57       type=string[,string,...]
58           Input feature type
59           Options: point, line, boundary, centroid, area, face, kernel
60           Default: point,line,area,face
61
62       coordinates=east,north [required]
63           Coordinates for query
64           ’-’ for standard input
65
66       distance=float
67           Query threshold distance
68           Default: 0
69

DESCRIPTION

71       v.what outputs the category number value(s) associated with user-speci‐
72       fied location(s) in user-specified vector map  layer(s).   This  module
73       was  derived  from  the  d.what.vect module by removing all interactive
74       code and modification of the output for easy parsing. Using the -g flag
75       generates script-style output which is easily parsable.
76

EXAMPLE

78       North Carolina sample dataset example:
79
80       Query polygon at given position:
81       v.what zipcodes_wake coordinates=637502.25,221744.25
82
83       Find  closest  hospital to given position within given distance (search
84       radius):
85       v.what hospitals coordinates=542690.4,204802.7 distance=2000000
86

SEE ALSO

88        d.what.rast,  d.what.vect,  v.rast.stats,  v.vect.stats,  v.what.rast,
89       v.what.rast3, v.what.vect
90

AUTHOR

92       Trevor Wiens
93       Edmonton, Alberta, Canada
94

SOURCE CODE

96       Available at: v.what source code (history)
97
98       Accessed: Mon Jun 20 16:47:18 2022
99
100       Main  index  | Vector index | Topics index | Keywords index | Graphical
101       index | Full index
102
103       © 2003-2022 GRASS Development Team, GRASS GIS 8.2.0 Reference Manual
104
105
106
107GRASS 8.2.0                                                          v.what(1)
Impressum