Re: [R-sig-Geo] [FORGED] uniformly sample points on a border of a polygon

2016-10-13 Thread Adrian Baddeley
You can use the spatstat function 'edges' to extract the edges of a polygonal window. Example: W <- letterR#polygonal window E <- edges(W) X <- runifpointOnLines(20, E) plot(E) plot(X, add=TRUE) Prof Adrian Baddeley DSc FAA

Re: [R-sig-Geo] [FORGED] uniformly sample points on a border of a polygon

2016-10-13 Thread Paolo Piras
Thanks a lot Rolf! This is virtually exactly what I need; I'm very grateful for that All the best Paolo Da: Rolf Turner Inviato: gioved� 13 ottobre 2016 23.12 A: Paolo Piras Cc: r-sig-geo; adrian.badde...@curtin.edu.au; Ege Rubak

[R-sig-Geo] optimizing SGSim for large data sets

2016-10-13 Thread William Savran
Hi R-Sig-Geo, I am working on a project related to deterministic probabilistic seismic hazard analysis (PSHA). I know this sounds quite like an oxymoron, but the idea is to use deterministic simulations of seismic wave propagation (due to a dearth of data at large magnitudes) to help make

Re: [R-sig-Geo] [FORGED] uniformly sample points on a border of a polygon

2016-10-13 Thread Rolf Turner
On 14/10/16 07:03, Paolo Piras wrote: HI folks, I write for a (hopefully) relatively simple question: I would need to uniformly sample 1000 or more points **along the border** of a polygon (not within the area enclosed) that is identified by ordered but not equally spaced points; which is

[R-sig-Geo] uniformly sample points on a border of a polygon

2016-10-13 Thread Paolo Piras
HI folks, I write for a (hopefully) relatively simple question: I would need to uniformly sample 1000 or more points **along the border** of a polygon (not within the area enclosed) that is identified by ordered but not equally spaced points; which is the fastest way? In a first moment I