arcgis qt sdk 画圆

使用版本10.2.1

https://community.esri.com/thread/203779-draw-circles-and-sectors-on-the-map

SimpleLineSymbol* circleOutline = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, QColor(Qt::lightGray), 2, this);
SimpleFillSymbol* circleSym = new SimpleFillSymbol(SimpleFillSymbolStyle::Solid, Qt::transparent, circleOutline, this);

m_graphicsOverlays[GRAPHIC_OVERLAY_RANGE]->setRenderer(new SimpleRenderer(circleSym));

Polygon poly1 = GeometryEngine::bufferGeodetic(systemPosition, range1Meters, LinearUnit::meters(), 0.5, GeodeticCurveType::Geodesic);

Graphic* graphic1 = new Graphic(poly1);

m_graphicsOverlays[GRAPHIC_OVERLAY_RANGE]->graphics()->append(graphic1);

猜你喜欢

转载自blog.csdn.net/qiushangren/article/details/81775280