Skip to main content

Create interactive maps of STAC items.

Reason this release was yanked:

Broken windows build

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 and pystac)

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 Sentinel-2 scenes over an area of interest
catalog = Client.open("https://earth-search.aws.element84.com/v0")
items = catalog.search(
    bbox=[-120.9519, 37.2455, -113.4812, 45.1025],
    collections=["sentinel-s2-l2a-cogs"],
    datetime="2019-08-01/2019-08-03"
).get_all_items()


# Plot the items on an interactive map
stacmap.explore(items)

You can color-code items by property by passing a prop:

stacmap.explore(items, prop="eo:cloud_cover")

Include thumbnail overlays with thumbnails=True:

stacmap.explore(items, thumbnails=True)

Draw the search bounding box with bbox:

stacmap.explore(items, bbox=[-120.9519, 37.2455, -113.4812, 45.1025])

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

stacmap-0.0.1.tar.gz (8.0 kB view hashes)

Uploaded Source

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