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.0.1.dev0.tar.gz (323.3 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.0.1.dev0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file ndslive_math-1.0.1.dev0.tar.gz.

File metadata

  • Download URL: ndslive_math-1.0.1.dev0.tar.gz
  • Upload date:
  • Size: 323.3 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.0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 e9ebe29b86b8e50057aee446c932da9ae1893a15597a137dcbff2a20c43a38e4
MD5 40a99e8776a1bce3123fec664e69bd16
BLAKE2b-256 5e2497f2d5e7690c4b16e9e67cff97246028f5107514c58fe84acbba52efe612

See more details on using hashes here.

Provenance

The following attestation bundles were made for ndslive_math-1.0.1.dev0.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.0.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for ndslive_math-1.0.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ca3adb02398eb7ff3cb3d7b157bc7d54c428a286b4120f190e3c8fd02194a3c
MD5 bbd782cc028dead19532d370e2251bd6
BLAKE2b-256 69e22de4ccbda22224f81dab257aa1aaccc2136ebd56ff575c0f5f29347eb95f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ndslive_math-1.0.1.dev0-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