Skip to main content

OpenSpeleoLib

OpenSpeleoLib reads, writes, validates, and converts cave-survey data.

GeoJSON conversion

Convert an Ariane TML survey with:

openspeleo convert -i survey.tml -o survey.geojson -f geojson

Coordinate safety guard

A connected shot can contain both survey measurements and an explicit geographic endpoint. During GeoJSON conversion, explicit coordinates remain authoritative, but OpenSpeleoLib calculates where the shot should end from its length, depth, azimuth, unit, and magnetic declination. If the supplied and calculated endpoints differ by more than 500 metres, conversion raises InconsistentShotCoordinatesError.

For example, synthetic Shot ID 4242 with supplied coordinates (-70, 40) and a calculated endpoint near (40, -70) produces an error containing:

[Shot ID=4242]: Explicit coordinates are inconsistent with shot measurements

The 500-metre threshold is a fixed catastrophic-data guardrail, not a survey-quality or GPS-accuracy guarantee. Coordinates within the threshold are accepted without certifying their accuracy. Root anchors and connected anchors whose parents cannot be resolved cannot be compared and retain their existing behavior.

The library never swaps coordinates, guesses a correction, or emits a partially converted GeoJSON document. The CLI calculates and validates the complete document before opening the output path: a failed conversion does not create a new output and does not replace an existing output passed with --overwrite. Correct the source survey and run the conversion again.

Download files

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

Source Distribution

openspeleo_lib-0.0.19.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

openspeleo_lib-0.0.19-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file openspeleo_lib-0.0.19.tar.gz.

File metadata

  • Download URL: openspeleo_lib-0.0.19.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for openspeleo_lib-0.0.19.tar.gz
Algorithm Hash digest
SHA256 0afa1bdda86ce5d66dfe518066e906565cc33d5b32540cf52ec638d50b8d579f
MD5 6141b517efccb2ef4cd69d4140d70c59
BLAKE2b-256 17cfa8429bf98df938ba8a56ecc74c7bbb15edae9c084cb22b6402e404db0f0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for openspeleo_lib-0.0.19.tar.gz:

Publisher: release.yml on OpenSpeleo/pytool_openspeleo_lib

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

File details

Details for the file openspeleo_lib-0.0.19-py3-none-any.whl.

File metadata

File hashes

Hashes for openspeleo_lib-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4dd9015033f83957799eb9cb7772ec1b9206a7c3b4a82c910b8d1d514c0809
MD5 43a75229d20a1fb7838215ccba326fb0
BLAKE2b-256 d34c30c154bdd8cd707e3f324c567c9cdb443a0598bc9b87ce5771928cf97758

See more details on using hashes here.

Provenance

The following attestation bundles were made for openspeleo_lib-0.0.19-py3-none-any.whl:

Publisher: release.yml on OpenSpeleo/pytool_openspeleo_lib

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

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

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