Opened 5 years ago

Last modified 3 months ago

#2485 new enhancement

v.segment: add options for a fixed distance (enhacement)

Reported by: hellik Owned by: grass-dev@…
Priority: major Milestone: 7.6.2
Component: Vector Version: svn-releasebranch70
Keywords: v.segment Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Change History (16)

comment:1 Changed 5 years ago by hellik

Summary: v.segment: add option for a fixed distancev.segment: add option for a fixed distance (enhacement)

comment:2 Changed 5 years ago by martinl

Keywords: v.segment added

comment:3 in reply to:  description ; Changed 5 years ago by hellik

Summary: v.segment: add option for a fixed distance (enhacement)v.segment: add options for a fixed distance (enhacement)

Replying to 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.

comment:4 in reply to:  description Changed 5 years ago by hellik

Replying to 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

comment:5 Changed 5 years ago 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

comment:6 in reply to:  3 Changed 4 years ago by mlennert

Replying to hellik:

Replying to 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.

comment:7 Changed 3 years ago by martinl

Milestone: 7.0.07.0.5

comment:8 Changed 3 years ago by martinl

Milestone: 7.0.57.3.0

comment:9 Changed 3 years ago by martinl

Milestone: 7.3.07.4.0

Milestone renamed

comment:10 Changed 17 months ago by martinl

It's not clear what is status of this issue.

comment:11 in reply to:  10 Changed 17 months ago by hellik

Replying to martinl:

It's not clear what is status of this issue.

never tried the v.split way mentioned in comment:6 if that's works.

v.segment enhancement as the original ticket is still open.

comment:12 Changed 17 months ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:13 Changed 13 months ago by neteler

Milestone: 7.4.17.4.2

comment:14 Changed 9 months ago by martinl

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:15 Changed 5 months ago by martinl

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:16 Changed 3 months ago by martinl

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.