Skip to content
Prev 358 / 29559 Next

Using adehabitat and splancs to achieve point-in-polygon analysis on raster?

On Fri, 25 Mar 2005, Cl?ment Calenge wrote:

            
Probably about the same in Bergen, quite warm for the time of year, snow 
still on the hills around town.
This is something we've been looking at for the sp package, how to make an 
object that represents the raster cells falling into one or more rings. It 
could be a grid with NA outside the vector MASK, or a cell object with 
just the (regularly spaced) points inside the MASK. We are not there yet, 
and point-in-polygon is as close as we've got yet (that is, generate the 
full raster using expand.grid() and test each point in turn. This is 
needed, but isn't finished yet. Writing good functions to suit adehabitat 
package objects is going to be important, so the work flow you, Sander, 
have described, is very useful. It would be nice to be able to say that 
this is ready now, but it isn't yet ...

At least one of the things sp is trying to do is provide shared object 
structures so that writing functions from/to different polygon 
representations can be done from -> sp and sp -> to, so that various 
packages should be able to "talk to" each other with fewer barriers.

Best wishes,

Roger