[GRASS-user] v.net.iso - node costs
Hamish
hamish_b at yahoo.com
Tue Nov 18 05:42:05 EST 2008
Paolo Craveri wrote:
> I wonder if v.net.iso gives this error only to me, using
> cost point (ncolumn).
>
> Can anyone tell me what is wrong in this code?
yes, I get the same error.
> v.distance -p from=myarchsites to=myroads upload=dist col=dist
note this command just prints to the screen, it doesn't upload the value
to the map.
> ### this line gives an error:
> ### ERROR: Vect_read_line(): line '-384' is not reasonable (max line in map:
> ### 900)
> v.net.iso in=mynetwork out=isocost alayer=1 nlayer=2 ncolumn=cost \
> ccats=1-10 cost=200,600,800,1200,5000
with `g.gisenv set="DEBUG=5"` it shows that the error arrives in
lib/vector/Vlib/net.c line ~ 374 and lib/vector/Vlib/level_two.c line
~ 261, but then I find it hard to follow the memory address for
Map->plus.Node[].
....
D1/5: node costs: nrec = 25
D2/5: node = 1 nlines = 1
D2/5: line (0) = 1
D3/5: Vect_read_line()
D3/5: V2_read_line_nat(): line = 1
D3/5: Vect__Read_line_nat: offset = 14
D3/5: type = 2, do_cats = 1 dead = 0
D3/5: n_cats = 1
D3/5: n_points = 19
D3/5: off = 335
D2/5: Category of field 2 not attached to any points in node 1(costs set to 0)
D3/5: Set node's cost to 0
D2/5: node = 2 nlines = 3
D2/5: line (0) = -384
D3/5: Vect_read_line()
....
same result with: v.net.iso ... nlayer=1 ncolumn=cat
Hamish
More information about the grass-user
mailing list