parpoint.sld 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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"
  4. xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
  5. <NamedLayer>
  6. <UserStyle>
  7. <Title>Default point</Title>
  8. <Abstract>A sample style that just prints out a 6px wide red square</Abstract>
  9. <FeatureTypeStyle>
  10. <Rule>
  11. <Title>Red square</Title>
  12. <PointSymbolizer>
  13. <Graphic>
  14. <Mark>
  15. <WellKnownName><ogc:Function name="env">
  16. <ogc:Literal>name</ogc:Literal>
  17. <ogc:Literal>square</ogc:Literal>
  18. </ogc:Function>
  19. </WellKnownName>
  20. <Fill>
  21. <CssParameter name="fill">
  22. #<ogc:Function name="env">
  23. <ogc:Literal>color</ogc:Literal>
  24. <ogc:Literal>FF0000</ogc:Literal>
  25. </ogc:Function>
  26. </CssParameter>
  27. </Fill>
  28. </Mark>
  29. <Size>
  30. <ogc:Function name="env">
  31. <ogc:Literal>size</ogc:Literal>
  32. <ogc:Literal>6</ogc:Literal>
  33. </ogc:Function>
  34. </Size>
  35. </Graphic>
  36. </PointSymbolizer>
  37. </Rule>
  38. </FeatureTypeStyle>
  39. </UserStyle>
  40. </NamedLayer>
  41. </StyledLayerDescriptor>