mapnik/tests/data/good_maps/raster_symbolizer.xml
2011-01-31 18:30:14 +00:00

36 lines
No EOL
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Map background-color="white" srs="+init=epsg:32630">
<Style name="two-value" >
<Rule>
<RasterSymbolizer opacity="1" >
<RasterColorizer>
<ColorBand value="0" color="yellow" label="&lt;0"></ColorBand>
<ColorBand value="26" color="purple" midpoints="1"></ColorBand>
</RasterColorizer>
</RasterSymbolizer>
</Rule>
</Style>
<Style name="ramped">
<Rule>
<RasterSymbolizer>
<RasterColorizer>
<ColorBand value="0" color="red" label="&lt;0"></ColorBand>
<ColorBand value="26" color="green" midpoints="100"></ColorBand>
</RasterColorizer>
</RasterSymbolizer>
</Rule>
</Style>
<Layer name="dataraster" srs="+init=epsg:32630">
<StyleName>ramped</StyleName>
<Datasource>
<!-- get stats on this file with gdalinfo ../raster/dataraster.tif -stats -->
<Parameter name="file">../raster/dataraster.tif</Parameter>
<Parameter name="type">gdal</Parameter>
<Parameter name="band">1</Parameter>
</Datasource>
</Layer>
</Map>