[R-sig-Geo] points sampled along a Line don't seem to intersect it

Mathieu Rajerison mathieu.rajerison at gmail.com
Mon Mar 23 13:07:11 CET 2015


Hi,


I have angle values affected to each segment of a road network and I'd like
to get the angles for sampling points.

The problem is that my points don't seem to intersect with my roads network.

Here is the code and the data is attached to this mail.

> library(rgeos)

> pts <- spsample(rds.un, type="regular", n=100)

> gIntersects(pts, rds.un)
[1] FALSE


Any idea ?

Best,

Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20150323/bc5d4569/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rds.un.rda
Type: application/octet-stream
Size: 13077 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20150323/bc5d4569/attachment.obj>


More information about the R-sig-Geo mailing list