vgridpandas 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. vgridpandas-1.0.0/.codespellrc +2 -0
  2. vgridpandas-1.0.0/.coveragerc +10 -0
  3. vgridpandas-1.0.0/.gitattributes +1 -0
  4. vgridpandas-1.0.0/.gitignore +142 -0
  5. vgridpandas-1.0.0/.pre-commit-config.yaml +13 -0
  6. vgridpandas-1.0.0/LICENSE +21 -0
  7. vgridpandas-1.0.0/MANIFEST.in +5 -0
  8. vgridpandas-1.0.0/Makefile +14 -0
  9. vgridpandas-1.0.0/PKG-INFO +157 -0
  10. vgridpandas-1.0.0/README.md +116 -0
  11. vgridpandas-1.0.0/build-conda.sh +36 -0
  12. vgridpandas-1.0.0/docs/assets/favicon.ico +0 -0
  13. vgridpandas-1.0.0/docs/assets/logo.png +0 -0
  14. vgridpandas-1.0.0/docs/assets/vgridpandas.svg +4 -0
  15. vgridpandas-1.0.0/docs/changelog_update.md +6 -0
  16. vgridpandas-1.0.0/docs/changelog_update.py +43 -0
  17. vgridpandas-1.0.0/docs/contributing.md +241 -0
  18. vgridpandas-1.0.0/docs/data/README.md +7 -0
  19. vgridpandas-1.0.0/docs/data/h3.csv +89 -0
  20. vgridpandas-1.0.0/docs/data/point.csv +13 -0
  21. vgridpandas-1.0.0/docs/data/point.qmd +27 -0
  22. vgridpandas-1.0.0/docs/data/polygon.geojson +11 -0
  23. vgridpandas-1.0.0/docs/data/polygon.qmd +27 -0
  24. vgridpandas-1.0.0/docs/data/us_cities.cpg +1 -0
  25. vgridpandas-1.0.0/docs/data/us_cities.csv +110 -0
  26. vgridpandas-1.0.0/docs/data/us_cities.geojson +116 -0
  27. vgridpandas-1.0.0/docs/data/us_states.json +52 -0
  28. vgridpandas-1.0.0/docs/data/world_cities.csv +1250 -0
  29. vgridpandas-1.0.0/docs/data/world_cities.geojson +1256 -0
  30. vgridpandas-1.0.0/docs/dggsconversion.md +3 -0
  31. vgridpandas-1.0.0/docs/faq.md +59 -0
  32. vgridpandas-1.0.0/docs/get-started.md +22 -0
  33. vgridpandas-1.0.0/docs/index.md +58 -0
  34. vgridpandas-1.0.0/docs/installation.md +62 -0
  35. vgridpandas-1.0.0/docs/notebooks/00_intro.ipynb +231 -0
  36. vgridpandas-1.0.0/docs/notebooks/01_h3.ipynb +231 -0
  37. vgridpandas-1.0.0/docs/notebooks/02_s2.ipynb +226 -0
  38. vgridpandas-1.0.0/docs/notebooks/03_a5.ipynb +226 -0
  39. vgridpandas-1.0.0/docs/notebooks/04_rhealpix.ipynb +171 -0
  40. vgridpandas-1.0.0/docs/notebooks/05_isea4t.ipynb +165 -0
  41. vgridpandas-1.0.0/docs/notebooks/06_ease.ipynb +157 -0
  42. vgridpandas-1.0.0/docs/notebooks/07_qtm.ipynb +165 -0
  43. vgridpandas-1.0.0/docs/notebooks/08_olc.ipynb +157 -0
  44. vgridpandas-1.0.0/docs/overrides/main.html +11 -0
  45. vgridpandas-1.0.0/docs/search_bk.md +19 -0
  46. vgridpandas-1.0.0/docs/search_docs.html +13 -0
  47. vgridpandas-1.0.0/docs/tutorials.md +118 -0
  48. vgridpandas-1.0.0/docs/usage.md +15 -0
  49. vgridpandas-1.0.0/environment-dev.yml +8 -0
  50. vgridpandas-1.0.0/environment.yml +10 -0
  51. vgridpandas-1.0.0/meta-backup.yaml +49 -0
  52. vgridpandas-1.0.0/mkdocs.yml +109 -0
  53. vgridpandas-1.0.0/pyproject.toml +54 -0
  54. vgridpandas-1.0.0/requirements_docs.txt +25 -0
  55. vgridpandas-1.0.0/run-tests.sh +4 -0
  56. vgridpandas-1.0.0/setup.cfg +4 -0
  57. vgridpandas-1.0.0/tests/h3/__init__.py +0 -0
  58. vgridpandas-1.0.0/tests/h3/test_h3pandas.py +744 -0
  59. vgridpandas-1.0.0/tests/h3/util/__init__.py +0 -0
  60. vgridpandas-1.0.0/tests/h3/util/test_decorator.py +31 -0
  61. vgridpandas-1.0.0/tests/h3/util/test_shapely.py +78 -0
  62. vgridpandas-1.0.0/vgridpandas/__init__.py +7 -0
  63. vgridpandas-1.0.0/vgridpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  64. vgridpandas-1.0.0/vgridpandas/easepandas/__init__.py +1 -0
  65. vgridpandas-1.0.0/vgridpandas/easepandas/__pycache__/__init__.cpython-312.pyc +0 -0
  66. vgridpandas-1.0.0/vgridpandas/easepandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  67. vgridpandas-1.0.0/vgridpandas/easepandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  68. vgridpandas-1.0.0/vgridpandas/easepandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  69. vgridpandas-1.0.0/vgridpandas/easepandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  70. vgridpandas-1.0.0/vgridpandas/easepandas/easepandas.py +171 -0
  71. vgridpandas-1.0.0/vgridpandas/easepandas/util/__init__.py +0 -0
  72. vgridpandas-1.0.0/vgridpandas/easepandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  73. vgridpandas-1.0.0/vgridpandas/easepandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  74. vgridpandas-1.0.0/vgridpandas/easepandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  75. vgridpandas-1.0.0/vgridpandas/easepandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  76. vgridpandas-1.0.0/vgridpandas/easepandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  77. vgridpandas-1.0.0/vgridpandas/easepandas/util/const.py +2 -0
  78. vgridpandas-1.0.0/vgridpandas/easepandas/util/decorator.py +97 -0
  79. vgridpandas-1.0.0/vgridpandas/easepandas/util/functools.py +8 -0
  80. vgridpandas-1.0.0/vgridpandas/easepandas/util/geometry.py +104 -0
  81. vgridpandas-1.0.0/vgridpandas/garspandas/__init__.py +1 -0
  82. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/__init__.cpython-312.pyc +0 -0
  83. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  84. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/garspandas.cpython-312.pyc +0 -0
  85. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  86. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/georefpandas.cpython-312.pyc +0 -0
  87. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  88. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/maidenheadpandas.cpython-312.pyc +0 -0
  89. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/mgrspandas.cpython-312.pyc +0 -0
  90. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  91. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  92. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/quadkeypandas.cpython-312.pyc +0 -0
  93. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  94. vgridpandas-1.0.0/vgridpandas/garspandas/__pycache__/tilecodepandas.cpython-312.pyc +0 -0
  95. vgridpandas-1.0.0/vgridpandas/garspandas/garspandas.py +171 -0
  96. vgridpandas-1.0.0/vgridpandas/garspandas/util/__init__.py +0 -0
  97. vgridpandas-1.0.0/vgridpandas/garspandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  98. vgridpandas-1.0.0/vgridpandas/garspandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  99. vgridpandas-1.0.0/vgridpandas/garspandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  100. vgridpandas-1.0.0/vgridpandas/garspandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  101. vgridpandas-1.0.0/vgridpandas/garspandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  102. vgridpandas-1.0.0/vgridpandas/garspandas/util/const.py +2 -0
  103. vgridpandas-1.0.0/vgridpandas/garspandas/util/decorator.py +97 -0
  104. vgridpandas-1.0.0/vgridpandas/garspandas/util/functools.py +8 -0
  105. vgridpandas-1.0.0/vgridpandas/garspandas/util/geometry.py +84 -0
  106. vgridpandas-1.0.0/vgridpandas/geohashpandas/__init__.py +1 -0
  107. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  108. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  109. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  110. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  111. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  112. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  113. vgridpandas-1.0.0/vgridpandas/geohashpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  114. vgridpandas-1.0.0/vgridpandas/geohashpandas/geohashpandas.py +171 -0
  115. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/__init__.py +0 -0
  116. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  117. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  118. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  119. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  120. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  121. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/const.py +2 -0
  122. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/decorator.py +97 -0
  123. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/functools.py +8 -0
  124. vgridpandas-1.0.0/vgridpandas/geohashpandas/util/geometry.py +96 -0
  125. vgridpandas-1.0.0/vgridpandas/georefpandas/__init__.py +1 -0
  126. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  127. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  128. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  129. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/georefpandas.cpython-312.pyc +0 -0
  130. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  131. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/mgrspandas.cpython-312.pyc +0 -0
  132. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  133. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  134. vgridpandas-1.0.0/vgridpandas/georefpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  135. vgridpandas-1.0.0/vgridpandas/georefpandas/georefpandas.py +171 -0
  136. vgridpandas-1.0.0/vgridpandas/georefpandas/util/__init__.py +0 -0
  137. vgridpandas-1.0.0/vgridpandas/georefpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  138. vgridpandas-1.0.0/vgridpandas/georefpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  139. vgridpandas-1.0.0/vgridpandas/georefpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  140. vgridpandas-1.0.0/vgridpandas/georefpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  141. vgridpandas-1.0.0/vgridpandas/georefpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  142. vgridpandas-1.0.0/vgridpandas/georefpandas/util/const.py +2 -0
  143. vgridpandas-1.0.0/vgridpandas/georefpandas/util/decorator.py +97 -0
  144. vgridpandas-1.0.0/vgridpandas/georefpandas/util/functools.py +8 -0
  145. vgridpandas-1.0.0/vgridpandas/georefpandas/util/geometry.py +95 -0
  146. vgridpandas-1.0.0/vgridpandas/h3pandas/__init__.py +1 -0
  147. vgridpandas-1.0.0/vgridpandas/h3pandas/__pycache__/__init__.cpython-312.pyc +0 -0
  148. vgridpandas-1.0.0/vgridpandas/h3pandas/__pycache__/const.cpython-312.pyc +0 -0
  149. vgridpandas-1.0.0/vgridpandas/h3pandas/__pycache__/h3pandas.cpython-312.pyc +0 -0
  150. vgridpandas-1.0.0/vgridpandas/h3pandas/h3pandas.py +891 -0
  151. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__init__.py +0 -0
  152. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  153. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__pycache__/const.cpython-312.pyc +0 -0
  154. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  155. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  156. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  157. vgridpandas-1.0.0/vgridpandas/h3pandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  158. vgridpandas-1.0.0/vgridpandas/h3pandas/util/const.py +2 -0
  159. vgridpandas-1.0.0/vgridpandas/h3pandas/util/decorator.py +97 -0
  160. vgridpandas-1.0.0/vgridpandas/h3pandas/util/functools.py +8 -0
  161. vgridpandas-1.0.0/vgridpandas/h3pandas/util/geometry.py +126 -0
  162. vgridpandas-1.0.0/vgridpandas/isea4tpandas/__init__.py +1 -0
  163. vgridpandas-1.0.0/vgridpandas/isea4tpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  164. vgridpandas-1.0.0/vgridpandas/isea4tpandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  165. vgridpandas-1.0.0/vgridpandas/isea4tpandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  166. vgridpandas-1.0.0/vgridpandas/isea4tpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  167. vgridpandas-1.0.0/vgridpandas/isea4tpandas/isea4tpandas.py +171 -0
  168. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/__init__.py +0 -0
  169. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  170. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  171. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  172. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  173. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  174. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/const.py +2 -0
  175. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/decorator.py +97 -0
  176. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/functools.py +8 -0
  177. vgridpandas-1.0.0/vgridpandas/isea4tpandas/util/geometry.py +107 -0
  178. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__init__.py +1 -0
  179. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  180. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  181. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  182. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/georefpandas.cpython-312.pyc +0 -0
  183. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  184. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/maidenheadpandas.cpython-312.pyc +0 -0
  185. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/mgrspandas.cpython-312.pyc +0 -0
  186. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  187. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  188. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/quadkeypandas.cpython-312.pyc +0 -0
  189. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  190. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/__pycache__/tilecodepandas.cpython-312.pyc +0 -0
  191. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/maidenheadpandas.py +171 -0
  192. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/__init__.py +0 -0
  193. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  194. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  195. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  196. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  197. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  198. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/const.py +2 -0
  199. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/decorator.py +97 -0
  200. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/functools.py +8 -0
  201. vgridpandas-1.0.0/vgridpandas/maidenheadpandas/util/geometry.py +91 -0
  202. vgridpandas-1.0.0/vgridpandas/mgrspandas/__init__.py +1 -0
  203. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/__init__.cpython-312.pyc +0 -0
  204. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  205. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  206. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  207. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/mgrspandas.cpython-312.pyc +0 -0
  208. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  209. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  210. vgridpandas-1.0.0/vgridpandas/mgrspandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  211. vgridpandas-1.0.0/vgridpandas/mgrspandas/mgrspandas.py +171 -0
  212. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/__init__.py +0 -0
  213. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  214. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  215. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  216. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  217. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  218. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/const.py +2 -0
  219. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/decorator.py +97 -0
  220. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/functools.py +8 -0
  221. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/geometry.py +115 -0
  222. vgridpandas-1.0.0/vgridpandas/mgrspandas/util/gzd.geojson +1208 -0
  223. vgridpandas-1.0.0/vgridpandas/olcpandas/__init__.py +1 -0
  224. vgridpandas-1.0.0/vgridpandas/olcpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  225. vgridpandas-1.0.0/vgridpandas/olcpandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  226. vgridpandas-1.0.0/vgridpandas/olcpandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  227. vgridpandas-1.0.0/vgridpandas/olcpandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  228. vgridpandas-1.0.0/vgridpandas/olcpandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  229. vgridpandas-1.0.0/vgridpandas/olcpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  230. vgridpandas-1.0.0/vgridpandas/olcpandas/olcpandas.py +171 -0
  231. vgridpandas-1.0.0/vgridpandas/olcpandas/util/__init__.py +0 -0
  232. vgridpandas-1.0.0/vgridpandas/olcpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  233. vgridpandas-1.0.0/vgridpandas/olcpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  234. vgridpandas-1.0.0/vgridpandas/olcpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  235. vgridpandas-1.0.0/vgridpandas/olcpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  236. vgridpandas-1.0.0/vgridpandas/olcpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  237. vgridpandas-1.0.0/vgridpandas/olcpandas/util/const.py +2 -0
  238. vgridpandas-1.0.0/vgridpandas/olcpandas/util/decorator.py +97 -0
  239. vgridpandas-1.0.0/vgridpandas/olcpandas/util/functools.py +8 -0
  240. vgridpandas-1.0.0/vgridpandas/olcpandas/util/geometry.py +98 -0
  241. vgridpandas-1.0.0/vgridpandas/qtmpandas/__init__.py +1 -0
  242. vgridpandas-1.0.0/vgridpandas/qtmpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  243. vgridpandas-1.0.0/vgridpandas/qtmpandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  244. vgridpandas-1.0.0/vgridpandas/qtmpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  245. vgridpandas-1.0.0/vgridpandas/qtmpandas/qtmpandas.py +171 -0
  246. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/__init__.py +0 -0
  247. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  248. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  249. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  250. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  251. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  252. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/const.py +2 -0
  253. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/decorator.py +97 -0
  254. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/functools.py +8 -0
  255. vgridpandas-1.0.0/vgridpandas/qtmpandas/util/geometry.py +86 -0
  256. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__init__.py +1 -0
  257. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/__init__.cpython-312.pyc +0 -0
  258. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  259. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  260. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/georefpandas.cpython-312.pyc +0 -0
  261. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  262. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/mgrspandas.cpython-312.pyc +0 -0
  263. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  264. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  265. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/quadkeypandas.cpython-312.pyc +0 -0
  266. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  267. vgridpandas-1.0.0/vgridpandas/quadkeypandas/__pycache__/tilecodepandas.cpython-312.pyc +0 -0
  268. vgridpandas-1.0.0/vgridpandas/quadkeypandas/quadkeypandas.py +171 -0
  269. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/__init__.py +0 -0
  270. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  271. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  272. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  273. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  274. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  275. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/const.py +2 -0
  276. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/decorator.py +97 -0
  277. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/functools.py +8 -0
  278. vgridpandas-1.0.0/vgridpandas/quadkeypandas/util/geometry.py +100 -0
  279. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/__init__.py +1 -0
  280. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/__pycache__/__init__.cpython-312.pyc +0 -0
  281. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  282. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/rhealpixpandas.py +172 -0
  283. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/__init__.py +0 -0
  284. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  285. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  286. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  287. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  288. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  289. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/const.py +2 -0
  290. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/decorator.py +97 -0
  291. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/functools.py +8 -0
  292. vgridpandas-1.0.0/vgridpandas/rhealpixpandas/util/geometry.py +99 -0
  293. vgridpandas-1.0.0/vgridpandas/s2pandas/__init__.py +1 -0
  294. vgridpandas-1.0.0/vgridpandas/s2pandas/__pycache__/__init__.cpython-312.pyc +0 -0
  295. vgridpandas-1.0.0/vgridpandas/s2pandas/__pycache__/s2pandas.cpython-312.pyc +0 -0
  296. vgridpandas-1.0.0/vgridpandas/s2pandas/s2pandas.py +893 -0
  297. vgridpandas-1.0.0/vgridpandas/s2pandas/util/__init__.py +0 -0
  298. vgridpandas-1.0.0/vgridpandas/s2pandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  299. vgridpandas-1.0.0/vgridpandas/s2pandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  300. vgridpandas-1.0.0/vgridpandas/s2pandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  301. vgridpandas-1.0.0/vgridpandas/s2pandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  302. vgridpandas-1.0.0/vgridpandas/s2pandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  303. vgridpandas-1.0.0/vgridpandas/s2pandas/util/const.py +2 -0
  304. vgridpandas-1.0.0/vgridpandas/s2pandas/util/decorator.py +97 -0
  305. vgridpandas-1.0.0/vgridpandas/s2pandas/util/functools.py +8 -0
  306. vgridpandas-1.0.0/vgridpandas/s2pandas/util/geometry.py +98 -0
  307. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__init__.py +1 -0
  308. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/__init__.cpython-312.pyc +0 -0
  309. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/easepandas.cpython-312.pyc +0 -0
  310. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/geohashpandas.cpython-312.pyc +0 -0
  311. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/georefpandas.cpython-312.pyc +0 -0
  312. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/isea4tpandas.cpython-312.pyc +0 -0
  313. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/mgrspandas.cpython-312.pyc +0 -0
  314. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/olcpandas.cpython-312.pyc +0 -0
  315. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/qtmpandas.cpython-312.pyc +0 -0
  316. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/rhealpixpandas.cpython-312.pyc +0 -0
  317. vgridpandas-1.0.0/vgridpandas/tilecodepandas/__pycache__/tilecodepandas.cpython-312.pyc +0 -0
  318. vgridpandas-1.0.0/vgridpandas/tilecodepandas/tilecodepandas.py +171 -0
  319. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/__init__.py +0 -0
  320. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/__pycache__/__init__.cpython-312.pyc +0 -0
  321. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/__pycache__/decorator.cpython-312.pyc +0 -0
  322. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/__pycache__/functools.cpython-312.pyc +0 -0
  323. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/__pycache__/geometry.cpython-312.pyc +0 -0
  324. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/__pycache__/shapely.cpython-312.pyc +0 -0
  325. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/const.py +2 -0
  326. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/decorator.py +97 -0
  327. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/functools.py +8 -0
  328. vgridpandas-1.0.0/vgridpandas/tilecodepandas/util/geometry.py +101 -0
  329. vgridpandas-1.0.0/vgridpandas.egg-info/PKG-INFO +157 -0
  330. vgridpandas-1.0.0/vgridpandas.egg-info/SOURCES.txt +332 -0
  331. vgridpandas-1.0.0/vgridpandas.egg-info/dependency_links.txt +1 -0
  332. vgridpandas-1.0.0/vgridpandas.egg-info/not-zip-safe +1 -0
  333. vgridpandas-1.0.0/vgridpandas.egg-info/requires.txt +8 -0
  334. vgridpandas-1.0.0/vgridpandas.egg-info/top_level.txt +1 -0
