Opened 11 years ago

Last modified 5 years ago

#1852 new enhancement

r.profile: accept lines vector map as profile

Reported by: dericke Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Raster Version: svn-trunk
Keywords: r.profile, elevation Cc:
CPU: All Platform: All

Description

r.profile should directly accept a lines vector map and optional selection query. For each line feature returned, an elevation profile is created that runs along all vertices of the line.

This would be great for profiling a complex river or road without the intermediate step of converting vertices to ASCII before they can be used in r.profile. It would also aid in quickly profiling multiple transects.

Change History (15)

comment:1 by dericke, 11 years ago

CPU: UnspecifiedAll
Platform: UnspecifiedAll
Version: unspecifiedsvn-trunk

comment:2 by hamish, 11 years ago

Hi,

it seems like a reasonable idea, probably waits for someone to work on it.

note that for the ASCII work-around that v.out.ascii has an option to output to stdout and r.profile can take input from stdin, so with a little UNIX powertool magic (grep, awk, or sed) you could do it all in one step, maybe with a small wrapper script or alias.

see also the v.drape module which may do some of what you want.

Hamish

comment:3 by neteler, 11 years ago

The function which could be added to r.profile is sample_raster(), see

http://trac.osgeo.org/grass/browser/grass/trunk/vector/v.drape/main.c#L29

comment:4 by neteler, 8 years ago

Milestone: 7.0.07.1.0

Given the fact that nor v.split or v.to.points are helpful to generate reasonable input for r.profile, this enhancement is quite useful. At time I don't see how to extract nodes from a vector line at defined distance.

in reply to:  4 comment:5 by hellik, 8 years ago

Replying to neteler:

Given the fact that nor v.split or v.to.points are helpful to generate reasonable input for r.profile, this enhancement is quite useful. At time I don't see how to extract nodes from a vector line at defined distance.

maybe some inspiration?:

https://grass.osgeo.org/grass70/manuals/addons/v.fixed.segmentpoints.html https://grass.osgeo.org/grass70/manuals/addons/v.transects.html

comment:6 by neteler, 8 years ago

An alternative could be to enhance the GRASS add-on v.profile (at time it allows to profile vector maps). Might be the "natural" place...

https://grass.osgeo.org/grass70/manuals/addons/v.profile.html

comment:7 by neteler, 8 years ago

Milestone: 7.1.07.2.0

Milestone renamed

comment:8 by neteler, 7 years ago

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:9 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:10 by martinl, 7 years ago

Milestone: 7.2.27.4.0

All enhancement tickets should be assigned to 7.4 milestone.

comment:11 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:12 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:13 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:14 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:15 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.