https://github.com/planetlabs/rio-stac-io
Rasterio extension to open STAC Items and ItemCollections using native GDAL drivers
https://github.com/planetlabs/rio-stac-io
gdal rasterio stac
Last synced: 6 months ago
JSON representation
Rasterio extension to open STAC Items and ItemCollections using native GDAL drivers
- Host: GitHub
- URL: https://github.com/planetlabs/rio-stac-io
- Owner: planetlabs
- License: apache-2.0
- Created: 2025-11-04T16:42:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-11-06T17:02:06.000Z (9 months ago)
- Last Synced: 2025-12-14T12:24:54.604Z (7 months ago)
- Topics: gdal, rasterio, stac
- Language: Python
- Homepage: https://planetlabs.github.io/rio-stac-io
- Size: 878 KB
- Stars: 34
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rio-stac-io

rio-stac-io is a [rasterio](https://github.com/rasterio/rasterio) extension to open STAC Items and ItemCollections using native GDAL drivers including [STACIT](https://gdal.org/en/stable/drivers/raster/stacit.html), [STACTA](https://gdal.org/en/stable/drivers/raster/stacta.html) and [GTI](https://gdal.org/en/stable/drivers/raster/gti.html). The library is build on top of rasterio and pystac.
## Documentation
https://planetlabs.github.io/rio-stac-io
## Installation
```
pip install rio-stac-io
```
When using the GTI driver you will need to install `gti` extras. Your GDAL binaries need to be compiled with geoparquet support.
```
pip install rio-stac-io[gti]
```
## Usage
```python
from pystac_client import Client
import rio_stac_io as stacio
client = Client.open(...)
search = client.search(...)
with stacio.open(search, asset_key="data") as src:
data = src.read()
```
## Development
This repository requires [Pixi](https://pixi.sh/latest/) v0.52.0 or later.
```
git clone git@github.com:planetlabs/rio-stac-io.git
cd rio-stac-io
pixi shell -e dev
```