@developmentseed/morecantile 0.1.1 → 0.2.0-beta.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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/transform.d.ts +53 -0
- package/dist/transform.d.ts.map +1 -0
- package/dist/transform.js +69 -0
- package/dist/transform.js.map +1 -0
- package/dist/types/spec/index.d.ts +0 -9
- package/dist/types/spec/index.d.ts.map +1 -1
- package/dist/types/spec/index.js +0 -9
- package/dist/types/spec/index.js.map +1 -1
- package/dist/types/spec/tileMatrix.d.ts +1 -3
- package/dist/types/spec/tileMatrix.d.ts.map +1 -1
- package/dist/types/spec/tileMatrixSet.d.ts +2 -6
- package/dist/types/spec/tileMatrixSet.d.ts.map +1 -1
- package/package.json +17 -23
- package/dist/types/spec/dataType.d.ts +0 -2
- package/dist/types/spec/dataType.d.ts.map +0 -1
- package/dist/types/spec/dataType.js +0 -5
- package/dist/types/spec/dataType.js.map +0 -1
- package/dist/types/spec/geospatialData.d.ts +0 -112
- package/dist/types/spec/geospatialData.d.ts.map +0 -1
- package/dist/types/spec/geospatialData.js +0 -5
- package/dist/types/spec/geospatialData.js.map +0 -1
- package/dist/types/spec/link.d.ts +0 -36
- package/dist/types/spec/link.d.ts.map +0 -1
- package/dist/types/spec/link.js +0 -5
- package/dist/types/spec/link.js.map +0 -1
- package/dist/types/spec/propertiesSchema.d.ts +0 -71
- package/dist/types/spec/propertiesSchema.d.ts.map +0 -1
- package/dist/types/spec/propertiesSchema.js +0 -5
- package/dist/types/spec/propertiesSchema.js.map +0 -1
- package/dist/types/spec/style.d.ts +0 -27
- package/dist/types/spec/style.d.ts.map +0 -1
- package/dist/types/spec/style.js +0 -5
- package/dist/types/spec/style.js.map +0 -1
- package/dist/types/spec/tileMatrixLimits.d.ts +0 -12
- package/dist/types/spec/tileMatrixLimits.d.ts.map +0 -1
- package/dist/types/spec/tileMatrixLimits.js +0 -5
- package/dist/types/spec/tileMatrixLimits.js.map +0 -1
- package/dist/types/spec/tilePoint.d.ts +0 -25
- package/dist/types/spec/tilePoint.d.ts.map +0 -1
- package/dist/types/spec/tilePoint.js +0 -5
- package/dist/types/spec/tilePoint.js.map +0 -1
- package/dist/types/spec/tileSet.d.ts +0 -93
- package/dist/types/spec/tileSet.d.ts.map +0 -1
- package/dist/types/spec/tileSet.js +0 -5
- package/dist/types/spec/tileSet.js.map +0 -1
- package/dist/types/spec/timeStamp.d.ts +0 -5
- package/dist/types/spec/timeStamp.d.ts.map +0 -1
- package/dist/types/spec/timeStamp.js +0 -5
- package/dist/types/spec/timeStamp.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type { Affine } from "./transform";
|
|
2
|
+
export { matrixTransform, tileTransform } from "./transform";
|
|
1
3
|
export type { BoundingBox, CRS, TileMatrix, TileMatrixSet, } from "./types/index";
|
|
2
4
|
export { metersPerUnit } from "./utils";
|
|
3
5
|
//# 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,EACV,WAAW,EACX,GAAG,EACH,UAAU,EACV,aAAa,GACd,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EACV,WAAW,EACX,GAAG,EACH,UAAU,EACV,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
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":"AACA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAO7D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { TileMatrix } from "./types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A 2-D affine transform as a six-element tuple in row-major order:
|
|
4
|
+
*
|
|
5
|
+
* x_crs = a * col_px + b * row_px + c
|
|
6
|
+
* y_crs = d * col_px + e * row_px + f
|
|
7
|
+
*
|
|
8
|
+
* For the north-up, axis-aligned grids produced by OGC TileMatrices,
|
|
9
|
+
* b and d are always zero, but the type does not enforce that.
|
|
10
|
+
*
|
|
11
|
+
* Note: the meaning of the two output axes depends on the
|
|
12
|
+
* `orderedAxes` field of the parent TileMatrixSet, which these
|
|
13
|
+
* helpers do not consult. Axis 0 of pointOfOrigin is axis 0 of the
|
|
14
|
+
* transform output, whatever that axis happens to be.
|
|
15
|
+
*/
|
|
16
|
+
export type Affine = [
|
|
17
|
+
a: number,
|
|
18
|
+
b: number,
|
|
19
|
+
c: number,
|
|
20
|
+
d: number,
|
|
21
|
+
e: number,
|
|
22
|
+
f: number
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* Construct a single affine transform that maps pixel coordinates
|
|
26
|
+
* within *any* tile of the matrix to CRS coordinates.
|
|
27
|
+
*
|
|
28
|
+
* Returns `null` when the matrix declares `variableMatrixWidths`,
|
|
29
|
+
* because coalesced rows have a different X pixel size than the rest
|
|
30
|
+
* and cannot be described by one transform. Use {@link tileTransform}
|
|
31
|
+
* in that case.
|
|
32
|
+
*
|
|
33
|
+
* Pixel (0, 0) is the top-left corner of tile (0, 0). The column
|
|
34
|
+
* pixel index runs across the full matrix:
|
|
35
|
+
* globalPixelCol = col * tileWidth + pixelWithinTile_x
|
|
36
|
+
* globalPixelRow = row * tileHeight + pixelWithinTile_y
|
|
37
|
+
*/
|
|
38
|
+
export declare function matrixTransform(matrix: TileMatrix): Affine | null;
|
|
39
|
+
/**
|
|
40
|
+
* Construct an affine transform for a single tile identified by its
|
|
41
|
+
* column and row indices within the matrix. Pixel (0, 0) is the
|
|
42
|
+
* top-left corner of *this* tile.
|
|
43
|
+
*
|
|
44
|
+
* This is always possible: even when `variableMatrixWidths` is
|
|
45
|
+
* present, each individual tile is a plain rectangular pixel grid
|
|
46
|
+
* with a well-defined, axis-aligned footprint. Coalescence only
|
|
47
|
+
* stretches the tile in X; Y is unaffected.
|
|
48
|
+
*/
|
|
49
|
+
export declare function tileTransform(matrix: TileMatrix, tile: {
|
|
50
|
+
col: number;
|
|
51
|
+
row: number;
|
|
52
|
+
}): Affine;
|
|
53
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../src/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;;;;;;GAaG;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;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAgBjE;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjC,MAAM,CAiBR"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Construct a single affine transform that maps pixel coordinates
|
|
3
|
+
* within *any* tile of the matrix to CRS coordinates.
|
|
4
|
+
*
|
|
5
|
+
* Returns `null` when the matrix declares `variableMatrixWidths`,
|
|
6
|
+
* because coalesced rows have a different X pixel size than the rest
|
|
7
|
+
* and cannot be described by one transform. Use {@link tileTransform}
|
|
8
|
+
* in that case.
|
|
9
|
+
*
|
|
10
|
+
* Pixel (0, 0) is the top-left corner of tile (0, 0). The column
|
|
11
|
+
* pixel index runs across the full matrix:
|
|
12
|
+
* globalPixelCol = col * tileWidth + pixelWithinTile_x
|
|
13
|
+
* globalPixelRow = row * tileHeight + pixelWithinTile_y
|
|
14
|
+
*/
|
|
15
|
+
export function matrixTransform(matrix) {
|
|
16
|
+
if (matrix.variableMatrixWidths && matrix.variableMatrixWidths.length > 0) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const [originX, originY] = matrix.pointOfOrigin;
|
|
20
|
+
const ySign = matrix.cornerOfOrigin === "bottomLeft" ? 1 : -1;
|
|
21
|
+
return [
|
|
22
|
+
matrix.cellSize, // a: x per pixel-col
|
|
23
|
+
0, // b
|
|
24
|
+
originX, // c: x origin
|
|
25
|
+
0, // d
|
|
26
|
+
ySign * matrix.cellSize, // e: y per pixel-row
|
|
27
|
+
originY, // f: y origin
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Construct an affine transform for a single tile identified by its
|
|
32
|
+
* column and row indices within the matrix. Pixel (0, 0) is the
|
|
33
|
+
* top-left corner of *this* tile.
|
|
34
|
+
*
|
|
35
|
+
* This is always possible: even when `variableMatrixWidths` is
|
|
36
|
+
* present, each individual tile is a plain rectangular pixel grid
|
|
37
|
+
* with a well-defined, axis-aligned footprint. Coalescence only
|
|
38
|
+
* stretches the tile in X; Y is unaffected.
|
|
39
|
+
*/
|
|
40
|
+
export function tileTransform(matrix, tile) {
|
|
41
|
+
const coalesce = coalesceForRow(matrix, tile.row);
|
|
42
|
+
const [originX, originY] = matrix.pointOfOrigin;
|
|
43
|
+
const ySign = matrix.cornerOfOrigin === "bottomLeft" ? 1 : -1;
|
|
44
|
+
const tileSpanX = coalesce * matrix.cellSize * matrix.tileWidth;
|
|
45
|
+
const tileSpanY = matrix.cellSize * matrix.tileHeight;
|
|
46
|
+
return [
|
|
47
|
+
coalesce * matrix.cellSize, // a: x per pixel-col (stretched by coalesce)
|
|
48
|
+
0, // b
|
|
49
|
+
originX + tile.col * tileSpanX, // c: x origin of this tile
|
|
50
|
+
0, // d
|
|
51
|
+
ySign * matrix.cellSize, // e: y per pixel-row (unchanged)
|
|
52
|
+
originY + ySign * tile.row * tileSpanY, // f: y origin of this tile
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Return the coalesce factor for a given row, or 1 if the row is not
|
|
57
|
+
* coalesced (or the matrix has no variableMatrixWidths at all).
|
|
58
|
+
*/
|
|
59
|
+
function coalesceForRow(matrix, row) {
|
|
60
|
+
if (!matrix.variableMatrixWidths)
|
|
61
|
+
return 1;
|
|
62
|
+
for (const vmw of matrix.variableMatrixWidths) {
|
|
63
|
+
if (row >= vmw.minTileRow && row <= vmw.maxTileRow) {
|
|
64
|
+
return vmw.coalesce;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return 1;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=transform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../src/transform.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,eAAe,CAAC,MAAkB;IAChD,IAAI,MAAM,CAAC,oBAAoB,IAAI,MAAM,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC;IAChD,MAAM,KAAK,GAAG,MAAM,CAAC,cAAc,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO;QACL,MAAM,CAAC,QAAQ,EAAE,qBAAqB;QACtC,CAAC,EAAE,IAAI;QACP,OAAO,EAAE,cAAc;QACvB,CAAC,EAAE,IAAI;QACP,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,qBAAqB;QAC9C,OAAO,EAAE,cAAc;KACxB,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAkB,EAClB,IAAkC;IAElC,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAElD,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC;IAChD,MAAM,KAAK,GAAG,MAAM,CAAC,cAAc,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;IAChE,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC;IAEtD,OAAO;QACL,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,6CAA6C;QACzE,CAAC,EAAE,IAAI;QACP,OAAO,GAAG,IAAI,CAAC,GAAG,GAAG,SAAS,EAAE,2BAA2B;QAC3D,CAAC,EAAE,IAAI;QACP,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,iCAAiC;QAC1D,OAAO,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,GAAG,SAAS,EAAE,2BAA2B;KACpE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAC,MAAkB,EAAE,GAAW;IACrD,IAAI,CAAC,MAAM,CAAC,oBAAoB;QAAE,OAAO,CAAC,CAAC;IAE3C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,oBAAoB,EAAE,CAAC;QAC9C,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC;YACnD,OAAO,GAAG,CAAC,QAAQ,CAAC;QACtB,CAAC;IACH,CAAC;IAED,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
export * from "./2DBoundingBox.js";
|
|
2
2
|
export * from "./2DPoint.js";
|
|
3
3
|
export * from "./crs.js";
|
|
4
|
-
export * from "./dataType.js";
|
|
5
|
-
export * from "./geospatialData.js";
|
|
6
|
-
export * from "./link.js";
|
|
7
4
|
export * from "./projJSON.js";
|
|
8
|
-
export * from "./propertiesSchema.js";
|
|
9
|
-
export * from "./style.js";
|
|
10
5
|
export * from "./tileMatrix.js";
|
|
11
|
-
export * from "./tileMatrixLimits.js";
|
|
12
6
|
export * from "./tileMatrixSet.js";
|
|
13
|
-
export * from "./tilePoint.js";
|
|
14
|
-
export * from "./tileSet.js";
|
|
15
|
-
export * from "./timeStamp.js";
|
|
16
7
|
export * from "./variableMatrixWidth.js";
|
|
17
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/spec/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/spec/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
package/dist/types/spec/index.js
CHANGED
|
@@ -4,17 +4,8 @@
|
|
|
4
4
|
export * from "./2DBoundingBox.js";
|
|
5
5
|
export * from "./2DPoint.js";
|
|
6
6
|
export * from "./crs.js";
|
|
7
|
-
export * from "./dataType.js";
|
|
8
|
-
export * from "./geospatialData.js";
|
|
9
|
-
export * from "./link.js";
|
|
10
7
|
export * from "./projJSON.js";
|
|
11
|
-
export * from "./propertiesSchema.js";
|
|
12
|
-
export * from "./style.js";
|
|
13
8
|
export * from "./tileMatrix.js";
|
|
14
|
-
export * from "./tileMatrixLimits.js";
|
|
15
9
|
export * from "./tileMatrixSet.js";
|
|
16
|
-
export * from "./tilePoint.js";
|
|
17
|
-
export * from "./tileSet.js";
|
|
18
|
-
export * from "./timeStamp.js";
|
|
19
10
|
export * from "./variableMatrixWidth.js";
|
|
20
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/spec/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E;AAE1E,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/spec/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E;AAE1E,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
|
@@ -32,9 +32,7 @@ export interface TileMatrix {
|
|
|
32
32
|
* The corner of the tile matrix (_topLeft_ or _bottomLeft_) used as the origin for numbering tile rows and columns. This corner is also a corner of the (0, 0) tile.
|
|
33
33
|
*/
|
|
34
34
|
cornerOfOrigin?: "topLeft" | "bottomLeft";
|
|
35
|
-
pointOfOrigin:
|
|
36
|
-
[k: string]: unknown;
|
|
37
|
-
} & DPoint;
|
|
35
|
+
pointOfOrigin: DPoint;
|
|
38
36
|
/**
|
|
39
37
|
* Width of each tile of this tile matrix in pixels
|
|
40
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tileMatrix.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrix.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAC1C,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"tileMatrix.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrix.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -29,16 +29,12 @@ export interface TileMatrixSetDefinition {
|
|
|
29
29
|
* @minItems 1
|
|
30
30
|
*/
|
|
31
31
|
orderedAxes?: [string, ...string[]];
|
|
32
|
-
crs:
|
|
33
|
-
[k: string]: unknown;
|
|
34
|
-
} & CRS;
|
|
32
|
+
crs: CRS;
|
|
35
33
|
/**
|
|
36
34
|
* Reference to a well-known scale set
|
|
37
35
|
*/
|
|
38
36
|
wellKnownScaleSet?: string;
|
|
39
|
-
boundingBox?:
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
} & DBoundingBox;
|
|
37
|
+
boundingBox?: DBoundingBox;
|
|
42
38
|
/**
|
|
43
39
|
* Describes scale levels and its tile matrices
|
|
44
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tileMatrixSet.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixSet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACpC,GAAG,EAAE
|
|
1
|
+
{"version":3,"file":"tileMatrixSet.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixSet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACpC,GAAG,EAAE,GAAG,CAAC;IACT;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developmentseed/morecantile",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-beta.1",
|
|
4
4
|
"description": "TypeScript port of Morecantile for working with OGC TileMatrixSet grids",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,22 +14,6 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsc --build",
|
|
19
|
-
"build:watch": "tsc --build --watch",
|
|
20
|
-
"clean": "rm -rf dist",
|
|
21
|
-
"check": "biome check .",
|
|
22
|
-
"check:fix": "biome check --write .",
|
|
23
|
-
"format": "biome format .",
|
|
24
|
-
"format:fix": "biome format --write .",
|
|
25
|
-
"generate-types": "tsx scripts/generate-types.ts && pnpm check:fix",
|
|
26
|
-
"lint": "biome lint .",
|
|
27
|
-
"lint:fix": "biome lint --write .",
|
|
28
|
-
"publint": "publint",
|
|
29
|
-
"test": "vitest run",
|
|
30
|
-
"test:watch": "vitest",
|
|
31
|
-
"typecheck": "tsc --noEmit"
|
|
32
|
-
},
|
|
33
17
|
"keywords": [
|
|
34
18
|
"tiles",
|
|
35
19
|
"tilematrixset",
|
|
@@ -54,14 +38,24 @@
|
|
|
54
38
|
"typescript": "^5.9.3",
|
|
55
39
|
"vitest": "^3.1.1"
|
|
56
40
|
},
|
|
57
|
-
"pnpm": {
|
|
58
|
-
"onlyBuiltDependencies": [
|
|
59
|
-
"esbuild"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"packageManager": "pnpm@10.25.0",
|
|
63
41
|
"volta": {
|
|
64
42
|
"node": "24.11.1",
|
|
65
43
|
"pnpm": "10.25.0"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc --build",
|
|
47
|
+
"build:watch": "tsc --build --watch",
|
|
48
|
+
"clean": "rm -rf dist",
|
|
49
|
+
"check": "biome check .",
|
|
50
|
+
"check:fix": "biome check --write .",
|
|
51
|
+
"format": "biome format .",
|
|
52
|
+
"format:fix": "biome format --write .",
|
|
53
|
+
"generate-types": "tsx scripts/generate-types.ts && pnpm check:fix",
|
|
54
|
+
"lint": "biome lint .",
|
|
55
|
+
"lint:fix": "biome lint --write .",
|
|
56
|
+
"publint": "publint",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"test:watch": "vitest",
|
|
59
|
+
"typecheck": "tsc --noEmit"
|
|
66
60
|
}
|
|
67
61
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataType.d.ts","sourceRoot":"","sources":["../../../src/types/spec/dataType.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataType.js","sourceRoot":"","sources":["../../../src/types/spec/dataType.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { DBoundingBox } from "./2DBoundingBox.js";
|
|
2
|
-
import type { CRS } from "./crs.js";
|
|
3
|
-
import type { LinkSchema } from "./link.js";
|
|
4
|
-
import type { PropertiesSchema } from "./propertiesSchema.js";
|
|
5
|
-
import type { Style } from "./style.js";
|
|
6
|
-
export interface GeospatialData {
|
|
7
|
-
/**
|
|
8
|
-
* Title of this tile matrix set, normally used for display to a human
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Brief narrative description of this tile matrix set, normally available for display to a human
|
|
13
|
-
*/
|
|
14
|
-
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Unordered list of one or more commonly used or formalized word(s) or phrase(s) used to describe this layer
|
|
17
|
-
*/
|
|
18
|
-
keywords?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Unique identifier of the Layer. Implementation of 'identifier'
|
|
21
|
-
*/
|
|
22
|
-
id: string;
|
|
23
|
-
dataType: {
|
|
24
|
-
[k: string]: unknown;
|
|
25
|
-
} & (string | ("map" | "vector" | "coverage"));
|
|
26
|
-
/**
|
|
27
|
-
* The geometry dimension of the features shown in this layer (0: points, 1: curves, 2: surfaces, 3: solids), unspecified: mixed or unknown
|
|
28
|
-
*/
|
|
29
|
-
geometryDimension?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Feature type identifier. Only applicable to layers of datatype 'geometries'
|
|
32
|
-
*/
|
|
33
|
-
featureType?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Useful information to contact the authors or custodians for the layer (e.g. e-mail address, a physical address, phone numbers, etc)
|
|
36
|
-
*/
|
|
37
|
-
pointOfContact?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Short reference to recognize the author or provider
|
|
40
|
-
*/
|
|
41
|
-
attribution?: string;
|
|
42
|
-
/**
|
|
43
|
-
* License applicable to the tiles
|
|
44
|
-
*/
|
|
45
|
-
license?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Organization or individual responsible for making the layer available
|
|
48
|
-
*/
|
|
49
|
-
publisher?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Category where the layer can be grouped
|
|
52
|
-
*/
|
|
53
|
-
theme?: string;
|
|
54
|
-
crs?: {
|
|
55
|
-
[k: string]: unknown;
|
|
56
|
-
} & CRS;
|
|
57
|
-
/**
|
|
58
|
-
* Epoch of the Coordinate Reference System (CRS)
|
|
59
|
-
*/
|
|
60
|
-
epoch?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Minimum scale denominator for usage of the layer
|
|
63
|
-
*/
|
|
64
|
-
minScaleDenominator?: number;
|
|
65
|
-
/**
|
|
66
|
-
* Maximum scale denominator for usage of the layer
|
|
67
|
-
*/
|
|
68
|
-
maxScaleDenominator?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Minimum cell size for usage of the layer
|
|
71
|
-
*/
|
|
72
|
-
minCellSize?: number;
|
|
73
|
-
/**
|
|
74
|
-
* Maximum cell size for usage of the layer
|
|
75
|
-
*/
|
|
76
|
-
maxCellSize?: number;
|
|
77
|
-
/**
|
|
78
|
-
* TileMatrix identifier associated with the minScaleDenominator
|
|
79
|
-
*/
|
|
80
|
-
maxTileMatrix?: string;
|
|
81
|
-
/**
|
|
82
|
-
* TileMatrix identifier associated with the maxScaleDenominator
|
|
83
|
-
*/
|
|
84
|
-
minTileMatrix?: string;
|
|
85
|
-
boundingBox?: {
|
|
86
|
-
[k: string]: unknown;
|
|
87
|
-
} & DBoundingBox;
|
|
88
|
-
created?: {
|
|
89
|
-
[k: string]: unknown;
|
|
90
|
-
} & string;
|
|
91
|
-
updated?: {
|
|
92
|
-
[k: string]: unknown;
|
|
93
|
-
} & string;
|
|
94
|
-
style?: {
|
|
95
|
-
[k: string]: unknown;
|
|
96
|
-
} & Style;
|
|
97
|
-
/**
|
|
98
|
-
* URI identifying a class of data contained in this layer (useful to determine compatibility with styles or processes)
|
|
99
|
-
*/
|
|
100
|
-
geoDataClasses?: string[];
|
|
101
|
-
propertiesSchema?: {
|
|
102
|
-
[k: string]: unknown;
|
|
103
|
-
} & PropertiesSchema;
|
|
104
|
-
/**
|
|
105
|
-
* Links related to this layer. Possible link 'rel' values are: 'geodata' for a URL pointing to the collection of geospatial data.
|
|
106
|
-
*
|
|
107
|
-
* @minItems 1
|
|
108
|
-
*/
|
|
109
|
-
links?: [LinkSchema, ...LinkSchema[]];
|
|
110
|
-
[k: string]: unknown;
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=geospatialData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geospatialData.d.ts","sourceRoot":"","sources":["../../../src/types/spec/geospatialData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,YAAY,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX,KAAK,CAAC,EAAE;QACN,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,KAAK,CAAC;IACV;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE;QACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,gBAAgB,CAAC;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geospatialData.js","sourceRoot":"","sources":["../../../src/types/spec/geospatialData.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema for external references
|
|
3
|
-
*/
|
|
4
|
-
export interface LinkSchema {
|
|
5
|
-
/**
|
|
6
|
-
* Supplies the URI to a remote resource (or resource fragment).
|
|
7
|
-
*/
|
|
8
|
-
href: string;
|
|
9
|
-
/**
|
|
10
|
-
* The type or semantics of the relation.
|
|
11
|
-
*/
|
|
12
|
-
rel: string;
|
|
13
|
-
/**
|
|
14
|
-
* This flag set to true if the link is a URL template.
|
|
15
|
-
*/
|
|
16
|
-
templated?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* A base path to retrieve semantic information about the variables used in URL template.
|
|
19
|
-
*/
|
|
20
|
-
varBase?: string;
|
|
21
|
-
/**
|
|
22
|
-
* A hint indicating what the media type of the result of dereferencing the link should be.
|
|
23
|
-
*/
|
|
24
|
-
type?: string;
|
|
25
|
-
/**
|
|
26
|
-
* A hint indicating what the language of the result of dereferencing the link should be.
|
|
27
|
-
*/
|
|
28
|
-
hreflang?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Used to label the destination of a link such that it can be used as a human-readable identifier.
|
|
31
|
-
*/
|
|
32
|
-
title?: string;
|
|
33
|
-
length?: number;
|
|
34
|
-
[k: string]: unknown;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/types/spec/link.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
package/dist/types/spec/link.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/types/spec/link.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attributes of the features or rangetypes of a coverage. Defined by a subset of the JSON Schema for the properties of a feature
|
|
3
|
-
*/
|
|
4
|
-
export interface PropertiesSchema {
|
|
5
|
-
type: "object";
|
|
6
|
-
/**
|
|
7
|
-
* Implements 'multiplicity' by citing property 'name' defined as 'additionalProperties'
|
|
8
|
-
*
|
|
9
|
-
* @minItems 1
|
|
10
|
-
*/
|
|
11
|
-
required?: [string, ...string[]];
|
|
12
|
-
properties: {
|
|
13
|
-
/**
|
|
14
|
-
* No property names are defined but any property name they should be described by JSON Schema. So 'additionalProperties' implements 'name'.
|
|
15
|
-
*/
|
|
16
|
-
[k: string]: {
|
|
17
|
-
title?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Implements 'description'
|
|
20
|
-
*/
|
|
21
|
-
description?: string;
|
|
22
|
-
type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string";
|
|
23
|
-
/**
|
|
24
|
-
* Implements 'acceptedValues'
|
|
25
|
-
*
|
|
26
|
-
* @minItems 1
|
|
27
|
-
*/
|
|
28
|
-
enum?: [unknown, ...unknown[]];
|
|
29
|
-
/**
|
|
30
|
-
* Complements implementation of 'type'
|
|
31
|
-
*/
|
|
32
|
-
format?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Implements 'mediaType'
|
|
35
|
-
*/
|
|
36
|
-
contentMediaType?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Implements 'range'
|
|
39
|
-
*/
|
|
40
|
-
maximum?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Implements 'range'
|
|
43
|
-
*/
|
|
44
|
-
exclusiveMaximum?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Implements 'range'
|
|
47
|
-
*/
|
|
48
|
-
minimum?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Implements 'range'
|
|
51
|
-
*/
|
|
52
|
-
exclusiveMinimum?: number;
|
|
53
|
-
pattern?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Implements 'upperMultiplicity'
|
|
56
|
-
*/
|
|
57
|
-
maxItems?: number;
|
|
58
|
-
/**
|
|
59
|
-
* Implements 'lowerMultiplicity'
|
|
60
|
-
*/
|
|
61
|
-
minItems?: number;
|
|
62
|
-
observedProperty?: string;
|
|
63
|
-
observedPropertyURI?: string;
|
|
64
|
-
uom?: string;
|
|
65
|
-
uomURI?: string;
|
|
66
|
-
[k: string]: unknown;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
[k: string]: unknown;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=propertiesSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"propertiesSchema.d.ts","sourceRoot":"","sources":["../../../src/types/spec/propertiesSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACjC,UAAU,EAAE;QACV;;WAEG;QACH,CAAC,CAAC,EAAE,MAAM,GAAG;YACX,KAAK,CAAC,EAAE,MAAM,CAAC;YACf;;eAEG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,IAAI,CAAC,EACD,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;YACb;;;;eAIG;YACH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;YAC/B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;SACtB,CAAC;KACH,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"propertiesSchema.js","sourceRoot":"","sources":["../../../src/types/spec/propertiesSchema.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { LinkSchema } from "./link.js";
|
|
2
|
-
export interface Style {
|
|
3
|
-
/**
|
|
4
|
-
* An identifier for this style. Implementation of 'identifier'
|
|
5
|
-
*/
|
|
6
|
-
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* A title for this style
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Brief narrative description of this style
|
|
13
|
-
*/
|
|
14
|
-
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* keywords about this style
|
|
17
|
-
*/
|
|
18
|
-
keywords?: string[];
|
|
19
|
-
/**
|
|
20
|
-
* Links to style related resources. Possible link 'rel' values are: 'style' for a URL pointing to the style description, 'styleSpec' for a URL pointing to the specification or standard used to define the style.
|
|
21
|
-
*
|
|
22
|
-
* @minItems 1
|
|
23
|
-
*/
|
|
24
|
-
links?: [LinkSchema, ...LinkSchema[]];
|
|
25
|
-
[k: string]: unknown;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=style.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/types/spec/style.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,UAAU,EAAE,CAAC,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
package/dist/types/spec/style.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sourceRoot":"","sources":["../../../src/types/spec/style.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The limits for an individual tile matrix of a TileSet's TileMatrixSet, as defined in the OGC 2D TileMatrixSet and TileSet Metadata Standard
|
|
3
|
-
*/
|
|
4
|
-
export interface TileMatrixLimits {
|
|
5
|
-
tileMatrix: string;
|
|
6
|
-
minTileRow: number;
|
|
7
|
-
maxTileRow: number;
|
|
8
|
-
minTileCol: number;
|
|
9
|
-
maxTileCol: number;
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=tileMatrixLimits.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tileMatrixLimits.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixLimits.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tileMatrixLimits.js","sourceRoot":"","sources":["../../../src/types/spec/tileMatrixLimits.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { CRS } from "./crs.js";
|
|
2
|
-
export interface TilePoint {
|
|
3
|
-
/**
|
|
4
|
-
* @minItems 2
|
|
5
|
-
* @maxItems 2
|
|
6
|
-
*/
|
|
7
|
-
coordinates: [number, number];
|
|
8
|
-
crs?: {
|
|
9
|
-
[k: string]: unknown;
|
|
10
|
-
} & CRS;
|
|
11
|
-
/**
|
|
12
|
-
* TileMatrix identifier associated with the scaleDenominator
|
|
13
|
-
*/
|
|
14
|
-
tileMatrix?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Scale denominator of the tile matrix selected
|
|
17
|
-
*/
|
|
18
|
-
scaleDenominator?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Cell size of the tile matrix selected
|
|
21
|
-
*/
|
|
22
|
-
cellSize?: number;
|
|
23
|
-
[k: string]: unknown;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=tilePoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tilePoint.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tilePoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,GAAG,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tilePoint.js","sourceRoot":"","sources":["../../../src/types/spec/tilePoint.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { DBoundingBox } from "./2DBoundingBox.js";
|
|
2
|
-
import type { CRS } from "./crs.js";
|
|
3
|
-
import type { GeospatialData } from "./geospatialData.js";
|
|
4
|
-
import type { LinkSchema } from "./link.js";
|
|
5
|
-
import type { Style } from "./style.js";
|
|
6
|
-
import type { TileMatrixLimits } from "./tileMatrixLimits.js";
|
|
7
|
-
import type { TileMatrixSetDefinition } from "./tileMatrixSet.js";
|
|
8
|
-
import type { TilePoint } from "./tilePoint.js";
|
|
9
|
-
/**
|
|
10
|
-
* A resource describing a tileset based on the OGC TileSet Metadata Standard. At least one of the 'TileMatrixSet', or a link with 'rel' http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme
|
|
11
|
-
*/
|
|
12
|
-
export interface TileSetMetadata {
|
|
13
|
-
/**
|
|
14
|
-
* A title for this tileset
|
|
15
|
-
*/
|
|
16
|
-
title?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Brief narrative description of this tile set
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* keywords about this tileset
|
|
23
|
-
*/
|
|
24
|
-
keywords?: string[];
|
|
25
|
-
/**
|
|
26
|
-
* Version of the Tile Set. Changes if the data behind the tiles has been changed
|
|
27
|
-
*/
|
|
28
|
-
version?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Useful information to contact the authors or custodians for the Tile Set
|
|
31
|
-
*/
|
|
32
|
-
pointOfContact?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Short reference to recognize the author or provider
|
|
35
|
-
*/
|
|
36
|
-
attribution?: string;
|
|
37
|
-
/**
|
|
38
|
-
* License applicable to the tiles
|
|
39
|
-
*/
|
|
40
|
-
license?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Restrictions on the availability of the Tile Set that the user needs to be aware of before using or redistributing the Tile Set
|
|
43
|
-
*/
|
|
44
|
-
accessConstraints?: "unclassified" | "restricted" | "confidential" | "secret" | "topSecret";
|
|
45
|
-
/**
|
|
46
|
-
* Media types available for the tiles
|
|
47
|
-
*/
|
|
48
|
-
mediaTypes?: string[];
|
|
49
|
-
dataType: {
|
|
50
|
-
[k: string]: unknown;
|
|
51
|
-
} & (string | ("map" | "vector" | "coverage"));
|
|
52
|
-
/**
|
|
53
|
-
* Limits for the TileRow and TileCol values for each TileMatrix in the tileMatrixSet. If missing, there are no limits other that the ones imposed by the TileMatrixSet. If present the TileMatrices listed are limited and the rest not available at all
|
|
54
|
-
*/
|
|
55
|
-
tileMatrixSetLimits?: TileMatrixLimits[];
|
|
56
|
-
crs: {
|
|
57
|
-
[k: string]: unknown;
|
|
58
|
-
} & CRS;
|
|
59
|
-
/**
|
|
60
|
-
* Epoch of the Coordinate Reference System (CRS)
|
|
61
|
-
*/
|
|
62
|
-
epoch?: number;
|
|
63
|
-
boundingBox?: {
|
|
64
|
-
[k: string]: unknown;
|
|
65
|
-
} & DBoundingBox;
|
|
66
|
-
created?: {
|
|
67
|
-
[k: string]: unknown;
|
|
68
|
-
} & string;
|
|
69
|
-
updated?: {
|
|
70
|
-
[k: string]: unknown;
|
|
71
|
-
} & string;
|
|
72
|
-
/**
|
|
73
|
-
* @minItems 1
|
|
74
|
-
*/
|
|
75
|
-
layers?: [GeospatialData, ...GeospatialData[]];
|
|
76
|
-
style?: {
|
|
77
|
-
[k: string]: unknown;
|
|
78
|
-
} & Style;
|
|
79
|
-
centerPoint?: {
|
|
80
|
-
[k: string]: unknown;
|
|
81
|
-
} & TilePoint;
|
|
82
|
-
tileMatrixSet?: TileMatrixSetDefinition;
|
|
83
|
-
/**
|
|
84
|
-
* Reference to a Tile Matrix Set on an official source for Tile Matrix Sets such as the OGC-NA definition server (http://www.opengis.net/def/tms). Required if the tile matrix set is registered on an open official source.
|
|
85
|
-
*/
|
|
86
|
-
tileMatrixSetURI?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Links to related resources. Possible link 'rel' values are: 'http://www.opengis.net/def/rel/ogc/1.0/dataset' for a URL pointing to the dataset, 'item' for a URL template to get a tile; 'alternate' for a URL pointing to another representation of the TileSetMetadata (e.g a TileJSON file); 'http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme' for a definition of the TileMatrixSet; 'http://www.opengis.net/def/rel/ogc/1.0/geodata' for pointing to a single collection (if the tileset represents a single collection)
|
|
89
|
-
*/
|
|
90
|
-
links?: LinkSchema[];
|
|
91
|
-
[k: string]: unknown;
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=tileSet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tileSet.d.ts","sourceRoot":"","sources":["../../../src/types/spec/tileSet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,CAAC,EACd,cAAc,GACd,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,WAAW,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC;IAC/C;;OAEG;IACH,mBAAmB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACzC,GAAG,EAAE;QACH,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,GAAG,CAAC;IACR;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,YAAY,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE;QACN,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,KAAK,CAAC;IACV,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,GAAG,SAAS,CAAC;IACd,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tileSet.js","sourceRoot":"","sources":["../../../src/types/spec/tileSet.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeStamp.d.ts","sourceRoot":"","sources":["../../../src/types/spec/timeStamp.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeStamp.js","sourceRoot":"","sources":["../../../src/types/spec/timeStamp.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E,0EAA0E"}
|