Skip to main content

Module model

Module model 

Source
Expand description

Request schema, validation and profile-source loading.

Structs§

AoiSpec
Budgets
LegacyGrid
ProfileData
Loaded profile data, before interpolator preparation.
ProfileEstimate
Pre-read memory estimate for loading and preparing one profile.
ProfileSpec
SessionRequest

Enums§

CrsIdentity
How the terrain CRS is established equal to the session EPSG. Never inferred silently.
ErrorPolicy
GridSpec
MaskData
NodataPolicy
Product
ProfileSource
QueryConvention
TerrainSpec

Constants§

LEGACY_JSON_PEAK_FACTOR
Bytes per JSON byte assumed for a fully parsed legacy request plus its preparation. Derived from the worst-case textual densities (e.g. 0, -> 16-byte Option<f64>, [1,2,3], -> 24-byte simplex plus prepared triangle and bulk-load copy) with 2x Vec growth slack. A conservative heuristic, not a proof: use binary sources where a tight pre-read estimate matters.
MAX_BINARY_BYTES
MAX_JSON_BYTES
MAX_PROFILE_PIXELS
MAX_THREADS
READ_CHUNK_BYTES
Chunk size of the streaming binary decoder.
SESSION_SCHEMA

Functions§

id_key
Case-insensitive identity of an id (two ids with equal keys collide on NTFS).
read_json
resolve
validate_id
Ids name output directories, so they must be path-safe on Linux and Windows/NTFS (including drvfs/SMB): [A-Za-z0-9_.-]{1,64}, not ./.., no trailing ., no Windows device name. Uniqueness is checked case-insensitively by the caller (id_key).