## DESCRIPTION

v.net.alloc allocates subnets for nearest centres (direction from centre). Centre node must be opened (costs >= 0). Costs of centre node are used in calculation. Supported are cost assignments for both arcs and nodes, and also different in both directions of a vector line. For areas cost will be calculated along boundary lines.

## NOTES

Center nodes have to be assigned to vector nodes using v.digit. Nodes and arcs can be closed using cost = -1.

## EXAMPLE

    # nlayer=1 if no extra table for nodes:
    v.net.alloc network out=network_alloc ccats=0-13 nlayer=1

    # the result has to be selected by category number of the relevant node:
    d.vect network_alloc cat=9 col=red
    d.vect network_alloc cat=11 col=green
    d.vect network_alloc cat=2492 col=yellow

Calculating subnets for 7 centre nodes using cost assigned to vector length

    v.net.alloc in=vectmap out=vectmap.alloc ccats=1-7

Calculating subnets for 7 centre nodes using cost assignments in both directions

    v.net.alloc in=vectmap afcol=INDEX abcol=INDEXBACK out=vectmap.alloc ccats=1-7

## SEE ALSO

d.path, v.net, v.net.iso, v.net.path, v.net.steiner, v.net.salesman

## AUTHOR

Radim Blazek, ITC-Irst, Trento, Italy

Last changed: $Date: 2007/05/02 20:15:58 $