maplibre-gl-raster 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18369,6 +18369,7 @@ var LayerManager = class {
|
|
|
18369
18369
|
try {
|
|
18370
18370
|
const tiff = await this._deps.loadGeoTIFF(url);
|
|
18371
18371
|
if (this._destroyed || !this.getLayer(layer.id)) return layer.id;
|
|
18372
|
+
if (!tiff.isTiled) throw new Error("This GeoTIFF is striped, not tiled, so it cannot be streamed as map tiles. Convert it to a tiled Cloud-Optimized GeoTIFF (COG) first, for example with `rio cogeo create input.tif output.tif` or `gdal_translate input.tif output.tif -of COG`, then load the result.");
|
|
18372
18373
|
layer.geotiff = tiff;
|
|
18373
18374
|
layer.bandCount = tiff.count;
|
|
18374
18375
|
layer.bandNames = readBandNames(tiff);
|
|
@@ -21117,4 +21118,4 @@ var RasterControl = class {
|
|
|
21117
21118
|
//#endregion
|
|
21118
21119
|
export { MAX_SAMPLE_TILES as C, createResilientEpsgResolver as D, readBandNames as E, statsForBand as S, percentileFromHistogram as T, COLORMAP_OPTIONS as _, isKnownColormap as a, colormaps_default as b, clamp as c, formatNumericValue as d, generateId as f, COLORMAP_NAMES as g, COLORMAP_DISPLAY_NAMES as h, PALETTE_COLORMAP as i, classNames as l, loadGeoTIFF as m, Colorbar as n, loadColormapSprite as o, throttle as p, readPixelValues as r, sampleColormapStops as s, RasterControl as t, debounce as u, COLORMAP_ROW_COUNT as v, computeAutoStats as w, autoRangeFor as x, colormapDisplayName as y };
|
|
21119
21120
|
|
|
21120
|
-
//# sourceMappingURL=RasterControl-
|
|
21121
|
+
//# sourceMappingURL=RasterControl-yo9x-ULo.js.map
|