[Geoserver-devel] [JIRA] (GEOS-8101) Generating a raster SLD style from template produces a functionally invalid style

Torben Barsballe created an issue

GeoServer / BugGEOS-8101

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

Issue Type:

BugBug

Affects Versions:

2.9.3, 2.10.1, 2.11.0, 2.12-beta

Assignee:

Unassigned

Created:

21/Apr/17 2:11 AM

Priority:

MediumMedium

Reporter:

Torben Barsballe

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.910.0#100040-sha1:0b083fc)

Atlassian logo