Esempio n. 1
0
def SetDefaultFrameCenterStyle(layer):
    ''' Point Symbol '''
    style = S.getFrameCenterPoint()
    symbol = QgsMarkerSymbol.createSimple(
        {'name': style["NAME"], 'line_color': style["LINE_COLOR"], 'line_width': style["LINE_WIDTH"], 'size': style["SIZE"]})
    renderer = QgsSingleSymbolRenderer(symbol)
    layer.setRenderer(renderer)
    return
Esempio n. 2
0
def SetDefaultFrameCenterStyle(layer):
    """ Frame Center Symbol """
    style = S.getFrameCenterPoint()
    symbol = QgsMarkerSymbol.createSimple({
        "name": style["NAME"],
        "line_color": style["LINE_COLOR"],
        "line_width": style["LINE_WIDTH"],
        "size": style["SIZE"],
    })
    renderer = QgsSingleSymbolRenderer(symbol)
    layer.setRenderer(renderer)