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

LU - Errors percentageLis and backgroudMapURI #1077

Closed
CristinaMSL opened this issue May 9, 2024 · 7 comments
Closed

LU - Errors percentageLis and backgroudMapURI #1077

CristinaMSL opened this issue May 9, 2024 · 7 comments
Labels
user-fixed Problem solved on user side

Comments

@CristinaMSL
Copy link

Hello.

I am contacting you regarding the LU topic, specifically with the feature type "Zoning Elements".

The following errors appear:

XML document 'test5-hale2.gml': 28:33: cvc-complex-type.2.4.a: Invalid content found starting with element '{"http://inspire.ec.europa.eu/schemas/lunom/4.0":percentageList}'. One is expected from '{"http://inspire.ec.europa.eu/schemas/lunom/4.0":orderedList}'.

XML document 'test5-hale2.gml': 40:33: cvc-complex-type.2.4.a: Invalid content found starting with element '{"http://inspire.ec.europa.eu/schemas/lunom/4.0":percentageList}'. An element '{"http://inspire.ec.europa.eu/schemas/lunom/4.0":orderedList}' is expected.

In this case, I don't quite understand what you are referring to. I have made several tests and I don't understand what is wrong? What could it be? The content is not correct?

Another error that appears is the following:

XML document 'test5-hale2.gml': 55:268: cvc-complex-type.2.4.a: Invalid content found starting with element '{"http://inspire.ec.europa.eu/schemas/plu/4.0":backgroudMapURI}'. An element '{"http://inspire.ec.europa.eu/schemas/plu/4.0":backgroundMapURI}' is expected.

In this case, it is understood that the url of the base map that is used to represent the planned land use information must be indicated. In my case, I have added the url that I consider represents this information and it does not accept it. Why is that?
prueba5-hale2.zip

I leave attached to the message the corresponding gml, so that it is easier to review it.

Thank you very much in advance.

I look forward to your reply.

@fabiovinci
Copy link
Collaborator

Dear @CristinaMSL,

regarding the first issue, please coinsider that the two related data types, HILUCSPresence and SpecificPresence, are "Union", so it means that only one of the two attributes should be provided, orderedList or percentageList.

image

For the second, you need to change the encoding as the URL needs to be entered as the element value and not using the nilReason attribute.

E.g.:

<plu:backgroudMapURI>https://idecyl.jcyl.es/vcig/?service=https://idecyl.jcyl.es/geoserver/lu/wms&amp;layer=siu_cyl_ambmun&amp;type=wms&amp;style=lu%3Asiu_cyl_ambmun_vcig&amp;bbox=160000,4440000,605000,4790000&amp;srs=EPSG:25830</plu:backgroudMapURI>

I hope this helps to provide a better understanding and clears up any confusion.

@fabiovinci fabiovinci added the user-to-fix Problem is present on user side label May 10, 2024
@CristinaMSL
Copy link
Author

Hello.

Thank you very much for your quick response.

Regarding error 1, by selecting only one of the fields, the error has disappeared.

Regarding error 2, I tried relating the field as you indicated, but the error came up again:

XML document 'TEST14.0002.gml': 43:32: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://inspire.ec.europa.eu/schemas/plu/4.0":backgroudMapURI}'. One of '{"http://inspire.ec.europa.eu/schemas/plu/4.0":backgroundMapURI}' is expected.
Why does the error keep occurring?

I leave again the gml, with which I have made the test and an image o
prueba14-imagen.zip
f the connection of the field in Hale.
prueba14-hale2.zip

Thank you very much in advance.

@JohannaOtt
Copy link

@CristinaMSL There was a breaking change in the PLU 4.0 schema fixing the spelling of backgroundMapURI.
Seems like you are still using the spelling from the "old" 4.0 version.

@CristinaMSL
Copy link
Author

Hello!

I have checked the version of the schematic https://inspire.ec.europa.eu/schemas/plu/4.0/PlannedLandUse.xsd, which is the one I am using coming from the official Inspire website.

It is true, that when adding it to the HALE program, the n does not appear.
image

Where can I find the correct url containing the n? I have been checking the inspire and github pages and I have not located the right version.

@fabiovinci
Copy link
Collaborator

@JohannaOtt, thanks for spotting the error, I missed it.

@CristinaMSL, It appears that HALE is utilizing a cached schema. It is recommended that you upgrade HALE to the latest version, which imports the most recent version of the schemas.
image

@CristinaMSL
Copy link
Author

Hello.

I have used the latest version of Hale (5.1.0) and it does show the "n" in backgroundmapuri:

image

After updating my files and using dehale version 5.1.0, I have been able to validate the gmls correctly.

Thank you very much to both of you for your answers.

Best regards

@fabiovinci
Copy link
Collaborator

Dear @CristinaMSL,

great to hear that you were able to fix the errors.
I will close the issue and please reopen it or open a new one if necessary.

@fabiovinci fabiovinci added user-fixed Problem solved on user side and removed user-to-fix Problem is present on user side labels May 16, 2024
@github-project-automation github-project-automation bot moved this to In progress in Validator issues Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-fixed Problem solved on user side
Projects
None yet
Development

No branches or pull requests

3 participants