[R-sig-Geo] Converting a line feature to evenly spaced points

jeremy.raw at dot.gov jeremy.raw at dot.gov
Fri Jul 8 21:14:50 CEST 2011

I'd suggest looking at the raster and gdistance packages.

Jeremy Raw, P.E.
FHWA Office of Planning
jeremy.raw at dot.gov
(202) 366-0986

-----Original Message-----
From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Ezra Boyd
Sent: Friday, July 08, 2011 3:05 PM
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] Converting a line feature to evenly spaced points

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 evenly spaced points (preferably 1 meter or 1 foot apart.)
However, all of the line-to-point conversion tools that I have found
simply create the points based on the nodes of the line feature.  But, this
won't help me because I know that the nodes are not evenly spaced.
Does anyone know of a 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?


R-sig-Geo mailing list
R-sig-Geo at r-project.org

More information about the R-sig-Geo mailing list