mapnik/tests/visual_tests/styles/raster_symbolizer.xml

36 lines
1.1 KiB
XML
Raw Normal View History

2011-02-05 04:21:22 +01:00
<Map background-color="white" srs="+init=epsg:32630" minimum-version="0.7.2">
2011-02-05 04:21:22 +01:00
<Style name="two-value">
<Rule>
2011-02-05 04:21:22 +01:00
<RasterSymbolizer opacity="1">
<RasterColorizer default-mode="discrete" default-color="#000000">
<stop value="0" color="yellow"/>
<stop value="26" color="purple"/>
</RasterColorizer>
</RasterSymbolizer>
</Rule>
</Style>
2011-01-31 19:30:14 +01:00
<Style name="ramped">
<Rule>
<RasterSymbolizer scaling="near" opacity="1">
<RasterColorizer default-mode="linear" default-color="#00000000">
<stop value="0" color="red"/>
<stop value="26" color="green"/>
</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 -->
2013-09-25 23:08:47 +02:00
<Parameter name="file">../../data/raster/dataraster.tif</Parameter>
<Parameter name="type">gdal</Parameter>
<Parameter name="band">1</Parameter>
</Datasource>
</Layer>
</Map>