On 17/04/2012 10:20, Harald Hofmann wrote:
Hi, You're on the right track: the v.distance module has a "to_along" option. Here's what you can do: First use the v.in.lines module to import the ascii GPS log points as a line feature. v.in.lines gps_points.txt out=river_line fs=, # (comma separated?) # This module isn't in the QGIS GRASS toolbox yet, so you'll have to either run GRASS standalone, or use the GRASS terminal in QGIS Now add a column to the points table to accept the distance along the line: v.db.addcol gps_points column="along double precision" Now run v.distance as: v.distance from=gps_point to=river_line upload=to_along column=along out=connectors # The output parameter hold the line segments connecting each point to the river_line. It's required by the module to run, by has no significance for you. Cheers, Micha
-- Micha Silver 052-3665918 |
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
