Add raster tile segmentation handoff
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-24 06:14:21 +02:00
parent fcd7d6ebee
commit 140314a81d
9 changed files with 107 additions and 1 deletions
@@ -31,6 +31,7 @@ export function useSegmentationWorkflow({
const [segmentationModelError, setSegmentationModelError] = useState<string | null>(null)
const [selectedSegmentationDatasetId, setSelectedSegmentationDatasetId] = useState('')
const [selectedSegmentationModelId, setSelectedSegmentationModelId] = useState('segmentation-placeholder')
const [segmentationTileManifestPath, setSegmentationTileManifestPath] = useState('')
const [segmentationConfidenceThreshold, setSegmentationConfidenceThreshold] = useState(0.5)
const [runningSegmentation, setRunningSegmentation] = useState(false)
const [segmentationRunResult, setSegmentationRunResult] = useState<SegmentationRunResponse | null>(null)
@@ -137,6 +138,7 @@ export function useSegmentationWorkflow({
dataset_id: datasetId,
model_id: selectedSegmentationModelId,
confidence_threshold: segmentationConfidenceThreshold,
tile_manifest_path: segmentationTileManifestPath.trim() || null,
parameters_json: parameters,
})
setSegmentationRunResult(result)
@@ -186,6 +188,7 @@ export function useSegmentationWorkflow({
setSegmentationItems([])
setSegmentationGeoJson(null)
setSegmentationRunResult(null)
setSegmentationTileManifestPath('')
}
return {
@@ -195,6 +198,7 @@ export function useSegmentationWorkflow({
selectedSegmentationDatasetId,
selectedSegmentationModelId,
selectedSegmentationModel,
segmentationTileManifestPath,
segmentationConfidenceThreshold,
runningSegmentation,
segmentationRunResult,
@@ -218,6 +222,7 @@ export function useSegmentationWorkflow({
resetSegmentationForProject,
setSelectedSegmentationDatasetId,
setSelectedSegmentationModelId,
setSegmentationTileManifestPath,
setSegmentationConfidenceThreshold,
setSelectedSegmentationRunId,
setSegmentationClassFilter,