Inserts again intermediate migration results to remote repo
This commit is contained in:
21 files changed
+153
-24
No files matched your search
+15
-1
@@ -19,6 +19,12 @@
|
||||
#include <SimpleFillSymbol.h>
|
||||
#include <GeoView.h>
|
||||
#include <GeometryEngine.h>
|
||||
#include <SpatialReference.h>
|
||||
#include <Polyline.h>
|
||||
#include <Polygon.h>
|
||||
#include <Graphic.h>
|
||||
#include <LinearUnit.h>
|
||||
#include <AngularUnit.h>
|
||||
|
||||
// Qt
|
||||
|
||||
@@ -220,7 +226,15 @@ bool GraphicalObjectPath::updateViewImpl()
|
||||
break;
|
||||
} // 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)
|
||||
WARNING_LOG(m_logger) << LOGFUNCTION << " debugInfo='" << m_debugInfo << "'"
|
||||
<< ", huge amount of vertices, countOfPolygonFirstPart = " << count;
|
||||
|
||||
Reference in new issue
Block a user