Ejemplo 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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
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)
Ejemplo n.º 4
0
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)