Updated RasterColorizer (markdown)

ThomasG77 2011-12-20 13:56:55 -08:00
parent bc27863c04
commit 88c42537f9

@ -82,7 +82,6 @@ In this example XML, the following value to color translation is performed:
```xml ```xml
#!xml
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=latlong +datum=WGS84"> <Map srs="+proj=latlong +datum=WGS84">
<Style name="elevation"> <Style name="elevation">
@ -113,7 +112,6 @@ In this example XML, the following value to color translation is performed:
</Map> </Map>
``` ```
# Python Bindings # Python Bindings
Python bindings are available. The objects are as follows: Python bindings are available. The objects are as follows:
@ -140,9 +138,7 @@ This is the enumeration of the stop modes. The values are _mapnik2.COLORIZER_LIN
## Example Python ## Example Python
```python ```python
#!py
import mapnik2 import mapnik2
c = mapnik2.RasterColorizer( mapnik2.COLORIZER_DISCRETE , mapnik2.Color(0,0,0,255) ) c = mapnik2.RasterColorizer( mapnik2.COLORIZER_DISCRETE , mapnik2.Color(0,0,0,255) )
c.epsilon = 0.001 c.epsilon = 0.001