1v.neighbors(1) GRASS GIS User's Manual v.neighbors(1)
2
3
4
6 v.neighbors - Neighborhood analysis tool for vector point maps.
7 Makes each cell value a function of the attribute values assigned to
8 the vector points or centroids around it, and stores new cell values in
9 an output raster map.
10
12 vector, algebra, statistics, raster, aggregation
13
15 v.neighbors
16 v.neighbors --help
17 v.neighbors input=name [layer=string] output=name method=string
18 size=float [--overwrite] [--help] [--verbose] [--quiet] [--ui]
19
20 Flags:
21 --overwrite
22 Allow output files to overwrite existing files
23
24 --help
25 Print usage summary
26
27 --verbose
28 Verbose module output
29
30 --quiet
31 Quiet module output
32
33 --ui
34 Force launching GUI dialog
35
36 Parameters:
37 input=name [required]
38 Name of input vector map
39 Or data source for direct OGR access
40
41 layer=string
42 Layer number or name (’-1’ for all layers)
43 A single vector map can be connected to multiple database tables.
44 This number determines which table to use. When used with direct
45 OGR access this is the layer name.
46 Default: -1
47
48 output=name [required]
49 Name for output raster map
50
51 method=string [required]
52 Neighborhood operation
53 Options: count
54 Default: count
55
56 size=float [required]
57 Neighborhood diameter in map units
58
60 Makes each cell value a function of the attribute values assigned to
61 the vector points or centroids around it, and stores new cell values in
62 an output raster map layer.
63
65 Count the number of schools for a given grid (North Carolina sample
66 dataset):
67 g.region vector=schools_wake res=100 -p -a
68 v.neighbors input=schools_wake output=schools_wake_3000m method=count size=3000
69 d.mon wx0
70 d.rast schools_wake_3000m
71 d.vect schools_wake
72 The result gives for each grid cell the number of points (here:
73 schools) not farther than 1500 meter away (half of the given size
74 value) from the respective cell center.
75
77 r.neighbors
78
80 Radim Blazek
81
83 Available at: v.neighbors source code (history)
84
85 Main index | Vector index | Topics index | Keywords index | Graphical
86 index | Full index
87
88 © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
89
90
91
92GRASS 7.8.5 v.neighbors(1)