Skip to content

boettiger-lab/swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State Wildlife Action Plans Explorer

An AI-powered interactive map for comparing U.S. State Wildlife Action Plans — how different states plan for wildlife conservation. It currently federates three deliberately different plans:

  • California — SWAP 2025 (CDFW): a relational plan — provinces → conservation units, SGCN species
    • ranges, and Conservation Targets & Strategies planning tables.
  • Nevada — SWAP 2022 (NDOW): a flat, species-centric plan — 258 species distributions + 17 key habitat classes.
  • Missouri — CCS 2022 (MDC): a habitat/place-based Comprehensive Conservation Strategy (not called a "SWAP") — Conservation Opportunity Areas by habitat system + priority geographies, with no species layer.

Each state's layers are kept in their native structure and labeled by state (CA ·, NV ·, MO ·) so users can see and manually compare the different approaches. US-wide context layers (PAD-US protected areas, NLCD land cover, SVI social vulnerability, Census boundaries) overlay any state.

Ask questions in plain language; the app uses an LLM agent with map tools and SQL access. Built on the geo-agent framework — the map, chat, and agent modules are loaded from CDN, so there is no JavaScript to write here.

Configuration

File Purpose
index.html HTML shell — loads core JS/CSS from the geo-agent CDN
layers-input.json Which SWAP collections to show + map/LLM settings
system-prompt.md LLM persona, domain context, and guardrails
k8s/ Kubernetes deployment manifests (app slug swap, namespace biodiversity)

Data & attribution

State plan data © the respective agencies, reprocessed to cloud-native formats by the Boettiger Lab, UC Berkeley:

  • California — SWAP 2025, California Department of Fish and Wildlife — CC-BY-4.0 (wildlife.ca.gov/SWAP).
  • Nevada — SWAP 2022, Nevada Department of Wildlife — license pending confirmation; source NDOW ArcGIS Data Hub.
  • Missouri — CCS 2022, Missouri Department of Conservation — license pending confirmation; source 2022 Missouri CCS (MDC ArcGIS COA services).

Ingestion is tracked in data-workflows issues #381 (CA), #383 (NV), and #384 (MO). NV/MO are held out of source.coop until licenses are resolved.

Deployment

See AGENTS.md for the full deployment workflow. In short: edit the source files, push to main, then kubectl rollout restart -f k8s/deployment.yaml — the pod's initContainer re-clones main on restart.

About

State Wildlife Action Plans

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages