Skip to main content

HexGridGeo

Basics

GEO wrapper for HexGrid

Example

import hexgrid
import hexgridgeo
import morton

grid = hexgridgeo.Grid(
    hexgrid.OrientationFlat, hexgrid.Point(500, 500),
    hexgridgeo.ProjectionSM)
hex = grid.hex_at(hexgridgeo.Point(-73.5, 40.3))
code = grid.hex_to_code(hex)
restored_hex = grid.hex_from_code(code)
neighbors = grid.hex_neighbors(hex, 2)
points = [
    hexgridgeo.Point(-73.0, 40.0), hexgridgeo.Point(-74.0, 40.0),
    hexgridgeo.Point(-74.0, 41.0), hexgridgeo.Point(-73.0, 41.0)
]
region = grid.make_region(points)
hexes_in_region = region.hexes

Metadata

Release files for hexgridgeo-py 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hexgridgeo-py 1.3
File Size Uploaded Provenance Actions
hexgridgeo-py-1.3.tar.gz 4.2 kB Without provenance Details for hexgridgeo-py-1.3.tar.gz

Release files / hexgridgeo-py-1.3.tar.gz

Download URL hexgridgeo-py-1.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f29893f8650bb784656effde6b78fdd00f9483c146834036078bcfd1a034d14b
BLAKE2b-256 checksum
How to use checksums
c9ecf73de431a573184491cd48222f231df545d0fc052222dd77e23e5bdfa756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hexgridgeo-py 1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3 This release

1 release file No provenance

1.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page