Skip to content
Prev 26024 / 29559 Next

buffer from dismo package error

Hi everybody,

I am trying to create a buffer around several points using the function 
circles in the R package dismo. The problem arises with points that are 
close to the 180 or -180 longitude. In these cases the buffer is not a 
circle but a band that connect both sides of the map extension. Probably 
I am missing some basic option, but I am wondering if there is any way 
to avoid this issue. Below an example code and its result.

library(dismo)

library(rgdal)

xx<-cbind(c(-175.20, -106.65,-103.97,-17.76),c(-21.13,35.08,36.78,28.65))

pp<-as.data.frame(rep(1,4))

zz<-SpatialPointsDataFrame(xx,pp)

cc<-circles(zz,1000000,lonlat=TRUE)

plot(cc)


Thanks

Sergio A Estay