Package mapnik :: Module _mapnik :: Class Style

Class Style

 object --+    
          |    
??.instance --+
              |
             Style

Instance Methods
 
__getstate__(...)
__getstate__( (Style)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1) -> None : default style constructor
 
__reduce__(...)
helper for pickle
 
__setstate__(...)
__setstate__( (Style)arg1, (tuple)arg2) -> None :

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 48
  __safe_for_unpickling__ = True
Properties
  filter_mode
Set/get the placement of the label
  rules
List of rules belonging to a style as rule objects.

Inherited from object: __class__

Method Details

__getstate__(...)

 

__getstate__( (Style)arg1) -> tuple :

    C++ signature :
        boost::python::tuple __getstate__(mapnik::feature_type_style)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :
    default style constructor

    C++ signature :
        void __init__(_object*)

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__setstate__(...)

 

__setstate__( (Style)arg1, (tuple)arg2) -> None :

    C++ signature :
        void __setstate__(mapnik::feature_type_style {lvalue},boost::python::tuple)


Property Details

filter_mode

Set/get the placement of the label

Get Method:
unreachable(...)
Set Method:
unreachable(...)

rules

List of rules belonging to a style as rule objects.

Usage: >>> for r in m.find_style('style 1').rules: >>> print r <mapnik._mapnik.Rule object at 0x100549910> <mapnik._mapnik.Rule object at 0x100549980>

Get Method:
unreachable(...)