Home | Trees | Indices | Help |
|
---|
|
object --+ | ??.instance --+ | RasterSymbolizer
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
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 |
Method Details |
__getstate__( (RasterSymbolizer)arg1) -> tuple : C++ signature : boost::python::tuple __getstate__(mapnik::raster_symbolizer) |
__init__( (object)arg1) -> None : Default ctor C++ signature : void __init__(_object*)
|
helper for pickle
|
__setstate__( (RasterSymbolizer)arg1, (tuple)arg2) -> None : C++ signature : void __setstate__(mapnik::raster_symbolizer {lvalue},boost::python::tuple) |
Property Details |
colorizerGet/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)
|
filter_factorGet/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.
|
mesh_sizeGet/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
|
modeGet/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'
|
opacityGet/Set opacity. Usage: >>> from mapnik import RasterSymbolizer >>> r = RasterSymbolizer() >>> r.opacity = .5
|
scalingGet/Set scaling algorithm. Possible values are: fast, bilinear, and bilinear8 Usage: >>> from mapnik import RasterSymbolizer >>> r = RasterSymbolizer() >>> r.scaling = 'bilinear8'
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 24 13:21:24 2012 | http://epydoc.sourceforge.net |