Guest User

Untitled

a guest
Dec 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
  3. <sld:NamedLayer>
  4. <sld:Name/>
  5. <sld:UserStyle>
  6. <sld:Name/>
  7. <sld:FeatureTypeStyle>
  8. <sld:Transformation>
  9. <ogc:Function name="ras:DynamicColorMap">
  10. <ogc:Function name="parameter">
  11. <ogc:Literal>data</ogc:Literal>
  12. </ogc:Function>
  13. <ogc:Function name="parameter">
  14. <ogc:Literal>opacity</ogc:Literal>
  15. <ogc:Function name="env">
  16. <ogc:Literal>OPACITY</ogc:Literal>
  17. <ogc:Literal>1.0</ogc:Literal>
  18. </ogc:Function>
  19. </ogc:Function>
  20. <ogc:Function name="parameter">
  21. <ogc:Literal>colorRamp</ogc:Literal>
  22. <ogc:Function name="colormap" <ogc:Literal>rgb(241,248,241);rgb(214,234,214);rgb(187,221,187);rgb(161,207,161);rgb(134,194,134);rgb(107,180,107);rgb(80,167,80);rgb(53,153,53);rgb(26,140,26);rgb(0,127,0)</ogc:Literal>
  23. <ogc:Function name="env">
  24. <ogc:Literal>COLORSCALERANGE_MIN</ogc:Literal>
  25. <ogc:Function name="bandStats">
  26. <ogc:Literal>0</ogc:Literal>
  27. <ogc:Literal>minimum</ogc:Literal>
  28. </ogc:Function>
  29. </ogc:Function>
  30. <ogc:Function name="env">
  31. <ogc:Literal>COLORSCALERANGE_MAX</ogc:Literal>
  32. <ogc:Function name="bandStats">
  33. <ogc:Literal>0</ogc:Literal>
  34. <ogc:Literal>maximum</ogc:Literal>
  35. </ogc:Function>
  36. </ogc:Function>
  37. <ogc:Function name="env">
  38. <ogc:Literal>BELOWMINCOLOR</ogc:Literal>
  39. <ogc:Literal>rgba(0,0,0,0)</ogc:Literal>
  40. </ogc:Function>
  41. <ogc:Function name="env">
  42. <ogc:Literal>ABOVEMAXCOLOR</ogc:Literal>
  43. <ogc:Literal>rgba(0,0,0,0)</ogc:Literal>
  44. </ogc:Function>
  45. <ogc:Function name="env">
  46. <ogc:Literal>LOGSCALE</ogc:Literal>
  47. <ogc:Literal>false</ogc:Literal>
  48. </ogc:Function>
  49. <ogc:Function name="env">
  50. <ogc:Literal>NUMCOLORBANDS</ogc:Literal>
  51. <ogc:Literal>254</ogc:Literal>
  52. </ogc:Function>
  53. </ogc:Function>
  54. </ogc:Function>
  55. </ogc:Function>
  56. </sld:Transformation>
  57. <sld:Rule>
  58. <sld:RasterSymbolizer/>
  59. </sld:Rule>
  60. </sld:FeatureTypeStyle>
  61. </sld:UserStyle>
  62. </sld:NamedLayer>
  63. </sld:StyledLayerDescriptor>
  64.  
  65. <?xml version="1.0" encoding="UTF-8"?>
  66. <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
  67. <sld:NamedLayer>
  68. <sld:Name/>
  69. <sld:UserStyle>
  70. <sld:Name/>
  71. <sld:FeatureTypeStyle>
  72. <sld:Transformation>
  73.  
  74.  
  75. <ogc:Function name="ras:Contour">
  76. <ogc:Function name="parameter">
  77. <ogc:Literal>data</ogc:Literal>
  78. </ogc:Function>
  79. <ogc:Function name="parameter">
  80. <ogc:Literal>levels</ogc:Literal>
  81. <ogc:Literal>2.0</ogc:Literal>
  82. <ogc:Literal>3.0</ogc:Literal>
  83. </ogc:Function>
  84. </ogc:Function>
  85.  
  86. </sld:Transformation>
  87. <Rule>
  88. <Name>rule1</Name>
  89. <Title>Contour Line</Title>
  90. <LineSymbolizer>
  91. <Stroke>
  92. <CssParameter name="stroke">#FF0000</CssParameter>
  93. <CssParameter name="stroke-width">1</CssParameter>
  94. </Stroke>
  95. </LineSymbolizer>
  96. </Rule>
  97.  
  98. </sld:FeatureTypeStyle>
  99. </sld:UserStyle>
  100. </sld:NamedLayer>
  101. </sld:StyledLayerDescriptor>
  102.  
  103. <ogc:Function name="ras:DynamicColorMap">
  104. ...
  105. </ogc:Function>
  106. <ogc:Function name="ras:Contour">
  107. ...
  108. </ogc:Function>
Add Comment
Please, Sign In to add comment