[GRASS-user] v.net.path weight & co

Stefano wrote:

i've some problem with v.net.path

....

now, if i specify the length of the path as weight i
should receive the same path, right? but this doesn't
work.

don't quote me on this, but maybe try the inverse length?

ie make a column which is SQL magic "max(length column) - this_line_length"
and use that as the cost.

e.g. see the help page example with speed limits.

I may have it backwards,
Hamish

@hamish, altready try all of these stuff, i’ll try with the subtraction, i hope in that solution!

anyway, after one week of trial my thought is:

the problem can be:
the way that use v.to.db takes the length, how it measure? where it cut a line in the intersection and so on
the way that use v.net.path to assign automatically weight (it takes the length, but how?)

where i can found the code of v.net.path ?

someone of you has a map that are sure to work with v.net.path with weight (maybe is my map that is malformed, too much lines ar attached an so on)

doesn’t exists a method to tell at v.net.path: takes the weight and multiplies it by the length that you normally calculate?

thanks


Stefano

On Fri, May 8, 2009 at 12:23 PM, Stefano <elstefen@gmail.com> wrote:
...

where i can found the code of v.net.path ?

Here you can find it online (apart from the source code packages):
http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/vector/v.net.path/

Please post your findings.

Markus

Thanks.
i found a person that has already modfied the v.net.path as i want to do, so i’ll try.
if i’m able to found a solution i’ll post here.
thanks folks

On Fri, May 8, 2009 at 20:36, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, May 8, 2009 at 12:23 PM, Stefano <elstefen@gmail.com> wrote:

where i can found the code of v.net.path ?

Here you can find it online (apart from the source code packages):
http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/vector/v.net.path/

Please post your findings.

Markus


Stefano