Package mapnik :: Module _mapnik :: Class RasterSymbolizer

Class RasterSymbolizer

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

Instance Methods
 
__init__(...)
__init__( (object)arg1) -> None : Default ctor
 
__reduce__(...)
helper for pickle
 
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__ = 104
Properties
  colorizer
Get/Set the RasterColorizer used to color data rasters.
  comp_op
Set/get the raster comp-op
  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

__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)

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(...)

comp_op

Set/get the raster comp-op

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. (deprecated, use comp_op instead)

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.

Usage:

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