You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versatiles_pipeline/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,14 +142,14 @@ using the URL template from the TileJSON `tiles` array.
142
142
## `dem_quantize`
143
143
144
144
Quantize DEM (elevation) raster tiles by zeroing unnecessary low bits.
145
-
Scans each tile's elevation range, calculates how many bits of precision
146
-
are needed for the requested accuracy, and zeros out the rest.
147
-
This makes tiles much more compressible (PNG/WebP) without losing
148
-
meaningful detail.
145
+
Computes a per-tile quantization mask from two physically meaningful criteria:
146
+
resolution relative to tile size, and maximum gradient distortion.
147
+
The stricter (smaller step) wins. Single-pass — no min/max scan needed.
149
148
150
149
### Parameters
151
150
152
-
-*`bits`: u8 (optional)* - Number of bits of precision to retain within the tile's elevation range. 2^bits = number of distinct levels. Defaults to 8 (256 levels).
151
+
-*`resolution_ratio`: f64 (optional)* - Minimum elevation resolution as fraction of tile ground size. E.g. 0.001 means for a 1000 m tile, keep 1 m resolution. Defaults to 0.001.
152
+
-*`max_gradient_error`: f64 (optional)* - Maximum allowed gradient change in degrees due to quantization. Defaults to 1.0.
153
153
-*`encoding`: String (optional)* - Override auto-detection of DEM encoding. Values: "mapbox", "terrarium".
0 commit comments