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

Edzer Pebesma edzer.pebesma at uni-muenster.de
Thu Feb 26 14:40:15 CET 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20150226/468df075/attachment.bin>


More information about the R-sig-Geo mailing list