Re: [R] Error when sampling from SpatialLines

2009-07-15 Thread Roger Bivand
Which version of the sp package are you using? In a version that is submitted to CRAN, and available for CVS checkout from the R-spatial sourceforge repository, a weakness was addressed when a Line object received no sample points, either because of its shortness, or because n is small for the tot

[R] Error when sampling from SpatialLines

2009-07-14 Thread Elke MOONS
Dear forum,   I am working in R 2.9.1 and I am trying to sample locations from a network file. Reading in nor plotting is a problem, however when I am trying to sample from the file I get the following message:   nwlim<-readShapeLines("C:/Limburg_nwshape", proj4string=CRS("+init=epsg:31