Opened 13 years ago

Closed 13 years ago

#4047 closed defect (fixed)

WCS 1.1 GetCoverage does not validate

Reported by: fschindler Owned by: fschindler
Priority: normal Milestone: 6.0.2 release
Component: WCS Server Version: 6.0
Severity: normal Keywords: WCS 1.1
Cc:

Description

The XML part of the multipart WCS 1.1 GetCoverage response does not validate against the OGC schemas.

Here an excerpt of the response:

...
<?xml version="1.0" encoding="UTF-8"?>
<Coverages
     xmlns="http://www.opengis.net/wcs/1.1"
     xmlns:ows="http://www.opengis.net/ows"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.opengis.net/ows/1.1 ../owsCoverages.xsd">
  <Coverage>
    <Reference xlink:href="cid:coverage/out.tif"/>
  </Coverage>
</Coverages>
...

Validating with xmllint --noout --schema SCHEMAS_OPENGIS_NET/wcs/1.1/wcsAll.xsd WCS11GetCoverage.xml the following output is generated:

WCS11GetCoverage.xml:9: element Reference: Schemas validity error : Element '{http://www.opengis.net/wcs/1.1}Reference': This element is not expected. Expected is one of ( {http://www.opengis.net/ows/1.1}Title, {http://www.opengis.net/ows/1.1}Abstract, {http://www.opengis.net/ows/1.1}Keywords, {http://www.opengis.net/ows/1.1}Identifier, {http://www.opengis.net/ows/1.1}Metadata, {http://www.opengis.net/ows/1.1}AbstractReferenceBase, {http://www.opengis.net/ows/1.1}Reference, {http://www.opengis.net/ows/1.1}ServiceReference ).
WCS11GetCoverage.xml fails to validate

To successfully validate, the Coverages/Coverage/Reference element needs to be in the ows namespace. Additionally the ows namespace needs to be adjusted to xmlns:ows="http://www.opengis.net/ows/1.1". After these changes, the response validates again.

For completeness, the adjusted and valid response:

...
<?xml version="1.0" encoding="UTF-8"?>
<Coverages
     xmlns="http://www.opengis.net/wcs/1.1"
     xmlns:ows="http://www.opengis.net/ows/1.1"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.opengis.net/ows/1.1 ../owsCoverages.xsd">
  <Coverage>
    <ows:Reference xlink:href="cid:coverage/out.tif"/>
  </Coverage>
</Coverages>
...

Change History (1)

comment:1 by schpidi, 13 years ago

Resolution: fixed
Status: newclosed

Resolved in trunk with r12657 and in 6.0 branch with r12658.

Updated expected responses in msautotest with r12659 and with r12660.

Note: See TracTickets for help on using tickets.