<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
On Fri, 2011-07-08 at 14:02 -0500, Ezra Boyd wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi Everyone,

I have a line feature that represents a road/trail along with a set of
GPS points taken along the trail.  What I need to do is calculate the
distance along the pathway from the trailhead to each GPS point.  The
best way that I can think of to accomplish this is to convert the line
feature to even spaced points (preferably 1 meter or 1 ft apart.)
However, all of the line-to-point conversion tools that I have found
simply create points at all the nodes of the line feature.  But, this
want help me because I know that the nodes are not evenly spaced.
Does anyone know of the line-to-point conversion tool that creates
evenly spaced points?  Otherwise, does anyone have other ideas of how
I can accomplish what I need to accomplish.

</PRE>
</BLOCKQUOTE>
<BR>
You might find it helpful to use the GRASS module v.lrs.create to build a "Linear Reference System". It will enter into certain columns that you prepare in advance the distance from the start to each "milepost" i.e. your GPS points. First use 'v.to.points' to create a new point vector that contains all the vertices along the line.  So, assuming your original line feature is one "polyline" (many short line segments with only one beginning node and one ending node) then:<BR>
<BR>
* Create a suitable GRASS location and mapset (based on the CRS of your data)<BR>
* Use the GRASS toolbox to import the trail vector into GRASS with v.in.ogr.<BR>
* If you have the original GPS locations import those into GRASS and skip the next step, otherwise:<BR>
* Next use the v.to.points module to convert all vertices to a new point vector. Note the checkbox in the module window "Write line vertices".  <BR>
* Now use v.lrs.create (Not in the GRASS Toolbox. You'll have to do this from a command window) to create a new line vector with the start_mp, end_mp, start_off, end_off and rstable columns as required, and you'll have the distances from the beginning to each milepost. <BR>
<BR>
Here's more details:<BR>
<A HREF="http://grass.osgeo.org/gdp/html_grass63/lrs.html">http://grass.osgeo.org/gdp/html_grass63/lrs.html</A><BR>
<BR>
Cheers,<BR>
Micha<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
Thanks,
Ezra
_______________________________________________
Qgis-user mailing list
<A HREF="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</A>
<A HREF="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</A>

This mail was received via Mail-SeCure System.


</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>