Hi José, On Wed, Dec 31, 2008 at 8:39 AM, José María Michia <[email protected]> wrote: > Hello everyone. I'm trying v.net.salesman module. I followed the > instructions in the manual page. All tests are good, except one case, > which returns the following error: > >> v.net.salesman myroads_net ccats=1-237 out=mysalesman2 > Number of cities: [237] > Building graph... > Registering arcs... > 100% > Flattening the graph... > Graph was built > ERROR: Destination node [604] is unreachable from node [1045] > > The range 1-237 refers to all nodes in the network. > > I can not find a way of relate [604] and [1045] with categories.
Are you using the Spearfish data set? I have replicated the example of the man page without problems. Additionally, I have tried yours: GRASS 6.4.svn (spearfish60):~ > v.net.salesman myroads_net ccats=1-237 out=mysalesman2 Number of cities: [6] Building graph... Registering arcs... 100% Flattening the graph... Graph was built Cycle: Arcs' categories (layer 1, 107 arcs): 4,4,4,4,4,4,5,5,4,2,2,4,4,4,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,2,2,2,2,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,2,2,2,4,4,2,2,2,2,2,2,2,2,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4 Nodes' categories (layer 2, 107 nodes): 2,1,6,5,4,3 Building topology for vector map <mysalesman2>... Registering primitives... 113 primitives registered 872 vertices registered Building areas... 100% 0 areas built 0 isles built Attaching islands... Attaching centroids... 100% Number of nodes: 107 Number of primitives: 113 Number of points: 6 Number of lines: 107 Number of boundaries: 0 Number of centroids: 0 Number of areas: 0 Number of isles: 0 -> no problem. Question: Which GRASS version are you using, whih operating system? I am using 6.4.0RC1 here. Markus _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
