1v.patch(1) GRASS GIS User's Manual v.patch(1)
2
3
4
6 v.patch - Creates a new vector map by combining other vector maps.
7
9 vector, geometry, level1
10
12 v.patch
13 v.patch --help
14 v.patch [-nzeab] input=name[,name,...] output=name [bbox=name]
15 [--overwrite] [--help] [--verbose] [--quiet] [--ui]
16
17 Flags:
18 -n
19 Do not expect input with topology
20 Applicable when input is points without topology
21
22 -z
23 Expect z coordinate even when not using topology
24 Applicable when input is points with z coordinate but without
25 topology
26
27 -e
28 Copy also attribute table
29 Only the table of layer 1 is currently supported
30
31 -a
32 Append files to existing file (overwriting existing files must be
33 activated)
34
35 -b
36 Do not build topology
37 Advantageous when handling a large number of points
38
39 --overwrite
40 Allow output files to overwrite existing files
41
42 --help
43 Print usage summary
44
45 --verbose
46 Verbose module output
47
48 --quiet
49 Quiet module output
50
51 --ui
52 Force launching GUI dialog
53
54 Parameters:
55 input=name[,name,...]Â [required]
56 Name of input vector map(s)
57 Or data source(s) for direct OGR access
58
59 output=name [required]
60 Name for output vector map
61
62 bbox=name
63 Name for output vector map where bounding boxes of input vector
64 maps are written to
65
67 v.patch allows the user to combine any number of vector maps together
68 to create one composite vector map. If the table structures are identi‐
69 cal, attributes are transferred to the new table.
70
72 Any vectors that are duplicated among the maps being patched together
73 (e.g., border lines) will have to be edited or removed after v.patch is
74 run. Such editing can be done automatically using v.clean.
75
76 Lines may need to be snapped with v.clean tool=snap,break,rmdupl.
77
78 Boundaries may need to be cleaned with v.clean tool=break,rmdupl,rmsa
79 repeatedly until the rmsa tool (Remove small angles at nodes) no longer
80 modifies any boundaries. If vector topology is still not clean, bound‐
81 aries may also need to be snapped with v.clean tool=snap,break,rmdupl.
82
83 When using the -e flag, v.patch shifts category (cat) values in the
84 output so that category numbers from the different input maps do not
85 overlap. This shift is applied to both the category values of the fea‐
86 tures and the category values in the attribute tables. Hence, there is
87 no need to run v.category and v.db.update beforehand.
88
89 When using the -a flag, the user has to make sure that the features in
90 the different maps added to the output map do not have overlapping cat‐
91 egory numbers, unless identical category numbers reflect identical
92 attributes, otherwise the attributes of the added maps are lost. To
93 avoid this, the user can use v.category option=sum to change category
94 values of some of the maps before patching.
95
97 Patch together two maps with mixed feature types:
98 v.patch input=geology,streams out=geol_streams
99 Append one map to another:
100 g.copy vect=roads,transport
101 v.patch -a input=railroads output=transport --overwrite
102
104 v.clean, v.build, v.select, v.overlay
105
107 Dave Gerdes, U.S.Army Construction Engineering Research Laboratory
108 Radim Blazek, ITC-Irst, Trento, Italy
109
111 Available at: v.patch source code (history)
112
113 Main index | Vector index | Topics index | Keywords index | Graphical
114 index | Full index
115
116 © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
117
118
119
120GRASS 7.8.5 v.patch(1)