Create GeoJSON geometries that bound the extents of valid data in a raster.
Project description
raster-footprint
Create GeoJSON geometries that bound valid (not "nodata" pixels) raster data. Depends on rasterio and shapely.
Usage
pip install raster-footprint
Import and call one of the footprint functions with some options:
from raster_footprint import footprint_from_href
footprint = footprint_from_href(
"my_raster.tif",
densify_distance=100,
simplify_tolerance=0.001,
holes=False
)
See the API documentation for available functions and options.
Developing
Clone and install in editable mode with the development optional dependencies:
git https://github.com/pjhartzell/raster-footprint
cd raster-footprint
pip install -e ".[dev,docs]"
We use pytest for tests:
pytest
We use Sphinx for docs:
make -C docs html
Contributing
Github issues and pull requests.
License
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
raster-footprint-0.1.0.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for raster_footprint-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b4cd3166c55ab1bc30676dfe97df773677741911288a23e8d34ebc16dffdd51 |
|
MD5 | 10bba448cc28e267ea2c5a5cce41e239 |
|
BLAKE2b-256 | 39801f7b4e130632d677e60ba450dc470ff55738126a56f09a939a4ba33eb36d |