default_line.sld 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <StyledLayerDescriptor version="1.0.0"
  3. xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
  4. xmlns="http://www.opengis.net/sld"
  5. xmlns:ogc="http://www.opengis.net/ogc"
  6. xmlns:xlink="http://www.w3.org/1999/xlink"
  7. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  8. <!-- a named layer is the basic building block of an sld document -->
  9. <NamedLayer>
  10. <Name>Default Line</Name>
  11. <UserStyle>
  12. <!-- they have names, titles and abstracts -->
  13. <Title>Blue Line</Title>
  14. <Abstract>A sample style that just prints out a green line</Abstract>
  15. <!-- FeatureTypeStyles describe how to render different features -->
  16. <!-- a feature type for lines -->
  17. <FeatureTypeStyle>
  18. <!--FeatureTypeName>Feature</FeatureTypeName-->
  19. <Rule>
  20. <Name>Rule 1</Name>
  21. <Title>Blue Line</Title>
  22. <Abstract>A blue line with a default pixel width</Abstract>
  23. <!-- like a polygonsymbolizer -->
  24. <LineSymbolizer>
  25. <Stroke>
  26. <CssParameter name="stroke">#0000FF</CssParameter>
  27. </Stroke>
  28. </LineSymbolizer>
  29. </Rule>
  30. </FeatureTypeStyle>
  31. </UserStyle>
  32. </NamedLayer>
  33. </StyledLayerDescriptor>