Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
92decb2
update dggsstats
thangqd Dec 3, 2025
2bedd82
update constants
thangqd Dec 3, 2025
966d1a5
update constants
thangqd Dec 3, 2025
50677c0
add build
thangqd Dec 3, 2025
ccf592a
update build
thangqd Dec 3, 2025
886e2fa
update dggsstats
thangqd Dec 3, 2025
81473fc
Update .gitignore
thangqd Dec 3, 2025
095edba
update dggsstats
thangqd Dec 4, 2025
dee243b
update dggsstats
thangqd Dec 4, 2025
7e09e8f
update dggsinspect
thangqd Dec 4, 2025
d979ce7
update dggsstats
thangqd Dec 4, 2025
7df8161
update dggsstats
thangqd Dec 4, 2025
14d5ed3
update dggsstats
thangqd Dec 4, 2025
0481ffd
update dggsstats
thangqd Dec 4, 2025
4453e7a
Refactor dggalgen and related functions to remove CRS parameter and s…
thangqd Dec 4, 2025
29f9953
update dggsstats
thangqd Dec 5, 2025
5cbbbe4
update dggsstats
thangqd Dec 5, 2025
d65801e
update pyproject
thangqd Dec 5, 2025
0d0b290
Update 08_dggal.ipynb
thangqd Dec 5, 2025
931531a
modify dggal notebook
thangqd Dec 5, 2025
791034e
Update 08_dggal.ipynb
thangqd Dec 5, 2025
b4a95a9
update notebooks
thangqd Dec 5, 2025
c215a80
update 'cvh' metric
thangqd Dec 8, 2025
71bd443
update get_res
thangqd Dec 9, 2025
286a781
update dggsstats
thangqd Dec 10, 2025
0c2cf17
update dggsstats
thangqd Dec 10, 2025
377ae1c
update dggsstats
thangqd Dec 10, 2025
fb83385
add densification parameter in dggridgen
thangqd Dec 11, 2025
7ab8974
update options parameter for dggrid
thangqd Dec 11, 2025
05989af
update default densification = 30 for dggridinspect
thangqd Dec 11, 2025
a368bd0
update
thangqd Jan 15, 2026
3b8010d
update pyproject.toiml
thangqd Jan 16, 2026
602803d
Update README.md
thangqd Jan 16, 2026
fa81065
update README
thangqd Jan 22, 2026
2870070
remove large files
thangqd Jan 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ docs/notebooks/metafile_*
dggrid-linux-x64
dggrid-windows-x64.exe
*.tif
data/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ To work with Vgrid DGGS in QGIS, install the [Vgrid Plugin](https://plugins.qgis

To visualize DGGS in Maplibre GL JS, try the [vgrid-maplibre](https://www.npmjs.com/package/vgrid-maplibre) library.

For an interactive demo, visit the [Vgrid Homepage](https://vgrid.vn).
For an interactive demo, visit the [Vgrid Homepage](https://vgridhome.gishub.vn).

### References:
- [h3-py](https://github.com/uber/h3-py) by [Uber](https://github.com/uber).
Expand Down
243 changes: 0 additions & 243 deletions docs/index.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/notebooks/00_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,7 @@
"from vgrid.generator.polyhedra import fuller_icosahedron\n",
"\n",
"fuller_icosahedron_gdf = fuller_icosahedron()\n",
"fuller_icosahedron_gdf.plot()\n",
"fuller_icosahedron_gdf.to_file(\"fuller_icosahedron.geojson\")"
"fuller_icosahedron_gdf.plot()"
]
},
{
Expand Down
242 changes: 57 additions & 185 deletions docs/notebooks/01_h3.ipynb

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions docs/notebooks/02_s2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14721,7 +14721,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "caf9af1c",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -14759,7 +14759,6 @@
"s2_grid = s2grid(resolution=2, output_format=\"gpd\", fix_antimeridian=\"shift_east\")\n",
"# s2_grid = s2grid(resolution=16,bbox=[106.699007, 10.762811, 106.717674, 10.778649],output_format=\"gpd\")\n",
"# s2_grid.to_crs('proj=moll').plot(edgecolor=\"white\")\n",
"# s2_grid.to_file(\"s2_2_shift_east.geojson\")\n",
"s2_grid.plot(edgecolor=\"white\")"
]
},
Expand Down
327 changes: 229 additions & 98 deletions docs/notebooks/03_a5.ipynb

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions docs/notebooks/04_rhealpix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13487,7 +13487,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": null,
"id": "6220c488",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -13526,7 +13526,6 @@
" resolution=1, output_format=\"gpd\", fix_antimeridian=\"shift_west\"\n",
")\n",
"# rhealpix_grid = rhealpixgrid(resolution=10,bbox=[106.699007, 10.762811, 106.717674, 10.778649],output_format=\"gpd\")\n",
"# rhealpix_grid.to_file(\"rhealpix_1_origin.geojson\")\n",
"rhealpix_grid.plot(edgecolor=\"white\")"
]
},
Expand Down
19,955 changes: 29 additions & 19,926 deletions docs/notebooks/08_dggal.ipynb

