Skip to main content

This package helps you convert h3 hec code directly to geojson and a GeoJSON entity to h3 hex code

Project description

Convert H3

This package helps you convert h3 hec code directly to geojson and a GeoJSON entity to h3 hex code.

Sample:

H3 to GeoJSON:

from h3converter import h3converter

h3converter.h3_to_geojson(['89be455030bffff','89be455030cffff'])

GeoJSON to H3:

from h3converter import h3converter

h3converter.polyfill({'type':'Polygon','coordinates':[[[144.244589, -36.810689], [144.244246, -36.808741], [144.241989, -36.807999], [144.240075, -36.809205], [144.240418, -36.811153], [144.242676, -36.811895], [144.244589, -36.810689]]]},9)

where polyfill has (geojson, precision).

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

h3converter-0.1.0.tar.gz (145.3 kB view hashes)

Uploaded Source

Built Distribution

h3converter-0.1.0-py3-none-any.whl (148.0 kB view hashes)

Uploaded Python 3

Supported by

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