INSPIRE-MIF / helpdesk-validator

Community discussion forum for INSPIRE validation issues
42 stars 23 forks source link

Planned Landuse: Test "lu-gml.a.1: Land Use feature in dataset" fails with nested FeatureCollections in XML #930

Closed ulbrichtd closed 1 year ago

ulbrichtd commented 1 year ago

Hi,

the test "lu-gml.a.1: Land Use feature in dataset" validates that featuretypes from Landuse application schema are present in the dataset, i.e. it scans for occurences of plu:SpatialPlan, plu:SupplementaryRegulation and others in the XML. Currently this test does not work with nested FeatureCollections.

Nested FeatureCollections are generated by Geoserver-WFS when you query for more than one featuretype. The data structure looks like this and the INSPIRE validator does not find "plu:SpatialPlan":

<wfs:FeatureCollection>
  <wfs:member >
   <wfs:FeatureCollection>
    <wfs:member >
     <plu:SpatialPlan>…</plu:SpatialPlan>
    </wfs:member>
   </wfs:FeatureCollection>
 </wfs:member>
</wfs:FeatureCollection>

Currently the INSPIRE validator expects this data structure:

<wfs:FeatureCollection>
  <wfs:member >
   <plu:SpatialPlan>…</plu:SpatialPlan>
  </wfs:member>
</wfs:FeatureCollection>

The INSPIRE validator should accept nested FeatureCollections.

You can access our data here WFS-GetFeature

The test report you can find here PLU_nested_featurecollection.zip

There is a similar issue in the ets-repository that discusses this problem for other INSPIRE data themes.

Best regards and many thanks Damian

fabiovinci commented 1 year ago

Dear @ulbrichtd,

thank you for the issue. Looking at the related issue it seems a solution was already provided for the Annex I data themes, so we will check it and implement the same fix for this data theme.

arantzaetxebarria commented 1 year ago

Dear @ulbrichtd

We have uploaded a solution for this issue in staging environment, could you please verify? Thanks

Regards

ulbrichtd commented 1 year ago

Hi,

I just tested. The problem is fixed in the staging environment. Thank you.

Best regards Damian