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

Class NamedLayer

source code


A named layer contains a name and a user style. A NamedLayer is a child of a StyledLayerDescriptor.


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

Parameters:
  • parent (StyledLayerDescriptor) - 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_userstyle(self)

source code 

Create a UserStyle for this named layer.

Returns: UserStyle
A newly created user style, attached to this node.