feat(landscape): HTTP API, worker consumer, wiring, docs

Adds the /landscape routes (slots, slot upload, runs, run detail, results),
mounts them in the router, wires the landscape repository, job publisher,
godal raster IO and Compute into the composition root, and registers the
gis-landscape-runner consumer in the worker.

Also fixes the Dockerfile so the image actually runs: godal's cgo needs g++,
and the runtime base must match the builder's Alpine release or libgdal's
soname does not resolve.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-05 14:11:57 +05:00
parent d74277552f
commit ad3c9fbdcd
8 changed files with 827 additions and 7 deletions

View File

@@ -16,7 +16,9 @@ type RouterDeps struct {
Datasets *DatasetHandler
// DatasetGroups serves the /dataset-groups routes.
DatasetGroups *DatasetGroupHandler
OpenAPISpec []byte
// Landscape serves the /landscape routes.
Landscape *LandscapeHandler
OpenAPISpec []byte
}
// NewRouter builds the application's HTTP handler with middleware and routes.
@@ -40,6 +42,7 @@ func NewRouter(deps RouterDeps) http.Handler {
r.Route("/categories", deps.Categories.Register)
r.Route("/datasets", deps.Datasets.Register)
r.Route("/dataset-groups", deps.DatasetGroups.Register)
r.Route("/landscape", deps.Landscape.Register)
return r
}