예제 #1
0
def SetDefaultTrajectoryStyle(layer):
    ''' Trajectory Symbol '''
    style = S.getTrajectory('DEFAULT')
    symbol = layer.renderer().symbol()
    symbol.setColor(style['COLOR'])
    symbol.setWidth(style['WIDTH'])
    return
예제 #2
0
def SetDefaultTrajectoryStyle(layer):
    ''' Trajectory Symbol '''
    style = S.getTrajectory('DEFAULT')
    fill_sym = QgsLineSymbol.createSimple({'color': style['COLOR'],
                                           'width': style['WIDTH'],
                                           'customdash': style['customdash'],
                                           'use_custom_dash': style['use_custom_dash']})
    renderer = QgsSingleSymbolRenderer(fill_sym)
    layer.setRenderer(renderer)
    return
예제 #3
0
def SetDefaultTrajectoryStyle(layer):
    """ Trajectory Symbol """
    style = S.getTrajectory("DEFAULT")
    fill_sym = QgsLineSymbol.createSimple({
        "color":
        style["COLOR"],
        "width":
        style["WIDTH"],
        "customdash":
        style["customdash"],
        "use_custom_dash":
        style["use_custom_dash"],
    })
    renderer = QgsSingleSymbolRenderer(fill_sym)
    layer.setRenderer(renderer)