Create interactive maps of STAC items.
Project description
stacmap
Create interactive maps of STAC items.
Features
- 🗺️ Explore STAC item footprints
- 🌈 Color-code items by properties
- 🖼️ Preview item thumbnails
- 🪶 Lightweight, minimal dependencies (just
folium
andpystac
)
Installation
$ pip install stacmap
Quickstart
stacmap.explore
creates an interactive Folium map from STAC items or collections.
import stacmap
from pystac_client import Client
# Find Landsat Collection 2 scenes over an area of interest
catalog = Client.open("https://landsatlook.usgs.gov/stac-server")
items = catalog.search(
bbox=[-120.9519, 37.2455, -113.4812, 45.1025],
collections=["landsat-c2l2-sr"],
datetime="2019-08-01/2019-08-03"
).get_all_items()
# Plot the items on an interactive map
stacmap.explore(items)
Color-code items by property by passing a prop
:
stacmap.explore(items, prop="eo:cloud_cover")
Draw the search bounding box with bbox
:
stacmap.explore(items, bbox=[-120.9519, 37.2455, -113.4812, 45.1025])
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
stacmap-0.0.3.tar.gz
(8.3 kB
view hashes)