Skip to content
Prev 6439 / 29559 Next

Looping over spatial data

On Thu, 10 Sep 2009, Jason Bryer wrote:

            
There is a reason for read.shape() saying that it is deprecated. Please 
use classes defined in the sp package, and methods to read them, here 
possiblt readShapeSpatial() in maptools.
If pt is a SpatialPoints object, you just use an overlay() method.
Almost certainly your assumption that the shape is a single ring is not 
met for some i, leading the splancs functions you are using to fail. Use 
sp classes, they are there to help.

Roger