[GRASS-dev] How to sample raster values along a vector line?
hellik at web.de
Thu Mar 10 12:02:37 PST 2016
Markus Neteler wrote
> Hi devs,
> I somehow don't get how to sample values from a raster map along a
> vector line which is several pixels long.
> In essence, something like this
> #1852: r.profile: accept lines vector map as profile
> - I tried v.split but don't know how to extract the nodes from the
> resulting map.
> - I also tried v.to.points but the distance is "random". Try this:
> # NC data
> v.to.points railroads output=railroads_nodes use=node dmax=200
> g.region vector=railroads_nodes
> d.mon wx0
> d.vect railroads_nodes
> --> ??
> I found a hint about v.drape but also no success.
> Any suggestions?
> PS: I have roughly 100.000 lines to process.
> grass-dev mailing list
> grass-dev at .osgeo
a very simple implementation for just 1 vector line to get sample points
along a river/transect/whatever with a fixed segment length:
maybe it could be extended to loop through all lines of a vector?
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-sample-raster-values-along-a-vector-line-tp5255674p5255702.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
More information about the grass-dev