Mineral resources How to fill quantity range for ore in Mineral resources?

Added by Pierre Jamagne about 3 years ago

Hi,

To record the measured quantity of ore (33.000.000 tons)under OreMeasure , I choosed to fill the attributes "uom" and "value"under Quantityrange and as requested by value, I only introduced a two digit number (33) and as uom I record 1.000.000tons.

But the xml validator returns a failure message " lineNumber: 1; columnNumber: 6911; cvc-length-valid: Value '33' with length = '1' is not facet-valid with respect to length '2' for type 'RealPair'.
and "lineNumber: 1 1; columnNumber: 6911; cvc-type.3.1.3: The value '33' of element 'swe:value' is not valid.
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Does someone know how to proceed to have it xml validated?

Thank you

Pierre jamagne


Replies (2)

RE: Mineral resources How to fill quantity range for ore in Mineral resources? - Added by Simon Templer about 3 years ago

Hi Pierre,

I'm afraid list types are currently still badly supported - this is what is expected here, a list/pair of two floating point numbers that define a quantity range. The length is thus not related to the digits, but to the number of elements - 2 numbers that represent min and max.

Do you want to assign a fixed value here or are you deriving it from the source?
The editor for Assign does not allow you to enter a list, not even in the notation as it is used in the XML, because it does not recognize it.
A workaround is using the FormattedString function to produce something like this (two numbers separated by a space):
30.0 40.0

We just fixed a few bugs related to lists, thus in the latest development version you can also conveniently create lists using the Groovy Script function. You can create lists with fixed values like the following (or create lists with values derived from source properties):
[30.0, 40.0]

Best,
Simon

RE: Mineral resources How to fill quantity range for ore in Mineral resources? - Added by Pierre Jamagne about 3 years ago

Simon,

I could have it right with the formattedstring function

Thank you

P Jamagne

(1-2/2)