<div dir="rtl"><div dir="ltr" style="text-align:left">Thanks Markus.<br><br>It might be valuable to add an option to assign costs to the destination nodes, either for my purpose when there is an actual gate fee that influence the total cost (e.g. waste management, national parks and reserves) or when the "gate fee" or nodes cost represent other factors that influence an individual decisions, i.e. external costs that describe socio-environmental parameters, such as: level of crime, general maintenance, scenery, number of shops in a commercial center, hospitals reliability and quality etc.<br>
<br></div><div dir="ltr" style="text-align:left">I will appreciate if you could direct me to the place I can ask for an improvement of the v.net.distance tool. <br><br></div><div dir="ltr" style="text-align:left">Regarding to the current analysis, I have though of two solutions and would like to get your (and all others) idea about it:<br>
<br><ol><li>Follow Markus's original suggestion to perform the analysis using v.net.allpairs - which will be easy to the empirical anlysis using excel, but more complex to create a map for the final shortest distance.</li>
<li>Try to assign costs to the nodes that connect each arc (formed by <a href="http://v.net">v.net</a>) to the original network. My fear is that instead of assign cost just to the path to the destination node, it will also include those who attempt to use the original network to arrive to another destination. I'm also not sure about how to locate the nodes I'm looking for.</li>
</ol><p>Any advice?</p><p><br></p><p>Thanks</p><p><br></p><p>Dor<br></p></div></div><div class="gmail_extra"><div dir="ltr"><br><br><div class="gmail_quote">2013/4/1 Markus Metz <span dir="ltr"><<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="im"><br><br>On Mon, Apr 1, 2013 at 10:23 AM, דור פרידמן <<a href="mailto:dof1985@gmail.com" target="_blank">dof1985@gmail.com</a>> wrote:<br>
><br>> Hi Markus,<br>><br>> I was very surprised to read your comment about v.net.distance since the manual indicates the following:<br>
>><br>>> "v.net.distance - Computes shortest distance via the network between the given sets of features.<br>>> Finds the shortest paths from each 'from' point to the nearest 'to' feature and various information about this relation are uploaded to the attribute table"<br>
><br>><br>> Is it possible that you had a mistake, or is it that the manual is incorrect?<br><br></div><div class="im">I wrote:<br><br>I think v.net.distance is the wrong module for this task because it<br>
finds for each 'from' feature the nearest 'to' feature and not the<br>
shortest path from each 'from' feature to each 'to' feature.<br><br></div>From the manual:<br><br>...the table has three columns:
<em>cat</em>, <em>tcat</em> and <em>dist</em> storing category of each
<em>from</em> feature, category of the nearest <em>to</em> feature and
the distance between them respectively.<br><br>No contradiction AFAICT.<div class="im"><br><br>> How can I assign costs to the destination nodes<br></div>That does not make sense because destination nodes are usually not crossed. Assigning costs to nodes makes more sense for nodes between the start and the end node.<div class="im">
<br>
<br>> to receive the "lowest cost" (shortest) path from each origin node to the nearest (cheapest) target node?<br></div></div><br>The shortest path for each 'from' node to the nearest 'to' node is included in the output map. See also the example in the manual.<br>
<div><br></div><div>Markus M<br></div><div><br>><br>><br>> Best,<br>><br>> Dor<div><div class="h5"><br>><br>><br>> 2013/3/29 Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.com</a>><br>
>><br>>> On Thu, Mar 28, 2013 at 2:52 PM, דור פרידמן <<a href="mailto:dof1985@gmail.com" target="_blank">dof1985@gmail.com</a>> wrote:<br>>> > Hello all,<br>>> ><br>>> > After I've got my v.net.distance up and running I have to adjust my analysis<br>
>> > method to the software's capabilities. Basically, I have a 3 layered<br>>> > network: myroads_net2 which contain layers as follow:<br>>> ><br>>> > Layer 1: Arch (roads)<br>>> > Layer 2: Points (Landfills - destinations)<br>
>> > Layer 3: Points (Settlements - source)<br>>> ><br>>> > As one might understood I'm trying to calculate the lowest cost route<br>>> > between each settlement (layer 3) to each landfill (layer 2).<br>
>><br>>> I think v.net.distance is the wrong module for this task because it<br>>> finds for each 'from' feature the nearest 'to' feature and not the<br>>> shortest path from each 'from' feature to each 'to' feature. Actually,<br>
>> I don't think any of the v.net.* modules does exactly that. You could<br>>> file a ticket for enhancement to request such a module.<br>>><br>>> > Roads' costs<br>>> > are constant, which now set to 1 (currency per distance unit - I guess that<br>
>> > it is meter). I would like to include a cost for landfill (gate fee) which<br>>> > will be measured with the same currency. MY attempt to use ncolumn (cost for<br>>> > nodes) didn't go well. I have opened a new column (double precision) in<br>
>> > layer 2 and named it gatefee. I have assigned 0 to all cats, except cat=3<br>>> > which I have assigned with 60. My expectation was that at least some of the<br>>> > settlements that were allocated to cat=3 on layer 2 will be allocated to<br>
>> > another one. However after running v.net.distance again with ncolumn=gatefee<br>>> > I have found out that more settlements were allocated to cat=3 of layer 2.<br>>><br>>> If I understand the code of v.net.distance correctly, node costs are ignored.<br>
>><br>>> Markus M<br>>><br>>> ><br>>> > Did I misused that option? I can't find any guide to how to use it in the<br>>> > manual or tutorials and will appreciate an explanation or a reference to<br>
>> > such guide or tutorial.<br>>> ><br>>> > Best,<br>>> ><br>>> > Dor<br>>> ><br>>> > _______________________________________________<br>>> > grass-user mailing list<br>
>> > <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>>> > <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
>> ><br>><br>><br></div></div></div></blockquote></div></div></div>