QgsSimpleMarkerSymbolLayer *sml = new QgsSimpleMarkerSymbolLayer();
QgsMarkerSymbol *sym = new QgsMarkerSymbol();
sym->changeSymbolLayer(0,sml);
sym->setSize(100);
sym->setOutputUnit(QgsUnitTypes::RenderMetersInMapUnits);
vecLayer->setRenderer(new QgsSingleSymbolRenderer(sym));
QGIS二次开发(3)二维矢量符号化MeterAtScale--远小近大
于 2022-05-18 08:43:07 首次发布