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 SetDefaultFootprintStyle(layer, sensor='DEFAULT'): ''' Footprint Symbol ''' style = S.getSensor(sensor) fill_sym = QgsFillSymbol.createSimple({'color': style['COLOR'], 'outline_color': style['OUTLINE_COLOR'], 'outline_style': style['OUTLINE_STYLE'], 'outline_width': style['OUTLINE_WIDTH']}) 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)
def SetDefaultFootprintStyle(layer, sensor="DEFAULT"): """ Footprint Symbol """ style = S.getSensor(sensor) fill_sym = QgsFillSymbol.createSimple({ "color": style["COLOR"], "outline_color": style["OUTLINE_COLOR"], "outline_style": style["OUTLINE_STYLE"], "outline_width": style["OUTLINE_WIDTH"], }) renderer = QgsSingleSymbolRenderer(fill_sym) layer.setRenderer(renderer)