Skip to main content
A lightweight Python library that enables ordinal hashing of multidimensonal data via [Morton coding / Z-ordering](https://en.wikipedia.org/wiki/Z-order_curve), along with support for geospatial indexing.
<p align="center">
<img src="https://i.imgur.com/WlMKO20r.jpg" height=10% width=100%>
</p>
In mathematical analysis and computer science, *Z-order*, *Morton-order*, or a *Morton-code* is a function which maps multidimensional data to one dimension while preserving locality of the data points. It was introduced in 1966 by IBM researcher, *[G. M. Morton](https://domino.research.ibm.com/library/cyberdig.nsf/papers/0DABF9473B9C86D48525779800566A39/$File/Morton1966.pdf)*. *The z-value* of a point in multidimensions is calculated by interleaving the binary representations of its coordinate values. Once the data are sorted into this ordering, any one-dimensional data structure can be used, such as binary search trees, B-trees, skip lists, or hash tables. The resulting ordering can equivalently be described as the order one would achieve from a depth-first traversal of a quadtree,
where `{x, y, ..., K}` are combined into a single ordinal value that is easily compared, searched, and indexed against other *Morton numbers*.


Metadata

Release files for pymorton 0.2.4

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

Built distributions (wheels)

Table of built distributions (wheels) for pymorton 0.2.4
File Interpreter ABI Platform Actions
pymorton-0.2.4-py2.py3-none-any.whl Python 3, Python 2 none any Details for pymorton-0.2.4-py2.py3-none-any.whl
pymorton-0.2.4-py2.7.egg Legacy Egg format - - Details for pymorton-0.2.4-py2.7.egg

Total release size: 13.2 kB

Release files / pymorton-0.2.4-py2.py3-none-any.whl

Download URL pymorton-0.2.4-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3e18c93841a62295db072c65dad385319ee3fc964fcc96623b39a6f9799350a8
BLAKE2b-256 checksum
How to use checksums
157c5768b4a21e202509e5e3541bd84f59cabdd4949ebb1e5f1bc8eeb2fadb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymorton-0.2.4-py2.7.egg

Download URL pymorton-0.2.4-py2.7.egg
Size 7.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
abc95f5e9f420e05ea9e24d3bb65482b5598bc821624ad4f962ea439e2224009
BLAKE2b-256 checksum
How to use checksums
78d9b450b2fcbc0ec56102afa7165abee009c23b0b317f735fe30d2b391e5e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pymorton 0.2.4

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.

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