Esempio n. 1
0
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
Esempio n. 2
0
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)