@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.
@@ -35,7 +35,7 @@ __export(index_exports, {
35
35
  module.exports = __toCommonJS(index_exports);
36
36
 
37
37
  // dist/stac/stac-source-loader-types.js
38
- var VERSION = true ? "5.0.0-beta.4" : "latest";
38
+ var VERSION = true ? "5.0.0-beta.5" : "latest";
39
39
  async function preloadSTACSourceLoader() {
40
40
  const { STACSourceLoaderWithParser } = await import("@loaders.gl/ogc/stac-source");
41
41
  return STACSourceLoaderWithParser;
@@ -3,7 +3,7 @@
3
3
  // Copyright (c) vis.gl contributors
4
4
  // __VERSION__ is injected by babel-plugin-version-inline
5
5
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
6
- const VERSION = typeof "5.0.0-beta.4" !== 'undefined' ? "5.0.0-beta.4" : 'latest';
6
+ const VERSION = typeof "5.0.0-beta.5" !== 'undefined' ? "5.0.0-beta.5" : 'latest';
7
7
  /** Loads the runtime STAC source implementation from its explicit package subpath. */
8
8
  async function preloadSTACSourceLoader() {
9
9
  const { STACSourceLoaderWithParser } = await import('@loaders.gl/ogc/stac-source');
@@ -493,7 +493,7 @@ function unavailableCoreApiMethod(methodName) {
493
493
  }
494
494
 
495
495
  // dist/stac/stac-source-loader-types.js
496
- var VERSION2 = true ? "5.0.0-beta.4" : "latest";
496
+ var VERSION2 = true ? "5.0.0-beta.5" : "latest";
497
497
  async function preloadSTACSourceLoader() {
498
498
  const { STACSourceLoaderWithParser: STACSourceLoaderWithParser2 } = await import("@loaders.gl/ogc/stac-source");
499
499
  return STACSourceLoaderWithParser2;
@@ -1845,7 +1845,7 @@ var init_csw_capabilities_loader = __esm({
1845
1845
  "dist/wms/csw-capabilities-loader.js"() {
1846
1846
  "use strict";
1847
1847
  init_wms_format();
1848
- VERSION2 = true ? "5.0.0-beta.4" : "latest";
1848
+ VERSION2 = true ? "5.0.0-beta.5" : "latest";
1849
1849
  CSWCapabilitiesLoader = {
1850
1850
  ...CSWCapabilitiesFormat,
1851
1851
  dataType: null,
@@ -1933,7 +1933,7 @@ var init_csw_domain_loader = __esm({
1933
1933
  "dist/wms/csw-domain-loader.js"() {
1934
1934
  "use strict";
1935
1935
  init_wms_format();
1936
- VERSION3 = true ? "5.0.0-beta.4" : "latest";
1936
+ VERSION3 = true ? "5.0.0-beta.5" : "latest";
1937
1937
  CSWDomainLoader = {
1938
1938
  ...CSWDomainFormat,
1939
1939
  dataType: null,
@@ -2064,7 +2064,7 @@ var init_csw_records_loader = __esm({
2064
2064
  "dist/wms/csw-records-loader.js"() {
2065
2065
  "use strict";
2066
2066
  init_wms_format();
2067
- VERSION4 = true ? "5.0.0-beta.4" : "latest";
2067
+ VERSION4 = true ? "5.0.0-beta.5" : "latest";
2068
2068
  CSWRecordsLoader = {
2069
2069
  ...CSWRecordsFormat,
2070
2070
  dataType: null,
@@ -2138,7 +2138,7 @@ var init_wms_error_loader = __esm({
2138
2138
  "dist/wms/wms-error-loader.js"() {
2139
2139
  "use strict";
2140
2140
  init_wms_format();
2141
- VERSION5 = true ? "5.0.0-beta.4" : "latest";
2141
+ VERSION5 = true ? "5.0.0-beta.5" : "latest";
2142
2142
  WMSErrorLoader = {
2143
2143
  ...WMSErrorFormat,
2144
2144
  dataType: null,
@@ -2743,7 +2743,7 @@ var init_wms_capabilities_loader = __esm({
2743
2743
  "dist/wms/wms-capabilities-loader.js"() {
2744
2744
  "use strict";
2745
2745
  init_wms_format();
2746
- VERSION6 = true ? "5.0.0-beta.4" : "latest";
2746
+ VERSION6 = true ? "5.0.0-beta.5" : "latest";
2747
2747
  WMSCapabilitiesLoader = {
2748
2748
  ...WMSCapabilitiesFormat,
2749
2749
  dataType: null,
@@ -2856,7 +2856,7 @@ var init_wfs_capabilities_loader = __esm({
2856
2856
  "dist/wms/wfs-capabilities-loader.js"() {
2857
2857
  "use strict";
2858
2858
  init_wms_format();
2859
- VERSION7 = true ? "5.0.0-beta.4" : "latest";
2859
+ VERSION7 = true ? "5.0.0-beta.5" : "latest";
2860
2860
  WFSCapabilitiesLoader = {
2861
2861
  ...WFSCapabilitiesFormat,
2862
2862
  dataType: null,
@@ -3045,7 +3045,7 @@ var init_wmts_capabilities_loader2 = __esm({
3045
3045
  "dist/wms/wip/wmts-capabilities-loader.js"() {
3046
3046
  "use strict";
3047
3047
  init_wms_format();
3048
- VERSION9 = true ? "5.0.0-beta.4" : "latest";
3048
+ VERSION9 = true ? "5.0.0-beta.5" : "latest";
3049
3049
  WMTSCapabilitiesLoader3 = {
3050
3050
  ...WMTSCapabilitiesFormat,
3051
3051
  dataType: null,
@@ -3113,7 +3113,7 @@ var init_wcs_capabilities_loader = __esm({
3113
3113
  "dist/wms/wip/wcs-capabilities-loader.js"() {
3114
3114
  "use strict";
3115
3115
  init_wms_format();
3116
- VERSION10 = true ? "5.0.0-beta.4" : "latest";
3116
+ VERSION10 = true ? "5.0.0-beta.5" : "latest";
3117
3117
  WCSCapabilitiesLoader = {
3118
3118
  ...WCSCapabilitiesFormat,
3119
3119
  dataType: null,
@@ -3950,17 +3950,17 @@ var ArrowTableBuilder = class {
3950
3950
  };
3951
3951
 
3952
3952
  // ../core/src/arrow-geometry/geometry-codecs.ts
3953
- var import_geospatial2 = require("@math.gl/geospatial");
3953
+ var import_wkb2 = require("@math.gl/arrow/wkb");
3954
3954
 
3955
3955
  // ../core/src/arrow-geometry/geometry-to-wkt.ts
3956
- var import_geospatial = require("@math.gl/geospatial");
3956
+ var import_wkb = require("@math.gl/arrow/wkb");
3957
3957
  function convertGeometryToWKT(geometry, options) {
3958
3958
  const dimension = getWKTDimension(geometry, options);
3959
3959
  if (geometry.type === "GeometryCollection" && !(options == null ? void 0 : options.dimension) && !(options == null ? void 0 : options.hasZ) && !(options == null ? void 0 : options.hasM) && (hasMixedChildDimensions(geometry) || hasDeclaredChildDimensions(geometry))) {
3960
3960
  if (geometry.geometries.length === 0) return "GEOMETRYCOLLECTION EMPTY";
3961
3961
  return `GEOMETRYCOLLECTION (${geometry.geometries.map((child) => convertGeometryToWKT(child)).join(", ")})`;
3962
3962
  }
3963
- return (0, import_geospatial.formatWKT)(normalizeGeometryDimension(geometry, dimension), dimension);
3963
+ return (0, import_wkb.formatWKT)(normalizeGeometryDimension(geometry, dimension), dimension);
3964
3964
  }
3965
3965
  function normalizeGeometryDimension(geometry, dimension) {
3966
3966
  if (geometry.type === "GeometryCollection") {
@@ -4030,7 +4030,7 @@ function convertGeometryToWKB(input, options = {}) {
4030
4030
  }
4031
4031
  function encodeGeometry(geometry, dimension) {
4032
4032
  if (geometry.type !== "GeometryCollection") {
4033
- return (0, import_geospatial2.writeWKB)(geometry, dimension);
4033
+ return (0, import_wkb2.writeWKB)(geometry, dimension);
4034
4034
  }
4035
4035
  const children = geometry.geometries.map(
4036
4036
  (child) => encodeGeometry(
@@ -4038,13 +4038,13 @@ function encodeGeometry(geometry, dimension) {
4038
4038
  child.__geoarrowDimension ?? dimension
4039
4039
  )
4040
4040
  );
4041
- const headerBuilder = new import_geospatial2.WKBBuilder({ mode: "measure", dimension });
4041
+ const headerBuilder = new import_wkb2.WKBBuilder({ mode: "measure", dimension });
4042
4042
  headerBuilder.beginGeometry("GeometryCollection", children.length);
4043
4043
  const headerLength = headerBuilder.finishGeometry();
4044
4044
  const bytes = new Uint8Array(
4045
4045
  headerLength + children.reduce((total, child) => total + child.length, 0)
4046
4046
  );
4047
- const writer = new import_geospatial2.WKBBuilder({ mode: "write", target: bytes, dimension });
4047
+ const writer = new import_wkb2.WKBBuilder({ mode: "write", target: bytes, dimension });
4048
4048
  writer.beginGeometry("GeometryCollection", children.length);
4049
4049
  let byteOffset = writer.finishGeometry();
4050
4050
  for (const child of children) {
@@ -6134,7 +6134,7 @@ function createChildContext(xml3, options, context) {
6134
6134
 
6135
6135
  // dist/wms/gml-loader-types.js
6136
6136
  init_wms_format();
6137
- var VERSION8 = true ? "5.0.0-beta.4" : "latest";
6137
+ var VERSION8 = true ? "5.0.0-beta.5" : "latest";
6138
6138
  async function preload8() {
6139
6139
  const { GMLLoaderWithParser: GMLLoaderWithParser2 } = await import("@loaders.gl/ogc/gml-loader");
6140
6140
  return GMLLoaderWithParser2;