[R-sig-Geo] Generate N points along a SpatialLines object

Mathieu Rajerison mathieu.rajerison at gmail.com
Fri Feb 27 11:15:28 CET 2015


Ok nice !

I did'nt even notice spsample could work on SpatialLines object !..

2015-02-26 14:40 GMT+01:00 Edzer Pebesma <edzer.pebesma at uni-muenster.de>:

> Mathieu, sp::spsample samples SpatialLines objects, and has an argument
> type = "regular".
>
> On 02/26/2015 02:24 PM, Mathieu Rajerison wrote:
> > Hi List,
> >
> >
> > I try to generate N points along a a continental coastline with
> > spatstat::pointsOnLines
> >
> > If I give a small number of points (like N = 10), then 931 points are
> > returned. That's because 931 segments are generated from my initial
> > coastline data.
> >
> > I'd like to know how to generate exactly N points, equally spaced, from a
> > SpatialLines object, without GRASS, nor QGIS
> >
> >
> > Thanks in advance for any answer,
> >
> > Mathieu
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo at r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >
>
> --
> Edzer Pebesma
> Institute for Geoinformatics (ifgi),  University of Münster,
> Heisenbergstraße 2, 48149 Münster, Germany; +49 251 83 33081
> Journal of Statistical Software:   http://www.jstatsoft.org/
> Computers & Geosciences:   http://elsevier.com/locate/cageo/
> Spatial Statistics Society http://www.spatialstatistics.info
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list