@basemaps/lambda-tiler 8.2.0 → 8.5.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/CHANGELOG.md +19 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/routes/__tests__/export.test.d.ts +1 -0
- package/build/routes/__tests__/export.test.js +39 -0
- package/build/routes/__tests__/export.test.js.map +1 -0
- package/build/routes/export.tileset.d.ts +17 -0
- package/build/routes/export.tileset.js +49 -0
- package/build/routes/export.tileset.js.map +1 -0
- package/dist/index.js +500 -255
- package/dist/node_modules/.package-lock.json +1 -1
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +9 -9
- package/src/index.ts +3 -0
- package/src/routes/__tests__/export.test.ts +55 -0
- package/src/routes/export.tileset.ts +61 -0
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -44838,7 +44838,7 @@ var require_GetObjectCommand = __commonJS({
|
|
|
44838
44838
|
var types_1 = require_dist_cjs();
|
|
44839
44839
|
var models_0_1 = require_models_0();
|
|
44840
44840
|
var Aws_restXml_1 = require_Aws_restXml();
|
|
44841
|
-
var
|
|
44841
|
+
var GetObjectCommand4 = class _GetObjectCommand extends smithy_client_1.Command {
|
|
44842
44842
|
static getEndpointParameterInstructions() {
|
|
44843
44843
|
return {
|
|
44844
44844
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
@@ -44894,7 +44894,7 @@ var require_GetObjectCommand = __commonJS({
|
|
|
44894
44894
|
return (0, Aws_restXml_1.de_GetObjectCommand)(output, context);
|
|
44895
44895
|
}
|
|
44896
44896
|
};
|
|
44897
|
-
exports.GetObjectCommand =
|
|
44897
|
+
exports.GetObjectCommand = GetObjectCommand4;
|
|
44898
44898
|
}
|
|
44899
44899
|
});
|
|
44900
44900
|
|
|
@@ -49117,6 +49117,204 @@ var require_dist_cjs69 = __commonJS({
|
|
|
49117
49117
|
}
|
|
49118
49118
|
});
|
|
49119
49119
|
|
|
49120
|
+
// ../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
|
|
49121
|
+
var require_dist_cjs70 = __commonJS({
|
|
49122
|
+
"../shared/node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports) {
|
|
49123
|
+
"use strict";
|
|
49124
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49125
|
+
exports.formatUrl = void 0;
|
|
49126
|
+
var querystring_builder_1 = require_dist_cjs13();
|
|
49127
|
+
function formatUrl(request) {
|
|
49128
|
+
var _a2, _b;
|
|
49129
|
+
const { port, query } = request;
|
|
49130
|
+
let { protocol, path: path2, hostname } = request;
|
|
49131
|
+
if (protocol && protocol.slice(-1) !== ":") {
|
|
49132
|
+
protocol += ":";
|
|
49133
|
+
}
|
|
49134
|
+
if (port) {
|
|
49135
|
+
hostname += `:${port}`;
|
|
49136
|
+
}
|
|
49137
|
+
if (path2 && path2.charAt(0) !== "/") {
|
|
49138
|
+
path2 = `/${path2}`;
|
|
49139
|
+
}
|
|
49140
|
+
let queryString = query ? (0, querystring_builder_1.buildQueryString)(query) : "";
|
|
49141
|
+
if (queryString && queryString[0] !== "?") {
|
|
49142
|
+
queryString = `?${queryString}`;
|
|
49143
|
+
}
|
|
49144
|
+
let auth = "";
|
|
49145
|
+
if (request.username != null || request.password != null) {
|
|
49146
|
+
const username = (_a2 = request.username) !== null && _a2 !== void 0 ? _a2 : "";
|
|
49147
|
+
const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
|
|
49148
|
+
auth = `${username}:${password}@`;
|
|
49149
|
+
}
|
|
49150
|
+
let fragment = "";
|
|
49151
|
+
if (request.fragment) {
|
|
49152
|
+
fragment = `#${request.fragment}`;
|
|
49153
|
+
}
|
|
49154
|
+
return `${protocol}//${auth}${hostname}${path2}${queryString}${fragment}`;
|
|
49155
|
+
}
|
|
49156
|
+
exports.formatUrl = formatUrl;
|
|
49157
|
+
}
|
|
49158
|
+
});
|
|
49159
|
+
|
|
49160
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js
|
|
49161
|
+
var require_constants11 = __commonJS({
|
|
49162
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/constants.js"(exports) {
|
|
49163
|
+
"use strict";
|
|
49164
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49165
|
+
exports.ALGORITHM_IDENTIFIER = exports.HOST_HEADER = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = exports.SHA256_HEADER = exports.UNSIGNED_PAYLOAD = void 0;
|
|
49166
|
+
exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
|
|
49167
|
+
exports.SHA256_HEADER = "X-Amz-Content-Sha256";
|
|
49168
|
+
exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
|
|
49169
|
+
exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
|
|
49170
|
+
exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
|
|
49171
|
+
exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
|
|
49172
|
+
exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires";
|
|
49173
|
+
exports.HOST_HEADER = "host";
|
|
49174
|
+
exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
|
|
49175
|
+
}
|
|
49176
|
+
});
|
|
49177
|
+
|
|
49178
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js
|
|
49179
|
+
var require_presigner = __commonJS({
|
|
49180
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/presigner.js"(exports) {
|
|
49181
|
+
"use strict";
|
|
49182
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49183
|
+
exports.S3RequestPresigner = void 0;
|
|
49184
|
+
var signature_v4_multi_region_1 = require_dist_cjs64();
|
|
49185
|
+
var constants_1 = require_constants11();
|
|
49186
|
+
var S3RequestPresigner = class {
|
|
49187
|
+
constructor(options) {
|
|
49188
|
+
const resolvedOptions = {
|
|
49189
|
+
service: options.signingName || options.service || "s3",
|
|
49190
|
+
uriEscapePath: options.uriEscapePath || false,
|
|
49191
|
+
applyChecksum: options.applyChecksum || false,
|
|
49192
|
+
...options
|
|
49193
|
+
};
|
|
49194
|
+
this.signer = new signature_v4_multi_region_1.SignatureV4MultiRegion(resolvedOptions);
|
|
49195
|
+
}
|
|
49196
|
+
presign(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
|
|
49197
|
+
this.prepareRequest(requestToSign, {
|
|
49198
|
+
unsignableHeaders,
|
|
49199
|
+
unhoistableHeaders
|
|
49200
|
+
});
|
|
49201
|
+
return this.signer.presign(requestToSign, {
|
|
49202
|
+
expiresIn: 900,
|
|
49203
|
+
unsignableHeaders,
|
|
49204
|
+
unhoistableHeaders,
|
|
49205
|
+
...options
|
|
49206
|
+
});
|
|
49207
|
+
}
|
|
49208
|
+
presignWithCredentials(requestToSign, credentials2, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set(), ...options } = {}) {
|
|
49209
|
+
this.prepareRequest(requestToSign, {
|
|
49210
|
+
unsignableHeaders,
|
|
49211
|
+
unhoistableHeaders
|
|
49212
|
+
});
|
|
49213
|
+
return this.signer.presignWithCredentials(requestToSign, credentials2, {
|
|
49214
|
+
expiresIn: 900,
|
|
49215
|
+
unsignableHeaders,
|
|
49216
|
+
unhoistableHeaders,
|
|
49217
|
+
...options
|
|
49218
|
+
});
|
|
49219
|
+
}
|
|
49220
|
+
prepareRequest(requestToSign, { unsignableHeaders = /* @__PURE__ */ new Set(), unhoistableHeaders = /* @__PURE__ */ new Set() } = {}) {
|
|
49221
|
+
unsignableHeaders.add("content-type");
|
|
49222
|
+
Object.keys(requestToSign.headers).map((header) => header.toLowerCase()).filter((header) => header.startsWith("x-amz-server-side-encryption")).forEach((header) => {
|
|
49223
|
+
unhoistableHeaders.add(header);
|
|
49224
|
+
});
|
|
49225
|
+
requestToSign.headers[constants_1.SHA256_HEADER] = constants_1.UNSIGNED_PAYLOAD;
|
|
49226
|
+
const currentHostHeader = requestToSign.headers.host;
|
|
49227
|
+
const port = requestToSign.port;
|
|
49228
|
+
const expectedHostHeader = `${requestToSign.hostname}${requestToSign.port != null ? ":" + port : ""}`;
|
|
49229
|
+
if (!currentHostHeader || currentHostHeader === requestToSign.hostname && requestToSign.port != null) {
|
|
49230
|
+
requestToSign.headers.host = expectedHostHeader;
|
|
49231
|
+
}
|
|
49232
|
+
}
|
|
49233
|
+
};
|
|
49234
|
+
exports.S3RequestPresigner = S3RequestPresigner;
|
|
49235
|
+
}
|
|
49236
|
+
});
|
|
49237
|
+
|
|
49238
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js
|
|
49239
|
+
var require_getSignedUrl = __commonJS({
|
|
49240
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/getSignedUrl.js"(exports) {
|
|
49241
|
+
"use strict";
|
|
49242
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49243
|
+
exports.getSignedUrl = void 0;
|
|
49244
|
+
var util_format_url_1 = require_dist_cjs70();
|
|
49245
|
+
var middleware_endpoint_1 = require_dist_cjs38();
|
|
49246
|
+
var protocol_http_1 = require_dist_cjs2();
|
|
49247
|
+
var presigner_1 = require_presigner();
|
|
49248
|
+
var getSignedUrl2 = async (client, command, options = {}) => {
|
|
49249
|
+
var _a2, _b;
|
|
49250
|
+
let s3Presigner;
|
|
49251
|
+
if (typeof client.config.endpointProvider === "function") {
|
|
49252
|
+
const endpointV2 = await (0, middleware_endpoint_1.getEndpointFromInstructions)(command.input, command.constructor, client.config);
|
|
49253
|
+
const authScheme = (_b = (_a2 = endpointV2.properties) === null || _a2 === void 0 ? void 0 : _a2.authSchemes) === null || _b === void 0 ? void 0 : _b[0];
|
|
49254
|
+
s3Presigner = new presigner_1.S3RequestPresigner({
|
|
49255
|
+
...client.config,
|
|
49256
|
+
signingName: authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingName,
|
|
49257
|
+
region: async () => authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegion
|
|
49258
|
+
});
|
|
49259
|
+
} else {
|
|
49260
|
+
s3Presigner = new presigner_1.S3RequestPresigner(client.config);
|
|
49261
|
+
}
|
|
49262
|
+
const presignInterceptMiddleware = (next, context) => async (args) => {
|
|
49263
|
+
var _a3, _b2;
|
|
49264
|
+
const { request } = args;
|
|
49265
|
+
if (!protocol_http_1.HttpRequest.isInstance(request)) {
|
|
49266
|
+
throw new Error("Request to be presigned is not an valid HTTP request.");
|
|
49267
|
+
}
|
|
49268
|
+
delete request.headers["amz-sdk-invocation-id"];
|
|
49269
|
+
delete request.headers["amz-sdk-request"];
|
|
49270
|
+
delete request.headers["x-amz-user-agent"];
|
|
49271
|
+
let presigned2;
|
|
49272
|
+
const presignerOptions = {
|
|
49273
|
+
...options,
|
|
49274
|
+
signingRegion: (_a3 = options.signingRegion) !== null && _a3 !== void 0 ? _a3 : context["signing_region"],
|
|
49275
|
+
signingService: (_b2 = options.signingService) !== null && _b2 !== void 0 ? _b2 : context["signing_service"]
|
|
49276
|
+
};
|
|
49277
|
+
if (context.s3ExpressIdentity) {
|
|
49278
|
+
presigned2 = await s3Presigner.presignWithCredentials(request, context.s3ExpressIdentity, presignerOptions);
|
|
49279
|
+
} else {
|
|
49280
|
+
presigned2 = await s3Presigner.presign(request, presignerOptions);
|
|
49281
|
+
}
|
|
49282
|
+
return {
|
|
49283
|
+
response: {},
|
|
49284
|
+
output: {
|
|
49285
|
+
$metadata: { httpStatusCode: 200 },
|
|
49286
|
+
presigned: presigned2
|
|
49287
|
+
}
|
|
49288
|
+
};
|
|
49289
|
+
};
|
|
49290
|
+
const middlewareName = "presignInterceptMiddleware";
|
|
49291
|
+
const clientStack = client.middlewareStack.clone();
|
|
49292
|
+
clientStack.addRelativeTo(presignInterceptMiddleware, {
|
|
49293
|
+
name: middlewareName,
|
|
49294
|
+
relation: "before",
|
|
49295
|
+
toMiddleware: "awsAuthMiddleware",
|
|
49296
|
+
override: true
|
|
49297
|
+
});
|
|
49298
|
+
const handler2 = command.resolveMiddleware(clientStack, client.config, {});
|
|
49299
|
+
const { output } = await handler2({ input: command.input });
|
|
49300
|
+
const { presigned } = output;
|
|
49301
|
+
return (0, util_format_url_1.formatUrl)(presigned);
|
|
49302
|
+
};
|
|
49303
|
+
exports.getSignedUrl = getSignedUrl2;
|
|
49304
|
+
}
|
|
49305
|
+
});
|
|
49306
|
+
|
|
49307
|
+
// ../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js
|
|
49308
|
+
var require_dist_cjs71 = __commonJS({
|
|
49309
|
+
"../shared/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js"(exports) {
|
|
49310
|
+
"use strict";
|
|
49311
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49312
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
49313
|
+
tslib_1.__exportStar(require_getSignedUrl(), exports);
|
|
49314
|
+
tslib_1.__exportStar(require_presigner(), exports);
|
|
49315
|
+
}
|
|
49316
|
+
});
|
|
49317
|
+
|
|
49120
49318
|
// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js
|
|
49121
49319
|
var require_EndpointParameters4 = __commonJS({
|
|
49122
49320
|
"../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoint/EndpointParameters.js"(exports) {
|
|
@@ -52666,7 +52864,7 @@ var require_models4 = __commonJS({
|
|
|
52666
52864
|
});
|
|
52667
52865
|
|
|
52668
52866
|
// ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
|
|
52669
|
-
var
|
|
52867
|
+
var require_dist_cjs72 = __commonJS({
|
|
52670
52868
|
"../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports) {
|
|
52671
52869
|
"use strict";
|
|
52672
52870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -52739,7 +52937,7 @@ var require_fromCognitoIdentity = __commonJS({
|
|
|
52739
52937
|
"use strict";
|
|
52740
52938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52741
52939
|
exports.fromCognitoIdentity = void 0;
|
|
52742
|
-
var client_cognito_identity_1 =
|
|
52940
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
52743
52941
|
var property_provider_1 = require_dist_cjs25();
|
|
52744
52942
|
var resolveLogins_1 = require_resolveLogins();
|
|
52745
52943
|
function fromCognitoIdentity(parameters) {
|
|
@@ -52903,7 +53101,7 @@ var require_fromCognitoIdentityPool = __commonJS({
|
|
|
52903
53101
|
"use strict";
|
|
52904
53102
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52905
53103
|
exports.fromCognitoIdentityPool = void 0;
|
|
52906
|
-
var client_cognito_identity_1 =
|
|
53104
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
52907
53105
|
var property_provider_1 = require_dist_cjs25();
|
|
52908
53106
|
var fromCognitoIdentity_1 = require_fromCognitoIdentity();
|
|
52909
53107
|
var localStorage_1 = require_localStorage();
|
|
@@ -52948,7 +53146,7 @@ var require_fromCognitoIdentityPool = __commonJS({
|
|
|
52948
53146
|
});
|
|
52949
53147
|
|
|
52950
53148
|
// ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
|
|
52951
|
-
var
|
|
53149
|
+
var require_dist_cjs73 = __commonJS({
|
|
52952
53150
|
"../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports) {
|
|
52953
53151
|
"use strict";
|
|
52954
53152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -52967,8 +53165,8 @@ var require_fromCognitoIdentity2 = __commonJS({
|
|
|
52967
53165
|
"use strict";
|
|
52968
53166
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52969
53167
|
exports.fromCognitoIdentity = void 0;
|
|
52970
|
-
var client_cognito_identity_1 =
|
|
52971
|
-
var credential_provider_cognito_identity_1 =
|
|
53168
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
53169
|
+
var credential_provider_cognito_identity_1 = require_dist_cjs73();
|
|
52972
53170
|
var fromCognitoIdentity = (options) => {
|
|
52973
53171
|
var _a2;
|
|
52974
53172
|
return (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
|
|
@@ -52986,8 +53184,8 @@ var require_fromCognitoIdentityPool2 = __commonJS({
|
|
|
52986
53184
|
"use strict";
|
|
52987
53185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52988
53186
|
exports.fromCognitoIdentityPool = void 0;
|
|
52989
|
-
var client_cognito_identity_1 =
|
|
52990
|
-
var credential_provider_cognito_identity_1 =
|
|
53187
|
+
var client_cognito_identity_1 = require_dist_cjs72();
|
|
53188
|
+
var credential_provider_cognito_identity_1 = require_dist_cjs73();
|
|
52991
53189
|
var fromCognitoIdentityPool = (options) => {
|
|
52992
53190
|
var _a2;
|
|
52993
53191
|
return (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
|
|
@@ -53208,7 +53406,7 @@ var require_fromHttp = __commonJS({
|
|
|
53208
53406
|
});
|
|
53209
53407
|
|
|
53210
53408
|
// ../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js
|
|
53211
|
-
var
|
|
53409
|
+
var require_dist_cjs74 = __commonJS({
|
|
53212
53410
|
"../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js"(exports) {
|
|
53213
53411
|
"use strict";
|
|
53214
53412
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53378,7 +53576,7 @@ var require_fromWebToken2 = __commonJS({
|
|
|
53378
53576
|
});
|
|
53379
53577
|
|
|
53380
53578
|
// ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
|
|
53381
|
-
var
|
|
53579
|
+
var require_dist_cjs75 = __commonJS({
|
|
53382
53580
|
"../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports) {
|
|
53383
53581
|
"use strict";
|
|
53384
53582
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53388,7 +53586,7 @@ var require_dist_cjs73 = __commonJS({
|
|
|
53388
53586
|
tslib_1.__exportStar(require_fromCognitoIdentityPool2(), exports);
|
|
53389
53587
|
tslib_1.__exportStar(require_fromContainerMetadata2(), exports);
|
|
53390
53588
|
tslib_1.__exportStar(require_fromEnv3(), exports);
|
|
53391
|
-
var credential_provider_http_1 =
|
|
53589
|
+
var credential_provider_http_1 = require_dist_cjs74();
|
|
53392
53590
|
Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function() {
|
|
53393
53591
|
return credential_provider_http_1.fromHttp;
|
|
53394
53592
|
} });
|
|
@@ -53453,7 +53651,7 @@ var require_AbortController = __commonJS({
|
|
|
53453
53651
|
});
|
|
53454
53652
|
|
|
53455
53653
|
// ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
|
|
53456
|
-
var
|
|
53654
|
+
var require_dist_cjs76 = __commonJS({
|
|
53457
53655
|
"../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports) {
|
|
53458
53656
|
"use strict";
|
|
53459
53657
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53667,7 +53865,7 @@ var require_Upload = __commonJS({
|
|
|
53667
53865
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53668
53866
|
exports.Upload = void 0;
|
|
53669
53867
|
var client_s3_1 = require_dist_cjs69();
|
|
53670
|
-
var abort_controller_1 =
|
|
53868
|
+
var abort_controller_1 = require_dist_cjs76();
|
|
53671
53869
|
var middleware_endpoint_1 = require_dist_cjs38();
|
|
53672
53870
|
var smithy_client_1 = require_dist_cjs16();
|
|
53673
53871
|
var events_1 = require("events");
|
|
@@ -53940,7 +54138,7 @@ var require_types11 = __commonJS({
|
|
|
53940
54138
|
});
|
|
53941
54139
|
|
|
53942
54140
|
// ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
|
|
53943
|
-
var
|
|
54141
|
+
var require_dist_cjs77 = __commonJS({
|
|
53944
54142
|
"../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports) {
|
|
53945
54143
|
"use strict";
|
|
53946
54144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -54701,7 +54899,7 @@ var require_EndpointCache = __commonJS({
|
|
|
54701
54899
|
});
|
|
54702
54900
|
|
|
54703
54901
|
// ../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js
|
|
54704
|
-
var
|
|
54902
|
+
var require_dist_cjs78 = __commonJS({
|
|
54705
54903
|
"../../node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js"(exports) {
|
|
54706
54904
|
"use strict";
|
|
54707
54905
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -54717,7 +54915,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
|
|
|
54717
54915
|
"use strict";
|
|
54718
54916
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54719
54917
|
exports.resolveEndpointDiscoveryConfig = void 0;
|
|
54720
|
-
var endpoint_cache_1 =
|
|
54918
|
+
var endpoint_cache_1 = require_dist_cjs78();
|
|
54721
54919
|
var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => {
|
|
54722
54920
|
var _a2;
|
|
54723
54921
|
return {
|
|
@@ -54733,7 +54931,7 @@ var require_resolveEndpointDiscoveryConfig = __commonJS({
|
|
|
54733
54931
|
});
|
|
54734
54932
|
|
|
54735
54933
|
// ../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js
|
|
54736
|
-
var
|
|
54934
|
+
var require_dist_cjs79 = __commonJS({
|
|
54737
54935
|
"../../node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js"(exports) {
|
|
54738
54936
|
"use strict";
|
|
54739
54937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -60213,7 +60411,7 @@ var require_runtimeConfig6 = __commonJS({
|
|
|
60213
60411
|
var client_sts_1 = require_dist_cjs59();
|
|
60214
60412
|
var core_1 = require_dist_cjs44();
|
|
60215
60413
|
var credential_provider_node_1 = require_dist_cjs58();
|
|
60216
|
-
var middleware_endpoint_discovery_1 =
|
|
60414
|
+
var middleware_endpoint_discovery_1 = require_dist_cjs79();
|
|
60217
60415
|
var util_user_agent_node_1 = require_dist_cjs48();
|
|
60218
60416
|
var config_resolver_1 = require_dist_cjs30();
|
|
60219
60417
|
var hash_node_1 = require_dist_cjs49();
|
|
@@ -60292,7 +60490,7 @@ var require_DynamoDBClient = __commonJS({
|
|
|
60292
60490
|
"use strict";
|
|
60293
60491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60294
60492
|
exports.DynamoDBClient = exports.__Client = void 0;
|
|
60295
|
-
var middleware_endpoint_discovery_1 =
|
|
60493
|
+
var middleware_endpoint_discovery_1 = require_dist_cjs79();
|
|
60296
60494
|
var middleware_host_header_1 = require_dist_cjs4();
|
|
60297
60495
|
var middleware_logger_1 = require_dist_cjs5();
|
|
60298
60496
|
var middleware_recursion_detection_1 = require_dist_cjs6();
|
|
@@ -63924,7 +64122,7 @@ var require_models5 = __commonJS({
|
|
|
63924
64122
|
});
|
|
63925
64123
|
|
|
63926
64124
|
// ../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js
|
|
63927
|
-
var
|
|
64125
|
+
var require_dist_cjs80 = __commonJS({
|
|
63928
64126
|
"../../node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js"(exports) {
|
|
63929
64127
|
"use strict";
|
|
63930
64128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -64260,7 +64458,7 @@ var require_unmarshall = __commonJS({
|
|
|
64260
64458
|
});
|
|
64261
64459
|
|
|
64262
64460
|
// ../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js
|
|
64263
|
-
var
|
|
64461
|
+
var require_dist_cjs81 = __commonJS({
|
|
64264
64462
|
"../../node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js"(exports) {
|
|
64265
64463
|
"use strict";
|
|
64266
64464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -80597,6 +80795,7 @@ var MemoryConfigObject = class extends BasemapsConfigObject {
|
|
|
80597
80795
|
|
|
80598
80796
|
// ../shared/build/file.system.js
|
|
80599
80797
|
var import_client_s34 = __toESM(require_dist_cjs69(), 1);
|
|
80798
|
+
var import_s3_request_presigner = __toESM(require_dist_cjs71(), 1);
|
|
80600
80799
|
|
|
80601
80800
|
// ../../node_modules/@chunkd/source/build/src/error.js
|
|
80602
80801
|
var SourceError = class _SourceError extends Error {
|
|
@@ -81270,12 +81469,12 @@ var FsHttp = class {
|
|
|
81270
81469
|
|
|
81271
81470
|
// ../../node_modules/@chunkd/fs-aws/build/src/credentials.js
|
|
81272
81471
|
var import_client_s33 = __toESM(require_dist_cjs69(), 1);
|
|
81273
|
-
var import_credential_providers = __toESM(
|
|
81472
|
+
var import_credential_providers = __toESM(require_dist_cjs75(), 1);
|
|
81274
81473
|
|
|
81275
81474
|
// ../../node_modules/@chunkd/fs-aws/build/src/fs.s3.js
|
|
81276
81475
|
var import_node_stream = require("stream");
|
|
81277
81476
|
var import_client_s32 = __toESM(require_dist_cjs69(), 1);
|
|
81278
|
-
var import_lib_storage = __toESM(
|
|
81477
|
+
var import_lib_storage = __toESM(require_dist_cjs77(), 1);
|
|
81279
81478
|
|
|
81280
81479
|
// ../../node_modules/@chunkd/source-aws/build/src/index.js
|
|
81281
81480
|
var import_client_s3 = __toESM(require_dist_cjs69(), 1);
|
|
@@ -81999,20 +82198,31 @@ function hasHostName(x) {
|
|
|
81999
82198
|
}
|
|
82000
82199
|
|
|
82001
82200
|
// ../shared/build/file.system.js
|
|
82002
|
-
var
|
|
82201
|
+
var s3Client = new import_client_s34.S3Client({
|
|
82003
82202
|
/**
|
|
82004
|
-
* We buckets in multiple regions
|
|
82203
|
+
* We have buckets in multiple regions. We don’t know ahead of time which region each bucket is in
|
|
82005
82204
|
*
|
|
82006
|
-
* So the S3 Client will have to follow the endpoints
|
|
82205
|
+
* So, the S3 Client will have to follow the endpoints. This adds a bit of extra latency as requests have to be retried
|
|
82007
82206
|
*/
|
|
82008
82207
|
followRegionRedirects: true
|
|
82009
|
-
})
|
|
82208
|
+
});
|
|
82209
|
+
var s3Config = {
|
|
82210
|
+
client: s3Client,
|
|
82211
|
+
getSignedUrl: import_s3_request_presigner.getSignedUrl
|
|
82212
|
+
};
|
|
82213
|
+
var s3Fs = new FsAwsS3(s3Client);
|
|
82010
82214
|
var s3FsPublic = new FsAwsS3(new import_client_s34.S3Client({
|
|
82011
82215
|
followRegionRedirects: true,
|
|
82012
82216
|
signer: {
|
|
82013
82217
|
sign: (req) => Promise.resolve(req)
|
|
82014
82218
|
}
|
|
82015
82219
|
}));
|
|
82220
|
+
async function signS3Get(target) {
|
|
82221
|
+
if (target.protocol !== "s3:")
|
|
82222
|
+
throw new Error(`Presigning only works for S3 URLs, got ${target.href}`);
|
|
82223
|
+
const command = new import_client_s34.GetObjectCommand({ Bucket: target.host, Key: target.pathname.slice(1) });
|
|
82224
|
+
return await s3Config.getSignedUrl(s3Client, command, { expiresIn: 3600 });
|
|
82225
|
+
}
|
|
82016
82226
|
function applyS3MiddleWare(fs4) {
|
|
82017
82227
|
if (fs4.s3 == null)
|
|
82018
82228
|
return;
|
|
@@ -82086,12 +82296,12 @@ function stringToUrlFolder(str) {
|
|
|
82086
82296
|
}
|
|
82087
82297
|
|
|
82088
82298
|
// ../shared/build/dynamo/dynamo.config.js
|
|
82089
|
-
var import_client_dynamodb2 = __toESM(
|
|
82299
|
+
var import_client_dynamodb2 = __toESM(require_dist_cjs80(), 1);
|
|
82090
82300
|
var import_util_retry = __toESM(require_dist_cjs40(), 1);
|
|
82091
82301
|
|
|
82092
82302
|
// ../shared/build/dynamo/dynamo.config.base.js
|
|
82093
|
-
var import_client_dynamodb = __toESM(
|
|
82094
|
-
var import_util_dynamodb = __toESM(
|
|
82303
|
+
var import_client_dynamodb = __toESM(require_dist_cjs80(), 1);
|
|
82304
|
+
var import_util_dynamodb = __toESM(require_dist_cjs81(), 1);
|
|
82095
82305
|
function toId(id) {
|
|
82096
82306
|
return { id: { S: id } };
|
|
82097
82307
|
}
|
|
@@ -83240,48 +83450,6 @@ Object.defineProperty(Projection, "AllowedFloatingError", {
|
|
|
83240
83450
|
value: 1e-8
|
|
83241
83451
|
});
|
|
83242
83452
|
|
|
83243
|
-
// ../geo/build/proj/projection.loader.js
|
|
83244
|
-
var ProjectionLoader = class {
|
|
83245
|
-
/**
|
|
83246
|
-
* Ensure that a projection EPSG code is avialable for use in Proj4js
|
|
83247
|
-
*
|
|
83248
|
-
* If its not already loaded, lookup definition from spatialreference.org
|
|
83249
|
-
* @param code
|
|
83250
|
-
*/
|
|
83251
|
-
static async load(code) {
|
|
83252
|
-
if (Projection.tryGet(code) != null)
|
|
83253
|
-
return Epsg.get(code);
|
|
83254
|
-
const url = `https://spatialreference.org/ref/epsg/${code}/ogcwkt/`;
|
|
83255
|
-
const res = await this._fetch(url);
|
|
83256
|
-
if (!res.ok)
|
|
83257
|
-
throw new Error("Failed to load projection information for:" + code);
|
|
83258
|
-
let epsg = Epsg.tryGet(code);
|
|
83259
|
-
if (epsg == null)
|
|
83260
|
-
epsg = new Epsg(code);
|
|
83261
|
-
const text = await res.text();
|
|
83262
|
-
Projection.define(epsg, text);
|
|
83263
|
-
return epsg;
|
|
83264
|
-
}
|
|
83265
|
-
};
|
|
83266
|
-
Object.defineProperty(ProjectionLoader, "_fetch", {
|
|
83267
|
-
enumerable: true,
|
|
83268
|
-
configurable: true,
|
|
83269
|
-
writable: true,
|
|
83270
|
-
value: fetch
|
|
83271
|
-
});
|
|
83272
|
-
|
|
83273
|
-
// ../geo/build/proj/tile.set.name.js
|
|
83274
|
-
var TileSetName;
|
|
83275
|
-
(function(TileSetName2) {
|
|
83276
|
-
TileSetName2["aerial"] = "aerial";
|
|
83277
|
-
})(TileSetName || (TileSetName = {}));
|
|
83278
|
-
|
|
83279
|
-
// ../geo/build/quad.key.js
|
|
83280
|
-
var CHAR_0 = "0".charCodeAt(0);
|
|
83281
|
-
var CHAR_1 = "1".charCodeAt(0);
|
|
83282
|
-
var CHAR_2 = "2".charCodeAt(0);
|
|
83283
|
-
var CHAR_3 = "3".charCodeAt(0);
|
|
83284
|
-
|
|
83285
83453
|
// ../geo/build/xy.order.js
|
|
83286
83454
|
function getXyOrder(epsg) {
|
|
83287
83455
|
const code = typeof epsg === "number" ? epsg : epsg.code;
|
|
@@ -83567,25 +83735,25 @@ var TileMatrixSet = class {
|
|
|
83567
83735
|
}
|
|
83568
83736
|
};
|
|
83569
83737
|
|
|
83570
|
-
// ../geo/build/tms/
|
|
83571
|
-
var
|
|
83738
|
+
// ../geo/build/tms/google.js
|
|
83739
|
+
var GoogleTmst = {
|
|
83572
83740
|
type: "TileMatrixSetType",
|
|
83573
|
-
title: "
|
|
83574
|
-
|
|
83575
|
-
identifier: "CITM2000Quad",
|
|
83576
|
-
supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3793",
|
|
83741
|
+
title: "Google Maps Compatible for the World",
|
|
83742
|
+
identifier: "WebMercatorQuad",
|
|
83577
83743
|
boundingBox: {
|
|
83578
83744
|
type: "BoundingBoxType",
|
|
83579
|
-
crs: "
|
|
83580
|
-
lowerCorner: [
|
|
83581
|
-
upperCorner: [
|
|
83745
|
+
crs: "http://www.opengis.net/def/crs/EPSG/0/3857",
|
|
83746
|
+
lowerCorner: [-200375083427892e-7, -200375083427892e-7],
|
|
83747
|
+
upperCorner: [200375083427892e-7, 200375083427892e-7]
|
|
83582
83748
|
},
|
|
83749
|
+
supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3857",
|
|
83750
|
+
wellKnownScaleSet: "https://www.opengis.net/def/wkss/OGC/1.0/GoogleMapsCompatible",
|
|
83583
83751
|
tileMatrix: [
|
|
83584
83752
|
{
|
|
83585
83753
|
type: "TileMatrixType",
|
|
83586
83754
|
identifier: "0",
|
|
83587
|
-
scaleDenominator:
|
|
83588
|
-
topLeftCorner: [
|
|
83755
|
+
scaleDenominator: 559082264028717e-6,
|
|
83756
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83589
83757
|
tileWidth: 256,
|
|
83590
83758
|
tileHeight: 256,
|
|
83591
83759
|
matrixWidth: 1,
|
|
@@ -83594,8 +83762,8 @@ var Citm2000Tmst = {
|
|
|
83594
83762
|
{
|
|
83595
83763
|
type: "TileMatrixType",
|
|
83596
83764
|
identifier: "1",
|
|
83597
|
-
scaleDenominator:
|
|
83598
|
-
topLeftCorner: [
|
|
83765
|
+
scaleDenominator: 279541132014358e-6,
|
|
83766
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83599
83767
|
tileWidth: 256,
|
|
83600
83768
|
tileHeight: 256,
|
|
83601
83769
|
matrixWidth: 2,
|
|
@@ -83604,8 +83772,8 @@ var Citm2000Tmst = {
|
|
|
83604
83772
|
{
|
|
83605
83773
|
type: "TileMatrixType",
|
|
83606
83774
|
identifier: "2",
|
|
83607
|
-
scaleDenominator:
|
|
83608
|
-
topLeftCorner: [
|
|
83775
|
+
scaleDenominator: 139770566007179e-6,
|
|
83776
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83609
83777
|
tileWidth: 256,
|
|
83610
83778
|
tileHeight: 256,
|
|
83611
83779
|
matrixWidth: 4,
|
|
@@ -83614,8 +83782,8 @@ var Citm2000Tmst = {
|
|
|
83614
83782
|
{
|
|
83615
83783
|
type: "TileMatrixType",
|
|
83616
83784
|
identifier: "3",
|
|
83617
|
-
scaleDenominator:
|
|
83618
|
-
topLeftCorner: [
|
|
83785
|
+
scaleDenominator: 698852830035897e-7,
|
|
83786
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83619
83787
|
tileWidth: 256,
|
|
83620
83788
|
tileHeight: 256,
|
|
83621
83789
|
matrixWidth: 8,
|
|
@@ -83624,8 +83792,8 @@ var Citm2000Tmst = {
|
|
|
83624
83792
|
{
|
|
83625
83793
|
type: "TileMatrixType",
|
|
83626
83794
|
identifier: "4",
|
|
83627
|
-
scaleDenominator:
|
|
83628
|
-
topLeftCorner: [
|
|
83795
|
+
scaleDenominator: 349426415017948e-7,
|
|
83796
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83629
83797
|
tileWidth: 256,
|
|
83630
83798
|
tileHeight: 256,
|
|
83631
83799
|
matrixWidth: 16,
|
|
@@ -83634,8 +83802,8 @@ var Citm2000Tmst = {
|
|
|
83634
83802
|
{
|
|
83635
83803
|
type: "TileMatrixType",
|
|
83636
83804
|
identifier: "5",
|
|
83637
|
-
scaleDenominator:
|
|
83638
|
-
topLeftCorner: [
|
|
83805
|
+
scaleDenominator: 174713207508974e-7,
|
|
83806
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83639
83807
|
tileWidth: 256,
|
|
83640
83808
|
tileHeight: 256,
|
|
83641
83809
|
matrixWidth: 32,
|
|
@@ -83644,8 +83812,8 @@ var Citm2000Tmst = {
|
|
|
83644
83812
|
{
|
|
83645
83813
|
type: "TileMatrixType",
|
|
83646
83814
|
identifier: "6",
|
|
83647
|
-
scaleDenominator:
|
|
83648
|
-
topLeftCorner: [
|
|
83815
|
+
scaleDenominator: 873566037544871e-8,
|
|
83816
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83649
83817
|
tileWidth: 256,
|
|
83650
83818
|
tileHeight: 256,
|
|
83651
83819
|
matrixWidth: 64,
|
|
@@ -83654,8 +83822,8 @@ var Citm2000Tmst = {
|
|
|
83654
83822
|
{
|
|
83655
83823
|
type: "TileMatrixType",
|
|
83656
83824
|
identifier: "7",
|
|
83657
|
-
scaleDenominator:
|
|
83658
|
-
topLeftCorner: [
|
|
83825
|
+
scaleDenominator: 436783018772435e-8,
|
|
83826
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83659
83827
|
tileWidth: 256,
|
|
83660
83828
|
tileHeight: 256,
|
|
83661
83829
|
matrixWidth: 128,
|
|
@@ -83664,8 +83832,8 @@ var Citm2000Tmst = {
|
|
|
83664
83832
|
{
|
|
83665
83833
|
type: "TileMatrixType",
|
|
83666
83834
|
identifier: "8",
|
|
83667
|
-
scaleDenominator:
|
|
83668
|
-
topLeftCorner: [
|
|
83835
|
+
scaleDenominator: 218391509386217e-8,
|
|
83836
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83669
83837
|
tileWidth: 256,
|
|
83670
83838
|
tileHeight: 256,
|
|
83671
83839
|
matrixWidth: 256,
|
|
@@ -83674,8 +83842,8 @@ var Citm2000Tmst = {
|
|
|
83674
83842
|
{
|
|
83675
83843
|
type: "TileMatrixType",
|
|
83676
83844
|
identifier: "9",
|
|
83677
|
-
scaleDenominator:
|
|
83678
|
-
topLeftCorner: [
|
|
83845
|
+
scaleDenominator: 109195754693108e-8,
|
|
83846
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83679
83847
|
tileWidth: 256,
|
|
83680
83848
|
tileHeight: 256,
|
|
83681
83849
|
matrixWidth: 512,
|
|
@@ -83684,8 +83852,8 @@ var Citm2000Tmst = {
|
|
|
83684
83852
|
{
|
|
83685
83853
|
type: "TileMatrixType",
|
|
83686
83854
|
identifier: "10",
|
|
83687
|
-
scaleDenominator:
|
|
83688
|
-
topLeftCorner: [
|
|
83855
|
+
scaleDenominator: 545978.773465544,
|
|
83856
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83689
83857
|
tileWidth: 256,
|
|
83690
83858
|
tileHeight: 256,
|
|
83691
83859
|
matrixWidth: 1024,
|
|
@@ -83694,8 +83862,8 @@ var Citm2000Tmst = {
|
|
|
83694
83862
|
{
|
|
83695
83863
|
type: "TileMatrixType",
|
|
83696
83864
|
identifier: "11",
|
|
83697
|
-
scaleDenominator:
|
|
83698
|
-
topLeftCorner: [
|
|
83865
|
+
scaleDenominator: 272989.386732772,
|
|
83866
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83699
83867
|
tileWidth: 256,
|
|
83700
83868
|
tileHeight: 256,
|
|
83701
83869
|
matrixWidth: 2048,
|
|
@@ -83704,8 +83872,8 @@ var Citm2000Tmst = {
|
|
|
83704
83872
|
{
|
|
83705
83873
|
type: "TileMatrixType",
|
|
83706
83874
|
identifier: "12",
|
|
83707
|
-
scaleDenominator:
|
|
83708
|
-
topLeftCorner: [
|
|
83875
|
+
scaleDenominator: 136494.693366386,
|
|
83876
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83709
83877
|
tileWidth: 256,
|
|
83710
83878
|
tileHeight: 256,
|
|
83711
83879
|
matrixWidth: 4096,
|
|
@@ -83714,8 +83882,8 @@ var Citm2000Tmst = {
|
|
|
83714
83882
|
{
|
|
83715
83883
|
type: "TileMatrixType",
|
|
83716
83884
|
identifier: "13",
|
|
83717
|
-
scaleDenominator:
|
|
83718
|
-
topLeftCorner: [
|
|
83885
|
+
scaleDenominator: 68247.346683193,
|
|
83886
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83719
83887
|
tileWidth: 256,
|
|
83720
83888
|
tileHeight: 256,
|
|
83721
83889
|
matrixWidth: 8192,
|
|
@@ -83724,8 +83892,8 @@ var Citm2000Tmst = {
|
|
|
83724
83892
|
{
|
|
83725
83893
|
type: "TileMatrixType",
|
|
83726
83894
|
identifier: "14",
|
|
83727
|
-
scaleDenominator:
|
|
83728
|
-
topLeftCorner: [
|
|
83895
|
+
scaleDenominator: 34123.6733415964,
|
|
83896
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83729
83897
|
tileWidth: 256,
|
|
83730
83898
|
tileHeight: 256,
|
|
83731
83899
|
matrixWidth: 16384,
|
|
@@ -83734,8 +83902,8 @@ var Citm2000Tmst = {
|
|
|
83734
83902
|
{
|
|
83735
83903
|
type: "TileMatrixType",
|
|
83736
83904
|
identifier: "15",
|
|
83737
|
-
scaleDenominator:
|
|
83738
|
-
topLeftCorner: [
|
|
83905
|
+
scaleDenominator: 17061.8366707982,
|
|
83906
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83739
83907
|
tileWidth: 256,
|
|
83740
83908
|
tileHeight: 256,
|
|
83741
83909
|
matrixWidth: 32768,
|
|
@@ -83744,294 +83912,336 @@ var Citm2000Tmst = {
|
|
|
83744
83912
|
{
|
|
83745
83913
|
type: "TileMatrixType",
|
|
83746
83914
|
identifier: "16",
|
|
83747
|
-
scaleDenominator:
|
|
83748
|
-
topLeftCorner: [
|
|
83915
|
+
scaleDenominator: 8530.91833539913,
|
|
83916
|
+
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83749
83917
|
tileWidth: 256,
|
|
83750
83918
|
tileHeight: 256,
|
|
83751
83919
|
matrixWidth: 65536,
|
|
83752
83920
|
matrixHeight: 65536
|
|
83753
|
-
}
|
|
83754
|
-
],
|
|
83755
|
-
$generated: {
|
|
83756
|
-
package: "@basemaps/cli",
|
|
83757
|
-
version: "v7.14.0-4-g2766010d",
|
|
83758
|
-
hash: "2766010d8d2bb8b673f6bcbef2fe2636f2e0f4ea",
|
|
83759
|
-
createdAt: "2025-02-10T20:34:46.643Z"
|
|
83760
|
-
},
|
|
83761
|
-
$options: {
|
|
83762
|
-
sourceTileMatrix: "WebMercatorQuad",
|
|
83763
|
-
zoomOffset: 8
|
|
83764
|
-
}
|
|
83765
|
-
};
|
|
83766
|
-
var Citm2000Tms = new TileMatrixSet(Citm2000Tmst);
|
|
83767
|
-
|
|
83768
|
-
// ../geo/build/tms/google.js
|
|
83769
|
-
var GoogleTmst = {
|
|
83770
|
-
type: "TileMatrixSetType",
|
|
83771
|
-
title: "Google Maps Compatible for the World",
|
|
83772
|
-
identifier: "WebMercatorQuad",
|
|
83773
|
-
boundingBox: {
|
|
83774
|
-
type: "BoundingBoxType",
|
|
83775
|
-
crs: "http://www.opengis.net/def/crs/EPSG/0/3857",
|
|
83776
|
-
lowerCorner: [-200375083427892e-7, -200375083427892e-7],
|
|
83777
|
-
upperCorner: [200375083427892e-7, 200375083427892e-7]
|
|
83778
|
-
},
|
|
83779
|
-
supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3857",
|
|
83780
|
-
wellKnownScaleSet: "https://www.opengis.net/def/wkss/OGC/1.0/GoogleMapsCompatible",
|
|
83781
|
-
tileMatrix: [
|
|
83921
|
+
},
|
|
83782
83922
|
{
|
|
83783
83923
|
type: "TileMatrixType",
|
|
83784
|
-
identifier: "
|
|
83785
|
-
scaleDenominator:
|
|
83924
|
+
identifier: "17",
|
|
83925
|
+
scaleDenominator: 4265.45916769956,
|
|
83786
83926
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83787
83927
|
tileWidth: 256,
|
|
83788
83928
|
tileHeight: 256,
|
|
83789
|
-
matrixWidth:
|
|
83790
|
-
matrixHeight:
|
|
83929
|
+
matrixWidth: 131072,
|
|
83930
|
+
matrixHeight: 131072
|
|
83791
83931
|
},
|
|
83792
83932
|
{
|
|
83793
83933
|
type: "TileMatrixType",
|
|
83794
|
-
identifier: "
|
|
83795
|
-
scaleDenominator:
|
|
83934
|
+
identifier: "18",
|
|
83935
|
+
scaleDenominator: 2132.72958384978,
|
|
83796
83936
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83797
83937
|
tileWidth: 256,
|
|
83798
83938
|
tileHeight: 256,
|
|
83799
|
-
matrixWidth:
|
|
83800
|
-
matrixHeight:
|
|
83939
|
+
matrixWidth: 262144,
|
|
83940
|
+
matrixHeight: 262144
|
|
83801
83941
|
},
|
|
83802
83942
|
{
|
|
83803
83943
|
type: "TileMatrixType",
|
|
83804
|
-
identifier: "
|
|
83805
|
-
scaleDenominator:
|
|
83944
|
+
identifier: "19",
|
|
83945
|
+
scaleDenominator: 1066.36479192489,
|
|
83806
83946
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83807
83947
|
tileWidth: 256,
|
|
83808
83948
|
tileHeight: 256,
|
|
83809
|
-
matrixWidth:
|
|
83810
|
-
matrixHeight:
|
|
83949
|
+
matrixWidth: 524288,
|
|
83950
|
+
matrixHeight: 524288
|
|
83811
83951
|
},
|
|
83812
83952
|
{
|
|
83813
83953
|
type: "TileMatrixType",
|
|
83814
|
-
identifier: "
|
|
83815
|
-
scaleDenominator:
|
|
83954
|
+
identifier: "20",
|
|
83955
|
+
scaleDenominator: 533.182395962445,
|
|
83816
83956
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83817
83957
|
tileWidth: 256,
|
|
83818
83958
|
tileHeight: 256,
|
|
83819
|
-
matrixWidth:
|
|
83820
|
-
matrixHeight:
|
|
83959
|
+
matrixWidth: 1048576,
|
|
83960
|
+
matrixHeight: 1048576
|
|
83821
83961
|
},
|
|
83822
83962
|
{
|
|
83823
83963
|
type: "TileMatrixType",
|
|
83824
|
-
identifier: "
|
|
83825
|
-
scaleDenominator:
|
|
83964
|
+
identifier: "21",
|
|
83965
|
+
scaleDenominator: 266.591197981222,
|
|
83826
83966
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83827
83967
|
tileWidth: 256,
|
|
83828
83968
|
tileHeight: 256,
|
|
83829
|
-
matrixWidth:
|
|
83830
|
-
matrixHeight:
|
|
83969
|
+
matrixWidth: 2097152,
|
|
83970
|
+
matrixHeight: 2097152
|
|
83831
83971
|
},
|
|
83832
83972
|
{
|
|
83833
83973
|
type: "TileMatrixType",
|
|
83834
|
-
identifier: "
|
|
83835
|
-
scaleDenominator:
|
|
83974
|
+
identifier: "22",
|
|
83975
|
+
scaleDenominator: 133.295598990611,
|
|
83836
83976
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83837
83977
|
tileWidth: 256,
|
|
83838
83978
|
tileHeight: 256,
|
|
83839
|
-
matrixWidth:
|
|
83840
|
-
matrixHeight:
|
|
83979
|
+
matrixWidth: 4194304,
|
|
83980
|
+
matrixHeight: 4194304
|
|
83841
83981
|
},
|
|
83842
83982
|
{
|
|
83843
83983
|
type: "TileMatrixType",
|
|
83844
|
-
identifier: "
|
|
83845
|
-
scaleDenominator:
|
|
83984
|
+
identifier: "23",
|
|
83985
|
+
scaleDenominator: 66.6477994953056,
|
|
83846
83986
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83847
83987
|
tileWidth: 256,
|
|
83848
83988
|
tileHeight: 256,
|
|
83849
|
-
matrixWidth:
|
|
83850
|
-
matrixHeight:
|
|
83989
|
+
matrixWidth: 8388608,
|
|
83990
|
+
matrixHeight: 8388608
|
|
83851
83991
|
},
|
|
83852
83992
|
{
|
|
83853
83993
|
type: "TileMatrixType",
|
|
83854
|
-
identifier: "
|
|
83855
|
-
scaleDenominator:
|
|
83994
|
+
identifier: "24",
|
|
83995
|
+
scaleDenominator: 33.3238997476528,
|
|
83856
83996
|
topLeftCorner: [-200375083427892e-7, 200375083427892e-7],
|
|
83857
83997
|
tileWidth: 256,
|
|
83858
83998
|
tileHeight: 256,
|
|
83859
|
-
matrixWidth:
|
|
83860
|
-
matrixHeight:
|
|
83861
|
-
}
|
|
83999
|
+
matrixWidth: 16777216,
|
|
84000
|
+
matrixHeight: 16777216
|
|
84001
|
+
}
|
|
84002
|
+
]
|
|
84003
|
+
};
|
|
84004
|
+
var GoogleTms = new TileMatrixSet(GoogleTmst);
|
|
84005
|
+
|
|
84006
|
+
// ../geo/build/proj/projection.loader.js
|
|
84007
|
+
var ProjectionLoader = class {
|
|
84008
|
+
/**
|
|
84009
|
+
* Ensure that a projection EPSG code is avialable for use in Proj4js
|
|
84010
|
+
*
|
|
84011
|
+
* If its not already loaded, lookup definition from spatialreference.org
|
|
84012
|
+
* @param code
|
|
84013
|
+
*/
|
|
84014
|
+
static async load(code) {
|
|
84015
|
+
if (Projection.tryGet(code) != null)
|
|
84016
|
+
return Epsg.get(code);
|
|
84017
|
+
const url = `https://spatialreference.org/ref/epsg/${code}/ogcwkt/`;
|
|
84018
|
+
const res = await this._fetch(url);
|
|
84019
|
+
if (!res.ok)
|
|
84020
|
+
throw new Error("Failed to load projection information for:" + code);
|
|
84021
|
+
let epsg = Epsg.tryGet(code);
|
|
84022
|
+
if (epsg == null)
|
|
84023
|
+
epsg = new Epsg(code);
|
|
84024
|
+
const text = await res.text();
|
|
84025
|
+
Projection.define(epsg, text);
|
|
84026
|
+
return epsg;
|
|
84027
|
+
}
|
|
84028
|
+
};
|
|
84029
|
+
Object.defineProperty(ProjectionLoader, "_fetch", {
|
|
84030
|
+
enumerable: true,
|
|
84031
|
+
configurable: true,
|
|
84032
|
+
writable: true,
|
|
84033
|
+
value: fetch
|
|
84034
|
+
});
|
|
84035
|
+
|
|
84036
|
+
// ../geo/build/proj/tile.set.name.js
|
|
84037
|
+
var TileSetName;
|
|
84038
|
+
(function(TileSetName2) {
|
|
84039
|
+
TileSetName2["aerial"] = "aerial";
|
|
84040
|
+
})(TileSetName || (TileSetName = {}));
|
|
84041
|
+
|
|
84042
|
+
// ../geo/build/quad.key.js
|
|
84043
|
+
var CHAR_0 = "0".charCodeAt(0);
|
|
84044
|
+
var CHAR_1 = "1".charCodeAt(0);
|
|
84045
|
+
var CHAR_2 = "2".charCodeAt(0);
|
|
84046
|
+
var CHAR_3 = "3".charCodeAt(0);
|
|
84047
|
+
|
|
84048
|
+
// ../geo/build/tms/citm2000.js
|
|
84049
|
+
var Citm2000Tmst = {
|
|
84050
|
+
type: "TileMatrixSetType",
|
|
84051
|
+
title: "Debug tile matrix for EPSG:3793",
|
|
84052
|
+
abstract: "",
|
|
84053
|
+
identifier: "CITM2000Quad",
|
|
84054
|
+
supportedCRS: "https://www.opengis.net/def/crs/EPSG/0/3793",
|
|
84055
|
+
boundingBox: {
|
|
84056
|
+
type: "BoundingBoxType",
|
|
84057
|
+
crs: "https://www.opengis.net/def/crs/EPSG/0/3793",
|
|
84058
|
+
lowerCorner: [5051234111622438e-9, 3.4301543757978342e6],
|
|
84059
|
+
upperCorner: [5207777145550478e-9, 3.5866974097258747e6]
|
|
84060
|
+
},
|
|
84061
|
+
tileMatrix: [
|
|
83862
84062
|
{
|
|
83863
84063
|
type: "TileMatrixType",
|
|
83864
|
-
identifier: "
|
|
84064
|
+
identifier: "0",
|
|
83865
84065
|
scaleDenominator: 218391509386217e-8,
|
|
83866
|
-
topLeftCorner: [-
|
|
84066
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83867
84067
|
tileWidth: 256,
|
|
83868
84068
|
tileHeight: 256,
|
|
83869
|
-
matrixWidth:
|
|
83870
|
-
matrixHeight:
|
|
84069
|
+
matrixWidth: 1,
|
|
84070
|
+
matrixHeight: 1
|
|
83871
84071
|
},
|
|
83872
84072
|
{
|
|
83873
84073
|
type: "TileMatrixType",
|
|
83874
|
-
identifier: "
|
|
84074
|
+
identifier: "1",
|
|
83875
84075
|
scaleDenominator: 109195754693108e-8,
|
|
83876
|
-
topLeftCorner: [-
|
|
84076
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83877
84077
|
tileWidth: 256,
|
|
83878
84078
|
tileHeight: 256,
|
|
83879
|
-
matrixWidth:
|
|
83880
|
-
matrixHeight:
|
|
84079
|
+
matrixWidth: 2,
|
|
84080
|
+
matrixHeight: 2
|
|
83881
84081
|
},
|
|
83882
84082
|
{
|
|
83883
84083
|
type: "TileMatrixType",
|
|
83884
|
-
identifier: "
|
|
84084
|
+
identifier: "2",
|
|
83885
84085
|
scaleDenominator: 545978.773465544,
|
|
83886
|
-
topLeftCorner: [-
|
|
84086
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83887
84087
|
tileWidth: 256,
|
|
83888
84088
|
tileHeight: 256,
|
|
83889
|
-
matrixWidth:
|
|
83890
|
-
matrixHeight:
|
|
84089
|
+
matrixWidth: 4,
|
|
84090
|
+
matrixHeight: 4
|
|
83891
84091
|
},
|
|
83892
84092
|
{
|
|
83893
84093
|
type: "TileMatrixType",
|
|
83894
|
-
identifier: "
|
|
84094
|
+
identifier: "3",
|
|
83895
84095
|
scaleDenominator: 272989.386732772,
|
|
83896
|
-
topLeftCorner: [-
|
|
84096
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83897
84097
|
tileWidth: 256,
|
|
83898
84098
|
tileHeight: 256,
|
|
83899
|
-
matrixWidth:
|
|
83900
|
-
matrixHeight:
|
|
84099
|
+
matrixWidth: 8,
|
|
84100
|
+
matrixHeight: 8
|
|
83901
84101
|
},
|
|
83902
84102
|
{
|
|
83903
84103
|
type: "TileMatrixType",
|
|
83904
|
-
identifier: "
|
|
84104
|
+
identifier: "4",
|
|
83905
84105
|
scaleDenominator: 136494.693366386,
|
|
83906
|
-
topLeftCorner: [-
|
|
84106
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83907
84107
|
tileWidth: 256,
|
|
83908
84108
|
tileHeight: 256,
|
|
83909
|
-
matrixWidth:
|
|
83910
|
-
matrixHeight:
|
|
84109
|
+
matrixWidth: 16,
|
|
84110
|
+
matrixHeight: 16
|
|
83911
84111
|
},
|
|
83912
84112
|
{
|
|
83913
84113
|
type: "TileMatrixType",
|
|
83914
|
-
identifier: "
|
|
84114
|
+
identifier: "5",
|
|
83915
84115
|
scaleDenominator: 68247.346683193,
|
|
83916
|
-
topLeftCorner: [-
|
|
84116
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83917
84117
|
tileWidth: 256,
|
|
83918
84118
|
tileHeight: 256,
|
|
83919
|
-
matrixWidth:
|
|
83920
|
-
matrixHeight:
|
|
84119
|
+
matrixWidth: 32,
|
|
84120
|
+
matrixHeight: 32
|
|
83921
84121
|
},
|
|
83922
84122
|
{
|
|
83923
84123
|
type: "TileMatrixType",
|
|
83924
|
-
identifier: "
|
|
84124
|
+
identifier: "6",
|
|
83925
84125
|
scaleDenominator: 34123.6733415964,
|
|
83926
|
-
topLeftCorner: [-
|
|
84126
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83927
84127
|
tileWidth: 256,
|
|
83928
84128
|
tileHeight: 256,
|
|
83929
|
-
matrixWidth:
|
|
83930
|
-
matrixHeight:
|
|
84129
|
+
matrixWidth: 64,
|
|
84130
|
+
matrixHeight: 64
|
|
83931
84131
|
},
|
|
83932
84132
|
{
|
|
83933
84133
|
type: "TileMatrixType",
|
|
83934
|
-
identifier: "
|
|
84134
|
+
identifier: "7",
|
|
83935
84135
|
scaleDenominator: 17061.8366707982,
|
|
83936
|
-
topLeftCorner: [-
|
|
84136
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83937
84137
|
tileWidth: 256,
|
|
83938
84138
|
tileHeight: 256,
|
|
83939
|
-
matrixWidth:
|
|
83940
|
-
matrixHeight:
|
|
84139
|
+
matrixWidth: 128,
|
|
84140
|
+
matrixHeight: 128
|
|
83941
84141
|
},
|
|
83942
84142
|
{
|
|
83943
84143
|
type: "TileMatrixType",
|
|
83944
|
-
identifier: "
|
|
84144
|
+
identifier: "8",
|
|
83945
84145
|
scaleDenominator: 8530.91833539913,
|
|
83946
|
-
topLeftCorner: [-
|
|
84146
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83947
84147
|
tileWidth: 256,
|
|
83948
84148
|
tileHeight: 256,
|
|
83949
|
-
matrixWidth:
|
|
83950
|
-
matrixHeight:
|
|
84149
|
+
matrixWidth: 256,
|
|
84150
|
+
matrixHeight: 256
|
|
83951
84151
|
},
|
|
83952
84152
|
{
|
|
83953
84153
|
type: "TileMatrixType",
|
|
83954
|
-
identifier: "
|
|
84154
|
+
identifier: "9",
|
|
83955
84155
|
scaleDenominator: 4265.45916769956,
|
|
83956
|
-
topLeftCorner: [-
|
|
84156
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83957
84157
|
tileWidth: 256,
|
|
83958
84158
|
tileHeight: 256,
|
|
83959
|
-
matrixWidth:
|
|
83960
|
-
matrixHeight:
|
|
84159
|
+
matrixWidth: 512,
|
|
84160
|
+
matrixHeight: 512
|
|
83961
84161
|
},
|
|
83962
84162
|
{
|
|
83963
84163
|
type: "TileMatrixType",
|
|
83964
|
-
identifier: "
|
|
84164
|
+
identifier: "10",
|
|
83965
84165
|
scaleDenominator: 2132.72958384978,
|
|
83966
|
-
topLeftCorner: [-
|
|
84166
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83967
84167
|
tileWidth: 256,
|
|
83968
84168
|
tileHeight: 256,
|
|
83969
|
-
matrixWidth:
|
|
83970
|
-
matrixHeight:
|
|
84169
|
+
matrixWidth: 1024,
|
|
84170
|
+
matrixHeight: 1024
|
|
83971
84171
|
},
|
|
83972
84172
|
{
|
|
83973
84173
|
type: "TileMatrixType",
|
|
83974
|
-
identifier: "
|
|
84174
|
+
identifier: "11",
|
|
83975
84175
|
scaleDenominator: 1066.36479192489,
|
|
83976
|
-
topLeftCorner: [-
|
|
84176
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83977
84177
|
tileWidth: 256,
|
|
83978
84178
|
tileHeight: 256,
|
|
83979
|
-
matrixWidth:
|
|
83980
|
-
matrixHeight:
|
|
84179
|
+
matrixWidth: 2048,
|
|
84180
|
+
matrixHeight: 2048
|
|
83981
84181
|
},
|
|
83982
84182
|
{
|
|
83983
84183
|
type: "TileMatrixType",
|
|
83984
|
-
identifier: "
|
|
84184
|
+
identifier: "12",
|
|
83985
84185
|
scaleDenominator: 533.182395962445,
|
|
83986
|
-
topLeftCorner: [-
|
|
84186
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83987
84187
|
tileWidth: 256,
|
|
83988
84188
|
tileHeight: 256,
|
|
83989
|
-
matrixWidth:
|
|
83990
|
-
matrixHeight:
|
|
84189
|
+
matrixWidth: 4096,
|
|
84190
|
+
matrixHeight: 4096
|
|
83991
84191
|
},
|
|
83992
84192
|
{
|
|
83993
84193
|
type: "TileMatrixType",
|
|
83994
|
-
identifier: "
|
|
84194
|
+
identifier: "13",
|
|
83995
84195
|
scaleDenominator: 266.591197981222,
|
|
83996
|
-
topLeftCorner: [-
|
|
84196
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
83997
84197
|
tileWidth: 256,
|
|
83998
84198
|
tileHeight: 256,
|
|
83999
|
-
matrixWidth:
|
|
84000
|
-
matrixHeight:
|
|
84199
|
+
matrixWidth: 8192,
|
|
84200
|
+
matrixHeight: 8192
|
|
84001
84201
|
},
|
|
84002
84202
|
{
|
|
84003
84203
|
type: "TileMatrixType",
|
|
84004
|
-
identifier: "
|
|
84204
|
+
identifier: "14",
|
|
84005
84205
|
scaleDenominator: 133.295598990611,
|
|
84006
|
-
topLeftCorner: [-
|
|
84206
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
84007
84207
|
tileWidth: 256,
|
|
84008
84208
|
tileHeight: 256,
|
|
84009
|
-
matrixWidth:
|
|
84010
|
-
matrixHeight:
|
|
84209
|
+
matrixWidth: 16384,
|
|
84210
|
+
matrixHeight: 16384
|
|
84011
84211
|
},
|
|
84012
84212
|
{
|
|
84013
84213
|
type: "TileMatrixType",
|
|
84014
|
-
identifier: "
|
|
84214
|
+
identifier: "15",
|
|
84015
84215
|
scaleDenominator: 66.6477994953056,
|
|
84016
|
-
topLeftCorner: [-
|
|
84216
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
84017
84217
|
tileWidth: 256,
|
|
84018
84218
|
tileHeight: 256,
|
|
84019
|
-
matrixWidth:
|
|
84020
|
-
matrixHeight:
|
|
84219
|
+
matrixWidth: 32768,
|
|
84220
|
+
matrixHeight: 32768
|
|
84021
84221
|
},
|
|
84022
84222
|
{
|
|
84023
84223
|
type: "TileMatrixType",
|
|
84024
|
-
identifier: "
|
|
84224
|
+
identifier: "16",
|
|
84025
84225
|
scaleDenominator: 33.3238997476528,
|
|
84026
|
-
topLeftCorner: [-
|
|
84226
|
+
topLeftCorner: [5207777145550478e-9, 3.4301543757978342e6],
|
|
84027
84227
|
tileWidth: 256,
|
|
84028
84228
|
tileHeight: 256,
|
|
84029
|
-
matrixWidth:
|
|
84030
|
-
matrixHeight:
|
|
84229
|
+
matrixWidth: 65536,
|
|
84230
|
+
matrixHeight: 65536
|
|
84031
84231
|
}
|
|
84032
|
-
]
|
|
84232
|
+
],
|
|
84233
|
+
$generated: {
|
|
84234
|
+
package: "@basemaps/cli",
|
|
84235
|
+
version: "v7.14.0-4-g2766010d",
|
|
84236
|
+
hash: "2766010d8d2bb8b673f6bcbef2fe2636f2e0f4ea",
|
|
84237
|
+
createdAt: "2025-02-10T20:34:46.643Z"
|
|
84238
|
+
},
|
|
84239
|
+
$options: {
|
|
84240
|
+
sourceTileMatrix: "WebMercatorQuad",
|
|
84241
|
+
zoomOffset: 8
|
|
84242
|
+
}
|
|
84033
84243
|
};
|
|
84034
|
-
var
|
|
84244
|
+
var Citm2000Tms = new TileMatrixSet(Citm2000Tmst);
|
|
84035
84245
|
|
|
84036
84246
|
// ../geo/build/tms/nztm2000.js
|
|
84037
84247
|
var Nztm20002 = __toESM(require_src3(), 1);
|
|
@@ -87328,9 +87538,9 @@ var Router = class {
|
|
|
87328
87538
|
};
|
|
87329
87539
|
|
|
87330
87540
|
// ../../node_modules/@linzjs/lambda/build/src/function.js
|
|
87331
|
-
var version2 = "v8.
|
|
87332
|
-
var hash = "
|
|
87333
|
-
var buildId = "
|
|
87541
|
+
var version2 = "v8.4.0-5-g4f6f3929";
|
|
87542
|
+
var hash = "4f6f3929b9117c3e112f7d156ab185cb98821796";
|
|
87543
|
+
var buildId = "16305730095-1";
|
|
87334
87544
|
var versionInfo = { version: version2, hash, buildId };
|
|
87335
87545
|
async function runFunction(req, fn) {
|
|
87336
87546
|
if (!req.timer.timers.has("lambda"))
|
|
@@ -88182,6 +88392,40 @@ async function configImageryGet(req) {
|
|
|
88182
88392
|
return sendJson(req, imagery);
|
|
88183
88393
|
}
|
|
88184
88394
|
|
|
88395
|
+
// src/routes/export.tileset.ts
|
|
88396
|
+
async function exportTileSetGet(req) {
|
|
88397
|
+
Validate.apiKey(req);
|
|
88398
|
+
req.set("tileSet", req.params.tileSet);
|
|
88399
|
+
const tileMatrix = Validate.getTileMatrixSet(req.params.tileMatrix);
|
|
88400
|
+
if (tileMatrix == null)
|
|
88401
|
+
throw new LambdaHttpResponse(404, "Tile Matrix not found");
|
|
88402
|
+
req.set("tileMatrix", tileMatrix.identifier);
|
|
88403
|
+
req.set("projection", tileMatrix.projection.code);
|
|
88404
|
+
const config = await ConfigLoader.load(req);
|
|
88405
|
+
req.timer.start("tileset:load");
|
|
88406
|
+
const tileSet = await config.TileSet.get(config.TileSet.id(req.params.tileSet));
|
|
88407
|
+
req.timer.end("tileset:load");
|
|
88408
|
+
if (tileSet == null)
|
|
88409
|
+
return NotFound();
|
|
88410
|
+
if (tileSet.layers.length > 1) {
|
|
88411
|
+
return new LambdaHttpResponse(500, `Too many layers in vector tileset ${tileSet.layers.length}`);
|
|
88412
|
+
}
|
|
88413
|
+
const epsgCode = tileMatrix.projection.code;
|
|
88414
|
+
const layerId = tileSet.layers[0][epsgCode];
|
|
88415
|
+
if (layerId == null)
|
|
88416
|
+
return new LambdaHttpResponse(404, `No data found for tile matrix: ${tileMatrix.identifier}`);
|
|
88417
|
+
if (!layerId.startsWith("s3://"))
|
|
88418
|
+
return new LambdaHttpResponse(400, `Unable to export tilesets not inside of S3`);
|
|
88419
|
+
if (!layerId.endsWith(".tar.co"))
|
|
88420
|
+
return new LambdaHttpResponse(400, `Unable to export tileset`);
|
|
88421
|
+
const target = new URL(layerId.replace(".tar.co", ".mbtiles"));
|
|
88422
|
+
const exists = await fsa.exists(target);
|
|
88423
|
+
if (!exists)
|
|
88424
|
+
return NotFound();
|
|
88425
|
+
const presignedUrl = await signS3Get(target);
|
|
88426
|
+
return new LambdaHttpResponse(302, "Moved", { location: presignedUrl });
|
|
88427
|
+
}
|
|
88428
|
+
|
|
88185
88429
|
// src/util/source.cache.ts
|
|
88186
88430
|
var SourceCache2 = class {
|
|
88187
88431
|
constructor(maxSize) {
|
|
@@ -91680,18 +91924,18 @@ async function versionGet(req) {
|
|
|
91680
91924
|
* last git version tag
|
|
91681
91925
|
* @example "v6.42.1"
|
|
91682
91926
|
*/
|
|
91683
|
-
version: "v8.
|
|
91927
|
+
version: "v8.4.0-5-g4f6f3929",
|
|
91684
91928
|
/**
|
|
91685
91929
|
* Full git commit hash
|
|
91686
91930
|
* @example "e4231b1ee62c276c8657c56677ced02681dfe5d6"
|
|
91687
91931
|
*/
|
|
91688
|
-
hash: "
|
|
91932
|
+
hash: "4f6f3929b9117c3e112f7d156ab185cb98821796",
|
|
91689
91933
|
/**
|
|
91690
91934
|
*
|
|
91691
91935
|
* The exact build that this release was run from
|
|
91692
91936
|
* @example "1658821493-3"
|
|
91693
91937
|
*/
|
|
91694
|
-
buildId: "
|
|
91938
|
+
buildId: "16305730095-1",
|
|
91695
91939
|
/**
|
|
91696
91940
|
* Configuration id that was used to power this config
|
|
91697
91941
|
* @example { "id": "cb_01JTQ7ZK49F8EY4N5DRJ3XFT73", hash: "HcByZ8WS2zpaTxFJp6wSKg2eUpwahLqAGEQdcDxKxqp6" }
|
|
@@ -91761,6 +92005,7 @@ handler.router.get("/v1/attribution/:tileSet/:tileMatrix/summary.json", tileAttr
|
|
|
91761
92005
|
handler.router.get("/v1/tiles/:tileSet/:tileMatrix/WMTSCapabilities.xml", wmtsCapabilitiesGet);
|
|
91762
92006
|
handler.router.get("/v1/tiles/:tileSet/WMTSCapabilities.xml", wmtsCapabilitiesGet);
|
|
91763
92007
|
handler.router.get("/v1/tiles/WMTSCapabilities.xml", wmtsCapabilitiesGet);
|
|
92008
|
+
handler.router.get("/v1/export/:tileSet/:tileMatrix.:extension", exportTileSetGet);
|
|
91764
92009
|
// Annotate the CommonJS export names for ESM import in node:
|
|
91765
92010
|
0 && (module.exports = {
|
|
91766
92011
|
handler
|