Python library and CLI tool to check density and densify geometries using the geodesic (ellipsoidal great-circle) calculation for accurate CRS transformations
Project description
geodense
Python library and CLI tool to check density and densify geometries using the geodesic (ellipsoidal great-circle) calculation for accurate CRS transformations.
Implementation based on Eenduidige transformatie van grenzen tussen ETRS89 en RD
Requires Python v3.11 or higher.
Depends on:
pyproj ~= 3.6.0
-> requires PROJ 9+shapely ~= 2.0.2
-> requires GEOS >= 3.5
Usage CLI
Use either geodense
or the short gden
alias:
$ geodense --help
Usage: geodense [-h] [-v] {densify,check-density} ...
Check density of, and densify geometries using the geodesic (ellipsoidal great-circle) calculation for accurate CRS transformations
Commands:
{densify,check-density}
Options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
Created by https://www.nsgi.nl/
Usage Docs
See DOCS.md
for usage docs; for now only containing flow-charts of the densify
and check-densify
subcommands.
Development
Install/uninstall geodense for development, including dev dependencies (run from root of repository):
pip install -e ".[dev]"
pip uninstall geodense
Tests
Run tests:
python3 -m pytest tests/
Check test coverage:
python3 -m coverage run -p --source=src/geodense -m pytest -v tests && python3 -m coverage report
Create release
Creating a release requires the build
and twine
packages, which are part of this package's dev
dependencies. To create a release follow these steps:
- To release a new version create a new git tag and push the new tag with:
git tag -a x.x.x -m "tagging x.x.x release"
git push --tags
- Create a new build with:
rm -rf dist/* # clean dist folder before build
python -m build
- Check wheel contains expected files:
unzip dist/geodense-0.0.1a3-py3-none-any.whl -d geodense-whl
tree geodense-whl
rm -rf geodense-whl
- Check whether package description will render properly on PyPI:
twine check dist/*
- Upload release to pypi:
twine upload -r testpypi dist/*
Note: requires
~/.pypirc
file with API token (when 2FA is enabled on PyPi).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for geodense-0.0.1a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 572c7978403c66cdab1b6e5430d2cc28e57a0621af9ad68d6baffa630ca00b86 |
|
MD5 | 1223fb2246c3459f2e8e116fc9d25cb6 |
|
BLAKE2b-256 | c40c3b4a93dcb47fec6e6c7e8e0311ceb85897f02116df4968dc0834a8f91a04 |