예제 #1
0
def exportCeRuleBasedLabelingRule(cc, lab):
    r = cc.clause(lab, lab.layerType(), sub=[cc.export(r) for r in lab.sub])

    if 'scalemaxdenom' in lab.attributes:
        r.zoom = [
            lab.attributes['scalemindenom'], lab.attributes['scalemaxdenom']
        ]

    if 'filter' in lab.attributes:
        r.filter = cc.var(lab.attributes['filter'])

    if lab.props:
        r.props = style.convert(cc, lab, 'label')
    return r
예제 #2
0
def exportQgsSimpleMarkerSymbolLayerV2(cc, sla):
    props = style.convert(cc, sla, 'marker')
    return cc.clause(sla, sla.layerType(), props=props)
예제 #3
0
def exportQgsSimpleLineSymbolLayerV2(cc, sla):
    props = style.convert(cc, sla, 'line')
    return cc.clause(sla, sla.layerType(), props=props)
예제 #4
0
def exportQgsSimpleFillSymbolLayerV2(cc, sla):
    props = style.convert(cc, sla, 'outline, fill')
    return cc.clause(sla, sla.layerType(), props=props)
예제 #5
0
def exportCeSimpleLabeling(cc, lab):
    props = style.convert(cc, lab, 'label')
    return cc.clause(lab, lab.layerType(), props=props)