feat(sentinel1): Sentinel-1 SAR STAC -> self-hosted TiTiler tile template #20
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/sentinel1-sar-titiler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Backend half of the Sentinel-1 SAR overlay.
GET /api/map/sentinel1?bbox=minlon,minlat,maxlon,maxlatqueries Planetary Computer STAC (sentinel-1-grd, last 7 days, most recent), signs the vv/hh COG with a SAS token, and returns a same-origin/titiler/...XYZ tile template for Leaflet.Endpoint contract (frontend child card consumes this)
GET /api/map/sentinel1?bbox=...200:
{"error":"no_imagery"}when no GRD covers the bbox in 7 daysRetry-Afterif upstream sent it) on Planetary Computer rate limit/api/map/layersgainsoverlays.sentinel1_sar(tileUrl: null,endpoint: "/api/map/sentinel1", title Sentinel-1 SAR (Cloud-Penetrating)).TiTiler (self-hosted)
titilerservice to the existingdocker-compose.yml(ghcr.io/developmentseed/titiler:latest,platform: linux/arm64,WORKERS_PER_CORE=1, 1G memory cap, host127.0.0.1:8001-> container8000). The app keeps host8000.deploy/osint-titiler.nginx.conf:location /titiler/->http://127.0.0.1:8001/(prefix stripped). Browser hits the osint.rpi.local vhost, never a raw loopback port or titiler.xyz.TITILER_PUBLIC_BASE(default/titiler) andTITILER_INTERNAL_URL(defaulthttp://titiler:8000) are env-driven; no hardcoded hostnames.Pi / quota
OSINT_USER_AGENTon STAC + SAS requests; 8s httpx timeout.Tests
Mocked httpx (
_post_json/_get_json): vv -> signed tile URL contains/titiler/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x,rescale=0,500,colormap_name=cfastie; empty features -> None (404); missing vv falls back to hh; tile URL is same-origin relative (no scheme/host, no titiler.xyz). No real PC/TiTiler in CI. Full suite: 125 passed, 16 skipped.