[GRASS-dev] [GRASS GIS] #2183: v.centerpoint: category values in ascii output should include original cat values

#2183: v.centerpoint: category values in ascii output should include original cat
values
----------------------------------------+-----------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Keywords: v.centerpoint ascii output | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------------+-----------------------------------
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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2183&gt;
GRASS GIS <http://grass.osgeo.org>

#2183: v.centerpoint: category values in ascii output should include original cat
values
----------------------------------------+-----------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Keywords: v.centerpoint ascii output | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------------+-----------------------------------

Comment(by mmetz):

Replying to [ticket:2183 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2183#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2183: v.centerpoint: category values in ascii output should include original cat
values
----------------------------------------+-----------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Keywords: v.centerpoint ascii output | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------------+-----------------------------------

Comment(by mlennert):

Replying to [comment:1 mmetz]:
> Replying to [ticket:2183 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2183#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2183: v.centerpoint: category values in ascii output should include original cat
values
----------------------------------------+-----------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Keywords: v.centerpoint ascii output | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------------+-----------------------------------

Comment(by mlennert):

FYI: I don't get that segfault when I send output to a new vector layer
(i.e. when I use the output parameter).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2183#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>