Add map feature extraction workflow
This commit is contained in:
@@ -1,3 +1,29 @@
|
||||
## Sprint 105 Map feature extract (2026-06-25)
|
||||
|
||||
Changed:
|
||||
- Added a `Selection & extract` surface to `frontend/src/components/map/MapWorkspace.tsx`.
|
||||
- Clicking a visible map feature now gives operators a focused extraction panel with geometry type, coordinate count, EPSG:4326 bbox, property count and property table.
|
||||
- Added client-side `Download selected GeoJSON`, `Copy selected properties` and `Clear selection` actions for the clicked feature.
|
||||
- Added a dedicated `selected-feature` MapLibre source with fill/line/circle highlight layers in `frontend/src/components/GeoMap.tsx`.
|
||||
- Wired the selected feature highlight through `frontend/src/App.tsx`.
|
||||
- Added responsive selection/extract CSS in `frontend/src/styles/app.css`.
|
||||
- Updated `frontend/README.md`, `CHANGELOG.md` and `docs/TODO.md`.
|
||||
- Added `backend/tests/test_sprint105_map_feature_extract.py`.
|
||||
|
||||
Validation:
|
||||
- RED: `python -m pytest backend\tests\test_sprint105_map_feature_extract.py -q` failed before implementation because the extract panel, selected-feature highlight layer and CSS contracts were absent.
|
||||
- `python -m pytest backend\tests\test_sprint105_map_feature_extract.py backend\tests\test_sprint19_map_workbench.py backend\tests\test_sprint85_map_workspace_density.py -q` passed: 9 tests.
|
||||
- `cd frontend && npm run typecheck` passed.
|
||||
- `cd frontend && npm run build` passed.
|
||||
|
||||
Limitations:
|
||||
- This pass extracts the single currently clicked and loaded map feature only.
|
||||
- Rectangle, lasso or polygon selection over persisted PostGIS `vector_features` still requires a backend spatial query endpoint and drawing workflow.
|
||||
- No backend API contract, migration, provider fetching, AI dependency or persistence behavior changed.
|
||||
|
||||
Next recommended pass:
|
||||
- Add map area/rectangle selection backed by a PostGIS spatial-query endpoint for multi-feature extraction, then expose export handoff for the selected result set.
|
||||
|
||||
## Sprint 100 raster tile Segmentation Lab handoff (2026-06-24)
|
||||
|
||||
Changed:
|
||||
|
||||
@@ -75,6 +75,7 @@ This file now starts with the current implementation status. Older preparation/b
|
||||
- [x] Add Overview workspace panel hierarchy polish for readiness and recommended-action regions.
|
||||
- [x] Add Data workspace selected-summary and panel density polish.
|
||||
- [x] Add Map workspace panel hierarchy and layer-control density polish.
|
||||
- [x] Add selected map feature extraction with highlight, property table, copy and GeoJSON download.
|
||||
- [x] Add QA/QC workspace result hierarchy and filter density polish.
|
||||
- [x] Add Change Detection panel hierarchy and analysis workspace density polish.
|
||||
- [x] Add AI Labs Detection/Segmentation hierarchy and result density polish.
|
||||
|
||||
Reference in New Issue
Block a user