IFClite TypeScript API
    Preparing search index...

    Interface MarginOptions

    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 with georeferenceVerticalUncertainty (for example 0.05 m): that is supplying information, and the basis is recorded as stated-by-caller.
    • floor: 0.5 m, or the caller's clearanceMargin when 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.

    interface MarginOptions {
        classResolution?: number;
        clearanceMargin?: number;
        georeferenceVerticalUncertainty?: number;
    }

    Hierarchy (View Summary)

    Index
    classResolution?: number

    Depth resolution of the map's classes, metres. Default 0.25; may only be raised.

    clearanceMargin?: number

    Minimum clearance margin in metres; raises the floor of 0.5 m, never lowers it.

    georeferenceVerticalUncertainty?: number

    1-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.