deegree / deegree3

Official deegree repository providing geospatial core libraries, data access and advanced OGC web service implementations
https://www.deegree.org
GNU Lesser General Public License v2.1
144 stars 98 forks source link

Question: How to define outputFormat parameter for WFS at operation level? #1698

Open Kate-Lyndegaard opened 4 weeks ago

Kate-Lyndegaard commented 4 weeks ago

Hi,

I would like to configure the allowed outputFormat parameters for each operation my deegree WFS offers. The INSPIRE validator can make DescribeFeatureType requests, for example, for various output formats which can lead to errors. Please see https://github.com/INSPIRE-MIF/helpdesk-validator/issues/29 for further information.

Does anyone have an example of how to configure this? I cannot find an example in the deegree documentation.

dstenger commented 4 weeks ago

Hi,

Thank you for the question.

Am I understanding you correctly that you try to configure the output format to be defined as a child of the operation element? E.g.:

...
    <ows:Operation name="DescribeFeatureType">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://test/wfs"/>
          <ows:Post xlink:href="https://test/wfs"/>
        </ows:HTTP>
      </ows:DCP>
      <ows:Parameter name="outputFormat">
        <ows:AllowedValues>
          <ows:Value>application/gml+xml; version=3.2</ows:Value>
        </ows:AllowedValues>
      </ows:Parameter>
    </ows:Operation>
...

However, deegree is defining it as child of OperationsMetadata per default? E.g.:

...
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
...
    </ows:Operation>
    <ows:Operation name="DescribeFeatureType">
...
    </ows:Operation>
    <ows:Operation name="ListStoredQueries">
...
    </ows:Operation>
    <ows:Operation name="DescribeStoredQueries">
...
    </ows:Operation>
    <ows:Operation name="GetFeature">
...
    </ows:Operation>
    <ows:Operation name="GetPropertyValue">
...
    </ows:Operation>
...
    <ows:Parameter name="outputFormat">
      <ows:AllowedValues>
        <ows:Value>application/gml+xml; version=3.2</ows:Value>
        <ows:Value>application/xml; subtype="gml/3.2.1"</ows:Value>
      </ows:AllowedValues>
    </ows:Parameter>
...
  </ows:OperationsMetadata>
...

Is this the correct understanding of your problem? If not, can you please provide more details?

Kate-Lyndegaard commented 3 weeks ago

Hi @dstenger,

Thank you for your response.

Yes, that is my question. I would like to know if it is possible to define the allowed outFormat(s) as child elements for each operation type.