Drop references to deprecated rgdal.
gh_covering
would fail withminimal=TRUE
forSpatialPointsDataFrame
input, #30. Thanks @dshkol for the report and working example.
- Fix compilation issue under
-Wstrict-prototypes
. Thanks CRAN team.
gh_decode
accepts and efficiently processesfactor
input by only decoding each level one time, #17. If you're likely to have a fair number of duplicate geohashes in your input, consider storing them as a factor for efficiency. In a few representative on 5-20M-size datasets, I saw roughly 5x speed-up from this approach; however, the time to convert from string to factor out-weighed this gain, so it's best deployed on data where the geohashes are stored as factor anyway.
-
gh_decode
errors early on non-ASCII input to prevent out-of-memory access, #19. -
Dependency upgrade of
r-spatial
to PROJ 6 revealed a test failure ingeohashTools
that has now been corrected, #23. Thanks @rsbivand for his diligence and proactivity in identifying the failure, to @Nowosad for providing helpful Docker images for testing, and @mdsumner for helpful comments. -
Input with longitude< -180 (which should be wrapped again around the Earth) was calculated incorrectly, #27.
- Removed
mockery
from Suggests. It may later be restored, but currently it's not used.
- Complete overhaul of source code; C++ --> C & changed algorithm
gh_neighbors
incorrectly returnedNA
for geohashes whose first component is a boundary but whose higher components do indeed have neighbors, #14.
gh_covering
works with input fromsf
. Thanks to @dshkol for the PR.
gh_covering
failed on input with missingproj4string
, #13. Thanks @dshkol for the report.
-
CRAN submission again detected memory issues (accessing memory beyond which was declared for an array), reproduced & fixed for #6; the original fix also led to an uninitialized access error, #12.
-
CRAN submission also detected a type mismatch error, #11.
gh_covering
for generating a covering of an input polygon in geohashes, #4.