Inserts again intermediate migration results to remote repo

This commit is contained in:
torsten committed 2026-10-13 17:42:16 +02:00
1 parent 97a2afb81d
commit c6d5dd1649
21 files changed
+153 -24

No files matched your search

@@ -27,19 +27,30 @@
#include <GeoprocessingParameter.h>
#include <GeoprocessingParameters.h>
#include <GeoprocessingResult.h>
#include <GeoprocessingTypes.h>
#include <FeatureCollectionTable.h>
#include <Feature.h>
#include <SimpleMarkerSymbol.h>
#include <SimpleFillSymbol.h>
#include <SimpleLineSymbol.h>
#include <SymbolTypes.h>
#include <Point.h>
#include <Polygon.h>
#include <LinearUnit.h>
#include <FeatureIterator.h>
#include <AttributeListModel.h>
#include <GeoprocessingLinearUnit.h>
#include <ImageServiceRaster.h>
#include <RasterLayer.h>
#include <GeometryEngine.h>
#include <GraphicListModel.h>
#include <Field.h>
// Qt
#include <QDebug>
#include <QMessageBox>
#include <QUuid>
namespace SituationMap
@@ -394,7 +405,14 @@ bool ViewshedGeoProcessing::processRasterResults(Esri::ArcGISRuntime::Geoprocess
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " viewshedResultRaster -> url = " << viewshedResultRaster->url().toString();
connect(viewshedResultRaster, &Esri::ArcGISRuntime::GeoprocessingRaster::fetchFileCompleted, this, [this] (QUuid, const QString& filePath) {
QFuture<QString> future = viewshedResultRaster->fetchFileAsync(QStringLiteral("/tmp/viewshedFetched.tif"));
if (!future.isValid())
{
ERROR_LOG(m_logger) << LOGFUNCTION << " m_mapImpl failed";
return false;
}
future.then(this, [this] (const QString& filePath) {
DEBUG_LOG(m_logger) << LOGFUNCTION << " filePath=" << filePath;
Esri::ArcGISRuntime::Raster *raster = new Esri::ArcGISRuntime::Raster(filePath, this);
@@ -441,13 +459,6 @@ bool ViewshedGeoProcessing::processRasterResults(Esri::ArcGISRuntime::Geoprocess
raster->load();
});
QFuture<QString> future = viewshedResultRaster->fetchFileAsync(QStringLiteral("/tmp/viewshedFetched.tif"));
if (!future.isValid())
{
ERROR_LOG(m_logger) << LOGFUNCTION << " m_mapImpl failed";
return false;
}
return true;
}
@@ -484,7 +495,7 @@ void ViewshedGeoProcessing::createExtentGraphic(const Esri::ArcGISRuntime::Point
m_resultsOverlay->graphics()->append(m_extentGraphic);
}
const Esri::ArcGISRuntime::Polygon &circlePoly = Esri::ArcGISRuntime::GeometryEngine::buffer(origin, radius); // circlePoly.parts().part(0).pointCount(); -> 96
const Esri::ArcGISRuntime::Polygon &circlePoly = Esri::ArcGISRuntime::GeometryEngine::buffer(static_cast<const Esri::ArcGISRuntime::Geometry&>(origin), radius); // circlePoly.parts().part(0).pointCount(); -> 96
m_extentGraphic->setGeometry(circlePoly);