Anda di halaman 1dari 6

Vector network analysis - GRASS-Wiki

http://grasswiki.osgeo.org/wiki/Vector_network_analysis

Vector network analysis


From GRASS-Wiki

Contents
1 Vector network analysis 1.1 Implemented algorithms 1.2 Example: Shortest path routing 1.3 Common parameters 1.4 Extensios 1.5 New ideas 1.6 Screenshots 1.7 See also 1.8 Tutorials 1.9 External links

Vector network analysis


GRASS provides support for vector network analysis using the DGlib (http://trac.osgeo.org/grass/browser /grass/trunk/lib/vector/dglib/) Directed Graph Library. GRASS 7 has WxGUI Vector Network Analysis Tool front-end, which supports some of the vector network analysis modules.

Implemented algorithms
The following algorithms are implemented (GRASS 6.5+): Vector maintenance: v.net (http://grass.osgeo.org/grass70/manuals/v.net.html) Shortest path: d.path (http://grass.osgeo.org/grass64/manuals/d.path.html) and v.net.path (http://grass.osgeo.org/grass70/manuals/v.net.path.html) Shortest path between all pairs of nodes v.net.allpairs (http://grass.osgeo.org/grass70/manuals /v.net.allpairs.html) Allocation of sources (create subnetworks, e.g. police station zones): v.net.alloc (http://grass.osgeo.org /grass70/manuals/v.net.alloc.html) Iso-distances (from centers): v.net.iso (http://grass.osgeo.org/grass70/manuals/v.net.iso.html) Computes bridges and articulation points: v.net.bridge (http://grass.osgeo.org/grass70/manuals /v.net.bridge.html) Computes degree, centrality, betweeness, closeness and eigenvector centrality measures: v.net.centrality (http://grass.osgeo.org/grass70/manuals/v.net.centrality.html) Computes strongly and weakly connected components: v.net.components (http://grass.osgeo.org /grass70/manuals/v.net.components.html) Computes vertex connectivity between two sets of nodes: v.net.connectivity (http://grass.osgeo.org /grass70/manuals/v.net.connectivity.html) Computes shortest distance via the network between the given sets of features: v.net.distance

1 de 6

31/07/2013 22:18

Vector network analysis - GRASS-Wiki

http://grasswiki.osgeo.org/wiki/Vector_network_analysis

(http://grass.osgeo.org/grass70/manuals/v.net.distance.html) Computes the maximum flow between two sets of nodes: v.net.flow (http://grass.osgeo.org/grass70 /manuals/v.net.flow.html) Computes minimum spanning tree: v.net.spanningtree (http://grass.osgeo.org/grass70/manuals /v.net.spanningtree.html) Minimum Steiner trees (star-like connections, e.g. broadband cable connections): v.net.steiner (http://grass.osgeo.org/grass70/manuals/v.net.steiner.html) Finds shortest path using timetables: v.net.timetable (http://grass.osgeo.org/grass70/manuals /v.net.timetable.html) Traveling salesman (round trip): v.net.salesman (http://grass.osgeo.org/grass70/manuals /v.net.salesman.html) Vector directions are defined by the digitizing direction (a-->--b). You can navigate either omnidirectionally or differently in each directions as both directions are supported. Network modules provide parameters to assign attribute columns to the forward and backward direction. To see how a vector is directed, use the "display" parameter of d.vect (http://grass.osgeo.org/grass64/manuals/d.vect.html) (set display=dir). see the vectorintro (http://grass.osgeo.org/grass64/manuals/vectorintro.html) "vector map processing and network analysis" help page

Example: Shortest path routing


see the v.net.path (http://grass.osgeo.org/grass64/manuals/v.net.path.html) and d.path (http://grass.osgeo.org/grass64/manuals/d.path.html) help pages

Common parameters
input - This is the name of input vector map or data source for direct OGR access. output - This is the name for output vector map. type - This parameter defines arc type, which can be line or boundary. alayer - This parameter is a number and defines the arc layer. Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name. nlayer - This parameter is a number and defines the node layer. Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name. afcolumn - This is name of the cost column for moving in forward direction or forward and backward directions together. abcolumn - This is name of the cost column for moving in backward direction. ncolumn - This is name of the cost column for moving through nodes. If you are not familiar with layers concept in GRASS see Vector Database Management.

Extensios

2 de 6

31/07/2013 22:18

Vector network analysis - GRASS-Wiki

http://grasswiki.osgeo.org/wiki/Vector_network_analysis

The Turntable module (to be added to GRASS soon)

New ideas
Vector network analysis ideas (please help to realize)

Screenshots
more screenshots from the GRASS website (http://grass.osgeo.org/screenshots/vector.php)

v.net.iso (http://grass.osgeo.org/grass64/manuals/v.net.iso.html) - Split net to bands between cost isolines (direction from centre). Costs of centre node are used in calculation.

3 de 6

31/07/2013 22:18

Vector network analysis - GRASS-Wiki

http://grasswiki.osgeo.org/wiki/Vector_network_analysis

v.net.alloc (http://grass.osgeo.org/grass64/manuals/v.net.alloc.html) - Allocates subnets for nearest centres (direction from centre). Costs of centre node are used in calculation.

4 de 6

31/07/2013 22:18

Vector network analysis - GRASS-Wiki

http://grasswiki.osgeo.org/wiki/Vector_network_analysis

d.path (http://grass.osgeo.org/grass64/manuals/d.path.html) - Find shortest path for selected starting and ending node.

See also
GSoC Network Analysis: many new modules!

Tutorials
Network analysis tutorial (http://www.ing.unitn.it/~grass/docs/tutorial_64_en/htdocs/esercitazione /network_analysis/index.html) by University of Trento, Italy

External links
GRASS GIS: Network Analysis (Subnets within a vector network) (http://www.ossgis.co.cc/2009/01 /grass-gis-network-analysis-subnets.html) Retrieved from "http://grasswiki.osgeo.org/grass-wiki/index.php?title=Vector_network_analysis& oldid=18839" Categories: Documentation Vector

5 de 6

31/07/2013 22:18

Vector network analysis - GRASS-Wiki

http://grasswiki.osgeo.org/wiki/Vector_network_analysis

This page was last modified on 3 June 2013, at 07:48. This page has been accessed 14,216 times. Content is available under GNU Free Documentation License 1.2.

6 de 6

31/07/2013 22:18

Anda mungkin juga menyukai