pophatch.sld 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc"
  3. xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml"
  4. xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
  5. <NamedLayer>
  6. <Name>USA states population</Name>
  7. <UserStyle>
  8. <Name>population</Name>
  9. <Title>Population in the United States</Title>
  10. <Abstract>A sample filter that filters the United States into three
  11. categories of population, drawn in different colors</Abstract>
  12. <FeatureTypeStyle>
  13. <Rule>
  14. <Title>&lt; 2M</Title>
  15. <ogc:Filter>
  16. <ogc:PropertyIsLessThan>
  17. <ogc:PropertyName>PERSONS</ogc:PropertyName>
  18. <ogc:Literal>2000000</ogc:Literal>
  19. </ogc:PropertyIsLessThan>
  20. </ogc:Filter>
  21. <PolygonSymbolizer>
  22. <Fill>
  23. <GraphicFill>
  24. <Graphic>
  25. <Mark>
  26. <WellKnownName>shape://slash</WellKnownName>
  27. <Stroke>
  28. <CssParameter name="stroke">0xAAAAAA</CssParameter>
  29. </Stroke>
  30. </Mark>
  31. <Size>16</Size>
  32. </Graphic>
  33. </GraphicFill>
  34. </Fill>
  35. </PolygonSymbolizer>
  36. </Rule>
  37. <Rule>
  38. <Title>2M - 4M</Title>
  39. <ogc:Filter>
  40. <ogc:PropertyIsBetween>
  41. <ogc:PropertyName>PERSONS</ogc:PropertyName>
  42. <ogc:LowerBoundary>
  43. <ogc:Literal>2000000</ogc:Literal>
  44. </ogc:LowerBoundary>
  45. <ogc:UpperBoundary>
  46. <ogc:Literal>4000000</ogc:Literal>
  47. </ogc:UpperBoundary>
  48. </ogc:PropertyIsBetween>
  49. </ogc:Filter>
  50. <PolygonSymbolizer>
  51. <Fill>
  52. <GraphicFill>
  53. <Graphic>
  54. <Mark>
  55. <WellKnownName>shape://slash</WellKnownName>
  56. <Stroke>
  57. <CssParameter name="stroke">0xAAAAAA</CssParameter>
  58. </Stroke>
  59. </Mark>
  60. <Size>8</Size>
  61. </Graphic>
  62. </GraphicFill>
  63. </Fill>
  64. </PolygonSymbolizer>
  65. </Rule>
  66. <Rule>
  67. <Title>&gt; 4M</Title>
  68. <!-- like a linesymbolizer but with a fill too -->
  69. <ogc:Filter>
  70. <ogc:PropertyIsGreaterThan>
  71. <ogc:PropertyName>PERSONS</ogc:PropertyName>
  72. <ogc:Literal>4000000</ogc:Literal>
  73. </ogc:PropertyIsGreaterThan>
  74. </ogc:Filter>
  75. <PolygonSymbolizer>
  76. <Fill>
  77. <GraphicFill>
  78. <Graphic>
  79. <Mark>
  80. <WellKnownName>shape://slash</WellKnownName>
  81. <Stroke>
  82. <CssParameter name="stroke">0xAAAAAA</CssParameter>
  83. </Stroke>
  84. </Mark>
  85. <Size>4</Size>
  86. </Graphic>
  87. </GraphicFill>
  88. </Fill>
  89. </PolygonSymbolizer>
  90. </Rule>
  91. <Rule>
  92. <Title>Boundary</Title>
  93. <LineSymbolizer>
  94. <Stroke />
  95. </LineSymbolizer>
  96. <TextSymbolizer>
  97. <Label>
  98. <ogc:PropertyName>STATE_ABBR</ogc:PropertyName>
  99. </Label>
  100. <Font>
  101. <CssParameter name="font-family">Times New Roman</CssParameter>
  102. <CssParameter name="font-style">Normal</CssParameter>
  103. <CssParameter name="font-size">14</CssParameter>
  104. </Font>
  105. <LabelPlacement>
  106. <PointPlacement>
  107. <AnchorPoint>
  108. <AnchorPointX>0.5</AnchorPointX>
  109. <AnchorPointY>0.5</AnchorPointY>
  110. </AnchorPoint>
  111. </PointPlacement>
  112. </LabelPlacement>
  113. <Halo>
  114. <Radius>2</Radius>
  115. <Fill>
  116. <CssParameter name="fill">0xFFFFFF</CssParameter>
  117. </Fill>
  118. </Halo>
  119. </TextSymbolizer>
  120. </Rule>
  121. </FeatureTypeStyle>
  122. </UserStyle>
  123. </NamedLayer>
  124. </StyledLayerDescriptor>