Skip to main content

Pure Python RD NAP 2018 conversions

Reason this release was yanked:

Bad keyword names

Project description

A pure Python implementation of the 2018 v220627 version of the Netherlands' RD (RijksDriehoeksmeting) and NAP (Normaal Amsterdams Peil) systems to convert GRS80 (ETRS89) geodetic lat-, longitudes and heights to local RD coordinates and NAP quasi-geoid-height and vice-versa.

PyRDNAP includes two transformer classes RDNAP2018v1 and RDNAP2018v2 implementing variant 1 respectively variant 2 of the RD NAP 2018 v220627 specification. Each class provides a forward method to convert from geodetic lat-, longitude and height to RDx, RDy and NAPh and a reverse method to convert RDx, RDy and NAPh to geodetic lat-, longitude and height.

NAPh is only interpolated for locations within the bounds RD region. Outside that region NAN is returned for NAPh or an RDNAPError is raised if so specified.

For further details see the documentation.

Note

RDNAP2018v1, RDNAP2018v2, PyRDNAP and pyrdnap have not been formally validated and are not certified to carry the trademark name RDNAPTRANS(tm).

Installation

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

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

To run the pyrdnap 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.5.26 or newer. Type python[3] -m pip install -r requirements.txt to install.

Documentation

In addition to the pyrdnap package, the pyrdnap 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=pyrdnap --url=... -v pyrdnap.

Tests

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

Python 3.14.5 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 pyrdnap.machine).

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

The tests also ran with Python 3.14.5 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.1 Tahoe only.

Last updated: June 09, 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/pyrdnap.svg?label=Python https://Img.Shields.io/pypi/v/pyrdnap.svg?label=PyPI https://Img.Shields.io/appveyor/ci/mrJean1/PyRDNAP.svg?branch=master&label=AppVeyor https://Img.Shields.io/badge/coverage-96%25-brightgreen https://Img.Shields.io/pypi/wheel/pyrdnap.svg https://Img.Shields.io/pypi/l/pyrdnap.svg https://img.shields.io/pypi/dm/pyrdnap

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

pyrdnap-26.6.9.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

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

pyrdnap-26.6.9-py2.py3-none-any.whl (3.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file pyrdnap-26.6.9.tar.gz.

File metadata

  • Download URL: pyrdnap-26.6.9.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pyrdnap-26.6.9.tar.gz
Algorithm Hash digest
SHA256 4f4e97d9ff51d4580d021667382d55e4b83f8086131eca74f8e45d95b1bd2523
MD5 58e6552a46d2b4a18dd4997d9f786785
BLAKE2b-256 64f02f31077bf3a8c399aeb43c7f94942f210ca227dac287627533dc4b900412

See more details on using hashes here.

File details

Details for the file pyrdnap-26.6.9-py2.py3-none-any.whl.

File metadata

  • Download URL: pyrdnap-26.6.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pyrdnap-26.6.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef50229f6f24336b24b62f5e0fe32514af19819de7ae41dedf3c4ab5ab320025
MD5 f75731fbd0cdec7f2962ad0782b55218
BLAKE2b-256 4f28a12902dbcee019528447fd9893f763bc7ba7f832527a917319de0c22c01e

See more details on using hashes here.

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