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

Natural Risk Zones - Validation Error - Conformance Class 'Application Schema, Natural Risk Zones' #397

Closed
robblis opened this issue Sep 25, 2020 · 4 comments
Labels
deployed in reference validator Solution deployed in production

Comments

@robblis
Copy link

robblis commented Sep 25, 2020

We are looking for some help to resolve a validation error we are getting with our Natural Risk Zones model.

We see the following error dealing with the Risk zone theme-specific requirements.

Check that if a RiskZone is associated with a HazardArea, the RiskZone and the HazardArea shall overlap.
Messages
XML document 'service.xml', RiskZone 'nzRiskZoneS.801': The constraint 'RiskZone and the HazardArea shall overlap' is violated.

When looking at the expression we believe that the following part of the expression is failing...

else if (exists($feature/nz-core:source/@xLink:href) and not(substring($feature/nz-core:source/@xLink:href, 2) = $features_hazard)) then
local:addMessage('TR.constraintViolation', map { 'filename': local:filename($feature), 'featureType': local-name($feature), 'gmlid': string($feature/@*:id), 'constraint': 'RiskZone and the HazardArea shall overlap', 'additionalInfo':''})

Here is the nz-core:source node xml snippet from our GML

<nz-core:source xlink:href="http://myserver.com/arcgis/rest/services/NZTest/MapServer/exts/InspireFeatureDownload/service?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&id=nzHazardAreaS.701"/>

We're not sure what the Validator is looking for in this case. Thanks for any help.

@project-bot project-bot bot added this to To do in Validator issues Sep 25, 2020
@carlospzurita
Copy link
Contributor

Dear @robblis

Thanks for opening the issue, we are having more detailed look to the Conformance Class. In the meantime, could you provide us with the GML you are validating?

Kind regards

@robblis
Copy link
Author

robblis commented Sep 28, 2020

Dear @carlospzurita

I've attached the GML we are trying to validate.

Thank you for your help,
Robert
NZ_RiskZones.zip

@project-bot project-bot bot moved this from To do to In progress in Validator issues Oct 13, 2020
@carlospzurita carlospzurita added ready for testing Solution provided to reporter or developed & deployed in staging (or beta), waiting for testing and removed under development labels Oct 16, 2020
@project-bot project-bot bot moved this from In progress to Staging: for acceptance in Validator issues Oct 16, 2020
@carlospzurita carlospzurita assigned robblis and unassigned dperezBM Oct 16, 2020
@carlospzurita
Copy link
Contributor

Dear @robblis

A fix for this issue has been published on the staging instance. Please, check it out and test if everything is corect.

@robblis
Copy link
Author

robblis commented Oct 19, 2020

Hi @carlospzurita

We just tested the NZ RiskZone on the staging validator and the test was successful.

Thanks for fixing the issue.

Robert

@robblis robblis closed this as completed Oct 19, 2020
@carlospzurita carlospzurita reopened this Oct 20, 2020
@carlospzurita carlospzurita added the solved Solution developed and accepted, not yet deployed label Oct 20, 2020
@project-bot project-bot bot moved this from Staging: for acceptance to Staging: in release planning in Validator issues Oct 20, 2020
@carlospzurita carlospzurita removed the ready for testing Solution provided to reporter or developed & deployed in staging (or beta), waiting for testing label Oct 20, 2020
@carlospzurita carlospzurita added deployed in reference validator Solution deployed in production and removed solved Solution developed and accepted, not yet deployed labels Jan 26, 2021
@project-bot project-bot bot moved this from Staging: in release planning to Production: latest release in Validator issues Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed in reference validator Solution deployed in production
Projects
Validator issues
  
Production: latest release
Development

No branches or pull requests

3 participants