Create GeoJSON geometries that bound the extents of valid data in a raster.
Project description
raster-footprint
Create GeoJSON geometries that bound valid raster data. Depends on rasterio and shapely.
Installation
pip install raster-footprint
CLI
raster-footprint --help
usage: raster-footprint [-h] {create,densify,reproject,simplify} ...
options:
-h, --help show this help message and exit
commands:
{create,densify,reproject,simplify}
create Create a raster footprint
densify Densify a Polygon or MultiPolygon
reproject Reproject a Polygon or MultiPolygon
simplify Simplify a Polygon or MultiPolygon
Python API
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.
Contributing
See CONTRIBUTING.md for development setup and the release process.
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.3.0.tar.gz
(17.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file raster_footprint-0.3.0.tar.gz.
File metadata
- Download URL: raster_footprint-0.3.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e99be94b85c2ae59dbb1ce98914594bee6ecb06e7b0047fec2aa0a0e457ef00
|
|
| MD5 |
8286ef307b1f323c33e99952a4ecc235
|
|
| BLAKE2b-256 |
ada6ee503f0391baaf22056cba4dc7f75fdb8db703883bfaba5af5ad50f138dd
|
File details
Details for the file raster_footprint-0.3.0-py3-none-any.whl.
File metadata
- Download URL: raster_footprint-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0ccf25a86e443bc8676f095f22246aa989bd7ed1a0d694688e7f94bf74d90d9
|
|
| MD5 |
4ba082050e1284fb7af187091b2a0d75
|
|
| BLAKE2b-256 |
404ad76c71ec5acdb9a7e912e1f557db1169c669ad28bde1b2b16d011d2a5f7f
|