|
<?xml version="1.0" encoding="utf-8"?> |
|
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over"> |
|
<Style name="landcover"> |
|
<Rule> |
|
<!-- |
|
Scaling options are fast or bilinear. Fast is fast, but doesn't look nice at low zooms when the image size |
|
is reduced. Bilinear is slow, looks nicer at low zooms, however if you allow overzoom then using bilinear |
|
(as opposed to fast) won't look nice. |
|
|
|
It is up to you, but idealy I would like bilinear for underzoom (low zoom levels; image size reduced) and |
|
linear for overzoom (high zoom levels; image size enlarged). |
|
|
|
You could do this using two rules and use the min and max scale denominators. |
|
--> |
|
<RasterSymbolizer scaling="bilinear"> |
|
<RasterColorizer default-mode="exact" default-color="transparent" epsilon="0.001"> |
|
<!-- |
|
The following classification values were obtained from the documentation accompanying the source dataset. |
|
The classification is © Commonwealth of Australia, (Geoscience Australia) 2011 |
|
and is part of the "The National Dynamic Land Cover Dataset" product, GA Catalogue Number: 71071. |
|
https://www.ga.gov.au/products/servlet/controller?event=GEOCAT_DETAILS&catno=71071 |
|
|
|
It's use here is in accordance with the Creative Commons Attribution 2.5 Australia license |
|
http://creativecommons.org/licenses/by/2.5/au/ |
|
|
|
Furthermore these step values have been automatically generated using the 04-transform-classification.pl script. |
|
--> |
|
<stop value="1" color="rgb(130,130,130)"/> |
|
<stop value="2" color="rgb(0,0,0)"/> |
|
<stop value="3" color="rgb(0,70,173)"/> |
|
<stop value="4" color="rgb(150,225,255)"/> |
|
<stop value="5" color="rgb(90,36,90)"/> |
|
<stop value="6" color="rgb(166,38,170)"/> |
|
<stop value="7" color="rgb(183,18,52)"/> |
|
<stop value="8" color="rgb(198,141,153)"/> |
|
<stop value="9" color="rgb(226,194,199)"/> |
|
<stop value="10" color="rgb(219,77,105)"/> |
|
<stop value="11" color="rgb(0,178,160)"/> |
|
<stop value="12" color="rgb(255,255,115)"/> |
|
<stop value="13" color="rgb(255,255,203)"/> |
|
<stop value="14" color="rgb(255,121,0)"/> |
|
<stop value="15" color="rgb(255,255,255)"/> |
|
<stop value="16" color="rgb(255,255,115)"/> |
|
<stop value="17" color="rgb(225,225,225)"/> |
|
<stop value="18" color="rgb(255,169,82)"/> |
|
<stop value="19" color="rgb(247,232,89)"/> |
|
<stop value="20" color="rgb(251,206,146)"/> |
|
<stop value="21" color="rgb(249,229,38)"/> |
|
<stop value="22" color="rgb(255,255,203)"/> |
|
<stop value="23" color="rgb(253,196,128)"/> |
|
<stop value="24" color="rgb(175,136,80)"/> |
|
<stop value="25" color="rgb(193,168,117)"/> |
|
<stop value="26" color="rgb(125,50,40)"/> |
|
<stop value="27" color="rgb(221,204,165)"/> |
|
<stop value="28" color="rgb(234,170,122)"/> |
|
<stop value="29" color="rgb(209,191,145)"/> |
|
<stop value="30" color="rgb(140,95,70)"/> |
|
<stop value="31" color="rgb(0,133,0)"/> |
|
<stop value="32" color="rgb(20,194,0)"/> |
|
<stop value="33" color="rgb(214,255,138)"/> |
|
<stop value="34" color="rgb(186,232,96)"/> |
|
</RasterColorizer> |
|
</RasterSymbolizer> |
|
</Rule> |
|
</Style> |
|
|
|
<Layer name="dlcd"> |
|
<StyleName>landcover</StyleName> |
|
<Datasource> |
|
<Parameter name="file">raster-web-mercator/DLCDv1_Class.tiff</Parameter> |
|
<Parameter name="type">gdal</Parameter> |
|
<Parameter name="band">1</Parameter> |
|
</Datasource> |
|
</Layer> |
|
</Map> |