Inserts again intermediate migration results to remote repo
This commit is contained in:
21 files changed
+153
-24
No files matched your search
+7
-1
@@ -16,6 +16,12 @@
|
|||||||
#include <Graphic.h>
|
#include <Graphic.h>
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
#include <Multipart.h>
|
#include <Multipart.h>
|
||||||
|
#include <GraphicListModel.h>
|
||||||
|
#include <AttributeListModel.h>
|
||||||
|
#include <ImmutablePartCollection.h>
|
||||||
|
#include <ImmutablePart.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <SymbolTypes.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
@@ -87,7 +93,7 @@ AbstractGraphicalObject::~AbstractGraphicalObject()
|
|||||||
|
|
||||||
auto graphicCopy = m_graphic;
|
auto graphicCopy = m_graphic;
|
||||||
|
|
||||||
QObject::connect (m_graphicsLayer->graphics(), &Esri::ArcGISRuntime::GraphicListModel::graphicRemoved,
|
QObject::connect (m_graphicsLayer->graphics(), &Esri::ArcGISRuntime::GraphicListModel::itemRemoved,
|
||||||
m_graphic, [idx, graphicCopy](int index)
|
m_graphic, [idx, graphicCopy](int index)
|
||||||
{
|
{
|
||||||
if (idx == index)
|
if (idx == index)
|
||||||
|
|||||||
+4
@@ -16,6 +16,10 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <Map.h>
|
#include <Map.h>
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <Geometry.h>
|
||||||
|
#include <Point.h>
|
||||||
|
#include <AttributeListModel.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|
||||||
|
|||||||
+4
@@ -14,6 +14,10 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
#include <PolygonBuilder.h>
|
#include <PolygonBuilder.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Geometry.h>
|
||||||
|
#include <Polygon.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
+8
-2
@@ -17,6 +17,12 @@
|
|||||||
#include <GeometryEngine.h>
|
#include <GeometryEngine.h>
|
||||||
#include <SimpleLineSymbol.h>
|
#include <SimpleLineSymbol.h>
|
||||||
#include <SimpleFillSymbol.h>
|
#include <SimpleFillSymbol.h>
|
||||||
|
#include <GeodesicEllipseParameters.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Point.h>
|
||||||
|
#include <ImmutablePart.h>
|
||||||
|
#include <ImmutablePartCollection.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
@@ -162,7 +168,7 @@ void GraphicalObjectEllipse::parameterToInternal()
|
|||||||
Esri::ArcGISRuntime::Point mapPoint(origin.x(), origin.y(), origin.z(), spatialReference()); // center of ellipse
|
Esri::ArcGISRuntime::Point mapPoint(origin.x(), origin.y(), origin.z(), spatialReference()); // center of ellipse
|
||||||
|
|
||||||
Esri::ArcGISRuntime::Point normalizedPt =
|
Esri::ArcGISRuntime::Point normalizedPt =
|
||||||
Esri::ArcGISRuntime::GeometryEngine::normalizeCentralMeridian(mapPoint);
|
static_cast<Esri::ArcGISRuntime::Point>(Esri::ArcGISRuntime::GeometryEngine::normalizeCentralMeridian(mapPoint));
|
||||||
m_internalParameters->setCenter(normalizedPt);
|
m_internalParameters->setCenter(normalizedPt);
|
||||||
// m_internalParameters->setCenter(mapPoint);
|
// m_internalParameters->setCenter(mapPoint);
|
||||||
|
|
||||||
@@ -269,7 +275,7 @@ bool GraphicalObjectEllipse::createCirclePolygon(const Esri::ArcGISRuntime::Poin
|
|||||||
const Esri::ArcGISRuntime::Point &mapPoint = originMap; // center of ellipse
|
const Esri::ArcGISRuntime::Point &mapPoint = originMap; // center of ellipse
|
||||||
|
|
||||||
Esri::ArcGISRuntime::Point normalizedPt =
|
Esri::ArcGISRuntime::Point normalizedPt =
|
||||||
Esri::ArcGISRuntime::GeometryEngine::normalizeCentralMeridian(mapPoint);
|
static_cast<Esri::ArcGISRuntime::Point>(Esri::ArcGISRuntime::GeometryEngine::normalizeCentralMeridian(mapPoint));
|
||||||
ePara.setCenter(normalizedPt);
|
ePara.setCenter(normalizedPt);
|
||||||
|
|
||||||
// 3, 4
|
// 3, 4
|
||||||
|
|||||||
+6
@@ -15,6 +15,12 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
#include <ModelSceneSymbol.h>
|
#include <ModelSceneSymbol.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Point.h>
|
||||||
|
|
||||||
|
// Local
|
||||||
|
#include <Map/point3D.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
+7
@@ -19,6 +19,13 @@
|
|||||||
#include <SimpleFillSymbol.h>
|
#include <SimpleFillSymbol.h>
|
||||||
#include <GeoView.h>
|
#include <GeoView.h>
|
||||||
#include <GeometryEngine.h>
|
#include <GeometryEngine.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Part.h>
|
||||||
|
#include <PartCollection.h>
|
||||||
|
#include <Polyline.h>
|
||||||
|
#include <Polygon.h>
|
||||||
|
#include <Geometry.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
+15
-1
@@ -19,6 +19,12 @@
|
|||||||
#include <SimpleFillSymbol.h>
|
#include <SimpleFillSymbol.h>
|
||||||
#include <GeoView.h>
|
#include <GeoView.h>
|
||||||
#include <GeometryEngine.h>
|
#include <GeometryEngine.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Polyline.h>
|
||||||
|
#include <Polygon.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <LinearUnit.h>
|
||||||
|
#include <AngularUnit.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|
||||||
@@ -220,7 +226,15 @@ bool GraphicalObjectPath::updateViewImpl()
|
|||||||
break;
|
break;
|
||||||
} // switch
|
} // switch
|
||||||
|
|
||||||
const int count = AbstractGraphicalObject::countOfPolygonFirstPart(m_graphic->geometry());
|
// Cast geometry to Multipart for vertex count check
|
||||||
|
const Esri::ArcGISRuntime::Geometry geom = m_graphic->geometry();
|
||||||
|
const Esri::ArcGISRuntime::Multipart* multipart = nullptr;
|
||||||
|
if (geom.geometryType() == Esri::ArcGISRuntime::GeometryType::Polyline)
|
||||||
|
multipart = static_cast<const Esri::ArcGISRuntime::Polyline*>(&geom);
|
||||||
|
else if (geom.geometryType() == Esri::ArcGISRuntime::GeometryType::Polygon)
|
||||||
|
multipart = static_cast<const Esri::ArcGISRuntime::Polygon*>(&geom);
|
||||||
|
|
||||||
|
const int count = multipart ? AbstractGraphicalObject::countOfPolygonFirstPart(*multipart) : 0;
|
||||||
if (count > 1000)
|
if (count > 1000)
|
||||||
WARNING_LOG(m_logger) << LOGFUNCTION << " debugInfo='" << m_debugInfo << "'"
|
WARNING_LOG(m_logger) << LOGFUNCTION << " debugInfo='" << m_debugInfo << "'"
|
||||||
<< ", huge amount of vertices, countOfPolygonFirstPart = " << count;
|
<< ", huge amount of vertices, countOfPolygonFirstPart = " << count;
|
||||||
|
|||||||
+5
@@ -18,6 +18,11 @@
|
|||||||
#include <PictureMarkerSymbol.h>
|
#include <PictureMarkerSymbol.h>
|
||||||
#include <SimpleMarkerSymbol.h>
|
#include <SimpleMarkerSymbol.h>
|
||||||
#include <MultipointBuilder.h>
|
#include <MultipointBuilder.h>
|
||||||
|
#include <Point.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <PointCollection.h>
|
||||||
|
#include <Geometry.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
+7
@@ -16,6 +16,13 @@
|
|||||||
#include <PolygonBuilder.h>
|
#include <PolygonBuilder.h>
|
||||||
#include <MultipartBuilder.h>
|
#include <MultipartBuilder.h>
|
||||||
#include <ImmutablePartCollection.h>
|
#include <ImmutablePartCollection.h>
|
||||||
|
#include <Polygon.h>
|
||||||
|
#include <Part.h>
|
||||||
|
#include <PartCollection.h>
|
||||||
|
#include <ImmutablePart.h>
|
||||||
|
#include <Point.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
+7
-1
@@ -15,6 +15,9 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
#include <ModelSceneSymbol.h>
|
#include <ModelSceneSymbol.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Point.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
@@ -98,7 +101,10 @@ bool GraphicalObjectRendererAttributes::updateViewImpl()
|
|||||||
if (m_logger.isDebugEnabled())
|
if (m_logger.isDebugEnabled())
|
||||||
qCritical() << " debugInfo='" << m_debugInfo << "'" << ", QVariantMap before unite " << cur;
|
qCritical() << " debugInfo='" << m_debugInfo << "'" << ", QVariantMap before unite " << cur;
|
||||||
|
|
||||||
cur.unite(m_attributeMap.value());
|
// Qt6: QMap::unite removed, use insert() loop instead
|
||||||
|
const QVariantMap attrs = m_attributeMap.value();
|
||||||
|
for (auto it = attrs.begin(); it != attrs.end(); ++it)
|
||||||
|
cur.insert(it.key(), it.value());
|
||||||
|
|
||||||
if (m_logger.isDebugEnabled())
|
if (m_logger.isDebugEnabled())
|
||||||
qCritical() << " debugInfo='" << m_debugInfo << "'" << ", QVariantMap after unite " << cur;
|
qCritical() << " debugInfo='" << m_debugInfo << "'" << ", QVariantMap after unite " << cur;
|
||||||
|
|||||||
+7
@@ -16,6 +16,13 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
#include <SimpleMarkerSceneSymbol.h>
|
#include <SimpleMarkerSceneSymbol.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
#include <Point.h>
|
||||||
|
#include <MapTypes.h>
|
||||||
|
|
||||||
|
// Local
|
||||||
|
#include <Map/point3D.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
+4
@@ -15,6 +15,10 @@
|
|||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
#include <TextSymbol.h>
|
#include <TextSymbol.h>
|
||||||
#include <PictureMarkerSymbol.h>
|
#include <PictureMarkerSymbol.h>
|
||||||
|
#include <SymbolTypes.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <Point.h>
|
||||||
|
#include <SpatialReference.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|||||||
+5
@@ -20,6 +20,11 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <Map.h>
|
#include <Map.h>
|
||||||
#include <GraphicsOverlay.h>
|
#include <GraphicsOverlay.h>
|
||||||
|
#include <Graphic.h>
|
||||||
|
#include <GraphicListModel.h>
|
||||||
|
#include <AttributeListModel.h>
|
||||||
|
#include <Geometry.h>
|
||||||
|
#include <PointCollection.h>
|
||||||
#include <PolygonBuilder.h>
|
#include <PolygonBuilder.h>
|
||||||
#include <PolylineBuilder.h>
|
#include <PolylineBuilder.h>
|
||||||
#include <MultipointBuilder.h>
|
#include <MultipointBuilder.h>
|
||||||
|
|||||||
@@ -623,6 +623,32 @@ QString toString(const Esri::ArcGISRuntime::GraphicsRenderingMode value)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
std::ostream &operator<< (std::ostream &stream,
|
||||||
|
const Esri::ArcGISRuntime::GeometryDimension value)
|
||||||
|
{
|
||||||
|
stream << "EsriGD(" << toString(value) << ")";
|
||||||
|
return stream;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString toString(const Esri::ArcGISRuntime::GeometryDimension value)
|
||||||
|
{
|
||||||
|
switch (value)
|
||||||
|
{
|
||||||
|
case Esri::ArcGISRuntime::GeometryDimension::Point:
|
||||||
|
return QStringLiteral("Point");
|
||||||
|
case Esri::ArcGISRuntime::GeometryDimension::Curve:
|
||||||
|
return QStringLiteral("Curve");
|
||||||
|
case Esri::ArcGISRuntime::GeometryDimension::Area:
|
||||||
|
return QStringLiteral("Area");
|
||||||
|
case Esri::ArcGISRuntime::GeometryDimension::Volume:
|
||||||
|
return QStringLiteral("Volume");
|
||||||
|
} // switch
|
||||||
|
Q_ASSERT(false);
|
||||||
|
return QStringLiteral("Esri-GeometryDimensionERROR");
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
std::ostream &operator<< (std::ostream &stream,
|
std::ostream &operator<< (std::ostream &stream,
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ enum class NetworkCachePolicy;
|
|||||||
enum class SceneLocationVisibility;
|
enum class SceneLocationVisibility;
|
||||||
enum class ViewpointType;
|
enum class ViewpointType;
|
||||||
enum class GeometryType;
|
enum class GeometryType;
|
||||||
|
enum class GeometryDimension;
|
||||||
class Viewpoint;
|
class Viewpoint;
|
||||||
class Camera;
|
class Camera;
|
||||||
|
|
||||||
@@ -112,6 +113,7 @@ SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::Error &value);
|
|||||||
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::ElevationSourceType value);
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::ElevationSourceType value);
|
||||||
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GraphicsRenderingMode value);
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GraphicsRenderingMode value);
|
||||||
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GeometryType value);
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GeometryType value);
|
||||||
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GeometryDimension value);
|
||||||
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LayerType value);
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LayerType value);
|
||||||
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LicenseStatus value);
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LicenseStatus value);
|
||||||
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LoadStatus value);
|
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LoadStatus value);
|
||||||
@@ -130,6 +132,8 @@ SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
|||||||
const Esri::ArcGISRuntime::ElevationSourceType value);
|
const Esri::ArcGISRuntime::ElevationSourceType value);
|
||||||
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
||||||
const Esri::ArcGISRuntime::GraphicsRenderingMode value);
|
const Esri::ArcGISRuntime::GraphicsRenderingMode value);
|
||||||
|
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
||||||
|
const Esri::ArcGISRuntime::GeometryDimension value);
|
||||||
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
||||||
const Esri::ArcGISRuntime::GeometryType value);
|
const Esri::ArcGISRuntime::GeometryType value);
|
||||||
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
||||||
|
|||||||
@@ -16,7 +16,9 @@
|
|||||||
|
|
||||||
#include <AnalysisOverlay.h>
|
#include <AnalysisOverlay.h>
|
||||||
#include <AnalysisListModel.h>
|
#include <AnalysisListModel.h>
|
||||||
|
#include <AnalysisOverlayListModel.h>
|
||||||
#include <ExploratoryLocationViewshed.h>
|
#include <ExploratoryLocationViewshed.h>
|
||||||
|
#include <Point.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|||||||
+20
-9
@@ -27,19 +27,30 @@
|
|||||||
#include <GeoprocessingParameter.h>
|
#include <GeoprocessingParameter.h>
|
||||||
#include <GeoprocessingParameters.h>
|
#include <GeoprocessingParameters.h>
|
||||||
#include <GeoprocessingResult.h>
|
#include <GeoprocessingResult.h>
|
||||||
|
#include <GeoprocessingTypes.h>
|
||||||
#include <FeatureCollectionTable.h>
|
#include <FeatureCollectionTable.h>
|
||||||
#include <Feature.h>
|
#include <Feature.h>
|
||||||
#include <SimpleMarkerSymbol.h>
|
#include <SimpleMarkerSymbol.h>
|
||||||
#include <SimpleFillSymbol.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 <GeoprocessingLinearUnit.h>
|
||||||
#include <ImageServiceRaster.h>
|
#include <ImageServiceRaster.h>
|
||||||
#include <RasterLayer.h>
|
#include <RasterLayer.h>
|
||||||
#include <GeometryEngine.h>
|
#include <GeometryEngine.h>
|
||||||
|
#include <GraphicListModel.h>
|
||||||
|
#include <Field.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QUuid>
|
||||||
|
|
||||||
|
|
||||||
namespace SituationMap
|
namespace SituationMap
|
||||||
@@ -394,7 +405,14 @@ bool ViewshedGeoProcessing::processRasterResults(Esri::ArcGISRuntime::Geoprocess
|
|||||||
{
|
{
|
||||||
DEBUG_LOG(m_logger) << LOGFUNCTION << " viewshedResultRaster -> url = " << viewshedResultRaster->url().toString();
|
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;
|
DEBUG_LOG(m_logger) << LOGFUNCTION << " filePath=" << filePath;
|
||||||
|
|
||||||
Esri::ArcGISRuntime::Raster *raster = new Esri::ArcGISRuntime::Raster(filePath, this);
|
Esri::ArcGISRuntime::Raster *raster = new Esri::ArcGISRuntime::Raster(filePath, this);
|
||||||
@@ -441,13 +459,6 @@ bool ViewshedGeoProcessing::processRasterResults(Esri::ArcGISRuntime::Geoprocess
|
|||||||
raster->load();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -484,7 +495,7 @@ void ViewshedGeoProcessing::createExtentGraphic(const Esri::ArcGISRuntime::Point
|
|||||||
m_resultsOverlay->graphics()->append(m_extentGraphic);
|
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);
|
m_extentGraphic->setGeometry(circlePoly);
|
||||||
|
|
||||||
|
|||||||
+1
@@ -14,6 +14,7 @@
|
|||||||
// ESRI
|
// ESRI
|
||||||
#include <Map.h>
|
#include <Map.h>
|
||||||
#include <SpatialReference.h>
|
#include <SpatialReference.h>
|
||||||
|
#include <TaskTypes.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|||||||
@@ -23,6 +23,12 @@
|
|||||||
|
|
||||||
#include "Rubberbands/rubberband_factory.h"
|
#include "Rubberbands/rubberband_factory.h"
|
||||||
|
|
||||||
|
// ESRI
|
||||||
|
#include <LinearUnit.h>
|
||||||
|
#include <AngularUnit.h>
|
||||||
|
#include <GeometryEngine.h>
|
||||||
|
#include <GeodeticDistanceResult.h>
|
||||||
|
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
|
|
||||||
@@ -707,8 +713,8 @@ void ViewshedImpl::onSightFanRb3DApply(RB::RubberbandBase *rbnd)
|
|||||||
Esri::ArcGISRuntime::Point geom2(coord.x(), coord.y(), sr);
|
Esri::ArcGISRuntime::Point geom2(coord.x(), coord.y(), sr);
|
||||||
|
|
||||||
Esri::ArcGISRuntime::GeodeticDistanceResult geodeticDistanceResult = gEngine->distanceGeodetic(geom1, geom2,
|
Esri::ArcGISRuntime::GeodeticDistanceResult geodeticDistanceResult = gEngine->distanceGeodetic(geom1, geom2,
|
||||||
Esri::ArcGISRuntime::LinearUnitId::Meters,
|
Esri::ArcGISRuntime::LinearUnit(Esri::ArcGISRuntime::LinearUnitId::Meters),
|
||||||
Esri::ArcGISRuntime::AngularUnitId::Degrees,
|
Esri::ArcGISRuntime::AngularUnit(Esri::ArcGISRuntime::AngularUnitId::Degrees),
|
||||||
Esri::ArcGISRuntime::GeodeticCurveType::Geodesic);
|
Esri::ArcGISRuntime::GeodeticCurveType::Geodesic);
|
||||||
|
|
||||||
viewshedParameter.outerRadius = geodeticDistanceResult.distance();
|
viewshedParameter.outerRadius = geodeticDistanceResult.distance();
|
||||||
@@ -860,8 +866,8 @@ void ViewshedImpl::onRb3DApply(RB::RubberbandBase *rbnd)
|
|||||||
Esri::ArcGISRuntime::Point geom2(coord.x(), coord.y(), sr);
|
Esri::ArcGISRuntime::Point geom2(coord.x(), coord.y(), sr);
|
||||||
|
|
||||||
Esri::ArcGISRuntime::GeodeticDistanceResult geodeticDistanceResult = gEngine->distanceGeodetic(geom1, geom2,
|
Esri::ArcGISRuntime::GeodeticDistanceResult geodeticDistanceResult = gEngine->distanceGeodetic(geom1, geom2,
|
||||||
Esri::ArcGISRuntime::LinearUnitId::Meters,
|
Esri::ArcGISRuntime::LinearUnit(Esri::ArcGISRuntime::LinearUnitId::Meters),
|
||||||
Esri::ArcGISRuntime::AngularUnitId::Degrees,
|
Esri::ArcGISRuntime::AngularUnit(Esri::ArcGISRuntime::AngularUnitId::Degrees),
|
||||||
Esri::ArcGISRuntime::GeodeticCurveType::Geodesic);
|
Esri::ArcGISRuntime::GeodeticCurveType::Geodesic);
|
||||||
|
|
||||||
viewshedParameter.outerRadius = geodeticDistanceResult.distance();
|
viewshedParameter.outerRadius = geodeticDistanceResult.distance();
|
||||||
|
|||||||
@@ -73,8 +73,6 @@ namespace SituationMap { namespace MathUtils
|
|||||||
*/
|
*/
|
||||||
void rasterize(qreal tMin, qreal tMax, QVector<QPointF> & vertexList);
|
void rasterize(qreal tMin, qreal tMax, QVector<QPointF> & vertexList);
|
||||||
|
|
||||||
void rasterize(qreal tMin, qreal tMax, QList<QPointF> & vertexList);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
qreal _eps;
|
qreal _eps;
|
||||||
|
|||||||
+4
-4
@@ -121,9 +121,9 @@ void EsriDictionaryProcessor::startBaseSymbolCodeToPropertyTable()
|
|||||||
|
|
||||||
// A-sync:
|
// A-sync:
|
||||||
// (slot is a pure virtual method)
|
// (slot is a pure virtual method)
|
||||||
m_baseSymbolCodeToSymbolPropertyTableWatcher = QtConcurrent::run([this]() {
|
(void)(m_baseSymbolCodeToSymbolPropertyTableWatcher = QtConcurrent::run([this]() {
|
||||||
return this->processBaseSymbolCodeToPropertyTable();
|
return this->processBaseSymbolCodeToPropertyTable();
|
||||||
});
|
}));
|
||||||
|
|
||||||
|
|
||||||
// Sync: // processBaseSymbolCodeToPropertyTable();
|
// Sync: // processBaseSymbolCodeToPropertyTable();
|
||||||
@@ -137,9 +137,9 @@ void EsriDictionaryProcessor::startModifierTable()
|
|||||||
|
|
||||||
// A-sync:
|
// A-sync:
|
||||||
// (slot is a pure virtual method)
|
// (slot is a pure virtual method)
|
||||||
m_modifierTableWatcher = QtConcurrent::run([this]() {
|
(void)(m_modifierTableWatcher = QtConcurrent::run([this]() {
|
||||||
return this->processModifierTable();
|
return this->processModifierTable();
|
||||||
});
|
}));
|
||||||
|
|
||||||
// Sync: // processModifierTable();
|
// Sync: // processModifierTable();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user