green.sld 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. <!-- a named layer is the basic building block of an sld document -->
  4. <NamedLayer>
  5. <Name>A Test Layer</Name>
  6. <!-- with in a layer you have Named Styles -->
  7. <UserStyle>
  8. <!-- again they have names, titles and abstracts -->
  9. <Name>polyshp</Name>
  10. <!-- FeatureTypeStyles describe how to render different features -->
  11. <!-- a feature type for polygons -->
  12. <FeatureTypeStyle>
  13. <Rule>
  14. <!-- like a linesymbolizer but with a fill too -->
  15. <PolygonSymbolizer>
  16. <Fill>
  17. <!-- CssParameters allowed are fill (the color) and fill-opacity -->
  18. <CssParameter name="fill">#66FF66</CssParameter>
  19. </Fill>
  20. <Stroke/>
  21. </PolygonSymbolizer>
  22. </Rule>
  23. </FeatureTypeStyle>
  24. </UserStyle>
  25. </NamedLayer>
  26. </StyledLayerDescriptor>