Skip to main content

Create GeoJSON geometries that bound the extents of valid data in a raster.

Project description

raster-footprint

CI Status Read the Docs PyPI

GitHub

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

Apache-2.0

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

raster-footprint-0.1.0.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

raster_footprint-0.1.0-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page