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

Description

Continuation of GEOS-7759.

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <?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.

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Torben Barsballe

Triage

None

Fix versions

Affects versions

2.9.3
2.10.1
2.12-beta
2.11.0

Priority

Medium
Configure