added vegetation

This commit is contained in:
2026-06-23 13:57:33 +03:00
parent 0c9fc22d22
commit c7435955c3
32 changed files with 336 additions and 15 deletions
+9 -2
View File
@@ -25,7 +25,7 @@ cp .env.example .env
docker compose up --build api redis postgis
```
The API is served at `http://localhost:8000`, with OpenAPI docs at `/docs`.
The API is served at `http://localhost:${API_PORT:-5603}`, with OpenAPI docs at `/docs`.
## DEM Bootstrap
@@ -63,11 +63,18 @@ The import writes a `buildings` table with `geom`, `height_m`, `levels`,
Check the API:
```bash
curl -s -X POST http://localhost:8000/api/v1/buildings/query \
curl -s -X POST http://localhost:5603/api/v1/buildings/query \
-H 'Content-Type: application/json' \
-d '{"bbox":[30.30,59.93,30.33,59.95]}' | jq '.features | length'
```
Check data availability and run a minimal integration smoke test:
```bash
curl -s http://localhost:5603/api/v1/status/data | jq
API_BASE=http://localhost:5603 sh scripts/smoke_api.sh
```
## Landcover And Canopy
Place ESA WorldCover GeoTIFF/COG files under `data/landcover` and optional canopy