def SetDefaultFrameAxisStyle(layer, sensor='DEFAULT'): ''' Line Symbol ''' sensor_style = S.getSensor(sensor) style = S.getFrameAxis() fill_sym = QgsLineSymbol.createSimple({'color': sensor_style['OUTLINE_COLOR'], 'width': sensor_style['OUTLINE_WIDTH'], 'outline_style': style['OUTLINE_STYLE']}) renderer = QgsSingleSymbolRenderer(fill_sym) layer.setRenderer(renderer) return
def SetDefaultFrameAxisStyle(layer, sensor="DEFAULT"): """ Line Symbol """ sensor_style = S.getSensor(sensor) style = S.getFrameAxis() fill_sym = QgsLineSymbol.createSimple({ "color": sensor_style["OUTLINE_COLOR"], "width": sensor_style["OUTLINE_WIDTH"], "outline_style": style["OUTLINE_STYLE"], }) renderer = QgsSingleSymbolRenderer(fill_sym) layer.setRenderer(renderer)