Large diffs are not rendered by default.

30 changes: 9 additions & 21 deletions docs/notebooks/09_dggrid.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "f1c6aa0f",
"metadata": {
"id": "f1c6aa0f"
Expand All @@ -74,7 +74,7 @@
"dggrid_instance = DGGRIDv8(\n",
" executable=dggrid_exec,\n",
" working_dir=\".\",\n",
" capture_logs=False,\n",
" capture_logs=True,\n",
" silent=True,\n",
" has_gdal=False,\n",
" tmp_geo_out_legacy=True,\n",
Expand Down Expand Up @@ -104,27 +104,13 @@
"id": "695c7ea5",
"outputId": "0ef14d0e-9746-46f8-e8cf-3c3f02fdcdb3"
},
"outputs": [
{
"data": {
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
},
"text/plain": [
"'09210010001220222111'"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from vgrid.conversion.latlon2dggs import latlon2dggrid\n",
"\n",
"dggs_type = \"ISEA3H\" # choose one from ['CUSTOM', 'SUPERFUND', 'PLANETRISK', 'ISEA3H', 'ISEA4H', 'ISEA4T', 'ISEA4D', 'ISEA43H', 'ISEA7H', 'IGEO7', 'FULLER3H', 'FULLER4H', 'FULLER4T', 'FULLER4D', 'FULLER43H', 'FULLER7H']\n",
"resolution = 18\n",
"address_type = \"Z3_STRING\"\n",
"resolution = 1\n",
"address_type = \"SEQNUM\"\n",
"# \"Q2DI\", # quad number and (i, j) coordinates on that quad\n",
"# \"SEQNUM\", # DGGS index - linear address (1 to size-of-DGG), not supported for parameter input_address_type if dggs_aperture_type is SEQUENCE\n",
"# \"PLANE\", # (x, y) coordinates on unfolded ISEA plane, only supported for parameter output_address_type;\n",
Expand Down Expand Up @@ -524,8 +510,9 @@
"# 'ISEA4D', 'ISEA43H', 'ISEA7H', 'IGEO7', 'FULLER3H', 'FULLER4H', 'FULLER4T', 'FULLER4D', 'FULLER43H', 'FULLER7H']\n",
"resolution = 2\n",
"# bbox = (10.762811, 106.699007, 10.778649, 106.717674) # (min_lat, min_lon, max_lat, max_lon)\n",
"options = {\"densification\": 30}\n",
"dggrid_gen = dggridgen(\n",
" dggrid_instance, dggs_type=dggs_type, resolution=resolution, output_format=\"gpd\"\n",
" dggrid_instance, dggs_type=dggs_type, resolution=resolution, output_format=\"gpd\", options=options\n",
")\n",
"# dggrid_gen\n",
"dggrid_gen.plot(edgecolor=\"white\")"
Expand Down Expand Up @@ -560,7 +547,8 @@
"dggs_type = \"ISEA4T\" # choose one from ['CUSTOM', 'SUPERFUND', 'PLANETRISK', 'ISEA3H', 'ISEA4H', 'ISEA4T',\n",
"# 'ISEA4D', 'ISEA43H', 'ISEA7H', 'IGEO7', 'FULLER3H', 'FULLER4H', 'FULLER4T', 'FULLER4D', 'FULLER43H', 'FULLER7H']\n",
"resolution = 3\n",
"dggrid_inspect = dggridinspect(dggrid_instance, dggs_type, resolution)\n",
"options = {\"densification\": 30}\n",
"dggrid_inspect = dggridinspect(dggrid_instance, dggs_type, resolution, options= options)\n",
"dggrid_inspect = dggrid_inspect[dggrid_inspect[\"crossed\"] == False]\n",
"\n",
"dggrid_inspect.head()"
Expand Down
5 changes: 2 additions & 3 deletions docs/notebooks/10_qtm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "2afe6aaf",
"metadata": {},
"outputs": [
Expand All @@ -2659,8 +2659,7 @@
"\n",
"qtm_grid = qtmgrid(resolution=3, output_format=\"gpd\")\n",
"# qtm_grid = qtmgrid(resolution=18,bbox=[106.699007, 10.762811, 106.717674, 10.778649],output_format=\"gpd\")\n",
"qtm_grid.plot(edgecolor=\"white\")\n",
"qtm_grid.to_file(\"qtm.geojson\")"
"qtm_grid.plot(edgecolor=\"white\")"
]
},
{
Expand Down
Loading