@gisatcz/deckgl-geolib 2.5.1-dev.1 → 2.6.0-dev.1
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.
- package/dist/cjs/index.js +217 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +2 -2
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/index.js +217 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/types/core/CogTiles.d.ts +14 -2
- package/dist/esm/types/core/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ declare class CogTiles {
|
|
|
11
11
|
zoomRange: number[];
|
|
12
12
|
tileSize: number;
|
|
13
13
|
bounds: [number, number, number, number];
|
|
14
|
+
bandDescriptions: string[];
|
|
14
15
|
geo: GeoImage;
|
|
15
16
|
options: GeoImageOptions;
|
|
16
17
|
private cache;
|
|
@@ -22,9 +23,19 @@ declare class CogTiles {
|
|
|
22
23
|
getZoomRange(): number[];
|
|
23
24
|
getBoundsAsLatLon(): [number, number, number, number];
|
|
24
25
|
/**
|
|
25
|
-
* Gets the
|
|
26
|
-
* Returns
|
|
26
|
+
* Gets the number of channels/bands in the COG.
|
|
27
|
+
* Returns the value from COG metadata, or 1 if not initialized.
|
|
27
28
|
*/
|
|
29
|
+
getNumChannels(): number;
|
|
30
|
+
/**
|
|
31
|
+
* Returns per-band descriptions loaded from GDAL_METADATA during initialization.
|
|
32
|
+
* Index is 0-based. Returns an empty string for bands without a description.
|
|
33
|
+
*/
|
|
34
|
+
getBandDescriptions(): string[];
|
|
35
|
+
/**
|
|
36
|
+
* Gets the auto meshMaxError for a given overview index.
|
|
37
|
+
* Returns undefined if auto lookup has not been computed.
|
|
38
|
+
*/
|
|
28
39
|
getMeshMaxErrorForImageIndex(imageIndex: number): number | undefined;
|
|
29
40
|
/**
|
|
30
41
|
* Computes dynamic meshMaxError values for each overview based on COG resolution and zoom level.
|
|
@@ -50,6 +61,7 @@ declare class CogTiles {
|
|
|
50
61
|
private getTerrainTile;
|
|
51
62
|
private getGlazeTile;
|
|
52
63
|
private getBitmapTile;
|
|
64
|
+
getTileAllBands(x: number, y: number, z: number, meshMaxError?: number, signal?: AbortSignal, bounds?: Bounds): Promise<TileResult[]>;
|
|
53
65
|
clearTileResultCache(): void;
|
|
54
66
|
}
|
|
55
67
|
export default CogTiles;
|
|
@@ -81,6 +81,8 @@ export type GeoImageOptions = {
|
|
|
81
81
|
/** Strategy for detecting all-noData tiles. Options: 'full' | 'border+center' */
|
|
82
82
|
noDataCheck?: 'full' | 'border+center';
|
|
83
83
|
disableLighting?: boolean;
|
|
84
|
+
/** When true, fetch and cache all bands for a tile on first access. Enables instant slider animation. */
|
|
85
|
+
cacheAllBands?: boolean;
|
|
84
86
|
};
|
|
85
87
|
export declare const DefaultGeoImageOptions: GeoImageOptions;
|
|
86
88
|
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
|