Opened 9 years ago

Closed 9 years ago

#2761 closed defect (invalid)

v.net.path manual error

Reported by: cmbarton Owned by: grass-dev@…
Priority: normal Milestone: 7.0.4
Component: Vector Version: 7.0.1
Keywords: v.net.path, network Cc:
CPU: All Platform: All

Description (last modified by martinl)

The manual states:

The syntax is as follows:

id start_point_category end_point_category
(Example: 1 1 2) 
or 

id start_point_x start_point_y end_point_x end_point_y

The CORRECT syntax is:

The syntax is as follows:

layer start_point_category end_point_category
(Example: 1 1 2) 
or 

layer start_point_x start_point_y end_point_x end_point_y

Change History (8)

comment:1 by annakrat, 9 years ago

Are you sure? I don't see anything like that in the code. It must be an integer, but it is not really used there.

comment:2 by martinl, 9 years ago

From first look it seems to me that the module supports two modes: coordinates and categories, see source:grass/trunk/vector/v.net.path/path.c#L141

comment:3 by martinl, 9 years ago

OK, now I understand better your ticket. The 'id' is stored in created attribute table, source:grass/trunk/vector/v.net.path/path.c#L100. Why do you think that it should be a layer?

comment:4 by martinl, 9 years ago

Description: modified (diff)

comment:5 by neteler, 9 years ago

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:6 by neteler, 9 years ago

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:7 by neteler, 9 years ago

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

in reply to:  3 comment:8 by mmetz, 9 years ago

Resolution: invalid
Status: newclosed

Replying to martinl:

OK, now I understand better your ticket. The 'id' is stored in created attribute table, source:grass/trunk/vector/v.net.path/path.c#L100. Why do you think that it should be a layer?

ID is correct, it is the ID of the path to be created. Layers are defined with the arc_layer, node_layer, turn_layer, and turn_cat_layer options. Several paths can be created at once, e.g. with

1 1 2
2 2 3
3 3 4

using the syntax "id start_point_category end_point_category". The output will contain three different paths. You can then display a single path with d.vect where="id = 1" etc. Closing as invalid.

Note: See TracTickets for help on using tickets.