We're updating the issue view to help you get more done. 

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

Description

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

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"> <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.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

Fix versions

Affects versions

None

Components

Priority

Medium