@@ -0,0 +1,2 @@
1
+ [codespell]
2
+ skip = *.ipynb
@@ -0,0 +1,10 @@
1
+ [run]
2
+ branch = True
3
+ source = vgridpandas
4
+ omit =
5
+ setup.py
6
+ vgridpandas/_version.py
7
+
8
+ [report]
9
+
10
+ [html]
@@ -0,0 +1 @@
1
+ vgridpandas/_version.py export-subst
@@ -0,0 +1,142 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/pycharm,python
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=pycharm,python
3
+
4
+ .idea/
5
+
6
+ ### Python ###
7
+ # Byte-compiled / optimized / DLL files
8
+ __pycache__/
9
+ *.py[cod]
10
+ *$py.class
11
+
12
+ # C extensions
13
+ *.so
14
+
15
+ # Distribution / packaging
16
+ .Python
17
+ build/
18
+ develop-eggs/
19
+ dist/
20
+ downloads/
21
+ eggs/
22
+ .eggs/
23
+ lib/
24
+ lib64/
25
+ parts/
26
+ sdist/
27
+ var/
28
+ wheels/
29
+ pip-wheel-metadata/
30
+ share/python-wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .nox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ *.py,cover
57
+ .hypothesis/
58
+ .pytest_cache/
59
+ pytestdebug.log
60
+
61
+ # Translations
62
+ *.mo
63
+ *.pot
64
+
65
+ # Django stuff:
66
+ *.log
67
+ local_settings.py
68
+ db.sqlite3
69
+ db.sqlite3-journal
70
+
71
+ # Flask stuff:
72
+ instance/
73
+ .webassets-cache
74
+
75
+ # Scrapy stuff:
76
+ .scrapy
77
+
78
+ # Sphinx documentation
79
+ docs/_build/
80
+ doc/_build/
81
+
82
+ # PyBuilder
83
+ target/
84
+
85
+ # Jupyter Notebook
86
+ .ipynb_checkpoints
87
+
88
+ # IPython
89
+ profile_default/
90
+ ipython_config.py
91
+
92
+ # pyenv
93
+ .python-version
94
+
95
+ # pipenv
96
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99
+ # install all needed dependencies.
100
+ #Pipfile.lock
101
+
102
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
103
+ __pypackages__/
104
+
105
+ # Environments
106
+ .env
107
+ .venv
108
+ env/
109
+ venv/
110
+ ENV/
111
+ env.bak/
112
+ venv.bak/
113
+ pythonenv*
114
+
115
+ # Spyder project settings
116
+ .spyderproject
117
+ .spyproject
118
+
119
+ # Rope project settings
120
+ .ropeproject
121
+
122
+ # mkdocs documentation
123
+ /site
124
+
125
+ # mypy
126
+ .mypy_cache/
127
+ .dmypy.json
128
+ dmypy.json
129
+
130
+ # Pyre type checker
131
+ .pyre/
132
+
133
+ # pytype static type analyzer
134
+ .pytype/
135
+
136
+ # profiling data
137
+ .prof
138
+
139
+ # End of https://www.toptal.com/developers/gitignore/api/pycharm,python
140
+
141
+ private
142
+ .vscode
@@ -0,0 +1,13 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.9.9
4
+ hooks:
5
+ - id: ruff
6
+ - id: ruff-format
7
+
8
+ - repo: https://github.com/codespell-project/codespell
9
+ rev: v2.4.1
10
+ hooks:
11
+ - id: codespell
12
+ args: ['--config', '.codespellrc']
13
+ language_version: python3
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Thang Quach
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,5 @@
1
+ include README.md
2
+ include LICENSE
3
+ graft vgridpandas
4
+ recursive-include * *.py[co]
5
+ recursive-include vgridpandas/mgrspandas/util *.geojson
@@ -0,0 +1,14 @@
1
+ ENV_NAME := vgridpandas
2
+ ENVIRONMENT := environment.yml
3
+ ENVIRONMENT_DEV := environment-dev.yml
4
+
5
+ install: _install _update_dev _install_package_editable
6
+
7
+ _install:
8
+ mamba env create -n $(ENV_NAME) -f $(ENVIRONMENT)
9
+
10
+ _update_dev:
11
+ mamba env update -n $(ENV_NAME) -f $(ENVIRONMENT_DEV)
12
+
13
+ _install_package_editable:
14
+ mamba run -n $(ENV_NAME) python -m pip install -e .
@@ -0,0 +1,157 @@
1
+ Metadata-Version: 2.4
2
+ Name: vgridpandas
3
+ Version: 1.0.0
4
+ Summary: Integration of DGGS and GeoPandas
5
+ Author-email: Thang Quach <quachdongthang@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Thang Quach
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/opengeoshub/vgridpandas
29
+ Project-URL: Download, https://github.com/opengeoshub/vgridpandas/releases
30
+ Requires-Python: >=3.10
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: vgrid
34
+ Requires-Dist: typing-extensions
35
+ Requires-Dist: matplotlib
36
+ Provides-Extra: test
37
+ Requires-Dist: pytest; extra == "test"
38
+ Requires-Dist: pytest-cov; extra == "test"
39
+ Requires-Dist: ruff; extra == "test"
40
+ Dynamic: license-file
41
+
42
+ # VgridPandas
43
+ Integrates [vgrid](https://github.com/opengeoshub/vgrid) with [GeoPandas](https://github.com/geopandas/geopandas) and [Pandas](https://github.com/pandas-dev/pandas), inspired by [H3-Pandas](https://github.com/DahnJ/H3-Pandas/)
44
+
45
+ <div align="center">
46
+ <img src="docs/assets/vgridpandas.svg" alt="vgridpandas logo">
47
+ </div>
48
+
49
+ [![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/opengeoshub/vgridpandas/blob/master/notebook/00-intro.ipynb)
50
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/opengeoshub/vgridpandas/HEAD?filepath=%2Fnotebook%2F00-intro.ipynb)
51
+ [![image](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
52
+ [![Documentation Status](https://readthedocs.org/projects/pip/badge/?version=stable)](https://pip.pypa.io/en/stable/?badge=stable)
53
+
54
+
55
+
56
+ ---
57
+
58
+ <h3 align="center">
59
+ ⬢ <a href="https://mybinder.org/v2/gh/opengeoshub/vgridpandas/HEAD?filepath=%2Fnotebook%2F00-intro.ipynb">Try it out</a> ⬢
60
+ </h3>
61
+
62
+
63
+ ## Installation
64
+ ### pip
65
+ [![image](https://img.shields.io/pypi/v/vgridpandas.svg)](https://pypi.python.org/pypi/vgridpandas)
66
+ ```bash
67
+ pip install vgridpandas
68
+ ```
69
+
70
+ ### conda
71
+ [![conda-version](https://anaconda.org/conda-forge/vgridpandas/badges/version.svg)]()
72
+ [![Anaconda-Server Badge](https://anaconda.org/conda-forge/vgridpandas/badges/downloads.svg)](https://anaconda.org/conda-forge/vgridpandas)
73
+ ```bash
74
+ conda install -c conda-forge vgridpandas
75
+ ```
76
+
77
+ ## Usage examples
78
+
79
+ ### H3 API
80
+ `vgiridpandas.h3pandas` automatically applies H3 functions to both Pandas Dataframes and GeoPandas Geodataframes
81
+
82
+ ```python
83
+ # Prepare data
84
+ >>> import pandas as pd
85
+ >>> from vgridpandas import h3pandas
86
+ >>> df = pd.DataFrame({'lat': [50, 51], 'lng': [14, 15]})
87
+ ```
88
+
89
+ ```python
90
+ >>> resolution = 10
91
+ >>> df = df.h3.latlon2h3(resolution)
92
+ >>> df
93
+
94
+ | h3_10 | lat | lng |
95
+ |:----------------|------:|------:|
96
+ | 8a1e30973807fff | 50 | 14 |
97
+ | 8a1e2659c2c7fff | 51 | 15 |
98
+
99
+ >>> df = df.h3.h3_to_geo_boundary()
100
+ >>> df
101
+
102
+ | h3_10 | lat | lng | geometry |
103
+ |:----------------|------:|------:|:----------------|
104
+ | 8a1e30973807fff | 50 | 14 | POLYGON ((...)) |
105
+ | 8a1e2659c2c7fff | 51 | 15 | POLYGON ((...)) |
106
+ ```
107
+
108
+ ### VgridPandas Extended API
109
+ `h3pandas` also provides some extended functionality out-of-the-box,
110
+ often simplifying common workflows into a single command.
111
+
112
+ ```python
113
+ # Set up data
114
+ >>> import numpy as np
115
+ >>> import pandas as pd
116
+ >>> np.random.seed(1729)
117
+ >>> df = pd.DataFrame({
118
+ >>> 'lat': np.random.uniform(50, 51, 100),
119
+ >>> 'lng': np.random.uniform(14, 15, 100),
120
+ >>> 'value': np.random.poisson(100, 100)})
121
+ >>> })
122
+ ```
123
+
124
+ ```python
125
+ # Aggregate values by their location and sum
126
+ >>> df = df.h3.geo_to_h3_aggregate(3)
127
+ >>> df
128
+
129
+ | h3_03 | value | geometry |
130
+ |:----------------|--------:|:----------------|
131
+ | 831e30fffffffff | 102 | POLYGON ((...)) |
132
+ | 831e34fffffffff | 189 | POLYGON ((...)) |
133
+ | 831e35fffffffff | 8744 | POLYGON ((...)) |
134
+ | 831f1bfffffffff | 1040 | POLYGON ((...)) |
135
+
136
+ # Aggregate to a lower H3 resolution
137
+ >>> df.h3.h3_to_parent_aggregate(2)
138
+
139
+ | h3_02 | value | geometry |
140
+ |:----------------|--------:|:----------------|
141
+ | 821e37fffffffff | 9035 | POLYGON ((...)) |
142
+ | 821f1ffffffffff | 1040 | POLYGON ((...)) |
143
+ ```
144
+
145
+
146
+ ### Further examples
147
+ For more examples, see the
148
+ [example notebooks](https://nbviewer.jupyter.org/github/opengeoshub/vgridpandas/tree/master/docs/notebooks/).
149
+
150
+ ## API
151
+ For a full API documentation and more usage examples, see the
152
+ [documentation](https://vgridpandas.gishub.vn).
153
+
154
+
155
+ **Any suggestions and contributions are very welcome**!
156
+
157
+ See [issues](https://github.com/opengeoshub/vgridpandas/issues) for more.
@@ -0,0 +1,116 @@
1
+ # VgridPandas
2
+ Integrates [vgrid](https://github.com/opengeoshub/vgrid) with [GeoPandas](https://github.com/geopandas/geopandas) and [Pandas](https://github.com/pandas-dev/pandas), inspired by [H3-Pandas](https://github.com/DahnJ/H3-Pandas/)
3
+
4
+ <div align="center">
5
+ <img src="docs/assets/vgridpandas.svg" alt="vgridpandas logo">
6
+ </div>
7
+
8
+ [![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/opengeoshub/vgridpandas/blob/master/notebook/00-intro.ipynb)
9
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/opengeoshub/vgridpandas/HEAD?filepath=%2Fnotebook%2F00-intro.ipynb)
10
+ [![image](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
11
+ [![Documentation Status](https://readthedocs.org/projects/pip/badge/?version=stable)](https://pip.pypa.io/en/stable/?badge=stable)
12
+
13
+
14
+
15
+ ---
16
+
17
+ <h3 align="center">
18
+ ⬢ <a href="https://mybinder.org/v2/gh/opengeoshub/vgridpandas/HEAD?filepath=%2Fnotebook%2F00-intro.ipynb">Try it out</a> ⬢
19
+ </h3>
20
+
21
+
22
+ ## Installation
23
+ ### pip
24
+ [![image](https://img.shields.io/pypi/v/vgridpandas.svg)](https://pypi.python.org/pypi/vgridpandas)
25
+ ```bash
26
+ pip install vgridpandas
27
+ ```
28
+
29
+ ### conda
30
+ [![conda-version](https://anaconda.org/conda-forge/vgridpandas/badges/version.svg)]()
31
+ [![Anaconda-Server Badge](https://anaconda.org/conda-forge/vgridpandas/badges/downloads.svg)](https://anaconda.org/conda-forge/vgridpandas)
32
+ ```bash
33
+ conda install -c conda-forge vgridpandas
34
+ ```
35
+
36
+ ## Usage examples
37
+
38
+ ### H3 API
39
+ `vgiridpandas.h3pandas` automatically applies H3 functions to both Pandas Dataframes and GeoPandas Geodataframes
40
+
41
+ ```python
42
+ # Prepare data
43
+ >>> import pandas as pd
44
+ >>> from vgridpandas import h3pandas
45
+ >>> df = pd.DataFrame({'lat': [50, 51], 'lng': [14, 15]})
46
+ ```
47
+
48
+ ```python
49
+ >>> resolution = 10
50
+ >>> df = df.h3.latlon2h3(resolution)
51
+ >>> df
52
+
53
+ | h3_10 | lat | lng |
54
+ |:----------------|------:|------:|
55
+ | 8a1e30973807fff | 50 | 14 |
56
+ | 8a1e2659c2c7fff | 51 | 15 |
57
+
58
+ >>> df = df.h3.h3_to_geo_boundary()
59
+ >>> df
60
+
61
+ | h3_10 | lat | lng | geometry |
62
+ |:----------------|------:|------:|:----------------|
63
+ | 8a1e30973807fff | 50 | 14 | POLYGON ((...)) |
64
+ | 8a1e2659c2c7fff | 51 | 15 | POLYGON ((...)) |
65
+ ```
66
+
67
+ ### VgridPandas Extended API
68
+ `h3pandas` also provides some extended functionality out-of-the-box,
69
+ often simplifying common workflows into a single command.
70
+
71
+ ```python
72
+ # Set up data
73
+ >>> import numpy as np
74
+ >>> import pandas as pd
75
+ >>> np.random.seed(1729)
76
+ >>> df = pd.DataFrame({
77
+ >>> 'lat': np.random.uniform(50, 51, 100),
78
+ >>> 'lng': np.random.uniform(14, 15, 100),
79
+ >>> 'value': np.random.poisson(100, 100)})
80
+ >>> })
81
+ ```
82
+
83
+ ```python
84
+ # Aggregate values by their location and sum
85
+ >>> df = df.h3.geo_to_h3_aggregate(3)
86
+ >>> df
87
+
88
+ | h3_03 | value | geometry |
89
+ |:----------------|--------:|:----------------|
90
+ | 831e30fffffffff | 102 | POLYGON ((...)) |
91
+ | 831e34fffffffff | 189 | POLYGON ((...)) |
92
+ | 831e35fffffffff | 8744 | POLYGON ((...)) |
93
+ | 831f1bfffffffff | 1040 | POLYGON ((...)) |
94
+
95
+ # Aggregate to a lower H3 resolution
96
+ >>> df.h3.h3_to_parent_aggregate(2)
97
+
98
+ | h3_02 | value | geometry |
99
+ |:----------------|--------:|:----------------|
100
+ | 821e37fffffffff | 9035 | POLYGON ((...)) |
101
+ | 821f1ffffffffff | 1040 | POLYGON ((...)) |
102
+ ```
103
+
104
+
105
+ ### Further examples
106
+ For more examples, see the
107
+ [example notebooks](https://nbviewer.jupyter.org/github/opengeoshub/vgridpandas/tree/master/docs/notebooks/).
108
+
109
+ ## API
110
+ For a full API documentation and more usage examples, see the
111
+ [documentation](https://vgridpandas.gishub.vn).
112
+
113
+
114
+ **Any suggestions and contributions are very welcome**!
115
+
116
+ See [issues](https://github.com/opengeoshub/vgridpandas/issues) for more.
@@ -0,0 +1,36 @@
1
+ ##!/bin/bash -e
2
+ # Based on script from Qiusheng Wu
3
+
4
+ # Variables
5
+ pkg='vgridpandas'
6
+ array=(3.9 3.10 3.11 3.12)
7
+
8
+ # Constants
9
+ MINICONDA=$HOME/miniconda3
10
+
11
+ #echo "Building conda package ..."
12
+ cd $HOME
13
+ grayskull pypi $pkg
14
+
15
+ # update meta.yaml
16
+ echo "Updating meta.yaml ..."
17
+ sed -i 's/^\(\s\+- h3\)$/\1-py/g' $pkg/meta.yaml
18
+ sed -i 's/^\(\s\+-\) your-github-id-here/\1 DahnJ/g' $pkg/meta.yaml
19
+
20
+ # building conda packages
21
+ for i in "${array[@]}"
22
+ do
23
+ echo "Building for Python $i"
24
+ conda-build --python $i $pkg
25
+ done
26
+
27
+ # upload packages to conda
28
+ find $MINICONDA/conda-bld/ -name *.tar.bz2 | while read file
29
+ do
30
+ echo $file
31
+ anaconda upload $file
32
+ done
33
+ echo "Building conda package done!"
34
+
35
+ rm $HOME/vgridpandas -r
36
+ conda build purge-all
Binary file
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Do not edit this file with editors other than draw.io -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: light-dark(#ffffff, var(--ge-dark-color, #121212)); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="631px" height="279px" viewBox="-0.5 -0.5 631 279" content="&lt;mxfile host=&quot;app.diagrams.net&quot; agent=&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36&quot; version=&quot;27.2.0&quot; scale=&quot;1&quot; border=&quot;0&quot;&gt;&#10; &lt;diagram name=&quot;Page-1&quot; id=&quot;SXDEXvMiuVcxN2SMCQSb&quot;&gt;&#10; &lt;mxGraphModel dx=&quot;658&quot; dy=&quot;417&quot; grid=&quot;1&quot; gridSize=&quot;10&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; arrows=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;1100&quot; pageHeight=&quot;850&quot; math=&quot;0&quot; shadow=&quot;0&quot;&gt;&#10; &lt;root&gt;&#10; &lt;mxCell id=&quot;0&quot; /&gt;&#10; &lt;mxCell id=&quot;1&quot; parent=&quot;0&quot; /&gt;&#10; &lt;mxCell id=&quot;9vBV3Npvrvbbae-SKVpl-1&quot; value=&quot;&quot; style=&quot;shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;editableCssRules=.*;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjE3Ljg4OTk5OTM4OTY0ODQzOCAxOS42OTAwMDA1MzQwNTc2MTcgMjc2Ljg5OTk2MzM3ODkwNjI1IDI3Ni45MTAwMDM2NjIxMDk0IiBkYXRhLW5hbWU9IlZyc3R2YSAxIiBpZD0iVnJzdHZhXzEiIHdpZHRoPSIyNzYuODk5OTYzMzc4OTA2MjUiIGhlaWdodD0iMjc2LjkxMDAwMzY2MjEwOTQiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZmVjOTA1O30uY2xzLTJ7ZmlsbDojZTIxYzg0O30uY2xzLTN7ZmlsbDojMGY5YzVhO308L3N0eWxlPjwvZGVmcz48cmVjdCBoZWlnaHQ9IjIzLjYiIHdpZHRoPSIyNC4wOSIgeT0iMTQ5LjMyIiB4PSIxNjAuNDYiIGNsYXNzPSJjbHMtMSIvPjxyZWN0IGhlaWdodD0iMjMuNiIgd2lkdGg9IjI0LjA5IiB5PSIxOTAuNTEiIHg9IjE5OC4zNiIgY2xhc3M9ImNscy0yIi8+PHJlY3QgaGVpZ2h0PSI1MC4wMiIgd2lkdGg9IjI0LjA5IiB5PSI4NC43IiB4PSIxNjAuNDYiIGNsYXNzPSJjbHMtMyIvPjxyZWN0IGhlaWdodD0iNTAuMDIiIHdpZHRoPSIyNC4wOSIgeT0iMTg3LjQ1IiB4PSIxNjAuNDYiIGNsYXNzPSJjbHMtMyIvPjxyZWN0IGhlaWdodD0iNTAuMDIiIHdpZHRoPSIyNC4wOSIgeT0iMTI1Ljg5IiB4PSIxOTguMzYiIGNsYXNzPSJjbHMtMyIvPjxwYXRoIGQ9Ik0xNTYuMzQsMTkuNjlDODAsMTkuNjksMTcuODksODEuOCwxNy44OSwxNTguMTRTODAsMjk2LjYsMTU2LjM0LDI5Ni42czEzOC40NS02Mi4xMSwxMzguNDUtMTM4LjQ2UzIzMi42OCwxOS42OSwxNTYuMzQsMTkuNjlaTTI2OS43OSwxNTguMTRhMTEyLjg4LDExMi44OCwwLDAsMS05LjQ1LDQ1LjMyVjExMi44MkExMTIuOTIsMTEyLjkyLDAsMCwxLDI2OS43OSwxNTguMTRabS00Ny4zNCw5Mi4xNVYyMjguNzJIMTk4LjM2djM0LjgxYTExMi45NCwxMTIuOTQsMCwwLDEtNDIsOC4wN2MtMy41NCwwLTctLjE4LTEwLjQ4LS40OVYxMjUuODNIMTIxLjc3VjI2Ni4yQTExMy40NCwxMTMuNDQsMCwxLDEsMjM2LjI1LDc3LjY4VjIzNy45NGguNjZBMTE1LjEyLDExNS4xMiwwLDAsMSwyMjIuNDUsMjUwLjI5WiIgY2xhc3M9ImNscy0zIi8+PC9zdmc+;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10; &lt;mxGeometry x=&quot;80&quot; y=&quot;80&quot; width=&quot;277&quot; height=&quot;277&quot; as=&quot;geometry&quot; /&gt;&#10; &lt;/mxCell&gt;&#10; &lt;mxCell id=&quot;9vBV3Npvrvbbae-SKVpl-3&quot; value=&quot;&quot; style=&quot;shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;editableCssRules=.*;image=data:image/svg+xml,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNTAyLjM5OTk4MzcyMzk1ODMiIHZpZXdCb3g9IjAuMjI1MDAwMzgxNDY5NzI2NTYgMi4xMjkwMDE2MTc0MzE2NDA2IDIzLjU0OTk5OTIzNzA2MDU0NyAxOS45Mjg5OTg5NDcxNDM1NTUiIGhlaWdodD0iNDI1LjE1MTk3NzUzOTA2MjUiPiYjeGE7ICA8bGluZWFyR3JhZGllbnQgeTI9IjEwLjg4MjMiIHkxPSIxNC4wMjU0IiB4Mj0iMjAuOTExNSIgeDE9IjMuMDg2NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGlkPSJhIj4mI3hhOyAgICA8c3RvcCBzdG9wLWNvbG9yPSIjZjVjOWRkIiBvZmZzZXQ9IjAiLz4mI3hhOyAgICA8c3RvcCBzdG9wLWNvbG9yPSIjZWFiMGNjIiBvZmZzZXQ9Ii4yODU3Ii8+JiN4YTsgICAgPHN0b3Agc3RvcC1jb2xvcj0iI2Q4OTJiNiIgb2Zmc2V0PSIuODUxNSIvPiYjeGE7ICAgIDxzdG9wIHN0b3AtY29sb3I9IiNjODc4OWYiIG9mZnNldD0iMSIvPiYjeGE7ICA8L2xpbmVhckdyYWRpZW50PiYjeGE7ICA8bGluZWFyR3JhZGllbnQgeTI9IjguNjQ0MiIgeTE9IjYuNjY0NiIgeDI9IjIzLjYxMDgiIHgxPSIuOTgzNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGlkPSJiIj4mI3hhOyAgICA8c3RvcCBzdG9wLWNvbG9yPSIjZjVmNWY1IiBvZmZzZXQ9IjAiLz4mI3hhOyAgICA8c3RvcCBzdG9wLWNvbG9yPSIjZTRlNGU0IiBvZmZzZXQ9Ii4yNTAzIi8+JiN4YTsgICAgPHN0b3Agc3RvcC1jb2xvcj0iI2M5YzljOSIgb2Zmc2V0PSIuNzIxNyIvPiYjeGE7ICAgIDxzdG9wIHN0b3AtY29sb3I9IiNiZmJmYmYiIG9mZnNldD0iMSIvPiYjeGE7ICA8L2xpbmVhckdyYWRpZW50PiYjeGE7ICA8ZyBzdHJva2UtbGluZWNhcD0icm91bmQiIHRyYW5zZm9ybT0ic2NhbGUoMSwgLTEpIHRyYW5zbGF0ZSgwLCAtMjQpIj4mI3hhOyAgICA8ZyBzdHJva2U9IiM2NzJhNWMiPiYjeGE7ICAgICAgPHBhdGggc3Ryb2tlLXdpZHRoPSIuNzUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9InVybCgjYSkiIGQ9Im0gMjEuMDQ5IDEyLjQ1NyBjIDAgNC45ODcgLTQuMDU0IDkuMDM5IC05LjA0OSA5LjAzOSAtNC45OTggMCAtOS4wNDkgLTQuMDUyIC05LjA0OSAtOS4wMzkgMCAtNC45OTUgNC4wNTIgLTkuMDQ2IDkuMDQ5IC05LjA0NiA0Ljk5NSAwIDkuMDQ5IDQuMDUxIDkuMDQ5IDkuMDQ2IHoiLz4mI3hhOyAgICAgIDxwYXRoIHN0cm9rZS13aWR0aD0iLjc1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBmaWxsPSJub25lIiBkPSJtIDEyIDMuODg3IGMgNC43NjIgNC43NjMgNC43NjIgMTIuMzcgMCAxNy4xMzUiLz4mI3hhOyAgICAgIDxwYXRoIHN0cm9rZS13aWR0aD0iLjc1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBmaWxsPSJub25lIiBkPSJtIDEyIDMuODg3IGMgLTQuNzYzIDQuNzYzIC00Ljc2MyAxMi4zNyAwIDE3LjEzNSIvPiYjeGE7ICAgICAgPHBhdGggc3Ryb2tlLXdpZHRoPSIuNzUiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIGQ9Im0gMy40MjcgMTIuNDU3IGggMTcuMTQ2Ii8+JiN4YTsgICAgICA8cGF0aCBzdHJva2Utd2lkdGg9Ii43NSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZmlsbD0ibm9uZSIgZD0ibSAxOC42NjcgNi43NDUgYyAtMi42NzUgMS45MTggLTEwLjMwOSAyLjA2NyAtMTMuMzM1IDAiLz4mI3hhOyAgICAgIDxwYXRoIHN0cm9rZS13aWR0aD0iLjc1IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBmaWxsPSJub25lIiBkPSJtIDE4LjY2NyAxOC4xNjMgYyAtMy40NDcgLTEuODY3IC05LjcwOCAtMS45OTUgLTEzLjMzNSAwIi8+JiN4YTsgICAgPC9nPiYjeGE7ICAgIDxwYXRoIHN0cm9rZS13aWR0aD0iLjUiIHN0cm9rZT0iIzQwNDA0MCIgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0idXJsKCNiKSIgZD0ibSAyMy40IDExLjA0NiBzIC00LjQ1MyAyLjAxMyAtMTEuNCAyLjAxMyBjIC02Ljk0OCAwIC0xMS40IC0yLjAxMyAtMTEuNCAtMi4wMTMgbCA4LjQ3OSAtOC43MjkgcyAxLjc1IC40MjUgMi45MjEgLjQyNSAyLjkyMiAtLjQyNSAyLjkyMiAtLjQyNSB6Ii8+JiN4YTsgICAgPHBhdGggc3Ryb2tlLXdpZHRoPSIuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlPSIjNDA0MDQwIiBmaWxsPSJub25lIiBkPSJtIDEyIDEzLjA1OSB2IC01Ljc0NyAtNC41NzEiLz4mI3hhOyAgICA8cGF0aCBzdHJva2Utd2lkdGg9Ii41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2U9IiM0MDQwNDAiIGZpbGw9Im5vbmUiIGQ9Im0gMjAuNDEgOC4wNjQgcyAtMy4yODMgMS4zNzUgLTguNDEgMS4zNzUgYyAtNS4xMjYgMCAtOC40MSAtMS4zNzUgLTguNDEgLTEuMzc1Ii8+JiN4YTsgICAgPHBhdGggc3Ryb2tlLXdpZHRoPSIuNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlPSIjNDA0MDQwIiBmaWxsPSJub25lIiBkPSJtIDE3LjU2MSA0Ljk5NyBzIC0yLjE3IC44MDIgLTUuNTYxIC44MDIgYyAtMy4zOSAwIC01LjU2MiAtLjgwMiAtNS41NjIgLS44MDIiLz4mI3hhOyAgICA8cGF0aCBzdHJva2Utd2lkdGg9Ii41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2U9IiM0MDQwNDAiIGZpbGw9Im5vbmUiIGQ9Im0gMTMuMjY2IDIuNjMyIDQuODEgOS45MDMiLz4mI3hhOyAgICA8cGF0aCBzdHJva2Utd2lkdGg9Ii41IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2U9IiM0MDQwNDAiIGZpbGw9Im5vbmUiIGQ9Im0gMTAuNzM2IDIuNjMyIC00LjgxMyA5LjkwMyIvPiYjeGE7ICA8L2c+JiN4YTs8L3N2Zz4=;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10; &lt;mxGeometry x=&quot;383&quot; y=&quot;80&quot; width=&quot;327.19&quot; height=&quot;279&quot; as=&quot;geometry&quot; /&gt;&#10; &lt;/mxCell&gt;&#10; &lt;/root&gt;&#10; &lt;/mxGraphModel&gt;&#10; &lt;/diagram&gt;&#10;&lt;/mxfile&gt;&#10;"><defs/><rect fill="#ffffff" width="100%" height="100%" x="0" y="0" style="fill: light-dark(#ffffff, var(--ge-dark-color, #121212));"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="9vBV3Npvrvbbae-SKVpl-1"><g><g><svg height="277" width="277" id="svg-image-LHt-xVhyCKzdWDZUBsFh" data-name="Vrstva 1" viewBox="17.889999389648438 19.690000534057617 276.89996337890625 276.9100036621094" xmlns="http://www.w3.org/2000/svg" x="0" y="0" style="font-family: initial;"><defs><style>#svg-image-LHt-xVhyCKzdWDZUBsFh .cls-1 { fill: rgb(254, 201, 5); }&#xa;#svg-image-LHt-xVhyCKzdWDZUBsFh .cls-2 { fill: rgb(226, 28, 132); }&#xa;#svg-image-LHt-xVhyCKzdWDZUBsFh .cls-3 { fill: rgb(15, 156, 90); }&#xa;</style></defs><rect class="cls-1" x="160.46" y="149.32" width="24.09" height="23.6"/><rect class="cls-2" x="198.36" y="190.51" width="24.09" height="23.6"/><rect class="cls-3" x="160.46" y="84.7" width="24.09" height="50.02"/><rect class="cls-3" x="160.46" y="187.45" width="24.09" height="50.02"/><rect class="cls-3" x="198.36" y="125.89" width="24.09" height="50.02"/><path class="cls-3" d="M156.34,19.69C80,19.69,17.89,81.8,17.89,158.14S80,296.6,156.34,296.6s138.45-62.11,138.45-138.46S232.68,19.69,156.34,19.69ZM269.79,158.14a112.88,112.88,0,0,1-9.45,45.32V112.82A112.92,112.92,0,0,1,269.79,158.14Zm-47.34,92.15V228.72H198.36v34.81a112.94,112.94,0,0,1-42,8.07c-3.54,0-7-.18-10.48-.49V125.83H121.77V266.2A113.44,113.44,0,1,1,236.25,77.68V237.94h.66A115.12,115.12,0,0,1,222.45,250.29Z"/></svg></g></g></g><g data-cell-id="9vBV3Npvrvbbae-SKVpl-3"><g><g><svg height="279" viewBox="0.22500038146972656 2.1290016174316406 23.549999237060547 19.928998947143555" width="327.19" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="303" y="0" style="font-family: initial;">&#xa; <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="3.0864" x2="20.9115" y1="14.0254" y2="10.8823">&#xa; <stop offset="0" stop-color="#f5c9dd"/>&#xa; <stop offset=".2857" stop-color="#eab0cc"/>&#xa; <stop offset=".8515" stop-color="#d892b6"/>&#xa; <stop offset="1" stop-color="#c8789f"/>&#xa; </linearGradient>&#xa; <linearGradient id="b" gradientUnits="userSpaceOnUse" x1=".9834" x2="23.6108" y1="6.6646" y2="8.6442">&#xa; <stop offset="0" stop-color="#f5f5f5"/>&#xa; <stop offset=".2503" stop-color="#e4e4e4"/>&#xa; <stop offset=".7217" stop-color="#c9c9c9"/>&#xa; <stop offset="1" stop-color="#bfbfbf"/>&#xa; </linearGradient>&#xa; <g transform="scale(1, -1) translate(0, -24)" stroke-linecap="round">&#xa; <g stroke="#672a5c">&#xa; <path d="m 21.049 12.457 c 0 4.987 -4.054 9.039 -9.049 9.039 -4.998 0 -9.049 -4.052 -9.049 -9.039 0 -4.995 4.052 -9.046 9.049 -9.046 4.995 0 9.049 4.051 9.049 9.046 z" fill="url(#a)" stroke-linejoin="round" stroke-width=".75"/>&#xa; <path d="m 12 3.887 c 4.762 4.763 4.762 12.37 0 17.135" fill="none" stroke-linejoin="round" stroke-width=".75"/>&#xa; <path d="m 12 3.887 c -4.763 4.763 -4.763 12.37 0 17.135" fill="none" stroke-linejoin="round" stroke-width=".75"/>&#xa; <path d="m 3.427 12.457 h 17.146" fill="none" stroke-linejoin="round" stroke-width=".75"/>&#xa; <path d="m 18.667 6.745 c -2.675 1.918 -10.309 2.067 -13.335 0" fill="none" stroke-linejoin="round" stroke-width=".75"/>&#xa; <path d="m 18.667 18.163 c -3.447 -1.867 -9.708 -1.995 -13.335 0" fill="none" stroke-linejoin="round" stroke-width=".75"/>&#xa; </g>&#xa; <path d="m 23.4 11.046 s -4.453 2.013 -11.4 2.013 c -6.948 0 -11.4 -2.013 -11.4 -2.013 l 8.479 -8.729 s 1.75 .425 2.921 .425 2.922 -.425 2.922 -.425 z" fill="url(#b)" fill-opacity=".8" stroke="#404040" stroke-width=".5"/>&#xa; <path d="m 12 13.059 v -5.747 -4.571" fill="none" stroke="#404040" stroke-linejoin="round" stroke-width=".5"/>&#xa; <path d="m 20.41 8.064 s -3.283 1.375 -8.41 1.375 c -5.126 0 -8.41 -1.375 -8.41 -1.375" fill="none" stroke="#404040" stroke-linejoin="round" stroke-width=".5"/>&#xa; <path d="m 17.561 4.997 s -2.17 .802 -5.561 .802 c -3.39 0 -5.562 -.802 -5.562 -.802" fill="none" stroke="#404040" stroke-linejoin="round" stroke-width=".5"/>&#xa; <path d="m 13.266 2.632 4.81 9.903" fill="none" stroke="#404040" stroke-linejoin="round" stroke-width=".5"/>&#xa; <path d="m 10.736 2.632 -4.813 9.903" fill="none" stroke="#404040" stroke-linejoin="round" stroke-width=".5"/>&#xa; </g>&#xa;</svg></g></g></g></g></g></g></svg>
@@ -0,0 +1,6 @@
1
+
2
+ **What's Changed**
3
+ * Add 3d terrain style by @giswqs in [#1](https://github.com/opengeoshub/vgrid/pull/1)
4
+
5
+
6
+ **Full Changelog**: [v1.3.10...v1.0.1](https://github.com/opengeoshub/vgrid/compare/v1.3.10...v1.0.1)
@@ -0,0 +1,43 @@
1
+ import re
2
+
3
+ # Copy the release notes from the GitHub release page
4
+ markdown_text = """
5
+ ## What's Changed
6
+ * Add 3d terrain style by @giswqs in https://github.com/opengeoshub/vgrid/pull/1
7
+
8
+
9
+ **Full Changelog**: https://github.com/opengeoshub/vgrid/compare/v1.3.10...v1.0.1
10
+ """
11
+
12
+ # Regular expression pattern to match the Markdown hyperlinks
13
+ pattern = r"https://github\.com/opengeoshub/vgrid/pull/(\d+)"
14
+
15
+
16
+ # Function to replace matched URLs with the desired format
17
+ def replace_url(match):
18
+ pr_number = match.group(1)
19
+ return f"[#{pr_number}](https://github.com/opengeoshub/vgrid/pull/{pr_number})"
20
+
21
+
22
+ # Use re.sub to replace URLs with the desired format
23
+ formatted_text = re.sub(pattern, replace_url, markdown_text)
24
+
25
+ for line in formatted_text.splitlines():
26
+ if "Full Changelog" in line:
27
+ prefix = line.split(": ")[0]
28
+ link = line.split(": ")[1]
29
+ version = line.split("/")[-1]
30
+ formatted_text = (
31
+ formatted_text.replace(line, f"{prefix}: [{version}]({link})")
32
+ .replace("## What's Changed", "**What's Changed**")
33
+ .replace("## New Contributors", "**New Contributors**")
34
+ )
35
+
36
+
37
+ with open("docs/changelog_update.md", "w") as f:
38
+ f.write(formatted_text)
39
+
40
+ # Print the formatted text
41
+ print(formatted_text)
42
+
43
+ # Copy the formatted text and paste it to the CHANGELOG.md file