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

Class UserStyle

source code


A UserStyle object. A UserStyle is a child of a StyledLayerDescriptor.


Properties:
Instance Methods [hide private]
 
__init__(self, parent, descendant=True)
Create a new UserStyle node.
source code
 
normalize(self)
Normalize this node and all child nodes prior to validation.
source code
FeatureTypeStyle
create_featuretypestyle(self)
Create a FeatureTypeStyle object, and attach it to this UserStyle.
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 UserStyle node.

Parameters:
  • parent (NamedLayer) - 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 node and all child nodes prior to validation. The SLD is modified in place.

create_featuretypestyle(self)

source code 

Create a FeatureTypeStyle object, and attach it to this UserStyle.

Returns: FeatureTypeStyle
A newly created feature type style, attached to this node.