VgridPandas¶
VgridPandas - Integrates Vgrid DGGS with GeoPandas and Pandas, inspired by H3-Pandas.
VgridPandas supports a wide range of popular DGGSs, including H3, S2, A5, rHEALPix, DGGAL, DGGRID, Open-EAGGR ISEA4T, ISEA3H, EASE-DGGS, and QTM, OLC, Geohash, GEOREF, MGRS, TileCode, Quadkey, Maidenhead, and GARS.
Full VgridPandas DGGS documentation is available at vgridpandas document
To work with Vgrid in Python or CLI, use vgrid package. Full Vgrid DGGS documentation is available at vgrid document
To work with Vgrid DGGS in QGIS, install the Vgrid Plugin.
To visualize DGGS in Maplibre GL JS, try the vgrid-maplibre library.
For an interactive demo, visit the Vgrid Homepage.
Installation¶
pip¶
1 | |
Key Features¶
- Latlon to DGGS: Convert latitude and longitude coordinates into DGGS cell IDs.
- DGGS to geo boundary: Convert DGGS cell IDs into their corresponding geographic boundaries.
- (Multi)Linestring/ (Multi)Polygon to DGGS: Convert (Multi)Linestring/ (Multi)Polygon to DGGS, supporting compact option.
- DGGS binning: Aggregate points into DGGS cells, supporting common statistics (count, min, max, etc.) and category-based groups.
Usage examples¶
Latlon to DGGS¶
1 2 3 4 5 6 7 8 9 10 11 | |
DGGS to geo boundary¶
1 2 3 4 5 6 7 | |
(Multi)Linestring/ (Multi)Polygon to DGGS¶
1 2 3 4 5 6 7 8 9 | |
DGGS Binning¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Further examples¶
For more examples, see the example notebooks.