Skip to main content

A pure Python implementation of the SwissTopo LandesVermessung 1995 (LV95) and -1903 (LV03) projections and conversions from and to WGS84 or Bessel1841 geodetic lat-, longitude and height.

PyChLV includes 4 transformer classes ChLVa, ChLVe, ChLVr and ChLV. Each class provides a forward method to convert a geodetic lat-, longitude and height to local Y, X and Swiss h' coordinates and a reverse method to convert local coordinates to geodetic lat-, longitude and height.

For further details see the documentation.

Installation

To install pychlv, type python[3] -m pip install pychlv or python[3] -m easy_install pychlv in a terminal or command window.

Alternatively, download pychlv-yy.m.d.tar.gz from PyPI or GitHub, unzip the downloaded file, cd to directory pychlv-yy.m.d and type python[3] setup.py install.

To run the pychlv tests, type python[3] test/run.py or type python[3] test/unitTestSuite.py before or after installation.

Dependencies

Installation of Python package pygeodesy is required, version 26.8.18 or newer. Type python[3] -m pip install -r requirements.txt to install.

Documentation

In addition to the pychlv package, the pychlv distribution file contain the tests, the test results (on macOS only) and the complete documentation generated by Epydoc using command line: epydoc --html --no-private --no-source --name=pychlv --url=... -v pychlv.

Tests

The tests ran with Python 3.14.6, 2.7.18 and with PyPy 7.3.17 (Python 3.10.14), all with pygeodesy 26.5.26 and on macOS 26.5.2 Tahoe in 64-bit. The results of those tests are included in the distribution file.

Python 3.14.6 and PyPy 7.3.17 run on Apple M4 (arm64), natively. Python 2.7.18 runs on Intel (x86_64) or Intel emulation ("arm64_x86_64", see function pychlv.machine).

Test coverage has been measured with coverage 7.14.0 using Python 3.14.6. The complete coverage report in HTML and a PDF summary are included in the distribution file.

The tests also ran with Python 3.14.6 on Windows 2019Server and with Python 3.13.3 on Windows 11, both in 64-bit only.

Notes

All Python source code has been statically checked with Ruff using Python 3.13.12 and with PyChecker, PyFlakes, PyCodeStyle (formerly Pep8) and McCabe using Python 2.7.18, both in 64-bit on macOS 26.5.2 Tahoe only.

Last updated: Aug 18, 2026.

License

Copyright (C) 2026-2026 -- mrJean1 at Gmail -- All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

https://Img.Shields.io/pypi/pyversions/pychlv.svg?label=Python https://Img.Shields.io/pypi/v/pychlv.svg?label=PyPI https://Img.Shields.io/appveyor/ci/mrJean1/PyChLV.svg?branch=master&label=AppVeyor https://Img.Shields.io/badge/coverage-97%25-brightgreen https://Img.Shields.io/pypi/wheel/pychlv.svg https://Img.Shields.io/pypi/l/pychlv.svg https://img.shields.io/pypi/dm/pychlv

Metadata

Release files for pychlv 26.8.18

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

Source distribution (sdist)

Source distribution for pychlv 26.8.18
File Size Uploaded Provenance Actions
pychlv-26.8.18.tar.gz 148.0 kB Without provenance Details for pychlv-26.8.18.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pychlv 26.8.18
File Interpreter ABI Platform Actions
pychlv-26.8.18-py2.py3-none-any.whl Python 2, Python 3 none any Details for pychlv-26.8.18-py2.py3-none-any.whl

Total release size: 167.6 kB

Release files / pychlv-26.8.18.tar.gz

Download URL pychlv-26.8.18.tar.gz
Size 148.0 kB
Tags Source
SHA-256 checksum
How to use checksums
636757f6d13689ca673c8c8fbf6d15da57395b174492bb2b171cc47deee5ca90
BLAKE2b-256 checksum
How to use checksums
14d7ff877729e775db86c9d3691b9b6385502e58a219b68f8b8ba15e21dcbc8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / pychlv-26.8.18-py2.py3-none-any.whl

Download URL pychlv-26.8.18-py2.py3-none-any.whl
Size 19.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f05f39ca2477ac7f56654791ca37b566cb5ae1837dd1d75d74d82f03e8dd6004
BLAKE2b-256 checksum
How to use checksums
b7bc19be7413f0075bfc60345d1dd1ab6acd05bec231f5acafb69fab015c4e6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for pychlv 26.8.18

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.

Release history Release notifications | RSS feed

This release

26.8.18 This release

2 release files No provenance

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