Discrete Global Grid Abstraction Library 0.0.1

DGGAL is a Free & Open-Source (BSD-3-Clause) native, highly efficient library implementing a number of Discrete Global Grid Reference Systems (DGGRS), including all of those defined in the informative Annex B of the OGCAPI - DGGS standard. DGGAL implements DGGRSs based on the Slice and Dice Icosahedral Vertex-oriented great circle Equal-Area (IVEA) projection (van Leeuwen and Strebe, 2006): IVEA3H (aperture 3 hexagonal) and IVEA9R (aperture 9 rhombic). Compared to the ISEA (Snyder) projection, IVEA avoids cusps, yielding more regular zones. Capabilities: - Efficient handling of zones as 64-bit integers across the library, with the ability to resolve these to and from textual zone IDs . - Query the centroid and geometry of a zone in WGS84 or in the DGGRS CRS, facilitating integration and visualization of DGGS data in traditional GIS. - Determine the zone containing a given point at a specified resolution level. - Generate global grids at any refinement levels. - List zone IDs at a particular refinement level within a region of interest, optionally compacted, for targeted spatial analysis or visualization. - Map local sub-zone indices to global zone IDs, enabing support for DGGS-optimized raster and vector data formats such as DGGS-JSON (http://dggs-json.org) and DGGS-JSON-FG. - Identify topological relations such as parent, children and neighboring zones, supporting spatial reasoning for networked geospatial systems.

Tags dggs hexagonal-grid global-grid ogc ogc-api gnosis dggrs isea ivea rtea isea3h isea9r ivea3h ivea9r slice-and-dice polyhedral-globe
License BSDL
State beta

Recent Releases

0.0.116 May 2025 22:20 major feature: Initial release with a Python package published to PyPI: https://pypi.org/project/dggal/ This release supports the IVEA3H and IVEA9R DGGRS based on the Icosahedral Vertex-oriented great circle Equal-Area projection (IVEA) projection (Slice and Dice, van Leeuwen and Strebe, 2006 -- https://www.tandfonline.com/doi/abs/10.1559/152304006779500687), implemented based on the vectorial approach described in https://brsr.github.io/2021/08/31/snyder-equal-area.html . RTEA3H and RTEA9R (rhombic triacontahedron), as well as ISEA3H and ISEA9R, are also supported using the same vectorial method, using a different vertex from which originate the great circles mapping to straight lines.