Package sld :: Class FeatureTypeStyle
[hide private]
[frames] | no frames]

Class FeatureTypeStyle

source code


A FeatureTypeStyle node contains all Rule objects applicable to a specific layer. A FeatureTypeStyle is a child of a UserStyle element.

Instance Methods [hide private]
 
__init__(self, parent, descendant=True)
Create a new FeatureTypeNode node, as a child of the specified parent.
source code
 
normalize(self)
Normalize this element and all child Rules.
source code
sld.Rules
Rules(self)
Get the sld.Rules pythonic list helper for all Rule objects in this style.
source code
Rule
create_rule(self, title, symbolizer=None, MinScaleDenominator=None, MaxScaleDenominator=None)
Create a Rule object on this style.
source code

Inherited from SLDNode: create_element, get_or_create_element

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from SLDNode: makeproperty

Class Variables [hide private]

Inherited from SLDNode (private): _nsmap

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, descendant=True)
(Constructor)

source code 

Create a new FeatureTypeNode node, as a child of the specified parent.

Parameters:
  • parent (UserStyle) - The parent class object.
  • descendant (boolean) - A flag indicating if this is a descendant node of the parent.
Overrides: object.__init__

normalize(self)

source code 

Normalize this element and all child Rules. The SLD model is modified in place.

Rules(self)

source code 

Get the sld.Rules pythonic list helper for all Rule objects in this style.

Returns: sld.Rules
A list of all rules applied to this style.
Decorators:
  • @property

create_rule(self, title, symbolizer=None, MinScaleDenominator=None, MaxScaleDenominator=None)

source code 

Create a Rule object on this style. A rule requires a title and symbolizer. If no symbolizer is specified, a PointSymbolizer will be assigned to the rule.

Parameters:
  • title (string) - The name of the new Rule.
  • symbolizer (Symbolizer class) - The symbolizer type. This is the class object (as opposed to a class instance) of the symbolizer to use.
Returns: Rule
A newly created rule, attached to this FeatureTypeStyle.