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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 2.10.1, 2.11.0, 2.12-beta
    • Fix Version/s: 2.10.4, 2.11.1, 2.12-beta
    • Component/s: None
    • Labels:
      None

      Description

      Continuation of GEOS-7759 Closed .

      The fix introduced by that issue results in a style of the form:

      <?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">
        <NamedLayer>
          <Name>opengeo_i_3001a1</Name>
          <UserStyle>
            <Title>A raster style</Title>
            <FeatureTypeStyle>
              <FeatureTypeName>Raster</FeatureTypeName>
              <Rule>
                <RasterSymbolizer>
                  <Opacity>1.0</Opacity>
                </RasterSymbolizer>
              </Rule>
            </FeatureTypeStyle>
          </UserStyle>
        </NamedLayer>
      </StyledLayerDescriptor>
      

      While this is formally valid, it never actually produces an image - <FeatureTypeName>Raster</FeatureTypeName> means only apply this style to feature types named raster. This should be replaced with <FeatureTypeName>Feature</FeatureTypeName>, which acts as a wild card.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                tbarsballe Torben Barsballe
                Reporter:
                tbarsballe Torben Barsballe
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: