Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS GetFeature filter tests currently failing #956

Open
geographika opened this issue Nov 7, 2024 · 1 comment
Open

WFS GetFeature filter tests currently failing #956

geographika opened this issue Nov 7, 2024 · 1 comment

Comments

@geographika
Copy link
Contributor

2 tests in the CI are currently failing: test_xmlfilter_wfs_110 and test_xmlfilter_wfs_200. These both use the server https://services.ga.gov.au/gis/stratunits/ows

The server is still online, and requests such as https://services.ga.gov.au/gis/stratunits/wfs?service=WFS&version=1.1.0&request=GetCapabilities and https://services.ga.gov.au/gis/stratunits/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=stratunit%3AStratigraphicUnit&maxfeatures=2 both return valid data.

It appears that adding a filter returns 403 Forbidden responses.

The feature attributes have changed as the tests are expecting a GEOLOGICHISTORY and StratigraphicUnit attributes. The new fields are below. Changing the filter to use these new fields however still returns 403 Forbidden responses.

  <gml:featureMember>
    <stratunit:StratigraphicUnit gml:id="StratigraphicUnit.5234">
      <stratunit:STRATNO>5234</stratunit:STRATNO>
      <stratunit:GMLID>ga.gsmlp.geologicunitview.5234</stratunit:GMLID>
      <stratunit:IDENTIFIER>http://pid.geoscience.gov.au/geologicFeature/au/SU5234</stratunit:IDENTIFIER>
      <stratunit:NAME>Darriwil granite</stratunit:NAME>
      <stratunit:DESCRIPTION>Granite</stratunit:DESCRIPTION>
      <stratunit:GEOLOGICUNITTYPE>lithostratigraphic unit</stratunit:GEOLOGICUNITTYPE>
      <stratunit:RANK>Formation, beds</stratunit:RANK>
      <stratunit:LITHOLOGY>granite</stratunit:LITHOLOGY>
      <stratunit:OBSERVATIONMETHOD>synthesis from multiple sources</stratunit:OBSERVATIONMETHOD>
      <stratunit:GEOLOGICUNITTYPE_URI>http://resource.geosciml.org/classifier/cgi/geologicunittype/lithostratigraphic_unit</stratunit:GEOLOGICUNITTYPE_URI>
      <stratunit:REPRESENTATIVELITHOLOGY_URI>http://resource.geosciml.org/classifier/cgi/lithology/granite</stratunit:REPRESENTATIVELITHOLOGY_URI>
      <stratunit:FORMATION>Darriwil granite</stratunit:FORMATION>
      <stratunit:STATE>VIC</stratunit:STATE>
    </stratunit:StratigraphicUnit>
  </gml:featureMember>

Example of a failing request with valid fields: https://services.ga.gov.au/gis/stratunits/wfs?service=WFS&version=1.1.0&request=GetFeature&filter=%3Cogc%3APropertyIsLike+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3APropertyName%3Estratunit%3AGMLID%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3Ega.gsmlp.geologicunitview.5234%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsLike%3E&typename=stratunit%3AStratigraphicUnit&propertyname=%2A

Decoded filter:

<ogc:PropertyIsLike xmlns:ogc="http://www.opengis.net/ogc">
    <ogc:PropertyName>stratunit:GMLID</ogc:PropertyName>
    <ogc:Literal>ga.gsmlp.geologicunitview.5234</ogc:Literal>
</ogc:PropertyIsLike>

Interestingly the filter without the namespace returns the full dataset.

@geographika
Copy link
Contributor Author

Email sent to [email protected] to see if they are able to provide any details on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant