Opened 9 years ago
Closed 9 years ago
#2761 closed defect (invalid)
v.net.path manual error
Reported by: | cmbarton | Owned by: | |
---|---|---|---|
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 )
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 , 9 years ago
comment:2 by , 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
follow-up: 8 comment:3 by , 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 , 9 years ago
Description: | modified (diff) |
---|
comment:8 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
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.