Opened 9 years ago

Last modified 5 years 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 by hellik, 9 years ago

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

comment:2 by martinl, 9 years ago

Keywords: v.segment added

in reply to:  description ; comment:3 by hellik, 9 years ago

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.

in reply to:  description comment:4 by hellik, 9 years ago

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 by pvanbosgeo, 9 years ago

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

in reply to:  3 comment:6 by mlennert, 9 years ago

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 by martinl, 8 years ago

Milestone: 7.0.07.0.5

comment:8 by martinl, 8 years ago

Milestone: 7.0.57.3.0

comment:9 by martinl, 8 years ago

Milestone: 7.3.07.4.0

Milestone renamed

comment:10 by martinl, 6 years ago

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

in reply to:  10 comment:11 by hellik, 6 years ago

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 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:13 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:14 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:15 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:16 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.