Skip to main content

A lightweight morton coder with lat/long support.

Project description

Ordinal hashing of multidimensonal data and geographic coordinates via Morton coding / Z-ordering.

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. 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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pymorton-1.0.5-py3.6.egg (4.6 kB view details)

Uploaded Source

pymorton-1.0.5-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

pymorton-1.0.5-py2.7.egg (4.5 kB view details)

Uploaded Source

File details

Details for the file pymorton-1.0.5-py3.6.egg.

File metadata

  • Download URL: pymorton-1.0.5-py3.6.egg
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymorton-1.0.5-py3.6.egg
Algorithm Hash digest
SHA256 869d71f36cf4e51647856ae4fcc9006a7882fbb81232ddd126f789c41e4d6e3f
MD5 b6ffb2ae06fb119aa9b9fa383685dbc8
BLAKE2b-256 3ef076c1238d817301a708fe8dded6d81a1d8fdb09b88788417e760d1527248f

See more details on using hashes here.

File details

Details for the file pymorton-1.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pymorton-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b2df3ed2ab002f0b6780344485980130a3f959f959aea65301381b11cfe31dce
MD5 1cd528cb1037716e2cc92fda3a633906
BLAKE2b-256 c68d906ba6d4266d7696547b8b70e08423975243c7339fe1ccf4bdbc42478394

See more details on using hashes here.

File details

Details for the file pymorton-1.0.5-py2.7.egg.

File metadata

  • Download URL: pymorton-1.0.5-py2.7.egg
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymorton-1.0.5-py2.7.egg
Algorithm Hash digest
SHA256 21769df48a8b3b51093e1886fb42d50ea4b022d2b8845a5da31edeb57c2bcd6f
MD5 22f3139f3b842cf2bf9beba82e5dfe52
BLAKE2b-256 d448a05feecbcf85292e5940f2e79df6c23814ffd4a64c5d1a32ff1a0273272e

See more details on using hashes here.

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