Skip to main content

Math utilities for NDS.Live

Project description

ndslive-math

Python version of ndsmath, math utilities for NDS.Live.

Installation

pip install ndslive-math

Development

For development, install in editable mode with the version workaround since the Python package is in a subdirectory:

SETUPTOOLS_SCM_PRETEND_VERSION=$(cd .. && python -m setuptools_scm) pip install --config-settings editable-mode=strict -e .

This workaround is needed because the git repository is at the parent level, not in the python/ directory.

Usage

from ndslive.math import Wgs84, PackedTileId, MortonCode

# Create WGS84 coordinates
coord = Wgs84(lon=13.404954, lat=52.520008)

# Convert to NDS coordinates
x_nds, y_nds = coord.to_nds_coordinates()

# Create packed tile ID
tile = PackedTileId(level=13, x=4567, y=2345)

# Create Morton code
morton = MortonCode.from_nds_coordinates(x_nds, y_nds)

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

ndslive_math-1.1.0.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

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

ndslive_math-1.1.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file ndslive_math-1.1.0.tar.gz.

File metadata

  • Download URL: ndslive_math-1.1.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ndslive_math-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6bc4e0e298b80cd4595a01c507b7fd006d89c9fc818f88d577d93e6c423abdb9
MD5 6bcd46f9321ad51337e53827d0404ce1
BLAKE2b-256 f1e5d32590d637d73040b1b100d61a39a0b0e8585522828ab6236a1cbbde89cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ndslive_math-1.1.0.tar.gz:

Publisher: ci.yml on ndsev/ndslive-math

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ndslive_math-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ndslive_math-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ndslive_math-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5100d9100530a43bc8fbe26e6a9e91abba91d8dcfad2ce332b7e6ec3b9f3032c
MD5 05cad986ab6e47bbee081fdbee4655f7
BLAKE2b-256 db651a0ee0780bcc2d42eedf99dbbea123a0b7f69510f447c99d9b216a0be0a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ndslive_math-1.1.0-py3-none-any.whl:

Publisher: ci.yml on ndsev/ndslive-math

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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