Opened 6 years ago

Closed 5 years ago

#1868 closed defect (invalid)

Petascope remove the redundant element <covMetadata> from result of WCS DescribeCoverage & GetCoverage requests

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.7
Component: petascope Version: development
Keywords: covMetadata, coverage metadata Cc: Dimitar Misev, Vlad Merticariu, Peter Baumann
Complexity: Medium

Description

Current result of WCS DescribeCoverage & GetCoverage requests for a coverage containing some metadata is:

    <gmlcov:metadata>
        <gmlcov:Extension>
         <covMetadata>...

According to http://schemas.opengis.net/gmlcov/1.0/coverage.xsd covMetadata is a non-existing element and it should be removed. Some other examples which can be used to reference: http://docs.geoserver.org/latest/en/user/extensions/wcs20eo/index.html#exposing-dataset-series

Change History (1)

comment:1 by Bang Pham Huu, 5 years ago

Resolution: invalid
Status: newclosed

According to http://schemas.opengis.net/cis/1.0/coverage.xsd

<element name="Extension" type="gmlcov:ExtensionType">
    <annotation>
        <documentation>
Extension element used to hook in additional content e.g. in extensions or application profiles.
</documentation>
    </annotation>
</element>
<complexType name="ExtensionType">
    <sequence>

     <!----------------------->
        <any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##other" />
     <!----------------------->

    </sequence>
</complexType>

The content of

        <gmlcov:metadata>
            <gmlcov:Extension>
             

must be an XML element with prefix and a namespace (e.g: prefix myNS with namespace xmlns:myNS="myNS" ), e.g:

    <myNS:metadata>Some metadata ...</myNS:metadata>

As all metadata from WCST_Import is not annotated by XML namespace prefix, hence, the wrapper element covMetadata for coverage's metadata is needed to validate the above schema's requirement:

        <gmlcov:metadata>
            <gmlcov:Extension>
                 <rasdaman:covMetadata xmlns:rasdaman="http://www.rasdaman.org">
                     <some metadata>
                 </rasdaman:covMetadata>
            </gmlcov:metadata>
        </gmlcov:Extension>

  
Note: See TracTickets for help on using tickets.