Skip to main content

A pure Python implementation of the Belgian hybrid quasi-geoid hBG18 with several Belgian Lambert 2018, -1972 and -1950 conformal conic projections to convert between geodetic lat-, longitude and ellipsoidal height and local Lambert easting, northing and orthometric height using bilinear interpolation of quasi-geoid hBG18 heights.

Each of 5 Be*LBG transformer classes provides a forward method to convert a geodetic lat-, longitude and ellipsoidal height to local easting, northing and orthometric height (H) and a reverse method to transform local to geodetic coordinates and orthometric to ellipsoidal height.

Quasi-geoid hBG18 height is interpolated only for points within the hBG18 region. Heights outside that region are NAN unless raising a BeLBGError exception is specified.

For further details see the documentation and the main module.

Installation

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

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

To run the pybelbg 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 pybelbg package, the pybelbg 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=pybelbg --url=... -v pybelbg.

Tests

The tests ran with Python 3.14.7, 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.7 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 pybelbg.machine).

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

The tests also ran with Python 3.14.7 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/pybelbg.svg?label=Python https://Img.Shields.io/pypi/v/pybelbg.svg?label=PyPI https://Img.Shields.io/appveyor/ci/mrJean1/PyBeLBG.svg?branch=master&label=AppVeyor https://Img.Shields.io/badge/coverage-97%25-brightgreen https://Img.Shields.io/pypi/wheel/pybelbg.svg https://Img.Shields.io/pypi/l/pybelbg.svg https://img.shields.io/pypi/dm/pybelbg

Download files

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

Source Distribution

pybelbg-26.8.18.tar.gz (791.7 kB view details)

Uploaded Source

Built Distribution

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

pybelbg-26.8.18-py2.py3-none-any.whl (298.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pybelbg-26.8.18.tar.gz.

File metadata

  • Download URL: pybelbg-26.8.18.tar.gz
  • Upload date:
  • Size: 791.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pybelbg-26.8.18.tar.gz
Algorithm Hash digest
SHA256 de14b3709faadc03096b3a24e0044fdcfe53558c5d2b2ba4fd8a8da666f0ff1e
MD5 367ec457212f76d61a7b9a4c3269930e
BLAKE2b-256 56899bb7640411058af06b40dbf04e8cb08fe3b5b778de1f9ad2b4022ca5aea9

See more details on using hashes here.

File details

Details for the file pybelbg-26.8.18-py2.py3-none-any.whl.

File metadata

  • Download URL: pybelbg-26.8.18-py2.py3-none-any.whl
  • Upload date:
  • Size: 298.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pybelbg-26.8.18-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 44cd86820dac1ec6ba617c5494ea61d2c91868a4b4d3808700d3b220ce76e0fd
MD5 96a4a6e3e707f31b8fc13f4168949082
BLAKE2b-256 89560ff17a286e2ec94f8744df1f6b84c5105e164e2b27d97478ec4c3a2c4026

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

26.8.18 This release

2 files

26.7.31

2 files

26.7.29

2 files

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