Hi Markus, <div><br></div><div>many thannks for your changes. I think now the command is quite O.K.. Nevertheless I have encountered a new error:</div><div>I have tried with the command that you suggested me (to_type is point and not line) and it works.</div>
<div><br></div><div><br></div><div>v.net.distance input=network_cat4 output=network_cat4_distance alayer=3 nlayer=4 afcolumn=lungh_a abcolumn=lungh_i flayer=4 from_cats=1-4 tlayer=4 to_type=point to_cats=5-6920 --overwrite</div>
<div><br></div><div>after I try to do the opposite, that is from the 6916 nodes of the network (that are point!) to the firestations and it don't works   </div><div><br></div><div>v.net.distance input=network_cat4 output=network_cat4_distance alayer=3 nlayer=4 afcolumn=lungh_a abcolumn=lungh_i tlayer=4 to_cats=1-4 flayer=4 to_type=point from_cats=5-6920 --overwrite</div>
<div><br></div><div><br></div><div><br></div><div><div>>> Building graph...</div><div>>> Registering arcs...</div><div>>>  100%</div><div>>> Flattening the graph...</div><div>>> Graph was built</div>
<div>>> ERROR: Requested feature id -1 is not reasonable(max features in vector map</div><div>>>       <network_cat4@ospedali_grass7>: 15747)</div><div><br></div><div><br></div><div>I don't understand why...</div>
<div><br></div><div>Thanks in advanced, </div><div>Roberto</div><br><div class="gmail_quote">2012/6/16 Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@googlemail.com" target="_blank">markus.metz.giswork@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jun 15, 2012 at 6:12 PM, Roberto Marzocchi<br>
<<a href="mailto:roberto.marzocchi@gmail.com">roberto.marzocchi@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I'm trying to use v.net.distance in grass7, which option seem be corrected<br>
> respect of teh version of grass65 (alayer, nlayer and consequently costs).<br>
><br>
> First of all, I noted that the option output is reported two time, but this<br>
> can be simply corrected removing line 134 of main.c command. If needed I can<br>
> add in the svn.<br>
> Secondarly the program stop itself because if I correctly uderstand, the<br>
> number of lines not corresponding with the number of nodes.<br>
><br>
> ERROR: Nodes not available for line 8819<br>
<br>
</div>v.net.distance should be fixed with r52069.<br>
<div class="im"><br>
><br>
> Unfortunately I'm not expert with vector grass libraries so I didn't<br>
> understand the problem..<br>
><br>
><br>
> --<br>
><br>
> I'm using as a test the north carolina dataset and in particular I do the<br>
> step of the tutorial of Trento university<br>
> (<a href="http://www.ing.unitn.it/~grass/docs/tutorial_64_en/htdocs/esercitazione/network_analysis/index.html" target="_blank">http://www.ing.unitn.it/~grass/docs/tutorial_64_en/htdocs/esercitazione/network_analysis/index.html</a>) adding<br>

> also a 4th layer with the nodes. Attached a script to create the dataset<br>
> (grass70)<br>
<br>
</div>In the test script, use<br>
<br>
v.net.distance input=network_cat4 output=network_cat4_distance<br>
alayer=3 nlayer=4 afcolumn=lungh_a abcolumn=lungh_i flayer=4<br>
from_cats=1-4 tlayer=3 to_type=line to_cats=6-6920<br>
<br>
in order to get the shortest paths from the four selected firestations<br>
to the network. The 'from' features are always points, I have updated<br>
the description and manual accordingly.<br>
<br>
Markus M<br>
<br>
><br>
><br>
> Cheers,<br>
> Roberto<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> grass-dev mailing list<br>
> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div>