geohashTools NEWS

v0.3.1

NEW FEATURES

  1. gh_decode accepts and efficiently processes factor 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.

BUG FIXES

  1. gh_decode errors early on non-ASCII input to prevent out-of-memory access, #19.

  2. Dependency upgrade of r-spatial to PROJ 6 revealed a test failure in geohashTools 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.

  3. Input with longitude< -180 (which should be wrapped again around the Earth) was calculated incorrectly, #27.

NOTES

  1. Removed mockery from Suggests. It may later be restored, but currently it’s not used.

v0.3.0

NEW FEATURES

  1. Complete overhaul of source code; C++ –> C & changed algorithm

BUG FIXES

  1. gh_neighbors incorrectly returned NA for geohashes whose first component is a boundary but whose higher components do indeed have neighbors, #14.

v0.2.5

NEW FEATURES

  1. gh_covering works with input from sf. Thanks to @dshkol for the PR.

BUG FIXES

  1. gh_covering failed on input with missing proj4string, #13. Thanks @dshkol for the report.

v0.2.4

BUG FIXES

  1. 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.

  2. CRAN submission also detected a type mismatch error, #11.

v0.2.2

NEW FEATURES

  1. gh_covering for generating a covering of an input polygon in geohashes, #4.

BUG FIXES

  1. CRAN submission detected some memory issues in the C++ code which have now hopefully been fixed for #6.

  2. gh_to_spdf failed with duplicate inputs, #8. Duplicates are removed with warning.

  3. gh_neighbors('') failed, #9.

Updates only tracked here since v0.2.2