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 > https://trac.osgeo.org/grass/ticket/1852 > > Issues: > - 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? > > thanks > Markus > > PS: I have roughly 100.000 lines to process. > _______________________________________________ > grass-dev mailing list
> grass-dev@.osgeo > http://lists.osgeo.org/mailman/listinfo/grass-dev a very simple implementation for just 1 vector line to get sample points along a river/transect/whatever with a fixed segment length: https://grass.osgeo.org/grass70/manuals/addons/v.fixed.segmentpoints.html maybe it could be extended to loop through all lines of a vector? ----- best regards Helmut -- 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. _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev