@developmentseed/deck.gl-geotiff 0.3.0-beta.3 → 0.3.0
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/README.md +33 -4
- package/dist/cog-layer.d.ts +34 -27
- package/dist/cog-layer.d.ts.map +1 -1
- package/dist/cog-layer.js +50 -14
- package/dist/cog-layer.js.map +1 -1
- package/dist/geotiff/geotiff.d.ts.map +1 -1
- package/dist/geotiff/geotiff.js +6 -2
- package/dist/geotiff/geotiff.js.map +1 -1
- package/dist/geotiff/render-pipeline.d.ts +6 -4
- package/dist/geotiff/render-pipeline.d.ts.map +1 -1
- package/dist/geotiff/render-pipeline.js +116 -16
- package/dist/geotiff/render-pipeline.js.map +1 -1
- package/dist/geotiff-layer.d.ts +5 -4
- package/dist/geotiff-layer.d.ts.map +1 -1
- package/dist/geotiff-layer.js.map +1 -1
- package/dist/geotiff-reprojection.d.ts +2 -1
- package/dist/geotiff-reprojection.d.ts.map +1 -1
- package/dist/geotiff-reprojection.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/cog-tile-matrix-set.d.ts +0 -3
- package/dist/cog-tile-matrix-set.d.ts.map +0 -1
- package/dist/cog-tile-matrix-set.js +0 -23
- package/dist/cog-tile-matrix-set.js.map +0 -1
- package/dist/ellipsoids.d.ts +0 -153
- package/dist/ellipsoids.d.ts.map +0 -1
- package/dist/ellipsoids.js +0 -153
- package/dist/ellipsoids.js.map +0 -1
- package/dist/geotiff/high-level/affine.d.ts +0 -16
- package/dist/geotiff/high-level/affine.d.ts.map +0 -1
- package/dist/geotiff/high-level/affine.js +0 -2
- package/dist/geotiff/high-level/affine.js.map +0 -1
- package/dist/geotiff/high-level/array.d.ts +0 -37
- package/dist/geotiff/high-level/array.d.ts.map +0 -1
- package/dist/geotiff/high-level/array.js +0 -2
- package/dist/geotiff/high-level/array.js.map +0 -1
- package/dist/geotiff/high-level/geotiff.d.ts +0 -63
- package/dist/geotiff/high-level/geotiff.d.ts.map +0 -1
- package/dist/geotiff/high-level/geotiff.js +0 -135
- package/dist/geotiff/high-level/geotiff.js.map +0 -1
- package/dist/geotiff/high-level/index.d.ts +0 -8
- package/dist/geotiff/high-level/index.d.ts.map +0 -1
- package/dist/geotiff/high-level/index.js +0 -5
- package/dist/geotiff/high-level/index.js.map +0 -1
- package/dist/geotiff/high-level/options.d.ts +0 -11
- package/dist/geotiff/high-level/options.d.ts.map +0 -1
- package/dist/geotiff/high-level/options.js +0 -2
- package/dist/geotiff/high-level/options.js.map +0 -1
- package/dist/geotiff/high-level/overview.d.ts +0 -46
- package/dist/geotiff/high-level/overview.d.ts.map +0 -1
- package/dist/geotiff/high-level/overview.js +0 -124
- package/dist/geotiff/high-level/overview.js.map +0 -1
- package/dist/geotiff/high-level/tile.d.ts +0 -11
- package/dist/geotiff/high-level/tile.d.ts.map +0 -1
- package/dist/geotiff/high-level/tile.js +0 -2
- package/dist/geotiff/high-level/tile.js.map +0 -1
- package/dist/geotiff/high-level/transform.d.ts +0 -23
- package/dist/geotiff/high-level/transform.d.ts.map +0 -1
- package/dist/geotiff/high-level/transform.js +0 -55
- package/dist/geotiff/high-level/transform.js.map +0 -1
- package/dist/geotiff/high-level/window.d.ts +0 -23
- package/dist/geotiff/high-level/window.d.ts.map +0 -1
- package/dist/geotiff/high-level/window.js +0 -31
- package/dist/geotiff/high-level/window.js.map +0 -1
- package/dist/geotiff/types.d.ts +0 -5
- package/dist/geotiff/types.d.ts.map +0 -1
- package/dist/geotiff/types.js +0 -7
- package/dist/geotiff/types.js.map +0 -1
- package/dist/geotiff-types.d.ts +0 -13
- package/dist/geotiff-types.d.ts.map +0 -1
- package/dist/geotiff-types.js +0 -2
- package/dist/geotiff-types.js.map +0 -1
- package/dist/geotiff.d.ts +0 -50
- package/dist/geotiff.d.ts.map +0 -1
- package/dist/geotiff.js +0 -135
- package/dist/geotiff.js.map +0 -1
- package/dist/mosaic-layer/mosaic-tile-traversal.d.ts +0 -1
- package/dist/mosaic-layer/mosaic-tile-traversal.d.ts.map +0 -1
- package/dist/mosaic-layer/mosaic-tile-traversal.js +0 -2
- package/dist/mosaic-layer/mosaic-tile-traversal.js.map +0 -1
- package/dist/mosaic-layer.d.ts +0 -1
- package/dist/mosaic-layer.d.ts.map +0 -1
- package/dist/mosaic-layer.js +0 -2
- package/dist/mosaic-layer.js.map +0 -1
- package/dist/texture.d.ts +0 -10
- package/dist/texture.d.ts.map +0 -1
- package/dist/texture.js +0 -135
- package/dist/texture.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/geotiff-layer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CompositeLayerProps, UpdateParameters } from "@deck.gl/core";
|
|
2
2
|
import { CompositeLayer } from "@deck.gl/core";
|
|
3
3
|
import { RasterLayer } from "@developmentseed/deck.gl-raster";
|
|
4
|
-
import type { GeoTIFF } from "@developmentseed/geotiff";
|
|
4
|
+
import type { DecoderPool, GeoTIFF } from "@developmentseed/geotiff";
|
|
5
5
|
import type { ReprojectionFns } from "@developmentseed/raster-reproject";
|
|
6
6
|
import type { ProjectionDefinition } from "wkt-parser";
|
|
7
7
|
import type { EpsgResolver } from "./proj.js";
|
|
@@ -26,11 +26,12 @@ export interface GeoTIFFLayerProps extends CompositeLayerProps {
|
|
|
26
26
|
*/
|
|
27
27
|
epsgResolver?: EpsgResolver;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Decoder pool for decoding image chunks.
|
|
30
30
|
*
|
|
31
|
-
* If none is provided, a default
|
|
32
|
-
* COGLayer and GeoTIFFLayer instances.
|
|
31
|
+
* If none is provided, a default DecoderPool will be created and shared
|
|
32
|
+
* between all COGLayer and GeoTIFFLayer instances.
|
|
33
33
|
*/
|
|
34
|
+
pool?: DecoderPool;
|
|
34
35
|
/**
|
|
35
36
|
* Maximum reprojection error in pixels for mesh refinement.
|
|
36
37
|
* Lower values create denser meshes with higher accuracy.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geotiff-layer.d.ts","sourceRoot":"","sources":["../src/geotiff-layer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"geotiff-layer.d.ts","sourceRoot":"","sources":["../src/geotiff-layer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D;;;;;;OAMG;IACH,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,WAAW,CAAC;IAE9C;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,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,CACpB,IAAI,CAAC,gBAAgB,CAAC;YACpB,EAAE,EAAE,QAAQ;YACZ,KAAK;YACL,MAAM;YACN,eAAe;YACf,QAAQ;YACR,OAAO,EAAE,SAAS;YAClB,KAAK;YACL,YAAY;SACb,CAAC,CACH,CAAC;IACJ,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { Affine } from "@developmentseed/affine";
|
|
1
2
|
import type { GeoTIFF } from "@developmentseed/geotiff";
|
|
2
3
|
import type { ReprojectionFns } from "@developmentseed/raster-reproject";
|
|
3
4
|
import type { PROJJSONDefinition } from "proj4/dist/lib/core";
|
|
4
5
|
import type Projection from "proj4/dist/lib/Proj";
|
|
5
6
|
import type { ProjectionDefinition } from "wkt-parser";
|
|
6
7
|
export declare function extractGeotiffReprojectors(geotiff: GeoTIFF, sourceProjection: string | PROJJSONDefinition | ProjectionDefinition, outputCrs?: string | PROJJSONDefinition | Projection): Promise<ReprojectionFns>;
|
|
7
|
-
export declare function fromAffine(geotransform:
|
|
8
|
+
export declare function fromAffine(geotransform: Affine): {
|
|
8
9
|
forwardTransform: (x: number, y: number) => [number, number];
|
|
9
10
|
inverseTransform: (x: number, y: number) => [number, number];
|
|
10
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geotiff-reprojection.d.ts","sourceRoot":"","sources":["../src/geotiff-reprojection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geotiff-reprojection.d.ts","sourceRoot":"","sources":["../src/geotiff-reprojection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAMvD,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,MAAM,GAAG,kBAAkB,GAAG,oBAAoB,EACpE,SAAS,GAAE,MAAM,GAAG,kBAAkB,GAAG,UAAwB,GAChE,OAAO,CAAC,eAAe,CAAC,CAc1B;AAED,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG;IAChD,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7D,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9D,CAQA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geotiff-reprojection.js","sourceRoot":"","sources":["../src/geotiff-reprojection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geotiff-reprojection.js","sourceRoot":"","sources":["../src/geotiff-reprojection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC;AAGlD,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,mCAAmC;AACnC,+IAA+I;AAC/I,EAAE;AACF,iFAAiF;AACjF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,OAAgB,EAChB,gBAAoE,EACpE,YAAsD,WAAW;IAEjE,6EAA6E;IAC7E,gCAAgC;IAChC,MAAM,SAAS,GAAG,KAAK,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IACrD,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAE7E,OAAO;QACL,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACzC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;QAClC,gBAAgB,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACzC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,YAAoB;IAI7C,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxD,OAAO;QACL,gBAAgB,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACzC,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;QAClC,gBAAgB,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACzC,MAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,CAAC,EAAE,CAAC,CAAC;KAC1C,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type { COGLayerProps } from "./cog-layer.js";
|
|
1
|
+
export type { COGLayerProps, GetTileDataOptions, MinimalDataT, } from "./cog-layer.js";
|
|
2
2
|
export { COGLayer } from "./cog-layer.js";
|
|
3
3
|
export * as texture from "./geotiff/texture.js";
|
|
4
4
|
export type { MosaicLayerProps } from "./mosaic-layer/mosaic-layer.js";
|
|
5
5
|
export { MosaicLayer } from "./mosaic-layer/mosaic-layer.js";
|
|
6
6
|
export { type MosaicSource, MosaicTileset2D, } from "./mosaic-layer/mosaic-tileset-2d";
|
|
7
|
-
export
|
|
7
|
+
export type { EpsgResolver } from "./proj.js";
|
|
8
|
+
export { epsgResolver } from "./proj.js";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAIhD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EACL,KAAK,YAAY,EACjB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,5 @@ export { COGLayer } from "./cog-layer.js";
|
|
|
2
2
|
export * as texture from "./geotiff/texture.js";
|
|
3
3
|
export { MosaicLayer } from "./mosaic-layer/mosaic-layer.js";
|
|
4
4
|
export { MosaicTileset2D, } from "./mosaic-layer/mosaic-tileset-2d";
|
|
5
|
-
export
|
|
5
|
+
export { epsgResolver } from "./proj.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAKhD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAEL,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developmentseed/deck.gl-geotiff",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "GeoTIFF and Cloud-Optimized GeoTIFF visualization in deck.gl",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
"url": "git+https://github.com/developmentseed/deck.gl-raster.git"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^25.
|
|
37
|
-
"jsdom": "^
|
|
36
|
+
"@types/node": "^25.3.3",
|
|
37
|
+
"jsdom": "^28.1.0",
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
39
|
"vitest": "^4.0.18"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cogeotiff/core": "^9.
|
|
42
|
+
"@cogeotiff/core": "^9.4.0",
|
|
43
43
|
"flatbush": "^4.5.0",
|
|
44
|
-
"proj4": "^2.20.
|
|
45
|
-
"wkt-parser": "^1.5.
|
|
46
|
-
"@developmentseed/
|
|
47
|
-
"@developmentseed/
|
|
48
|
-
"@developmentseed/
|
|
49
|
-
"@developmentseed/morecantile": "^0.3.0
|
|
50
|
-
"@developmentseed/raster-reproject": "^0.3.0
|
|
44
|
+
"proj4": "^2.20.3",
|
|
45
|
+
"wkt-parser": "^1.5.3",
|
|
46
|
+
"@developmentseed/affine": "^0.3.0",
|
|
47
|
+
"@developmentseed/deck.gl-raster": "^0.3.0",
|
|
48
|
+
"@developmentseed/geotiff": "^0.3.0",
|
|
49
|
+
"@developmentseed/morecantile": "^0.3.0",
|
|
50
|
+
"@developmentseed/raster-reproject": "^0.3.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@deck.gl/core": "^9.2.7",
|
|
54
54
|
"@deck.gl/geo-layers": "^9.2.7",
|
|
55
55
|
"@deck.gl/layers": "^9.2.7",
|
|
56
56
|
"@deck.gl/mesh-layers": "^9.2.7",
|
|
57
|
-
"@luma.gl/core": "^9.2.
|
|
57
|
+
"@luma.gl/core": "^9.2.6"
|
|
58
58
|
},
|
|
59
59
|
"volta": {
|
|
60
60
|
"extends": "../../package.json"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cog-tile-matrix-set.d.ts","sourceRoot":"","sources":["../src/cog-tile-matrix-set.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5D,WAAW,CA0Cb"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// TODO: deduplicate with similar functions in various places in this codebase
|
|
2
|
-
export function computeWgs84BoundingBox(boundingBox, projectToWgs84) {
|
|
3
|
-
const lowerLeftWgs84 = projectToWgs84(boundingBox.lowerLeft);
|
|
4
|
-
const lowerRightWgs84 = projectToWgs84([
|
|
5
|
-
boundingBox.upperRight[0],
|
|
6
|
-
boundingBox.lowerLeft[1],
|
|
7
|
-
]);
|
|
8
|
-
const upperRightWgs84 = projectToWgs84(boundingBox.upperRight);
|
|
9
|
-
const upperLeftWgs84 = projectToWgs84([
|
|
10
|
-
boundingBox.lowerLeft[0],
|
|
11
|
-
boundingBox.upperRight[1],
|
|
12
|
-
]);
|
|
13
|
-
// Compute min/max lat/lon
|
|
14
|
-
const minLon = Math.min(lowerLeftWgs84[0], lowerRightWgs84[0], upperRightWgs84[0], upperLeftWgs84[0]);
|
|
15
|
-
const maxLon = Math.max(lowerLeftWgs84[0], lowerRightWgs84[0], upperRightWgs84[0], upperLeftWgs84[0]);
|
|
16
|
-
const minLat = Math.min(lowerLeftWgs84[1], lowerRightWgs84[1], upperRightWgs84[1], upperLeftWgs84[1]);
|
|
17
|
-
const maxLat = Math.max(lowerLeftWgs84[1], lowerRightWgs84[1], upperRightWgs84[1], upperLeftWgs84[1]);
|
|
18
|
-
return {
|
|
19
|
-
lowerLeft: [minLon, minLat],
|
|
20
|
-
upperRight: [maxLon, maxLat],
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=cog-tile-matrix-set.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cog-tile-matrix-set.js","sourceRoot":"","sources":["../src/cog-tile-matrix-set.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,MAAM,UAAU,uBAAuB,CACrC,WAAwB,EACxB,cAA6D;IAE7D,MAAM,cAAc,GAAG,cAAc,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC7D,MAAM,eAAe,GAAG,cAAc,CAAC;QACrC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;QACzB,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;KACzB,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,cAAc,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC/D,MAAM,cAAc,GAAG,cAAc,CAAC;QACpC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;QACxB,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;KAC1B,CAAC,CAAC;IAEH,0BAA0B;IAC1B,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CACrB,cAAc,CAAC,CAAC,CAAC,EACjB,eAAe,CAAC,CAAC,CAAC,EAClB,eAAe,CAAC,CAAC,CAAC,EAClB,cAAc,CAAC,CAAC,CAAC,CAClB,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CACrB,cAAc,CAAC,CAAC,CAAC,EACjB,eAAe,CAAC,CAAC,CAAC,EAClB,eAAe,CAAC,CAAC,CAAC,EAClB,cAAc,CAAC,CAAC,CAAC,CAClB,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CACrB,cAAc,CAAC,CAAC,CAAC,EACjB,eAAe,CAAC,CAAC,CAAC,EAClB,eAAe,CAAC,CAAC,CAAC,EAClB,cAAc,CAAC,CAAC,CAAC,CAClB,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CACrB,cAAc,CAAC,CAAC,CAAC,EACjB,eAAe,CAAC,CAAC,CAAC,EAClB,eAAe,CAAC,CAAC,CAAC,EAClB,cAAc,CAAC,CAAC,CAAC,CAClB,CAAC;IAEF,OAAO;QACL,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC7B,CAAC;AACJ,CAAC"}
|
package/dist/ellipsoids.d.ts
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vendored and edited from proj4.js.
|
|
3
|
-
*
|
|
4
|
-
* In the implementation of metersPerUnit while generating a COG TileMatrixSet,
|
|
5
|
-
* we need to know the size of the semi major axis in the case the CRS is in
|
|
6
|
-
* degrees.
|
|
7
|
-
*
|
|
8
|
-
* https://github.com/proj4js/proj4js/blob/e90e5fa6872a1ffc40edb161cbeb4bd5e3bd9db5/lib/constants/Ellipsoid.js
|
|
9
|
-
*/
|
|
10
|
-
declare const ellipsoids: {
|
|
11
|
-
MERIT: {
|
|
12
|
-
a: number;
|
|
13
|
-
};
|
|
14
|
-
SGS85: {
|
|
15
|
-
a: number;
|
|
16
|
-
};
|
|
17
|
-
GRS80: {
|
|
18
|
-
a: number;
|
|
19
|
-
};
|
|
20
|
-
IAU76: {
|
|
21
|
-
a: number;
|
|
22
|
-
};
|
|
23
|
-
airy: {
|
|
24
|
-
a: number;
|
|
25
|
-
b: number;
|
|
26
|
-
};
|
|
27
|
-
APL4: {
|
|
28
|
-
a: number;
|
|
29
|
-
};
|
|
30
|
-
NWL9D: {
|
|
31
|
-
a: number;
|
|
32
|
-
};
|
|
33
|
-
mod_airy: {
|
|
34
|
-
a: number;
|
|
35
|
-
b: number;
|
|
36
|
-
};
|
|
37
|
-
andrae: {
|
|
38
|
-
a: number;
|
|
39
|
-
};
|
|
40
|
-
aust_SA: {
|
|
41
|
-
a: number;
|
|
42
|
-
};
|
|
43
|
-
GRS67: {
|
|
44
|
-
a: number;
|
|
45
|
-
};
|
|
46
|
-
bessel: {
|
|
47
|
-
a: number;
|
|
48
|
-
};
|
|
49
|
-
bess_nam: {
|
|
50
|
-
a: number;
|
|
51
|
-
};
|
|
52
|
-
clrk66: {
|
|
53
|
-
a: number;
|
|
54
|
-
b: number;
|
|
55
|
-
};
|
|
56
|
-
clrk80: {
|
|
57
|
-
a: number;
|
|
58
|
-
};
|
|
59
|
-
clrk80ign: {
|
|
60
|
-
a: number;
|
|
61
|
-
b: number;
|
|
62
|
-
};
|
|
63
|
-
clrk58: {
|
|
64
|
-
a: number;
|
|
65
|
-
};
|
|
66
|
-
CPM: {
|
|
67
|
-
a: number;
|
|
68
|
-
};
|
|
69
|
-
delmbr: {
|
|
70
|
-
a: number;
|
|
71
|
-
};
|
|
72
|
-
engelis: {
|
|
73
|
-
a: number;
|
|
74
|
-
};
|
|
75
|
-
evrst30: {
|
|
76
|
-
a: number;
|
|
77
|
-
};
|
|
78
|
-
evrst48: {
|
|
79
|
-
a: number;
|
|
80
|
-
};
|
|
81
|
-
evrst56: {
|
|
82
|
-
a: number;
|
|
83
|
-
};
|
|
84
|
-
evrst69: {
|
|
85
|
-
a: number;
|
|
86
|
-
};
|
|
87
|
-
evrstSS: {
|
|
88
|
-
a: number;
|
|
89
|
-
};
|
|
90
|
-
fschr60: {
|
|
91
|
-
a: number;
|
|
92
|
-
};
|
|
93
|
-
fschr60m: {
|
|
94
|
-
a: number;
|
|
95
|
-
};
|
|
96
|
-
fschr68: {
|
|
97
|
-
a: number;
|
|
98
|
-
};
|
|
99
|
-
helmert: {
|
|
100
|
-
a: number;
|
|
101
|
-
};
|
|
102
|
-
hough: {
|
|
103
|
-
a: number;
|
|
104
|
-
};
|
|
105
|
-
intl: {
|
|
106
|
-
a: number;
|
|
107
|
-
};
|
|
108
|
-
kaula: {
|
|
109
|
-
a: number;
|
|
110
|
-
};
|
|
111
|
-
lerch: {
|
|
112
|
-
a: number;
|
|
113
|
-
};
|
|
114
|
-
mprts: {
|
|
115
|
-
a: number;
|
|
116
|
-
};
|
|
117
|
-
new_intl: {
|
|
118
|
-
a: number;
|
|
119
|
-
b: number;
|
|
120
|
-
};
|
|
121
|
-
plessis: {
|
|
122
|
-
a: number;
|
|
123
|
-
};
|
|
124
|
-
krass: {
|
|
125
|
-
a: number;
|
|
126
|
-
};
|
|
127
|
-
SEasia: {
|
|
128
|
-
a: number;
|
|
129
|
-
b: number;
|
|
130
|
-
};
|
|
131
|
-
walbeck: {
|
|
132
|
-
a: number;
|
|
133
|
-
b: number;
|
|
134
|
-
};
|
|
135
|
-
WGS60: {
|
|
136
|
-
a: number;
|
|
137
|
-
};
|
|
138
|
-
WGS66: {
|
|
139
|
-
a: number;
|
|
140
|
-
};
|
|
141
|
-
WGS7: {
|
|
142
|
-
a: number;
|
|
143
|
-
};
|
|
144
|
-
WGS84: {
|
|
145
|
-
a: number;
|
|
146
|
-
};
|
|
147
|
-
sphere: {
|
|
148
|
-
a: number;
|
|
149
|
-
b: number;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
export default ellipsoids;
|
|
153
|
-
//# sourceMappingURL=ellipsoids.d.ts.map
|
package/dist/ellipsoids.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ellipsoids.d.ts","sourceRoot":"","sources":["../src/ellipsoids.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6If,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/dist/ellipsoids.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vendored and edited from proj4.js.
|
|
3
|
-
*
|
|
4
|
-
* In the implementation of metersPerUnit while generating a COG TileMatrixSet,
|
|
5
|
-
* we need to know the size of the semi major axis in the case the CRS is in
|
|
6
|
-
* degrees.
|
|
7
|
-
*
|
|
8
|
-
* https://github.com/proj4js/proj4js/blob/e90e5fa6872a1ffc40edb161cbeb4bd5e3bd9db5/lib/constants/Ellipsoid.js
|
|
9
|
-
*/
|
|
10
|
-
const ellipsoids = {
|
|
11
|
-
MERIT: {
|
|
12
|
-
a: 6378137,
|
|
13
|
-
},
|
|
14
|
-
SGS85: {
|
|
15
|
-
a: 6378136,
|
|
16
|
-
},
|
|
17
|
-
GRS80: {
|
|
18
|
-
a: 6378137,
|
|
19
|
-
},
|
|
20
|
-
IAU76: {
|
|
21
|
-
a: 6378140,
|
|
22
|
-
},
|
|
23
|
-
airy: {
|
|
24
|
-
a: 6377563.396,
|
|
25
|
-
b: 6356256.91,
|
|
26
|
-
},
|
|
27
|
-
APL4: {
|
|
28
|
-
a: 6378137,
|
|
29
|
-
},
|
|
30
|
-
NWL9D: {
|
|
31
|
-
a: 6378145,
|
|
32
|
-
},
|
|
33
|
-
mod_airy: {
|
|
34
|
-
a: 6377340.189,
|
|
35
|
-
b: 6356034.446,
|
|
36
|
-
},
|
|
37
|
-
andrae: {
|
|
38
|
-
a: 6377104.43,
|
|
39
|
-
},
|
|
40
|
-
aust_SA: {
|
|
41
|
-
a: 6378160,
|
|
42
|
-
},
|
|
43
|
-
GRS67: {
|
|
44
|
-
a: 6378160,
|
|
45
|
-
},
|
|
46
|
-
bessel: {
|
|
47
|
-
a: 6377397.155,
|
|
48
|
-
},
|
|
49
|
-
bess_nam: {
|
|
50
|
-
a: 6377483.865,
|
|
51
|
-
},
|
|
52
|
-
clrk66: {
|
|
53
|
-
a: 6378206.4,
|
|
54
|
-
b: 6356583.8,
|
|
55
|
-
},
|
|
56
|
-
clrk80: {
|
|
57
|
-
a: 6378249.145,
|
|
58
|
-
},
|
|
59
|
-
clrk80ign: {
|
|
60
|
-
a: 6378249.2,
|
|
61
|
-
b: 6356515,
|
|
62
|
-
},
|
|
63
|
-
clrk58: {
|
|
64
|
-
a: 6378293.645208759,
|
|
65
|
-
},
|
|
66
|
-
CPM: {
|
|
67
|
-
a: 6375738.7,
|
|
68
|
-
},
|
|
69
|
-
delmbr: {
|
|
70
|
-
a: 6376428,
|
|
71
|
-
},
|
|
72
|
-
engelis: {
|
|
73
|
-
a: 6378136.05,
|
|
74
|
-
},
|
|
75
|
-
evrst30: {
|
|
76
|
-
a: 6377276.345,
|
|
77
|
-
},
|
|
78
|
-
evrst48: {
|
|
79
|
-
a: 6377304.063,
|
|
80
|
-
},
|
|
81
|
-
evrst56: {
|
|
82
|
-
a: 6377301.243,
|
|
83
|
-
},
|
|
84
|
-
evrst69: {
|
|
85
|
-
a: 6377295.664,
|
|
86
|
-
},
|
|
87
|
-
evrstSS: {
|
|
88
|
-
a: 6377298.556,
|
|
89
|
-
},
|
|
90
|
-
fschr60: {
|
|
91
|
-
a: 6378166,
|
|
92
|
-
},
|
|
93
|
-
fschr60m: {
|
|
94
|
-
a: 6378155,
|
|
95
|
-
},
|
|
96
|
-
fschr68: {
|
|
97
|
-
a: 6378150,
|
|
98
|
-
},
|
|
99
|
-
helmert: {
|
|
100
|
-
a: 6378200,
|
|
101
|
-
},
|
|
102
|
-
hough: {
|
|
103
|
-
a: 6378270,
|
|
104
|
-
},
|
|
105
|
-
intl: {
|
|
106
|
-
a: 6378388,
|
|
107
|
-
},
|
|
108
|
-
kaula: {
|
|
109
|
-
a: 6378163,
|
|
110
|
-
},
|
|
111
|
-
lerch: {
|
|
112
|
-
a: 6378139,
|
|
113
|
-
},
|
|
114
|
-
mprts: {
|
|
115
|
-
a: 6397300,
|
|
116
|
-
},
|
|
117
|
-
new_intl: {
|
|
118
|
-
a: 6378157.5,
|
|
119
|
-
b: 6356772.2,
|
|
120
|
-
},
|
|
121
|
-
plessis: {
|
|
122
|
-
a: 6376523,
|
|
123
|
-
},
|
|
124
|
-
krass: {
|
|
125
|
-
a: 6378245,
|
|
126
|
-
},
|
|
127
|
-
SEasia: {
|
|
128
|
-
a: 6378155,
|
|
129
|
-
b: 6356773.3205,
|
|
130
|
-
},
|
|
131
|
-
walbeck: {
|
|
132
|
-
a: 6376896,
|
|
133
|
-
b: 6355834.8467,
|
|
134
|
-
},
|
|
135
|
-
WGS60: {
|
|
136
|
-
a: 6378165,
|
|
137
|
-
},
|
|
138
|
-
WGS66: {
|
|
139
|
-
a: 6378145,
|
|
140
|
-
},
|
|
141
|
-
WGS7: {
|
|
142
|
-
a: 6378135,
|
|
143
|
-
},
|
|
144
|
-
WGS84: {
|
|
145
|
-
a: 6378137,
|
|
146
|
-
},
|
|
147
|
-
sphere: {
|
|
148
|
-
a: 6370997,
|
|
149
|
-
b: 6370997,
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
export default ellipsoids;
|
|
153
|
-
//# sourceMappingURL=ellipsoids.js.map
|
package/dist/ellipsoids.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ellipsoids.js","sourceRoot":"","sources":["../src/ellipsoids.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,UAAU,GAAG;IACjB,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO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,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,IAAI,EAAE;QACJ,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,QAAQ,EAAE;QACR,CAAC,EAAE,SAAS;QACZ,CAAC,EAAE,SAAS;KACb;IACD,OAAO,EAAE;QACP,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,MAAM,EAAE;QACN,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,YAAY;KAChB;IACD,OAAO,EAAE;QACP,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,YAAY;KAChB;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,IAAI,EAAE;QACJ,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,MAAM,EAAE;QACN,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,OAAO;KACX;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A 2-D affine transform as a six-element tuple in row-major order:
|
|
3
|
-
*
|
|
4
|
-
* x_crs = a * col_px + b * row_px + c
|
|
5
|
-
* y_crs = d * col_px + e * row_px + f
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export type Affine = [
|
|
9
|
-
a: number,
|
|
10
|
-
b: number,
|
|
11
|
-
c: number,
|
|
12
|
-
d: number,
|
|
13
|
-
e: number,
|
|
14
|
-
f: number
|
|
15
|
-
];
|
|
16
|
-
//# sourceMappingURL=affine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affine.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/affine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;CACV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affine.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/affine.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { TypedArray } from "geotiff";
|
|
2
|
-
import type { Affine } from "./affine";
|
|
3
|
-
/**
|
|
4
|
-
* Decoded raster data from a GeoTIFF region.
|
|
5
|
-
*
|
|
6
|
-
* Data is stored in pixel-interleaved order (the native layout returned by
|
|
7
|
-
* geotiff.js with `interleave: true`): for each pixel in row-major order, all
|
|
8
|
-
* band values are contiguous. The flat array length is `height * width * bands`.
|
|
9
|
-
*/
|
|
10
|
-
export type RasterArray = {
|
|
11
|
-
/** Pixel-interleaved raster data with shape (bands, height, width) */
|
|
12
|
-
data: TypedArray;
|
|
13
|
-
/**
|
|
14
|
-
* Optional validity mask with shape (height, width).
|
|
15
|
-
*
|
|
16
|
-
* 1 = valid pixel
|
|
17
|
-
* 0 = nodata
|
|
18
|
-
*
|
|
19
|
-
* `null` when no mask IFD is present.
|
|
20
|
-
*/
|
|
21
|
-
mask: Uint8Array | null;
|
|
22
|
-
/** The number of bands in the array. */
|
|
23
|
-
count: number;
|
|
24
|
-
/** Height in pixels. */
|
|
25
|
-
height: number;
|
|
26
|
-
/** Width in pixels. */
|
|
27
|
-
width: number;
|
|
28
|
-
/**
|
|
29
|
-
* The affine transform mapping pixel coordinates to geographic coordinates.
|
|
30
|
-
*/
|
|
31
|
-
transform: Affine;
|
|
32
|
-
/** The coordinate reference system of the array. */
|
|
33
|
-
crs: string;
|
|
34
|
-
/** The nodata value for the array, if any. */
|
|
35
|
-
nodata: number | null;
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=array.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,sEAAsE;IACtE,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;;;;OAOG;IACH,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAExB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IAEd,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IAEf,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAC;IAEZ,8CAA8C;IAC9C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/array.ts"],"names":[],"mappings":""}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { GeoTransform } from "@developmentseed/raster-reproject/affine";
|
|
2
|
-
import type { GeoTIFFImage, GeoTIFF as UpstreamGeoTIFF } from "geotiff";
|
|
3
|
-
import type { RasterArray } from "./array.js";
|
|
4
|
-
import type { FetchOptions } from "./options.js";
|
|
5
|
-
import type { Overview } from "./overview.js";
|
|
6
|
-
import type { Tile } from "./tile.js";
|
|
7
|
-
import type { Window } from "./window.js";
|
|
8
|
-
/**
|
|
9
|
-
* A higher-level GeoTIFF abstraction that separates data IFDs from mask IFDs,
|
|
10
|
-
* pairs them by resolution, and exposes sorted overviews.
|
|
11
|
-
*
|
|
12
|
-
* Construct via `GeoTIFF.open(tiff)`.
|
|
13
|
-
*/
|
|
14
|
-
export declare class GeoTIFF {
|
|
15
|
-
/** The underlying GeoTIFF instance from geotiff.js */
|
|
16
|
-
private readonly tiff;
|
|
17
|
-
/**
|
|
18
|
-
* The primary (first) IFD of the GeoTIFF.
|
|
19
|
-
*
|
|
20
|
-
* Some tags, like most geo tags, only exist on the primary IFD.
|
|
21
|
-
*/
|
|
22
|
-
private readonly primaryIfd;
|
|
23
|
-
/**
|
|
24
|
-
* The mask IFD of the full-resolution GeoTIFF, if any.
|
|
25
|
-
*/
|
|
26
|
-
private readonly maskIfd;
|
|
27
|
-
/**
|
|
28
|
-
* Reduced-resolution overview levels, sorted finest-to-coarsest.
|
|
29
|
-
*
|
|
30
|
-
* Does not include the full-resolution image — use `fetchTile` / `read`
|
|
31
|
-
* on the GeoTIFF instance itself for that.
|
|
32
|
-
*/
|
|
33
|
-
readonly overviews: Overview[];
|
|
34
|
-
/** Affine geotransform of the full-resolution image. */
|
|
35
|
-
readonly transform: GeoTransform;
|
|
36
|
-
/** The primary (full-resolution) GeoTIFFImage. Useful for geo key access. */
|
|
37
|
-
readonly primaryImage: GeoTIFFImage;
|
|
38
|
-
/** Overview wrapper around the primary image, used by the convenience delegates. */
|
|
39
|
-
private readonly _primary;
|
|
40
|
-
private constructor();
|
|
41
|
-
/**
|
|
42
|
-
* Open a GeoTIFF and classify its IFDs into data/mask pairs.
|
|
43
|
-
*
|
|
44
|
-
* All IFDs are walked; mask IFDs are matched to data IFDs by matching
|
|
45
|
-
* (width, height). Overviews are sorted from finest to coarsest resolution.
|
|
46
|
-
*/
|
|
47
|
-
static open(tiff: UpstreamGeoTIFF): Promise<GeoTIFF>;
|
|
48
|
-
/** Fetch a single tile from the full-resolution image. */
|
|
49
|
-
fetchTile(x: number, y: number, options?: FetchOptions): Promise<Tile>;
|
|
50
|
-
/** Read an arbitrary window from the full-resolution image. */
|
|
51
|
-
read(window: Window, options?: FetchOptions): Promise<RasterArray>;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Determine whether a GeoTIFFImage is a mask IFD.
|
|
55
|
-
*
|
|
56
|
-
* Per the TIFF spec, bit 2 (value 4) of NewSubfileType signals
|
|
57
|
-
* "this IFD is a mask". We also require PhotometricInterpretation === 4
|
|
58
|
-
* (TransparencyMask) to confirm the intent.
|
|
59
|
-
*
|
|
60
|
-
* NewSubfileType defaults to 0 when absent from the file directory.
|
|
61
|
-
*/
|
|
62
|
-
export declare function isMaskIfd(image: GeoTIFFImage): boolean;
|
|
63
|
-
//# sourceMappingURL=geotiff.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geotiff.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/geotiff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAGxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,OAAO;IAClB,sDAAsD;IACtD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IAEvC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAe;IAE1C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;IAE9C;;;;;OAKG;IACH,QAAQ,CAAC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