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
def exportQgsSimpleMarkerSymbolLayerV2(cc, sla): props = style.convert(cc, sla, 'marker') return cc.clause(sla, sla.layerType(), props=props)
def exportQgsSimpleLineSymbolLayerV2(cc, sla): props = style.convert(cc, sla, 'line') return cc.clause(sla, sla.layerType(), props=props)
def exportQgsSimpleFillSymbolLayerV2(cc, sla): props = style.convert(cc, sla, 'outline, fill') return cc.clause(sla, sla.layerType(), props=props)
def exportCeSimpleLabeling(cc, lab): props = style.convert(cc, lab, 'label') return cc.clause(lab, lab.layerType(), props=props)