Dear all,
I have a shapefile with line features (like for example drainage),
and I need to generate another shape with points using
the features from the first shape.

But the points is not the points that I can get from the lines.
I need, for example, define that I want one point each 50 meters,
and the points have ~ 50 meters of space between other points
if we follow the "flow" of drainage.

I wrote this simple code to try short the time for helpers.

library(maptools)

xx <- readShapeLines(system.file("shapes/fylk-val.shp",
package="maptools")[1],
    proj4string=CRS("+proj=utm +zone=33 +datum=WGS84"))
plot(xx, col="blue", axes=T)

xx.selectone<-xx[xx$VALINJE_==20,]

plot(xx.selectone, col="red", add=T)

Best wishes,

miltinho astronauta
brazil

	[[alternative HTML version deleted]]


