def SetDefaultTrajectoryStyle(layer): ''' Trajectory Symbol ''' style = S.getTrajectory('DEFAULT') symbol = layer.renderer().symbol() symbol.setColor(style['COLOR']) symbol.setWidth(style['WIDTH']) return
def SetDefaultTrajectoryStyle(layer): ''' Trajectory Symbol ''' style = S.getTrajectory('DEFAULT') fill_sym = QgsLineSymbol.createSimple({'color': style['COLOR'], 'width': style['WIDTH'], 'customdash': style['customdash'], 'use_custom_dash': style['use_custom_dash']}) renderer = QgsSingleSymbolRenderer(fill_sym) layer.setRenderer(renderer) return
def SetDefaultTrajectoryStyle(layer): """ Trajectory Symbol """ style = S.getTrajectory("DEFAULT") fill_sym = QgsLineSymbol.createSimple({ "color": style["COLOR"], "width": style["WIDTH"], "customdash": style["customdash"], "use_custom_dash": style["use_custom_dash"], }) renderer = QgsSingleSymbolRenderer(fill_sym) layer.setRenderer(renderer)