default_line.sld 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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>Blue Line</Name>
  11. <UserStyle>
  12. <!-- Styles can have names, titles and abstracts -->
  13. <Title>Default Line</Title>
  14. <Abstract>A sample style that draws a line</Abstract>
  15. <!-- FeatureTypeStyles describe how to render different features -->
  16. <!-- A FeatureTypeStyle for rendering lines -->
  17. <FeatureTypeStyle>
  18. <Rule>
  19. <Name>rule1</Name>
  20. <Title>Blue Line</Title>
  21. <Abstract>A solid blue line with a 1 pixel width</Abstract>
  22. <LineSymbolizer>
  23. <Stroke>
  24. <CssParameter name="stroke">#0000FF</CssParameter>
  25. </Stroke>
  26. </LineSymbolizer>
  27. </Rule>
  28. </FeatureTypeStyle>
  29. </UserStyle>
  30. </NamedLayer>
  31. </StyledLayerDescriptor>