@loaders.gl/ogc 5.0.0-beta.4 → 5.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/gml-loader.cjs +7 -7
- package/dist/gml-loader.cjs.map +2 -2
- package/dist/index.cjs +8 -8
- package/dist/stac/index.cjs +1 -1
- package/dist/stac/stac-source-loader-types.js +1 -1
- package/dist/stac-source.cjs +1 -1
- package/dist/wms/bundled.cjs +15 -15
- package/dist/wms/bundled.cjs.map +2 -2
- package/dist/wms/csw-capabilities-loader.js +1 -1
- package/dist/wms/csw-domain-loader.js +1 -1
- package/dist/wms/csw-records-loader.js +1 -1
- package/dist/wms/csw-source-loader.js +1 -1
- package/dist/wms/gml-loader-types.js +1 -1
- package/dist/wms/index.cjs +16 -16
- package/dist/wms/index.cjs.map +2 -2
- package/dist/wms/unbundled.cjs +7 -7
- package/dist/wms/wfs-capabilities-loader.js +1 -1
- package/dist/wms/wip/wcs-capabilities-loader.js +1 -1
- package/dist/wms/wip/wmts-capabilities-loader.js +1 -1
- package/dist/wms/wms-capabilities-loader.js +1 -1
- package/dist/wms/wms-error-loader.js +1 -1
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { CSWCapabilitiesFormat } from "./wms-format.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "5.0.0-beta.
|
|
7
|
+
const VERSION = typeof "5.0.0-beta.5" !== 'undefined' ? "5.0.0-beta.5" : 'latest';
|
|
8
8
|
/** Preloads the parser-bearing CSW capabilities loader implementation. */
|
|
9
9
|
async function preload() {
|
|
10
10
|
const { CSWCapabilitiesLoaderWithParser } = await import("./csw-capabilities-loader-with-parser.js");
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { CSWDomainFormat } from "./wms-format.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "5.0.0-beta.
|
|
7
|
+
const VERSION = typeof "5.0.0-beta.5" !== 'undefined' ? "5.0.0-beta.5" : 'latest';
|
|
8
8
|
/** Preloads the parser-bearing CSW domain loader implementation. */
|
|
9
9
|
async function preload() {
|
|
10
10
|
const { CSWDomainLoaderWithParser } = await import("./csw-domain-loader-with-parser.js");
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { CSWRecordsFormat } from "./wms-format.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "5.0.0-beta.
|
|
7
|
+
const VERSION = typeof "5.0.0-beta.5" !== 'undefined' ? "5.0.0-beta.5" : 'latest';
|
|
8
8
|
/** Preloads the parser-bearing CSW records loader implementation. */
|
|
9
9
|
async function preload() {
|
|
10
10
|
const { CSWRecordsLoaderWithParser } = await import("./csw-records-loader-with-parser.js");
|
|
@@ -8,7 +8,7 @@ import { CSWDomainLoaderWithParser } from "./csw-domain-loader-with-parser.js";
|
|
|
8
8
|
import { WMSErrorLoaderWithParser } from "./wms-error-loader-with-parser.js";
|
|
9
9
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
10
10
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
11
|
-
const VERSION = typeof "5.0.0-beta.
|
|
11
|
+
const VERSION = typeof "5.0.0-beta.5" !== 'undefined' ? "5.0.0-beta.5" : 'latest';
|
|
12
12
|
export const CSWSourceLoader = {
|
|
13
13
|
dataType: null,
|
|
14
14
|
batchType: null,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { GMLFormat } from "./wms-format.js";
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
|
-
const VERSION = typeof "5.0.0-beta.
|
|
7
|
+
const VERSION = typeof "5.0.0-beta.5" !== 'undefined' ? "5.0.0-beta.5" : 'latest';
|
|
8
8
|
/** Preloads the parser-bearing GML loader implementation. */
|
|
9
9
|
async function preload() {
|
|
10
10
|
const { GMLLoaderWithParser } = await import('@loaders.gl/ogc/gml-loader');
|
package/dist/wms/index.cjs
CHANGED
|
@@ -1865,7 +1865,7 @@ var init_csw_capabilities_loader = __esm({
|
|
|
1865
1865
|
"dist/wms/csw-capabilities-loader.js"() {
|
|
1866
1866
|
"use strict";
|
|
1867
1867
|
init_wms_format();
|
|
1868
|
-
VERSION2 = true ? "5.0.0-beta.
|
|
1868
|
+
VERSION2 = true ? "5.0.0-beta.5" : "latest";
|
|
1869
1869
|
CSWCapabilitiesLoader = {
|
|
1870
1870
|
...CSWCapabilitiesFormat,
|
|
1871
1871
|
dataType: null,
|
|
@@ -1953,7 +1953,7 @@ var init_csw_domain_loader = __esm({
|
|
|
1953
1953
|
"dist/wms/csw-domain-loader.js"() {
|
|
1954
1954
|
"use strict";
|
|
1955
1955
|
init_wms_format();
|
|
1956
|
-
VERSION3 = true ? "5.0.0-beta.
|
|
1956
|
+
VERSION3 = true ? "5.0.0-beta.5" : "latest";
|
|
1957
1957
|
CSWDomainLoader = {
|
|
1958
1958
|
...CSWDomainFormat,
|
|
1959
1959
|
dataType: null,
|
|
@@ -2084,7 +2084,7 @@ var init_csw_records_loader = __esm({
|
|
|
2084
2084
|
"dist/wms/csw-records-loader.js"() {
|
|
2085
2085
|
"use strict";
|
|
2086
2086
|
init_wms_format();
|
|
2087
|
-
VERSION4 = true ? "5.0.0-beta.
|
|
2087
|
+
VERSION4 = true ? "5.0.0-beta.5" : "latest";
|
|
2088
2088
|
CSWRecordsLoader = {
|
|
2089
2089
|
...CSWRecordsFormat,
|
|
2090
2090
|
dataType: null,
|
|
@@ -2171,7 +2171,7 @@ var init_wms_error_loader = __esm({
|
|
|
2171
2171
|
"dist/wms/wms-error-loader.js"() {
|
|
2172
2172
|
"use strict";
|
|
2173
2173
|
init_wms_format();
|
|
2174
|
-
VERSION5 = true ? "5.0.0-beta.
|
|
2174
|
+
VERSION5 = true ? "5.0.0-beta.5" : "latest";
|
|
2175
2175
|
WMSErrorLoader = {
|
|
2176
2176
|
...WMSErrorFormat,
|
|
2177
2177
|
dataType: null,
|
|
@@ -2494,7 +2494,7 @@ var init_wms_capabilities_loader = __esm({
|
|
|
2494
2494
|
"dist/wms/wms-capabilities-loader.js"() {
|
|
2495
2495
|
"use strict";
|
|
2496
2496
|
init_wms_format();
|
|
2497
|
-
VERSION6 = true ? "5.0.0-beta.
|
|
2497
|
+
VERSION6 = true ? "5.0.0-beta.5" : "latest";
|
|
2498
2498
|
WMSCapabilitiesLoader = {
|
|
2499
2499
|
...WMSCapabilitiesFormat,
|
|
2500
2500
|
dataType: null,
|
|
@@ -2995,7 +2995,7 @@ var init_wfs_capabilities_loader = __esm({
|
|
|
2995
2995
|
"dist/wms/wfs-capabilities-loader.js"() {
|
|
2996
2996
|
"use strict";
|
|
2997
2997
|
init_wms_format();
|
|
2998
|
-
VERSION7 = true ? "5.0.0-beta.
|
|
2998
|
+
VERSION7 = true ? "5.0.0-beta.5" : "latest";
|
|
2999
2999
|
WFSCapabilitiesLoader = {
|
|
3000
3000
|
...WFSCapabilitiesFormat,
|
|
3001
3001
|
dataType: null,
|
|
@@ -3032,7 +3032,7 @@ var init_gml_loader_types = __esm({
|
|
|
3032
3032
|
"dist/wms/gml-loader-types.js"() {
|
|
3033
3033
|
"use strict";
|
|
3034
3034
|
init_wms_format();
|
|
3035
|
-
VERSION8 = true ? "5.0.0-beta.
|
|
3035
|
+
VERSION8 = true ? "5.0.0-beta.5" : "latest";
|
|
3036
3036
|
GMLLoader = {
|
|
3037
3037
|
...GMLFormat,
|
|
3038
3038
|
dataType: null,
|
|
@@ -5200,7 +5200,7 @@ function convertGeometryToWKT(geometry, options) {
|
|
|
5200
5200
|
if (geometry.geometries.length === 0) return "GEOMETRYCOLLECTION EMPTY";
|
|
5201
5201
|
return `GEOMETRYCOLLECTION (${geometry.geometries.map((child) => convertGeometryToWKT(child)).join(", ")})`;
|
|
5202
5202
|
}
|
|
5203
|
-
return (0,
|
|
5203
|
+
return (0, import_wkb.formatWKT)(normalizeGeometryDimension(geometry, dimension), dimension);
|
|
5204
5204
|
}
|
|
5205
5205
|
function normalizeGeometryDimension(geometry, dimension) {
|
|
5206
5206
|
if (geometry.type === "GeometryCollection") {
|
|
@@ -5259,11 +5259,11 @@ function getFirstCoordinate(geometry) {
|
|
|
5259
5259
|
function getDimensionSize(dimension) {
|
|
5260
5260
|
return dimension === "xy" ? 2 : dimension === "xyzm" ? 4 : 3;
|
|
5261
5261
|
}
|
|
5262
|
-
var
|
|
5262
|
+
var import_wkb;
|
|
5263
5263
|
var init_geometry_to_wkt = __esm({
|
|
5264
5264
|
"../core/src/arrow-geometry/geometry-to-wkt.ts"() {
|
|
5265
5265
|
"use strict";
|
|
5266
|
-
|
|
5266
|
+
import_wkb = require("@math.gl/arrow/wkb");
|
|
5267
5267
|
}
|
|
5268
5268
|
});
|
|
5269
5269
|
|
|
@@ -5277,7 +5277,7 @@ function convertGeometryToWKB(input, options = {}) {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
function encodeGeometry(geometry, dimension) {
|
|
5279
5279
|
if (geometry.type !== "GeometryCollection") {
|
|
5280
|
-
return (0,
|
|
5280
|
+
return (0, import_wkb2.writeWKB)(geometry, dimension);
|
|
5281
5281
|
}
|
|
5282
5282
|
const children = geometry.geometries.map(
|
|
5283
5283
|
(child) => encodeGeometry(
|
|
@@ -5285,13 +5285,13 @@ function encodeGeometry(geometry, dimension) {
|
|
|
5285
5285
|
child.__geoarrowDimension ?? dimension
|
|
5286
5286
|
)
|
|
5287
5287
|
);
|
|
5288
|
-
const headerBuilder = new
|
|
5288
|
+
const headerBuilder = new import_wkb2.WKBBuilder({ mode: "measure", dimension });
|
|
5289
5289
|
headerBuilder.beginGeometry("GeometryCollection", children.length);
|
|
5290
5290
|
const headerLength = headerBuilder.finishGeometry();
|
|
5291
5291
|
const bytes = new Uint8Array(
|
|
5292
5292
|
headerLength + children.reduce((total, child) => total + child.length, 0)
|
|
5293
5293
|
);
|
|
5294
|
-
const writer = new
|
|
5294
|
+
const writer = new import_wkb2.WKBBuilder({ mode: "write", target: bytes, dimension });
|
|
5295
5295
|
writer.beginGeometry("GeometryCollection", children.length);
|
|
5296
5296
|
let byteOffset = writer.finishGeometry();
|
|
5297
5297
|
for (const child of children) {
|
|
@@ -5300,11 +5300,11 @@ function encodeGeometry(geometry, dimension) {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
return bytes;
|
|
5302
5302
|
}
|
|
5303
|
-
var
|
|
5303
|
+
var import_wkb2;
|
|
5304
5304
|
var init_geometry_codecs = __esm({
|
|
5305
5305
|
"../core/src/arrow-geometry/geometry-codecs.ts"() {
|
|
5306
5306
|
"use strict";
|
|
5307
|
-
|
|
5307
|
+
import_wkb2 = require("@math.gl/arrow/wkb");
|
|
5308
5308
|
init_geometry_to_wkt();
|
|
5309
5309
|
}
|
|
5310
5310
|
});
|
|
@@ -7817,7 +7817,7 @@ init_csw_capabilities_loader_with_parser();
|
|
|
7817
7817
|
init_csw_records_loader_with_parser();
|
|
7818
7818
|
init_csw_domain_loader_with_parser();
|
|
7819
7819
|
init_wms_error_loader_with_parser();
|
|
7820
|
-
var VERSION10 = true ? "5.0.0-beta.
|
|
7820
|
+
var VERSION10 = true ? "5.0.0-beta.5" : "latest";
|
|
7821
7821
|
var CSWSourceLoader = {
|
|
7822
7822
|
dataType: null,
|
|
7823
7823
|
batchType: null,
|