Contour Heightmap
A fast python library and command line tool for generating contour maps from heightmaps and images.
Given an image file (preferably RGB PNG), it will output a PNG with topographic contour lines and an SVG file of the contour lines.
If viewing this document on the gitlab page, you should see some example images below:
Questions? Contributions? Bug reports? Open an issue on the gitlab page for the project.
We are very interested in hearing your use cases for contourheightmap to help drive the roadmap.
Roadmap
- More control on the output image
- More control on the output svg
Contributors
- Luke Miller
Installing
pip install contourheightmap
or
py -m pip install contourheightmap
Source
git clone https://gitlab.com/dodgyville/contourheightmap
Quick Start
How do I...
Contour an image from the shell command line?
contourheightmap path/to/heightmap.png
Result will be in output.png and output.svg
Provide an output file from the shell command line?
contourheightmap path/to/heightmap.png my-output.png
Result will be in my-output.png and my-output.svg
Contour an image from within python?
from contourheightmap import ContourHeightmap
c = ContourHeightmap()
c.contour("path/to/heightmap.png")
Result will be in output.png and output.svg
Provide an output filename within python?
from contourheightmap import ContourHeightmap
c = ContourHeightmap()
c.contour("path/to/heightmap.png", "path/to/output.png")
Output will also be in path/to/output.svg
Changelog
- 1.1.0
- begin switch from setup.py to
pyprojectandpoetry - added cli tool to make library available from command line
- begin switch from setup.py to
Metadata
Release files for contourheightmap 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| contourheightmap-1.1.1.tar.gz | 15.6 kB | Without provenance | Details for contourheightmap-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| contourheightmap-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for contourheightmap-1.1.1-py3-none-any.whl |
Total release size: 43.8 kB
Release files / contourheightmap-1.1.1.tar.gz
| Download URL | contourheightmap-1.1.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eabbec957d16ad5e5cc00c2efa35ab489dfe4b29ed3e756df3c97bedf850bc46
|
|
BLAKE2b-256 checksum How to use checksums |
e4ea45203f53cf0d6c913f1921b01c675a88e734ec62de7b2bfc650ba2767782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.7.9 Linux/5.13.0-35-generic
|
Release files / contourheightmap-1.1.1-py3-none-any.whl
| Download URL | contourheightmap-1.1.1-py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0fac81f2243563af8bd0c286453611d754553bdfa4820b8b7c4bd033dbf40b7
|
|
BLAKE2b-256 checksum How to use checksums |
7fcac5341e5b3402432c72db2d1395422d7ce0fe7b03fd27ce535478f46e8779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.7.9 Linux/5.13.0-35-generic
|
Security for contourheightmap 1.1.1
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.