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

Andrea Aime [Administrator] created an issue

GeoServer / BugGEOS-7759

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

Issue Type:

BugBug

Assignee:

Unassigned

Components:

Wicket UI

Created:

22/Sep/16 2:52 PM

Priority:

MediumMedium

Reporter:

Andrea Aime [Administrator]

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.362.1#100014-sha1:6f27b8c)

Atlassian logo