Add raster tile detection handoff
This commit is contained in:
@@ -79,6 +79,7 @@ function App(): JSX.Element {
|
||||
datasetContent,
|
||||
jobs,
|
||||
rasterPreview,
|
||||
latestRasterTileManifestPath,
|
||||
selectedIntersectTargetId,
|
||||
selectedClipAreaId,
|
||||
rasterTileSize,
|
||||
@@ -254,6 +255,15 @@ function App(): JSX.Element {
|
||||
loadProjectData,
|
||||
loadQualityChecks,
|
||||
})
|
||||
const useRasterTileManifestForDetection = () => {
|
||||
const manifestPath = latestRasterTileManifestPath.trim()
|
||||
if (!manifestPath || !selectedDataset || selectedDataset.dataset_type !== 'raster') {
|
||||
return
|
||||
}
|
||||
setDetectionTileManifestPath(manifestPath)
|
||||
setSelectedDetectionDatasetId(selectedDataset.id)
|
||||
setActiveWorkspace('ai')
|
||||
}
|
||||
const {
|
||||
segmentationModels,
|
||||
loadingSegmentationModels,
|
||||
@@ -949,6 +959,7 @@ function App(): JSX.Element {
|
||||
selectedRasterMetadata,
|
||||
selectedRasterStats,
|
||||
rasterPreview,
|
||||
latestRasterTileManifestPath,
|
||||
rasterUnavailableMessage,
|
||||
selectedClipAreaId,
|
||||
selectedIntersectTargetId,
|
||||
@@ -987,6 +998,7 @@ function App(): JSX.Element {
|
||||
onRunRasterReproject: runRasterReproject,
|
||||
onRunRasterClip: runRasterClip,
|
||||
onRunRasterTile: runRasterTile,
|
||||
onUseTileManifestForDetection: useRasterTileManifestForDetection,
|
||||
onRunRasterNdvi: runRasterNdvi,
|
||||
onRunRasterNdwi: runRasterNdwi,
|
||||
onRunRasterNdbi: runRasterNdbi,
|
||||
|
||||
Reference in New Issue
Block a user