Skip to content
Prev 15285 / 29559 Next

Center of mass of a SpatialPointsDataFrame object - Which projection?

if gstat can figure out that data are not projected and
is.projected(obj) is FALSE, like in the following example:

library(sp)
x = SpatialPoints(cbind(0,0))
library(rgdal)
proj4string(x) = "+proj=longlat"
is.projected(x)
[1] FALSE

then it will use great-circle distances, as opposed to Euclidian
distances, when it computes a variogram.
On 06/10/2012 08:41 PM, PCB wrote: