feat: guide raster building analysis workflow
This commit is contained in:
@@ -270,11 +270,14 @@ function App(): JSX.Element {
|
||||
runningDetectionCalibration,
|
||||
detectionCalibrationRows,
|
||||
detectionCalibrationError,
|
||||
detectionWorkflowStage,
|
||||
loadDetectionModels,
|
||||
loadYoloPreflight,
|
||||
loadDetectionRuns,
|
||||
loadDetectionResults,
|
||||
runDetection,
|
||||
uploadDetectionRaster,
|
||||
prepareAndRunDetection,
|
||||
runDetectionQa,
|
||||
runDetectionCalibration,
|
||||
applyDetectionOperatorProfile,
|
||||
@@ -578,6 +581,22 @@ function App(): JSX.Element {
|
||||
setMapLayerVisible(true)
|
||||
setActiveWorkspace('map')
|
||||
}
|
||||
const runGuidedDetection = async () => {
|
||||
const completed = await prepareAndRunDetection()
|
||||
if (completed) {
|
||||
setMapContentMode('analysis')
|
||||
setMapLayerVisible(true)
|
||||
setActiveWorkspace('map')
|
||||
}
|
||||
}
|
||||
const openDetectionResultsOnMap = () => {
|
||||
if (!detectionGeoJson) {
|
||||
return
|
||||
}
|
||||
setMapContentMode('analysis')
|
||||
setMapLayerVisible(true)
|
||||
setActiveWorkspace('map')
|
||||
}
|
||||
const openDatasetExport = (dataset: DatasetCreateResponse) => {
|
||||
if (selectedProjectId) {
|
||||
loadDatasetDetails(selectedProjectId, dataset)
|
||||
@@ -1048,6 +1067,7 @@ function App(): JSX.Element {
|
||||
runningDetectionCalibration={runningDetectionCalibration}
|
||||
detectionCalibrationRows={detectionCalibrationRows}
|
||||
detectionCalibrationError={detectionCalibrationError}
|
||||
detectionWorkflowStage={detectionWorkflowStage}
|
||||
selectedDetectionRunId={selectedDetectionRunId}
|
||||
detectionItems={detectionItems}
|
||||
detectionClassFilter={detectionClassFilter}
|
||||
@@ -1071,6 +1091,9 @@ function App(): JSX.Element {
|
||||
onSetConfidenceThreshold={setDetectionConfidenceThreshold}
|
||||
onSetTileManifestPath={setDetectionTileManifestPath}
|
||||
onRunDetection={runDetection}
|
||||
onUploadRaster={uploadDetectionRaster}
|
||||
onPrepareAndRunDetection={runGuidedDetection}
|
||||
onOpenResultsOnMap={openDetectionResultsOnMap}
|
||||
onLoadRuns={() => loadDetectionRuns()}
|
||||
onSelectRun={setSelectedDetectionRunId}
|
||||
onSetClassFilter={setDetectionClassFilter}
|
||||
|
||||
Reference in New Issue
Block a user