Changelog
Source:NEWS.md
dggridR 4.1.1
- Fixed segmentation fault on Debian/Linux during package loading caused by
RCPP_USE_GLOBAL_ROSTREAMglobal initialization inRcppExports.cpp. - Fixed integer truncation warnings by replacing C
abs()withstd::abs()forlong longarguments in DGGRID headers.
dggridR 4.1.0
-
dgconstruct()gainsaperture = 7for ISEA7H / FULLER7H hexagonal grids. -
dgconstruct()gainsaperture_type = "MIXED43"withnum_aperture_4_resfor ISEA43H / FULLER43H mixed-aperture grids. -
dgconstruct()gainsorient = "RANDOM"for a uniformly random icosahedral orientation (reproducible viaset.seed()). - New
dgneighbors(dggs, cells)returns the adjacent cell IDs for each input cell (hexagonal grids only). - New
dgchildren(dggs, cells)returns the child cell IDs at the next finer resolution. - New
dgparent(dggs, cells)returns the parent cell ID at the next coarser resolution. - New
dgpoints_to_cells(dggs, lon, lat)maps lon/lat points to grid cells and returns an sf grid with optional per-cell counts. - New
dgbin_points(dggs, lon, lat, values)aggregates point data into grid cells, returning per-cell count, mean, and/or total as a data frame. -
dgearthgrid()anddgcellstogrid()gain adensifyparameter to insert extra vertices along cell edges for smoother boundaries. -
dgearthgrid()anddgcellstogrid()now materialize sf polygon grids through a native C implementation using R’s C API, preserving DGGRID ring order and avoiding the previous s2/collapse polygon construction path. Illustrative conversion timings for full-earth grids improved from 3.854s to 0.150s at res 9 (~26x). This is achieved also via the wk package. - pkgdown site added at https://sebkrantz.github.io/dggridR/.
dggridR 4.0.0
- Updated bundled DGGRID C++ engine to v9.0b (upstream SebKrantz/DGGRID).
- Re-architected
DgIDGGSBase::makeRF()call for new v9.0b parameter order (isApSeq,DgApSeq,hierNdxSysType). -
update_from_upstream.shrewritten for macOS compatibility (Perl-based text transforms) and updated to track SebKrantz/DGGRID. - Fixed numeric precision issue on Apple Silicon introduced by DGGRID v9.0b.
- New DeepWiki AI documentation at https://deepwiki.com/r-barnes/dggridR.
dggridR 3.1.0
CRAN release: 2024-07-26
- Fixed a numeric precision issue on Apple Silicon (#63).
- Removed dplyr, rlang, and sp as dependencies; added collapse and s2 (zero additional transitive dependencies), yielding significant performance gains especially in grid materialization.
-
dgshptogrid()now accepts an sf object in memory in addition to a shapefile path. -
dgcellstogrid(),dgearthgrid(),dgrectgrid(), anddgshptogrid()gainreturn_sf = TRUE; settingreturn_sf = FALSEreturns a memory-efficient long data frame of cell-vertex coordinates.
dggridR 3.0.0
CRAN release: 2023-01-18
- Fixes memory leaks in DGGRID.
- Switches from rgdal to the sf package.
-
dgtransform()removed (previously deprecated); usedgGEO_to_SEQNUM()instead.
dggridR 2.0.3
CRAN release: 2018-04-06
- Fixed bugs in
dgshptogrid()anddgrectgrid()wherecellsizewas not respected. - More informative warning messages.
dggridR 2.0.0
- Complete restructuring of the internal C++ engine for improved speed and robustness across operating systems.
- Restructured engine directory layout to reduce compilation complexity.
-
dg_shpfname_south_africa()converted from an object to a function.
dggridR 1.0.0
-
dgconstruct()gainsazimuth,pole_lat, andpole_lonparameters. - Added pentagon location map to the vignette.
dggridR 0.1.0 and earlier
- Initial development releases: grid generation, shapefile support (
dgshptogrid()), debugging utilities, FLOSS licensing via Clipper, and various compiler-compatibility and CRAN-compliance fixes.