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
146 stars 100 forks source link

[3.4-pre15] [BUG] <DatasetMetadata> in GetCapabilties-Config doesn't work #372

Closed gu-LGB closed 10 years ago

gu-LGB commented 10 years ago

When I used in the configuration file to the GetCapabilities "", no features will be shown in the GetCapabilities of the WFS. But the feature are available with "GetFeature" or "DescribeFeature".

The config-File ist valid to "http://schemas.deegree.org/services/metadata/3.2.0/metadata.xsd". In deegree 3.3.8 this configuration worked fine. See the file here (working in 3.3.8): https://www.dropbox.com/s/kfjv3o1f2qbgot3/strassennetz_wfs_metadata.xml

bierett commented 10 years ago

Hi Georg,

please provide us the WFS configuration file which contains the quotes "". Maybe you add the wrong file. By the way: instead of Dropbox you can use GitHub GIST.

MrSnyder commented 10 years ago

This is most probably related to enhancement #304 which adds the possibility to limit the reported feature types in GetCapabilities responses.

Looking at your configuration file, it seems that the feature types names are not qualified:

    <Dataset>
      <Name>Autobahnkilometrierung_10m</Name>
      <Title>Autobahnkilometrierung 10m</Title>
      ...
    </Dataset>

Please try to put in the correct namespace binding for the feature type names, like this:

    <Dataset xmlns:myprefix="http://myns.ns">
      <Name>myprefix:Autobahnkilometrierung_10m</Name>
      <Title>Autobahnkilometrierung 10m</Title>
      ...
    </Dataset>
gu-LGB commented 10 years ago

Thanks for the hint! With the correct namespache, it works fine with 3.4pre15!