FormLogicError: Could not evaluate: ../polygone_parcelle .accuracy(), message: Failed to execute 'evaluate' on 'XPathEvaluator': The string '.accuracy()' is not a valid XPath expression.
Can you please attach your XLSForm file?
fiche_attach.xlsx (643.4 KB)
voicie xflsform que j'ai fais
Your calculation is
${polygone_parcelle}.accuracy
but your polygone_parcelle
is a geoshape
type | name |
---|---|
geoshape | polygone_parcelle |
A geoshape as a whole does not have an intrinsic accurary; rather, each individual geopoint (ie corner) in the geoshape polygon has its own accuracy, which may be completely independent from every other corner!
FWIW, if you do want to get the accuracy of a single geopoint, use
selected-at(${mygeopoint},3)
The geopoint data type is stored as a space separate string of 4 decimals. The selected-at()
function can be used to pull out the 4th element, which is the accuracy value [selected-at is zero-indexed, meaning the first element is at index 0, hence the 4th element has index 3]