[GRASS-user] obtain node sequence from v.net.salesman

Gavin Fleming gavin at afrispatial.co.za
Mon Apr 30 15:43:53 EDT 2012


Thanks Moritz, your tip saved the day.

I've added this to http://trac.osgeo.org/grass/ticket/1650





On 30/04/2012 11:34, Moritz Lennert wrote:
> On 30/04/12 11:30, Moritz Lennert wrote:
>> On 30/04/12 11:10, Gavin Fleming wrote:
>>> Here's my route - it's easy enough to see the nodes but how to extract
>>> them in the order they need to be visited?
>>>
>>> v.select just selects them, but not in route order.
>>
>> There's currently no official way of getting the node ids in order.
>> However, there is a workaround that allows you to get that info using
>> debug output:
>>
>>
>> [using the NC demo data]
>>
>> v.net in=streets_wake points=schools_wake out=streets_with_schools
>> operation=connect thresh=50
>> g.gisenv set=DEBUG=2
>> v.net.salesman in=streets_with_schools out=salesroute ccats=1-999
>
>
> Sorry, above is not totally correct: you actually do not need to set 
> the DEBUG variable, just setting the verbose flag is enough:
>
> v.net in=streets_wake points=schools_wake out=streets_with_schools
> operation=connect thresh=50
> v.net.salesman in=streets_with_schools out=salesroute ccats=1-999 --v
>
> But still, this should probably be upgraded from a hidden feature to a 
> real option.
>
> Moritz
>
>

-- 
regards

Gavin

Gavin Fleming
http://afrispatial.co.za
t: 0218620670
c: 0845965680
f: 0866164820

-------------- next part --------------
Skipped content of type multipart/related


More information about the grass-user mailing list