Skip to content
Prev 7612 / 29559 Next

zero distance in spDistsN1

Hi list,

I found some strange behaviour in the latest version of spDistsN1:
[1] 0 0 0 0
[1] 1 2 3 4

It seems that for longlat=TRUE, zeros are returned whenever the latitude 
values are equal, because:
[1] 111.3195   0.0000   0.0000   0.0000

Here is some info on the package version:
Package: sp
Version: 0.9-57
[...]
Built: R 2.10.1; x86_64-pc-linux-gnu; 2010-01-29 17:10:42 UTC; unix

but I also get it under windows and mac. Version 0.9-56 under mac worked 
fine:
[1] 111.3195 222.6390 333.9585 445.2780



cheers
wouter