Opened 11 years ago
Closed 7 years ago
#2183 closed enhancement (fixed)
v.centerpoint: category values in ascii output should include original cat values
Reported by: | mlennert | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.4.1 |
Component: | Addons | Version: | svn-trunk |
Keywords: | v.centerpoint ascii output | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
When using v.centerpoint to print the centerpoint coordinates to stdout, cat values represent the type of point (7 = mean of area, 8 = median of area, etc). I would find it more useful if in the ascii output the cat value would be that of the original feature (just as normally foreseen for vector output of v.centerpoint) and that the centroid type was an additional column.
Attachments (1)
Change History (10)
follow-up: 2 comment:1 by , 11 years ago
comment:2 by , 11 years ago
Replying to mmetz:
Replying to mlennert:
When using v.centerpoint to print the centerpoint coordinates to stdout, cat values represent the type of point (7 = mean of area, 8 = median of area, etc). I would find it more useful if in the ascii output the cat value would be that of the original feature (just as normally foreseen for vector output of v.centerpoint) and that the centroid type was an additional column.
Please try r58842. Note that center points for point clouds have only the type of center point as cat and not all categories of all original features.
Thanks, it looks good, but now I get a segfault. I'll attach a full backtrace.
Moritz
comment:3 by , 11 years ago
FYI: I don't get that segfault when I send output to a new vector layer (i.e. when I use the output parameter).
comment:4 by , 9 years ago
Milestone: | 7.0.0 → 7.0.5 |
---|
comment:5 by , 8 years ago
Milestone: | 7.0.5 → 7.3.0 |
---|
comment:9 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to martinl:
What is the status of this issue?
I cannot reproduce the segfault, and the original wish has been implemented, so closing.
Replying to mlennert:
Please try r58842. Note that center points for point clouds have only the type of center point as cat and not all categories of all original features.