[GRASS-dev] [GRASS GIS] #2485: v.segment: add option for a fixed distance

#2485: v.segment: add option for a fixed distance
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
v.segment - Creates points/segments from input vector lines and positions.

v.segment with an option for a fixed distance for points/segments (e.g.
every 100m) would be nice.

the last segment may be shorter than the fixed distance.

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

#2485: v.segment: add option for a fixed distance (enhacement)
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

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

#2485: v.segment: add option for a fixed distance (enhacement)
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: v.segment | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * keywords: => v.segment

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

#2485: v.segment: add options for a fixed distance (enhacement)
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: v.segment | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [ticket:2485 hellik]:
> v.segment - Creates points/segments from input vector lines and
positions.
>
> v.segment with an option for a fixed distance for points/segments (e.g.
every 100m) would be nice.
>
> the last segment may be shorter than the fixed distance.

to explain it a bit more: at the moment you can define points/segments by
stdin input or a text file; that's nice.

the enhancement (two options: point or line, fixed distance) would be so
that no stdin or a text file input is needed.

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

#2485: v.segment: add options for a fixed distance (enhacement)
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: v.segment | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [ticket:2485 hellik]:
> v.segment - Creates points/segments from input vector lines and
positions.
>
> v.segment with an option for a fixed distance for points/segments (e.g.
every 100m) would be nice.
>
> the last segment may be shorter than the fixed distance.

as a workaround for points I've added a little addon:

http://trac.osgeo.org/grass/browser/grass-
addons/grass7/vector/v.fixed.segmentpoints

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

#2485: v.segment: add options for a fixed distance (enhacement)
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Keywords: v.segment | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by pvanbosgeo):

Somebody must have read my mind.. I was just trying to figure out how to
do this.v.to.points.

I only need points along straight lines, so using v.to.points (with
use=vertex and dmax option set to a distance) seems to work too, although
the results are slightly off from those created by the
v.fixed.segmentpoints.

But +1 for me for adding this option to v.segment

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

#2485: v.segment: add options for a fixed distance (enhacement)
--------------------------+---------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-releasebranch70
Resolution: | Keywords: v.segment
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------

Comment (by mlennert):

Replying to [comment:3 hellik]:
> Replying to [ticket:2485 hellik]:
> > v.segment - Creates points/segments from input vector lines and
positions.
> >
> > v.segment with an option for a fixed distance for points/segments
(e.g. every 100m) would be nice.
> >
> > the last segment may be shorter than the fixed distance.
>
> to explain it a bit more: at the moment you can define points/segments
by stdin input or a text file; that's nice.
>
> the enhancement (two options: point or line, fixed distance) would be so
that no stdin or a text file input is needed.

I just posted in #2231 a diff to v.split that implements a flag allowing
to split lines according to a fixed distance. Combining this with
v.to.points use=node should give you the points as well.

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