Skip to main content

Integration of Vgrid DGGS into Pandas and GeoPandas

Project description

VgridPandas

Integrates Vgrid DGGS with GeoPandas and Pandas, inspired by H3-Pandas

Vgridpandas supports popular geodesic DGGS such as H3, S2, rHEALPix, Open-Eaggr ISEA4T, EASE-DGGS, QTM, and graticule DGGS such as OLC, Geohash, MGRS, GEOREF, Tilecode, Quadkey, Maidenhead, GARS

vgridpandas logo

image Binder image PyPI version PyPI downloads Total downloads


Try it out

Installation

pip

image

pip install vgridpandas

Usage examples

vgridpandas.h3pandas API

vgiridpandas.h3pandas automatically applies H3 functions to both Pandas Dataframes and GeoPandas Geodataframes

# Prepare data
>>> import pandas as pd
>>> from vgridpandas import h3pandas
>>> df = pd.DataFrame({'lat': [50, 51], 'lon': [14, 15]})
>>> resolution = 10
>>> df = df.h3.latlon2h3(resolution)
>>> df

| h3_10           |   lat |   lon |
|:----------------|------:|------:|
| 8a1e30973807fff |    50 |    14 |
| 8a1e2659c2c7fff |    51 |    15 |

>>> df = df.h3.h32geo()
>>> df

| h3_10           |   lat |   lon | geometry        |
|:----------------|------:|------:|:----------------|
| 8a1e30973807fff |    50 |    14 | POLYGON ((...)) |
| 8a1e2659c2c7fff |    51 |    15 | POLYGON ((...)) |

Further examples

For more examples, see the example notebooks.

VgridPandas API

For a full API documentation and more usage examples, see the documentation.

Any suggestions and contributions are very welcome!

See issues for more.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vgridpandas-1.0.1.tar.gz (443.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vgridpandas-1.0.1-py3-none-any.whl (409.4 kB view details)

Uploaded Python 3

File details

Details for the file vgridpandas-1.0.1.tar.gz.

File metadata

  • Download URL: vgridpandas-1.0.1.tar.gz
  • Upload date:
  • Size: 443.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for vgridpandas-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d0c5ca88b3e4f821156f256f8c971859eea68dcdaefdae8ab64c497efc5a7c38
MD5 4126aa647678a226a049e9c44293bcb4
BLAKE2b-256 09d2c8a2de1b5daf9ee6aabae2c22cd415dfacaaf0ce2ac822df511ccc291cca

See more details on using hashes here.

File details

Details for the file vgridpandas-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vgridpandas-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 358c097ef15803fbaddc1c205719fc51eda5e7aa36f124cb6f4f0485723b51c6
MD5 de75ef509e5e59fdf96b7070598f9635
BLAKE2b-256 b46d6747d7feef96c68f6f90e75835dd6e9af83ed539ba22cbe618b77ad95b38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page