v.net.iso(1grass)
๐ NAME ๐
hiii bestie, this is v.net.iso(1grass) from the GRASS User's Manual, and it's literally iconic โจ
v.net.iso splits subnets for nearest centers by cost isolines ๐ฆ It splits your net into bands sitting between cost isolines (direction from center). The center node must be opened (costs >= 0). Costs of the center node are used in the calculation. no cap, that's just the rules ๐
๐ท๏ธ KEYWORDS ๐ท๏ธ
vector, network, cost allocation, isolines
๐ธ SYNOPSIS ๐ธ
v.net.iso
v.net.iso --help
v.net.iso [-tgu] input=name output=name [method=string]
center_cats=range costs=integer[,integer,...] arc_layer=string
arc_type=string[,string,...] node_layer=string [arc_column=name]
[arc_backward_column=name] [node_column=name] [turn_layer=string]
[turn_cat_layer=string] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]
๐ฉ Flags ๐ฉ
-tโ Use turntable ๐-gโ Use geodesic calculation for longitude-latitude projects ๐-uโ Create unique categories and attribute table. Default: one category for each iso-band ๐ฅ--overwriteโ Allow output files to overwrite existing files (yes, it really does what it says) ๐--helpโ Print usage summary ๐ซถ--verboseโ Verbose module output ๐ฃ๏ธ--quietโ Quiet module output ๐คซ--uiโ Force launching GUI dialog ๐ฅ๏ธ
๐ Parameters ๐
input=name[required]โ Name of input vector map. Or data source for direct OGR access ๐ฅoutput=name[required]โ Name for output vector map ๐คmethod=stringโ Use costs from centers or costs to centers. Options:from,to. Default:from๐งญcenter_cats=range[required]โ Category values. Categories of centers (points on nodes) to which net will be allocated, layer for this categories is given bynlayeroption ๐ฏcosts=integer[,integer,...][required]โ Costs for isolines ๐ฐarc_layer=string[required]โ 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. Default:1๐งฑarc_type=string[,string,...][required]โ Arc type, a.k.a. input feature type. Options:line,boundary. Default:line,boundaryโ๏ธnode_layer=string[required]โ 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. Default:2๐ตarc_column=nameโ Arc forward/both direction(s) cost column (number) โก๏ธarc_backward_column=nameโ Arc backward direction cost column (number) โฌ ๏ธnode_column=nameโ Node cost column (number) ๐ขturn_layer=stringโ Layer with turntable. Relevant only with-tflag. Default:3๐กturn_cat_layer=stringโ Layer with unique categories used in turntable. Relevant only with-tflag. Default:4๐๏ธ
๐ซ DESCRIPTION ๐ซ
v.net.iso splits a network into bands between cost isolines (distance from center). Center nodes must be opened (costs >= 0). The costs of center nodes are used in the calculation. periodt ๐
Costs may be either line lengths, or attributes saved in a database table. These attribute values are taken as costs of whole segments, not as costs to traverse a length unit (e.g. meter) of the segment ๐จ Like, if the speed limit is 100 km / h, the cost to traverse a 10 km long road segment must be calculated as length / speed = 10 km / (100 km/h) = 0.1 h. Supported are cost assignments for both arcs and nodes, and also different costs for both directions of a vector line. For areas, costs will be calculated along boundary lines ๐
The input vector needs to be prepared with v.net operation=connect in order to connect points representing center nodes to the network ๐
The nearest center can be determined using either costs from the nearest center or costs to the nearest center with option method ๐ง
By default, the iso band number is used as category value for output lines. With the -u flag, output lines become unique categories and an attribute table is created with the fields cat, ocat, center, isonr, isolbl ๐ The ocat field holds the original line category in arc_layer, the center field holds the center category in node_layer, the isonr field holds the iso band number and the isolbl field holds a label for the isoband. Additionally, original line categories are copied from the input arc_layer to layer 2 in the output, together with any attribute table. copy-paste queen behavior honestly ๐
Application of flag -t enables a turntable support. This flag requires additional parameters turn_layer and turn_cat_layer that are otherwise ignored ๐ The turntable allows to model e.g. traffic code, where some turns may be prohibited. This means that the input layer is expanded by turntable with costs of every possible turn on any possible node (intersection) in both directions. Turntable can be created by the v.net module. For more information about turns in the vector network analyses see wiki page ๐
๐ NOTES ๐
- Nodes and arcs can be closed using
cost = -1๐ซ - Nodes must be on the isolines ๐
โจ EXAMPLES โจ
The map must contain at least one center (point) on the vector network which can be patched into with v.net ๐งฉ
Isonetwork using distance:
Isonetwork using time:
๐ธ Subdivision of a network using distance ๐ธ
# Spearfish
# start node:
echo "591280.5|4926396.0|1" | v.in.ascii in=- out=startnode
g.copy vect=roads,myroads
# connect point to network
v.net myroads points=startnode out=myroads_net op=connect thresh=200
# define iso networks using distance:
v.net.iso input=myroads_net output=myroads_net_iso center_cats=1-100000 costs=1000,2000,5000
The network is divided into 4 categories:
v.category myroads_net_iso option=report
# ... reports 4 categories:
#cat | distance from point in meters
#1 0 - < 1000
#2 1000 - < 2000
#3 2000 - < 5000
#4 >= 5000
To display the result, run for example:
g.region n=4928200 s=4922300 w=589200 e=596500
d.mon x0
d.vect myroads_net_iso col=blue cats=1
d.vect myroads_net_iso col=green cats=2
d.vect myroads_net_iso col=orange cats=3
d.vect myroads_net_iso col=magenta cats=4
d.vect myroads_net col=red icon=basic/triangle fcol=green size=12 layer=2
๐ฆ Subdivision of a network using traveling time ๐ฆ
Prepare the network as above:
# Spearfish
# start node:
echo "591280.5|4926396.0|1" | v.in.ascii in=- out=startnode
g.copy vect=roads,myroads
# connect point to network
v.net myroads points=startnode out=myroads_net op=connect thresh=200
Define costs as traveling time dependent on speed limits:
# set up costs
# create unique categories for each road in layer 3
v.category in=myroads_net out=myroads_net_time opt=add cat=1 layer=3 type=line
# add new table for layer 3
v.db.addtable myroads_net_time layer=3 col="cat integer,label varchar(43),length double precision,speed double precision,cost double precision,bcost double precision"
# copy road type to layer 3
v.to.db myroads_net_time layer=3 qlayer=1 opt=query qcolumn=label columns=label
# upload road length in miles
v.to.db myroads_net_time layer=3 type=line option=length col=length unit=miles
# set speed limits in miles / hour
v.db.update myroads_net_time layer=3 col=speed val="5.0"
v.db.update myroads_net_time layer=3 col=speed val="75.0" where="label=โinterstateโ"
v.db.update myroads_net_time layer=3 col=speed val="75.0" where="label=โprimary highway, hard surfaceโ"
v.db.update myroads_net_time layer=3 col=speed val="50.0" where="label=โsecondary highway, hard surfaceโ"
v.db.update myroads_net_time layer=3 col=speed val="25.0" where="label=โlight-duty road, improved surfaceโ"
v.db.update myroads_net_time layer=3 col=speed val="5.0" where="label=โunimproved roadโ"
# define traveling costs as traveling time in minutes:
# set forward costs
v.db.update myroads_net_time layer=3 col=cost val="length / speed * 60"
# set backward costs
v.db.update myroads_net_time layer=3 col=bcost val="length / speed * 60"
# define iso networks using traveling time:
v.net.iso input=myroads_net_time output=myroads_net_iso_time arc_layer=3 node_layer=2 arc_column=cost arc_backward_column=bcost center_cats=1-100000 costs=1,2,5
To display the result, run for example:
# add table with labels and coloring
v.db.addtable myroads_net_iso_time columns="cat integer,trav_time varchar(20),GRASSRGB varchar(11)"
# labels
v.db.update map=myroads_net_iso_time layer=1 column=trav_time value="0 - 1" where="cat = 1"
v.db.update map=myroads_net_iso_time layer=1 column=trav_time value="1 - 2" where="cat = 2"
v.db.update map=myroads_net_iso_time layer=1 column=trav_time value="2 - 5" where="cat = 3"
v.db.update map=myroads_net_iso_time layer=1 column=trav_time value="> 5" where="cat = 4"
# colors
# cats=1: blue
v.db.update map=myroads_net_iso_time layer=1 column=GRASSRGB value="000:000:255" where="cat = 1"
# cats=2: green
v.db.update map=myroads_net_iso_time layer=1 column=GRASSRGB value="000:255:000" where="cat = 2"
# cats=3: orange
v.db.update map=myroads_net_iso_time layer=1 column=GRASSRGB value="255:128:000" where="cat = 3"
# cats=4: magenta
v.db.update map=myroads_net_iso_time layer=1 column=GRASSRGB value="255:000:255" where="cat = 4"
# show results
g.region n=4928200 s=4922300 w=589200 e=596500
d.mon x0
d.vect myroads_net_iso_time layer=1 -a rgb_col=GRASSRGB
d.vect myroads_net col=red icon=basic/triangle fcol=green size=12 layer=2
๐ SEE ALSO ๐
d.path, v.net, v.net.alloc, v.net.path, v.net.salesman, v.net.steiner, v.patch
๐ AUTHORS ๐
Radim Blazek, ITC-Irst, Trento, Italy ๐ฎ๐น
Documentation: Markus Neteler, Markus Metz
๐ TURNS SUPPORT ๐
The turns support was implemented as part of GRASS GIS turns cost project at Czech Technical University in Prague, Czech Republic ๐จ๐ฟ Eliska Kyzlikova, Stepan Turek, Lukas Bocan and Viera Bejdova participated at the project. Implementation: Stepan Turek. Documentation: Lukas Bocan. Mentor: Martin Landa ๐ซถ
๐ง SOURCE CODE ๐ง
Available at: v.net.iso source code (history)
Latest change: Friday May 09 14:33:40 2025 in commit: b356c7e108fcbeca77474c8e83ebec8f1e7b3e4a
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
ยฉ 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole thing bestie ๐ this is v.net.iso from the GRASS 8.5.0 Reference Manual, ยฉ 2003-2026 GRASS Development Team, and the version stamp at the bottom literally says GRASS 8.5.0 next to v.net.iso(1grass) ๐ฆ go split some networks, you ate ๐
โจ
๐ฆ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 ยท GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms