Uploaded image for project: 'GeoServer'
  1. GEOS-7759

Generating a raster SLD style from template produces a formally invalid style

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3, 2.10.1
    • Component/s: Wicket UI
    • Labels:
      None

      Description

      When generating a "raster" style from the style editor the following gets created:

      <?xml version="1.0" encoding="UTF-8"?>
      <StyledLayerDescriptor 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" xsi:schemaLocation="http://www.opengis.net/sld
      http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
      <UserLayer>
          <Name>cities</Name>
          <UserStyle>
              <Name>raster</Name>
              <FeatureTypeStyle>
                  <FeatureTypeName>Feature</FeatureTypeName>
                  <Rule>
                      <RasterSymbolizer>
                          <Opacity>1.0</Opacity>
                      </RasterSymbolizer>
                  </Rule>
              </FeatureTypeStyle>
          </UserStyle>
      </UserLayer>
      </StyledLayerDescriptor>
      

      Validating it results in an error, because UserLayer cannot have right a way a UserStyle. The vector templates are using a NamedLayer instead, where this issue is not hapenning.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                aaime Andrea Aime
                Reporter:
                aaime Andrea Aime
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: