Example #1
0
def SetDefaultLineStyle(layer):
    ''' Line Symbol '''
    style = S.getDrawingLine()
    symbol = layer.renderer().symbol()
    symbol.setColor(style['COLOR'])
    symbol.setWidth(style['WIDTH'])
    return
Example #2
0
def SetDefaultLineStyle(layer):
    """ Line Symbol """
    style = S.getDrawingLine()
    symbol = layer.renderer().symbol()
    symbol.setColor(style["COLOR"])
    symbol.setWidth(style["WIDTH"])