Uploaded image for project: 'GeoServer'
  1. GEOS-7929

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.4, 2.10.2
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                aaime Andrea Aime
                Reporter:
                jampukka Janne Heikkilä
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: