[Geoserver-devel] [JIRA] (GEOS-7929) WMS 1.3.0 GetCapabilities response doesn't validate against the schema when using LayerGroups

Janne Heikkilä created an issue

GeoServer / BugGEOS-7929

WMS 1.3.0 GetCapabilities response doesn’t validate against the schema when using LayerGroups

Issue Type:

BugBug

Assignee:

Unassigned

Created:

12/Jan/17 11:49 AM

Priority:

MediumMedium

Reporter:

Janne Heikkilä

See schema:
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd
<sequence>

<element ref=“wms:MinScaleDenominator” minOccurs=“0”/>
<element ref=“wms:MaxScaleDenominator” minOccurs=“0”/>
<element ref=“wms:Layer” maxOccurs=“unbounded” minOccurs=“0”/>
</sequence>

Current output example:
<Layer>
<Title>LayerGroup</Title>

<Layer>
<Title>Group1</Title>

<MinScaleDenominator>1.0</MinScaleDenominator>
<MaxScaleDenominator>100.0</MaxScaleDenominator>
<Layer>
<Layer>
<Title>Group2</Title>

<MinScaleDenominator>1.0</MinScaleDenominator>
<MaxScaleDenominator>200.0</MaxScaleDenominator>
<Layer>
<MinScaleDenominator>1.0</MinScaleDenominator>
<MaxScaleDenominator>200.0</MaxScaleDenominator>
</Layer>

Location in code:
https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/capabilities/Capabilities_1_3_0_Transformer.java#L1237

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.692.0#100025-sha1:87042ee)

Atlassian logo