geohashTools icon indicating copy to clipboard operation
geohashTools copied to clipboard

gh_covering should be S3

Open MichaelChirico opened this issue 5 years ago • 1 comments

Currently an error:

GH6 = gh_covering(SG$poly, minimal = TRUE)
Error in gh_covering(SG$poly, minimal = TRUE) : 
  Object to cover must be Spatial (or subclass)

This should just dispatch:

GH6 = gh_covering(as_Spatial(SG$poly), minimal = TRUE)

MichaelChirico avatar Oct 25 '19 08:10 MichaelChirico

I should just get rid of the sp stuff

MichaelChirico avatar Dec 07 '19 04:12 MichaelChirico