[GRASS-dev] [GRASS GIS] #1852: r.profile: accept lines vector map as profile

#1852: r.profile: accept lines vector map as profile
----------------------------------+-----------------------------------------
Reporter: dericke | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: unspecified
Keywords: r.profile, elevation | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------
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.

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

#1852: r.profile: accept lines vector map as profile
----------------------------------+-----------------------------------------
Reporter: dericke | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.profile, elevation | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------
Changes (by dericke):

  * platform: Unspecified => All
  * version: unspecified => svn-trunk
  * cpu: Unspecified => All

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

#1852: r.profile: accept lines vector map as profile
----------------------------------+-----------------------------------------
Reporter: dericke | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.profile, elevation | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------

Comment(by hamish):

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

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

#1852: r.profile: accept lines vector map as profile
----------------------------------+-----------------------------------------
Reporter: dericke | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.profile, elevation | Platform: All
      Cpu: All |
----------------------------------+-----------------------------------------

Comment(by neteler):

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

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