Re: [R-sig-Geo] spatial sampling with an un-ordered polygon for which links between points are known

2016-06-24 Thread Paolo Piras
Thanks a lot Michael!! This is perfect! And elegant of course... Thankyou very much! Best Paolo Da: Michael Sumner Inviato: venerd� 24 giugno 2016 17.41 A: Paolo Piras; r-sig-geo@r-project.org Oggetto: Re: [R-sig-Geo] spatial sampling

Re: [R-sig-Geo] spatial sampling with an un-ordered polygon for which links between points are known

2016-06-24 Thread Michael Sumner
On Sat, 25 Jun 2016 at 01:22 Michael Sumner wrote: > The internal "cycles" function that I have here reproduces your correct > ordering: > > > > On Fri, 24 Jun 2016 at 23:46 Paolo Piras wrote: > >> Hi folks, >> I write in order to know if there is a

Re: [R-sig-Geo] spatial sampling with an un-ordered polygon for which links between points are known

2016-06-24 Thread Michael Sumner
The internal "cycles" function that I have here reproduces your correct ordering: On Fri, 24 Jun 2016 at 23:46 Paolo Piras wrote: > Hi folks, > I write in order to know if there is a solution to the following spatial > sampling problem: > I have a polygon that is not

[R-sig-Geo] NA data values

2016-06-24 Thread Debora Nozza
Good morning, I am working on creating a STFDF object using the function meteo2STFDF(). I am trying to to reproducing (with my data) the same example provided in http://www.inside-r.org/node/358574. However, after computing meteo2STFDF() function, the data@tempc is full of NA values. It seems

[R-sig-Geo] spatial sampling with an un-ordered polygon for which links between points are known

2016-06-24 Thread Paolo Piras
Hi folks, I write in order to know if there is a solution to the following spatial sampling problem: I have a polygon that is not ordered; however, I know the "links" (or edges) between points; I need to sample 2000 points within the polygon. Using spsample() and Polygon() I need an ordered