Mineral resources : Transformation of a mineral resouce file into the Inspire format

Added by Pierre Jamagne almost 3 years ago

Hi,

After filling the red star properties Mine and Mining activities and exporting the result into a gml file,

I got in the report the error message "cvc-complex-type.2.4.d: Invalid content was found starting with element 'mr-core:MiningActivity'. No child element is expected at this point".
In the transformed data, the yellow warning triangle says : mining feature coccurence type .specification. choice : choiceFlag : A choice with different children.

How can I get rid of this problem?

Thank you

P Jamagne


Replies (2)

RE: Mineral resources : Transformation of a mineral resouce file into the Inspire format - Added by Simon Templer almost 3 years ago

Hi Pierre,

the message you get in HALE hints at that you somewhere have a data in multiple children of a choice. A choice, which you can identify by the question mark in the icon, allows only one of its children to be present.
If you map to multiple of its children, you have to map to a different instance context, so that independent instances will be created that each have only one kind of child. Probably the choice or one of its parent elements can occur multiple times, you can create a different instance context with right click on the schema element in the Schema Explorer, then choosing "Add instance context".

Best,
Simon

RE: Mineral resources : Transformation of a mineral resouce file into the Inspire format - Added by Pierre Jamagne almost 3 years ago

Hi Simon,

After filling the properties for the feature type "mine" under mining feature, I could fill the properties of the Mining activities through the relateActivity and there it was validated by the xml validator. As you say, under the choice icon, Y can only choose one option even if there is a red star on both possibilities.

Thank you

P Jamagne

(1-2/2)