RuleBasedLabeling Class

Summary: Applies a labeling to feature according to user-defined rules.

Module: aspose.gis.rendering.labelings

Full Name: aspose.gis.rendering.labelings.RuleBasedLabeling

Inheritance: Labeling

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
RuleBasedLabeling()Initializes a new instance of the RuleBasedLabeling class

Properties

NameTypeAccessDescription
null [static]NullLabelingrGets an instance of NullLabeling.

Methods

NameDescription
add(rule)Adds a rule.
add_else_rule(labeling)Adds a labeling that will be applied to features that don’t match any filtering rule.

Constructor: RuleBasedLabeling()

 RuleBasedLabeling() 

Initializes a new instance of the RuleBasedLabeling class

Method: add(rule)

 add(rule) 

Adds a rule.

Parameters:

ParameterTypeDescription
ruleLabelingRuleRule to add.

Method: add_else_rule(labeling)

 add_else_rule(labeling) 

Adds a labeling that will be applied to features that don’t match any filtering rule.

Parameters:

ParameterTypeDescription
labelingLabelingA labeling.