Package mapnik :: Module _mapnik :: Class RasterSymbolizer

Class RasterSymbolizer

 object --+    
          |    
??.instance --+
              |
             RasterSymbolizer

Instance Methods
 
__getstate__(...)
__getstate__( (RasterSymbolizer)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1) -> None : Default ctor
 
__reduce__(...)
helper for pickle
 
__setstate__(...)
__setstate__( (RasterSymbolizer)arg1, (tuple)arg2) -> None :
 
symbol(self)

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 192
  __safe_for_unpickling__ = True
Properties
  colorizer
Get/Set the RasterColorizer used to color data rasters.
  filter_factor
Get/Set the filter factor used by the datasource.
  mesh_size
Get/Set warping mesh size.
  mode
Get/Set merging mode.
  opacity
Get/Set opacity.
  scaling
Get/Set scaling algorithm.

Inherited from object: __class__

Method Details

__getstate__(...)

 

__getstate__( (RasterSymbolizer)arg1) -> tuple :

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

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :
    Default ctor

    C++ signature :
        void __init__(_object*)

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__setstate__(...)

 

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

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


Property Details

colorizer

Get/Set the RasterColorizer used to color data rasters.

Usage:

>>> from mapnik import RasterSymbolizer, RasterColorizer
>>> r = RasterSymbolizer()
>>> r.colorizer = RasterColorizer()
>>> for value, color in [
...     (0, "#000000"),
...     (10, "#ff0000"),
...     (40, "#00ff00"),
... ]:
...      r.colorizer.append_band(value, color)
Get Method:
unreachable(...)
Set Method:
unreachable(...)

filter_factor

Get/Set the filter factor used by the datasource.

This is used by the Raster or Gdal datasources to pre-downscale
images using overviews.
Higher numbers can sometimes cause much better scaled image
output, at the cost of speed.

Examples:
 -1.0 : (Default) A suitable value will be determined from the
        chosen scaling method during rendering.
  1.0 : The datasource will take care of all the scaling
        (using nearest neighbor interpolation)
  2.0 : The datasource will scale the datasource to
        2.0x the desired size, and mapnik will scale the rest
        of the way using the interpolation defined in self.scaling.

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

mesh_size

Get/Set warping mesh size. Larger values result in faster warping times but might result in distorted maps.

Usage:

>>> from mapnik import RasterSymbolizer
>>> r = RasterSymbolizer()
>>> r.mesh_size = 32
Get Method:
unreachable(...)
Set Method:
unreachable(...)

mode

Get/Set merging mode. Possible values are: normal, grain_merge, grain_merge2, multiply, multiply2, divide, divide2, screen, and hard_light

Usage:

>>> from mapnik import RasterSymbolizer
>>> r = RasterSymbolizer()
>>> r.mode = 'grain_merge2'
Get Method:
unreachable(...)
Set Method:
unreachable(...)

opacity

Get/Set opacity.

Usage:

>>> from mapnik import RasterSymbolizer
>>> r = RasterSymbolizer()
>>> r.opacity = .5
Get Method:
unreachable(...)
Set Method:
unreachable(...)

scaling

Get/Set scaling algorithm. Possible values are: fast, bilinear, and bilinear8

Usage:

>>> from mapnik import RasterSymbolizer
>>> r = RasterSymbolizer()
>>> r.scaling = 'bilinear8'
Get Method:
unreachable(...)
Set Method:
unreachable(...)