other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
| v.net(1grass) | Grass User's Manual | v.net(1grass) |
NAME¶
v.net - Performs network maintenance.KEYWORDS¶
vector, networking, maintenanceSYNOPSIS¶
v.netFlags:¶
- -c
-
Assign unique categories to new pointsFor operation 'nodes'
- --overwrite
-
Allow output files to overwrite existing files
- --verbose
-
Verbose module output
- --quiet
-
Quiet module output
Parameters:¶
- input=name
-
Name of input vector map
- points=name
-
Name of input point vector mapRequired for operation 'connect'
- output=name
-
Name for output vector map
- operation=string
-
Operation to be performedOptions: nodes,connect,report,nreportDefault: nodesnodes: new point is placed on each node (line end) if doesn't existconnect: connect still unconnected points to vector network by inserting new line(s)report: print to standard output {line_category start_point_category end_point_category}nreport: print to standard output {point_category line_category[,line_category...]}
- alayer=integer
-
Arc layerA single vector map can be connected to multiple database tables. This number determines which table to use.Default: 1
- nlayer=integer
-
Node layerA single vector map can be connected to multiple database tables. This number determines which table to use.Default: 2
- thresh=float
-
ThresholdRequired for operation 'connect'. Connect points in given threshold.
DESCRIPTION¶
v.net is used for network preparation and maintenance. Its main use is to create a vector network from vector lines ( arcs ) and points (nodes) by creating nodes from intersections in a map of vector lines ( node operator), by connecting a vector lines map with a points map ( connect operator), and by creating new lines between pairs of vector points ( arcs operator). A GIS network consists of topologically correct lines (arcs). That is, the lines must be connected by shared vertices where real connections exist. In GRASS GIS you also can add nodes to the network. These are specially designated vertices used for analyzing network properties or computing cost/distance measures. That is, not all vertices are treated as nodes by default. Only v.net.path can use a network without nodes, they are required for all the other network modules. In GRASS, network arcs are stored in one data layer (normally layer 1) and nodes are stored in a different data layer (normally layer 2). v.net offers two ways to add nodes to a network of arcs:- 1
- Use the connect operation to create nodes from a vector points file and add these nodes to an existing vector network of arcs (i.e., lines/boundaries). This is useful when the goal is to analyze a set of places (points) in relation to a network--for example travel costs between places. Only points within the thresh (threshold) distance to a line/boundary will be connected as network nodes.
- 2
- Create nodes and arcs from a vector line/boundary file using the node operation. This is useful if you are mostly interested in the network itself and thus you can use intersections of the network as start and end points. Nodes will be created at all intersections of two or more lines. For an arc that consists of several segments connected by vertices (the typical case), only the starting and ending vertices are treated as network nodes.
NOTES¶
For a vector map prepared for network analysis in GRASS, nodes are represented by the grass-internal geometry type node and arcs by the geometry type line. If vector editing is required to modify the graph, wxGUI vector digitizer or v.edit can be used. See also the Linear Referencing System available in GRASS GIS.EXAMPLES¶
The examples are North Carolina dataset based. Create nodes globally for all line ends and intersections:operation=connect thresh=500
operation=arcs file=- << EOF
SEE ALSO¶
wxGUI vector digitizer, v.edit v.net.alloc, v.net.allpairs, v.net.bridge, v.net.centrality, v.net.components, v.net.connectivity, v.net.distance, v.net.flow, v.net.iso, v.net.path, v.net.salesman v.net.spanningtree, v.net.steiner, v.net.timetable, v.net.visibilityAUTHORS¶
Radim Blazek, ITC-irst, Trento, Italy| GRASS 6.4.4 |