@gisatcz/deckgl-geolib 2.5.0-dev.4 → 2.5.0-dev.5

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.
@@ -1,6 +1,6 @@
1
1
  import { GeoTIFF, GeoTIFFImage } from 'geotiff';
2
2
  import GeoImage from './GeoImage';
3
- import { GeoImageOptions, TileResult } from './types';
3
+ import { GeoImageOptions, TileResult, TypedArray } from './types';
4
4
  export type Bounds = [minX: number, minY: number, maxX: number, maxY: number];
5
5
  declare class CogTiles {
6
6
  cog: GeoTIFF;
@@ -12,8 +12,13 @@ declare class CogTiles {
12
12
  bounds: [number, number, number, number];
13
13
  geo: GeoImage;
14
14
  options: GeoImageOptions;
15
+ private rasterCache;
16
+ private readonly maxCacheSize;
17
+ private getCachedRaster;
18
+ private setCachedRaster;
15
19
  private imageCache;
16
20
  private initializePromise?;
21
+ private lastInitializedUrl?;
17
22
  constructor(options: GeoImageOptions);
18
23
  initializeCog(url: string): Promise<void>;
19
24
  getZoomRange(): number[];
@@ -50,7 +55,7 @@ declare class CogTiles {
50
55
  * @returns {number} The index of the image in the COG that best matches the specified zoom level.
51
56
  */
52
57
  getImageIndexForZoomLevel(zoom: number): number;
53
- getTileFromImage(tileX: number, tileY: number, zoom: number, fetchSize?: number, signal?: AbortSignal): Promise<(Uint8Array<ArrayBuffer> | Float32Array<ArrayBuffer> | Int8Array<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Int32Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float64Array<ArrayBuffer>)[] | import("geotiff").TypedArrayWithDimensions[]>;
58
+ getTileFromImage(tileX: number, tileY: number, zoom: number, fetchSize?: number, signal?: AbortSignal): Promise<TypedArray[]>;
54
59
  /**
55
60
  * Creates a blank tile buffer filled with the "No Data" value.
56
61
  * @param size The width/height of the square tile (e.g., 256 or 257)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisatcz/deckgl-geolib",
3
- "version": "2.5.0-dev.4",
3
+ "version": "2.5.0-dev.5",
4
4
  "description": "Deck.gl extension for rendering Cloud-Optimized GeoTIFF (COG) data",
5
5
  "keywords": [
6
6
  "deck.gl",