OptionalclassDepth resolution of the map's classes, metres. Default 0.25; may only be raised.
OptionalclearanceMinimum clearance margin in metres; raises the floor of 0.5 m, never lowers it.
Optionalgeoreference1-sigma vertical error of the model's height reference, metres, as the caller knows it (for example 0.05 for a surveyed map conversion). Default 0.5 when not stated: nothing in the model shows it was surveyed.
The clearance margin, derived from stated uncertainties:
m = max(floor, 2 * sqrt(sigmaTerrain^2 + classResolution^2 + sigmaGeoreference^2))
sigmaTerrain: the terrain source's own 1-sigma vertical accuracy (TerrainSource.verticalAccuracy). swissALTI3D states 0.3 m (new LiDAR), 0.5 m (older LiDAR, below 2,000 m) and 1 to 3 m (stereo correlation, above 2,000 m).classResolution: 0.25 m, the span of the bounded BAFU depth classes (0 to 0.25 m in two steps): the map cannot say more finely where in that range the water stands, and its 2 m smoothed terrain is not the terrain sampled here.sigmaGeoreference: 1-sigma vertical error of the model's height reference (OrthogonalHeight, the ground storey, the threshold). Nothing in a model shows whether its height reference was surveyed, so the default is a conservative 0.5 m (an estimated map conversion). A caller who knows the height reference is surveyed states it withgeoreferenceVerticalUncertainty(for example 0.05 m): that is supplying information, and the basis is recorded asstated-by-caller.floor: 0.5 m, or the caller'sclearanceMarginwhen larger. A caller can raise the margin, never lower it below the derived value.Twice the root-sum-square is a two-sigma bound under independent, normal errors. Without a stated terrain accuracy there is nothing to size the margin with, so the favourable outcome is not given at all.