@loaders.gl/tiles-3d 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.
Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/dist/3d-tiles/3d-tiles-archive-loader.js +1 -1
  3. package/dist/3d-tiles/dist.dev.js +891 -620
  4. package/dist/3d-tiles/dist.min.js +37 -37
  5. package/dist/3d-tiles/index.cjs +821 -943
  6. package/dist/3d-tiles/index.cjs.map +3 -3
  7. package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js +5 -1
  8. package/dist/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -1
  9. package/dist/3d-tiles/lib/utils/version.js +1 -1
  10. package/dist/3d-tiles-archive-writer.cjs +1 -1
  11. package/dist/cesium-ion-loader-with-parser.cjs +820 -942
  12. package/dist/cesium-ion-loader-with-parser.cjs.map +3 -3
  13. package/dist/copc/copc-source-loader.js +2 -2
  14. package/dist/copc/copc-source-loader.js.map +1 -1
  15. package/dist/copc/copc-writer.js +1 -1
  16. package/dist/copc/index.cjs +24 -178
  17. package/dist/copc/index.cjs.map +3 -3
  18. package/dist/dist.dev.js +231 -38
  19. package/dist/dist.min.js +10 -10
  20. package/dist/i3s/arcgis-webscene-loader.js +1 -1
  21. package/dist/i3s/dist.dev.js +3080 -710
  22. package/dist/i3s/dist.min.js +47 -47
  23. package/dist/i3s/i3s-attribute-loader.js +1 -1
  24. package/dist/i3s/i3s-building-scene-layer-loader.js +1 -1
  25. package/dist/i3s/i3s-content-loader.js +1 -1
  26. package/dist/i3s/i3s-lepcc-loader-types.js +1 -1
  27. package/dist/i3s/i3s-loader.js +1 -1
  28. package/dist/i3s/i3s-node-page-loader.js +1 -1
  29. package/dist/i3s/i3s-slpk-loader.js +1 -1
  30. package/dist/i3s/i3s-slpk-writer.js +1 -1
  31. package/dist/i3s/index.cjs +1999 -541
  32. package/dist/i3s/index.cjs.map +3 -3
  33. package/dist/i3s-content-worker-node.js +11 -11
  34. package/dist/i3s-content-worker-node.js.map +4 -4
  35. package/dist/i3s-content-worker.js +767 -346
  36. package/dist/i3s-lepcc-worker-node.js +245 -12
  37. package/dist/i3s-lepcc-worker-node.js.map +4 -4
  38. package/dist/i3s-lepcc-worker.js +240 -12
  39. package/dist/i3s-mesh-writer.cjs +1748 -290
  40. package/dist/i3s-mesh-writer.cjs.map +3 -3
  41. package/dist/i3s-slpk-writer.cjs +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/point-cloud-tile-source-loader-types.js +1 -1
  44. package/dist/point-cloud-tile-source-loader.cjs +1 -1
  45. package/dist/potree/dist.dev.js +226 -82
  46. package/dist/potree/dist.min.js +30 -30
  47. package/dist/potree/index.cjs +13 -165
  48. package/dist/potree/index.cjs.map +3 -3
  49. package/dist/potree/potree-bin-loader.js +1 -1
  50. package/dist/potree/potree-hierarchy-chunk-loader.js +1 -1
  51. package/dist/potree/potree-loader-types.js +1 -1
  52. package/dist/potree/potree-source-loader.js +1 -1
  53. package/dist/potree/potree-writer.js +1 -1
  54. package/dist/potree-loader.cjs +1 -1
  55. package/package.json +13 -13
  56. package/src/3d-tiles/lib/parsers/parse-3d-tile-instanced-model.ts +4 -1
  57. package/src/copc/copc-source-loader.ts +1 -1
@@ -1297,7 +1297,7 @@ var ArcGISWebSceneFormat = json("ArcGIS Web Scene", "arcgis-web-scene", "arcgis-
1297
1297
  var I3SBuildingSceneLayerFormat = json("I3S Building Scene Layer", "i3s-building-scene-layer", "i3s-building-scene-layer");
1298
1298
 
1299
1299
  // dist/i3s/i3s-slpk-writer.js
1300
- var VERSION = true ? "5.0.0-beta.4" : "latest";
1300
+ var VERSION = true ? "5.0.0-beta.5" : "latest";
1301
1301
  var MAX_ARCHIVE_BYTES = 2147483647;
1302
1302
  var SLPKWriter = {
1303
1303
  ...SLPKFormat,
package/dist/index.cjs CHANGED
@@ -11604,7 +11604,7 @@ var PointCloudTileset = class {
11604
11604
  };
11605
11605
 
11606
11606
  // dist/point-cloud-tile-source-loader-types.js
11607
- var VERSION3 = true ? "5.0.0-beta.4" : "latest";
11607
+ var VERSION3 = true ? "5.0.0-beta.5" : "latest";
11608
11608
  async function preloadPointCloudTileSource2() {
11609
11609
  const { PointCloudTileSourceLoaderWithParser: PointCloudTileSourceLoaderWithParser2 } = await Promise.resolve().then(() => (init_point_cloud_tile_source_loader(), point_cloud_tile_source_loader_exports));
11610
11610
  return PointCloudTileSourceLoaderWithParser2;
@@ -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 optional authoring runtime through an explicit package subpath. */
8
8
  async function preloadPointCloudTileSource() {
9
9
  const { PointCloudTileSourceLoaderWithParser } = await import('@loaders.gl/tiles-3d/point-cloud-tile-source-loader');
@@ -2129,7 +2129,7 @@ module.exports = __toCommonJS(point_cloud_tile_source_loader_exports2);
2129
2129
  init_point_cloud_tile_source();
2130
2130
 
2131
2131
  // dist/point-cloud-tile-source-loader-types.js
2132
- var VERSION3 = true ? "5.0.0-beta.4" : "latest";
2132
+ var VERSION3 = true ? "5.0.0-beta.5" : "latest";
2133
2133
  async function preloadPointCloudTileSource2() {
2134
2134
  const { PointCloudTileSourceLoaderWithParser: PointCloudTileSourceLoaderWithParser3 } = await Promise.resolve().then(() => (init_point_cloud_tile_source_loader(), point_cloud_tile_source_loader_exports));
2135
2135
  return PointCloudTileSourceLoaderWithParser3;
@@ -48969,7 +48969,29 @@ return true;`);
48969
48969
  }
48970
48970
  });
48971
48971
 
48972
- // ../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts
48972
+ // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js
48973
+ function getArrowVariadicBuffers(data) {
48974
+ return data.variadicBuffers ?? [];
48975
+ }
48976
+ function createArrowData(type, offset, length, nullCount, buffers, children2, dictionary, variadicBuffers) {
48977
+ return Reflect.construct(Data, [
48978
+ type,
48979
+ offset,
48980
+ length,
48981
+ nullCount,
48982
+ buffers,
48983
+ children2,
48984
+ dictionary,
48985
+ variadicBuffers
48986
+ ]);
48987
+ }
48988
+ var init_arrow_data = __esm({
48989
+ "../../node_modules/@math.gl/arrow/dist/arrow/arrow-data.js"() {
48990
+ init_Arrow_dom();
48991
+ }
48992
+ });
48993
+
48994
+ // ../../node_modules/@math.gl/arrow/dist/arrow/split-arrow-buffers.js
48973
48995
  function splitArrowBuffers(input2, options = {}) {
48974
48996
  const context = { ...options, copies: /* @__PURE__ */ new WeakMap() };
48975
48997
  if (isArrowTable2(input2)) {
@@ -48992,17 +49014,12 @@ return true;`);
48992
49014
  function isArrowVector2(input2) {
48993
49015
  return "data" in input2 && Array.isArray(input2.data);
48994
49016
  }
48995
- function splitArrowTableBuffersInternal(table, options) {
48996
- const recordBatches = table.batches.map(
48997
- (recordBatch) => splitArrowRecordBatchBuffers(recordBatch, options)
48998
- );
48999
- return new Table(table.schema, recordBatches);
49017
+ function splitArrowTableBuffersInternal(arrowTable, options) {
49018
+ const recordBatches = arrowTable.batches.map((recordBatch) => splitArrowRecordBatchBuffers(recordBatch, options));
49019
+ return new Table(arrowTable.schema, recordBatches);
49000
49020
  }
49001
49021
  function splitArrowRecordBatchBuffers(recordBatch, options) {
49002
- return new RecordBatch3(
49003
- recordBatch.schema,
49004
- splitArrowDataBuffers(recordBatch.data, options)
49005
- );
49022
+ return new RecordBatch3(recordBatch.schema, splitArrowDataBuffers(recordBatch.data, options));
49006
49023
  }
49007
49024
  function splitArrowDataBuffers(data, options) {
49008
49025
  const children2 = data.children.map((childData) => splitArrowDataBuffers(childData, options));
@@ -49013,7 +49030,7 @@ return true;`);
49013
49030
  [BufferType.VALIDITY]: splitArrowBuffer(data.buffers[BufferType.VALIDITY], options),
49014
49031
  [BufferType.TYPE]: splitArrowBuffer(data.buffers[BufferType.TYPE], options)
49015
49032
  };
49016
- return new Data(
49033
+ return createArrowData(
49017
49034
  data.type,
49018
49035
  data.offset,
49019
49036
  data.length,
@@ -49021,7 +49038,8 @@ return true;`);
49021
49038
  data._nullCount,
49022
49039
  buffers,
49023
49040
  children2,
49024
- dictionary
49041
+ dictionary,
49042
+ getArrowVariadicBuffers(data).map((buffer) => splitArrowBuffer(buffer, options))
49025
49043
  );
49026
49044
  }
49027
49045
  function splitArrowVectorBuffers(vector, options) {
@@ -49039,7 +49057,7 @@ return true;`);
49039
49057
  }
49040
49058
  let copy = options.copies.get(array3);
49041
49059
  if (!copy) {
49042
- copy = array3.slice();
49060
+ copy = array3 instanceof Uint8Array ? new Uint8Array(array3) : array3.slice();
49043
49061
  options.copies.set(array3, copy);
49044
49062
  }
49045
49063
  return copy;
@@ -49048,29 +49066,106 @@ return true;`);
49048
49066
  return ArrayBuffer.isView(value2) && !(value2 instanceof DataView);
49049
49067
  }
49050
49068
  var init_split_arrow_buffers = __esm({
49051
- "../core/src/schema-utils/lib/arrow/split-arrow-buffers.ts"() {
49052
- "use strict";
49069
+ "../../node_modules/@math.gl/arrow/dist/arrow/split-arrow-buffers.js"() {
49053
49070
  init_Arrow_dom();
49071
+ init_arrow_data();
49072
+ }
49073
+ });
49074
+
49075
+ // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js
49076
+ var init_indexed_arrow_vector = __esm({
49077
+ "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-vector.js"() {
49078
+ }
49079
+ });
49080
+
49081
+ // ../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js
49082
+ var init_indexed_arrow_table = __esm({
49083
+ "../../node_modules/@math.gl/arrow/dist/arrow/indexed-arrow-table.js"() {
49084
+ }
49085
+ });
49086
+
49087
+ // ../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js
49088
+ var init_mapped_arrow_table = __esm({
49089
+ "../../node_modules/@math.gl/arrow/dist/arrow/mapped-arrow-table.js"() {
49090
+ }
49091
+ });
49092
+
49093
+ // ../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js
49094
+ var init_rename_arrow_columns = __esm({
49095
+ "../../node_modules/@math.gl/arrow/dist/arrow/rename-arrow-columns.js"() {
49054
49096
  }
49055
49097
  });
49056
49098
 
49057
- // ../core/src/schema-utils/lib/arrow/arrow-table-transport.ts
49058
- function dehydrateArrowTable(table, options) {
49059
- const splitTable = splitArrowBuffers(table, options);
49099
+ // ../../node_modules/@math.gl/arrow/dist/arrow/arrow-table-transport.js
49100
+ function dehydrateArrowTable(arrowTable, options) {
49101
+ const splitTable = splitArrowBuffers(arrowTable, options);
49060
49102
  return {
49061
- shape: "arrow-table",
49062
49103
  transport: "arrow-js",
49063
- schema: serializeArrowSchema(splitTable.schema),
49064
- batches: splitTable.batches.map((recordBatch) => dehydrateArrowRecordBatch(recordBatch))
49104
+ version: 1,
49105
+ schema: tableToIPC(new Table(splitTable.schema, [])),
49106
+ metadataVersion: splitTable.schema.metadataVersion,
49107
+ batches: splitTable.batches.map((batch) => dehydrateArrowData(batch.data))
49065
49108
  };
49066
49109
  }
49067
49110
  function hydrateArrowTable(table) {
49068
- const schema = deserializeArrowSchema(table.schema);
49069
- const recordBatches = table.batches.map(
49070
- (recordBatch) => new RecordBatch3(schema, hydrateArrowData(recordBatch.data))
49071
- );
49072
- return new Table(schema, recordBatches);
49111
+ if (table.transport !== "arrow-js" || table.version !== 1) {
49112
+ throw new Error("Unsupported Arrow column-buffer transport protocol.");
49113
+ }
49114
+ const decodedSchema = tableFromIPC(table.schema).schema;
49115
+ const schema = new Schema2(decodedSchema.fields, decodedSchema.metadata, decodedSchema.dictionaries, table.metadataVersion);
49116
+ const type = new Struct(schema.fields);
49117
+ const batches = table.batches.map((data) => new RecordBatch3(schema, hydrateArrowData(data, type)));
49118
+ return new Table(schema, batches);
49073
49119
  }
49120
+ function dehydrateArrowData(data) {
49121
+ return {
49122
+ offset: data.offset,
49123
+ length: data.length,
49124
+ nullCount: data.nullCount,
49125
+ buffers: {
49126
+ [BufferType.OFFSET]: data.buffers[BufferType.OFFSET],
49127
+ [BufferType.DATA]: data.buffers[BufferType.DATA],
49128
+ [BufferType.VALIDITY]: data.buffers[BufferType.VALIDITY],
49129
+ [BufferType.TYPE]: data.buffers[BufferType.TYPE]
49130
+ },
49131
+ children: data.children.map((child2) => dehydrateArrowData(child2)),
49132
+ variadicBuffers: getArrowVariadicBuffers(data),
49133
+ dictionary: data.dictionary?.data.map((chunk) => dehydrateArrowData(chunk))
49134
+ };
49135
+ }
49136
+ function hydrateArrowData(data, type) {
49137
+ const children2 = data.children.map((child2, index) => hydrateArrowData(child2, type.children[index].type));
49138
+ const dictionary = data.dictionary && DataType.isDictionary(type) ? new Vector(data.dictionary.map((chunk) => hydrateArrowData(chunk, type.dictionary))) : void 0;
49139
+ return createArrowData(type, data.offset, data.length, data.nullCount, data.buffers, children2, dictionary, data.variadicBuffers);
49140
+ }
49141
+ var init_arrow_table_transport = __esm({
49142
+ "../../node_modules/@math.gl/arrow/dist/arrow/arrow-table-transport.js"() {
49143
+ init_Arrow_dom();
49144
+ init_arrow_data();
49145
+ init_split_arrow_buffers();
49146
+ }
49147
+ });
49148
+
49149
+ // ../../node_modules/@math.gl/arrow/dist/arrow/index.js
49150
+ var init_arrow = __esm({
49151
+ "../../node_modules/@math.gl/arrow/dist/arrow/index.js"() {
49152
+ init_indexed_arrow_table();
49153
+ init_indexed_arrow_vector();
49154
+ init_mapped_arrow_table();
49155
+ init_rename_arrow_columns();
49156
+ init_split_arrow_buffers();
49157
+ init_arrow_table_transport();
49158
+ }
49159
+ });
49160
+
49161
+ // ../../node_modules/@math.gl/arrow/dist/index.js
49162
+ var init_dist2 = __esm({
49163
+ "../../node_modules/@math.gl/arrow/dist/index.js"() {
49164
+ init_arrow();
49165
+ }
49166
+ });
49167
+
49168
+ // ../core/src/arrow-worker-transport.ts
49074
49169
  function serializeArrowWorkerTable(result) {
49075
49170
  if (!isArrowTableWrapper(result)) {
49076
49171
  throw new Error("Workers require Arrow table output");
@@ -49099,60 +49194,10 @@ return true;`);
49099
49194
  table && table.shape === "arrow-table" && table.data && table.data.transport === "arrow-js" && Array.isArray(table.data.batches)
49100
49195
  );
49101
49196
  }
49102
- function dehydrateArrowRecordBatch(recordBatch) {
49103
- return { data: dehydrateArrowData(recordBatch.data) };
49104
- }
49105
- function dehydrateArrowData(data) {
49106
- return {
49107
- type: serializeArrowType(data.type),
49108
- offset: data.offset,
49109
- length: data.length,
49110
- // @ts-expect-error _nullCount is protected. Preserve the Arrow lazy null-count state.
49111
- nullCount: data._nullCount,
49112
- buffers: {
49113
- [BufferType.OFFSET]: data.buffers[BufferType.OFFSET],
49114
- [BufferType.DATA]: data.buffers[BufferType.DATA],
49115
- [BufferType.VALIDITY]: data.buffers[BufferType.VALIDITY],
49116
- [BufferType.TYPE]: data.buffers[BufferType.TYPE]
49117
- },
49118
- children: data.children.map((childData) => dehydrateArrowData(childData)),
49119
- dictionary: data.dictionary ? dehydrateArrowVector(data.dictionary) : void 0
49120
- };
49121
- }
49122
- function dehydrateArrowVector(vector) {
49123
- return { data: vector.data.map((data) => dehydrateArrowData(data)) };
49124
- }
49125
- function hydrateArrowData(data) {
49126
- const children2 = data.children.map((childData) => hydrateArrowData(childData));
49127
- const dictionary = data.dictionary ? hydrateArrowVector(data.dictionary) : void 0;
49128
- return new Data(
49129
- deserializeArrowType(data.type),
49130
- data.offset,
49131
- data.length,
49132
- data.nullCount,
49133
- data.buffers,
49134
- children2,
49135
- dictionary
49136
- );
49137
- }
49138
- function hydrateArrowVector(vector) {
49139
- return new Vector(vector.data.map((data) => hydrateArrowData(data)));
49140
- }
49141
- var init_arrow_table_transport = __esm({
49142
- "../core/src/schema-utils/lib/arrow/arrow-table-transport.ts"() {
49143
- "use strict";
49144
- init_Arrow_dom();
49145
- init_convert_arrow_schema();
49146
- init_split_arrow_buffers();
49147
- }
49148
- });
49149
-
49150
- // ../core/src/schema-utils/arrow-transport.ts
49151
- var init_arrow_transport = __esm({
49152
- "../core/src/schema-utils/arrow-transport.ts"() {
49197
+ var init_arrow_worker_transport = __esm({
49198
+ "../core/src/arrow-worker-transport.ts"() {
49153
49199
  "use strict";
49154
- init_arrow_table_transport();
49155
- init_split_arrow_buffers();
49200
+ init_dist2();
49156
49201
  }
49157
49202
  });
49158
49203
 
@@ -51999,7 +52044,7 @@ return true;`);
51999
52044
  "use strict";
52000
52045
  init_schema_utils();
52001
52046
  init_las_loader_shared();
52002
- init_arrow_transport();
52047
+ init_arrow_worker_transport();
52003
52048
  init_parse_las();
52004
52049
  LASLoaderWithParser = {
52005
52050
  ...LAS_LOADER_METADATA,
@@ -53328,6 +53373,55 @@ return true;`);
53328
53373
  };
53329
53374
  }
53330
53375
 
53376
+ // ../../node_modules/@math.gl/geospatial/dist/projection/experimental/transform-description.js
53377
+ function describeCRS(crs) {
53378
+ const ellipsoid = Object.freeze({ ...crs.ellipsoid });
53379
+ return Object.freeze({
53380
+ kind: crs.kind,
53381
+ projection: crs.projection,
53382
+ parameters: Object.freeze(Object.fromEntries(Object.entries(crs.parameters).map(([name, value2]) => [name, value2 ?? null]))),
53383
+ ellipsoid,
53384
+ datum: Object.freeze({
53385
+ ellipsoid: Object.freeze({ ...crs.datum.ellipsoid }),
53386
+ towgs84: crs.datum.towgs84 && Object.freeze([...crs.datum.towgs84]),
53387
+ grids: crs.datum.grids && Object.freeze(crs.datum.grids.map((reference) => Object.freeze({
53388
+ name: reference.name,
53389
+ optional: reference.optional,
53390
+ loaded: Boolean(reference.grid)
53391
+ })))
53392
+ }),
53393
+ angularUnit: crs.angularUnit,
53394
+ toMeter: crs.toMeter,
53395
+ verticalUnit: crs.verticalUnit,
53396
+ primeMeridian: crs.primeMeridian,
53397
+ axis: crs.axis,
53398
+ storedAxis: crs.storedAxis,
53399
+ longitudeWrap: crs.longitudeWrap,
53400
+ areaOfUse: crs.areaOfUse && Object.freeze([...crs.areaOfUse]),
53401
+ lossy: crs.lossy,
53402
+ algorithm: crs.algorithm && Object.freeze({ ...crs.algorithm })
53403
+ });
53404
+ }
53405
+ function describeTransform(source, target, forward33, inverse33) {
53406
+ const opaqueReasons = [];
53407
+ if (!source.algorithm)
53408
+ opaqueReasons.push("source-algorithm");
53409
+ if (!target.algorithm)
53410
+ opaqueReasons.push("target-algorithm");
53411
+ if (source.datum.grids || target.datum.grids || source.parameters["geoidgrids"] || target.parameters["geoidgrids"])
53412
+ opaqueReasons.push("grid-resource");
53413
+ return Object.freeze({
53414
+ version: 1,
53415
+ source,
53416
+ target,
53417
+ forward: forward33,
53418
+ inverse: inverse33,
53419
+ lossy: source.lossy || target.lossy,
53420
+ complete: opaqueReasons.length === 0,
53421
+ opaqueReasons: Object.freeze(opaqueReasons)
53422
+ });
53423
+ }
53424
+
53331
53425
  // ../../node_modules/@math.gl/geospatial/dist/projection/experimental/typescript-projection.js
53332
53426
  var ProjectionTransform = class _ProjectionTransform {
53333
53427
  /** Resolve required descriptors once, then return an ordinary synchronous instance. */
@@ -53342,6 +53436,10 @@ return true;`);
53342
53436
  getTargetRenderingProfile(coverage) {
53343
53437
  return this.targetRenderingProfile && resolveRenderingProfile(this.targetRenderingProfile, coverage);
53344
53438
  }
53439
+ /** Deferred transforms expose metadata only once their implementations are prepared. */
53440
+ get description() {
53441
+ return this.deferred?.implementation?.description ?? this.resolvedDescription;
53442
+ }
53345
53443
  constructor(options = {}) {
53346
53444
  this.coordinateScratch = new ProjectionScratch();
53347
53445
  this.targetLongitudeOrigin = 0;
@@ -53367,6 +53465,7 @@ return true;`);
53367
53465
  unsupportedStage("Horizontal extraction cannot be combined with vertical grids");
53368
53466
  this.forwardTransform = compileTransform(from, to, Boolean(options.enforceAxis));
53369
53467
  this.inverseTransform = compileTransform(to, from, Boolean(options.enforceAxis));
53468
+ this.resolvedDescription = describeTransform(describeCRS(from), describeCRS(to), this.forwardTransform.description, this.inverseTransform.description);
53370
53469
  }
53371
53470
  this.project = this.project.bind(this);
53372
53471
  this.unproject = this.unproject.bind(this);
@@ -53544,7 +53643,8 @@ return true;`);
53544
53643
  const verticalGrid = compileVerticalGrid(crs.parameters["geoidgrids"], options.verticalGrids);
53545
53644
  if (verticalGrid && (crs.kind === "geocentric" || crs.kind === "identity" || crs.lossy))
53546
53645
  unsupportedStage("Vertical grids require a non-lossy geographic or projected CRS");
53547
- return { ...crs, datum, implementation, verticalGrid };
53646
+ const algorithm = plugin ? plugin.semantics : { id: "@math.gl/geospatial/" + crs.kind, version: 1 };
53647
+ return { ...crs, datum, implementation, verticalGrid, algorithm };
53548
53648
  }
53549
53649
  function finite(point) {
53550
53650
  return Number.isFinite(point.x) && Number.isFinite(point.y) && Number.isFinite(point.z);
@@ -53587,9 +53687,51 @@ return true;`);
53587
53687
  if (from.kind === "projected" && to.kind === "geographic")
53588
53688
  flat = from.implementation?.createInverseFlat?.(context);
53589
53689
  }
53690
+ const requiresInputZ = Boolean(from.verticalGrid || to.verticalGrid) || from.kind === "geocentric" || /[ud]/.test(fromAxis.slice(0, 2)) || /[ud]/.test(toAxis.slice(0, 2));
53691
+ const stages = [];
53692
+ if (inputAxis)
53693
+ stages.push("input-axis");
53694
+ if (horizontalOnly)
53695
+ stages.push("discard-height");
53696
+ if (inputScale !== 1)
53697
+ stages.push("input-scale");
53698
+ if (source)
53699
+ stages.push("source-inverse");
53700
+ if (inputVerticalScale !== 1)
53701
+ stages.push("input-height-scale");
53702
+ stages.push("geographic-domain-check");
53703
+ if (fromPrime)
53704
+ stages.push("source-prime-meridian");
53705
+ if (from.verticalGrid)
53706
+ stages.push("source-vertical-grid");
53707
+ if (datum)
53708
+ stages.push("datum");
53709
+ if (to.verticalGrid)
53710
+ stages.push("target-vertical-grid");
53711
+ if (toPrime)
53712
+ stages.push("target-prime-meridian");
53713
+ if (longitudeWrap !== void 0)
53714
+ stages.push("longitude-wrap");
53715
+ if (target)
53716
+ stages.push("target-forward");
53717
+ if (outputScale !== 1)
53718
+ stages.push("output-scale");
53719
+ if (outputVerticalScale !== 1)
53720
+ stages.push("output-height-scale");
53721
+ if (horizontalOnly)
53722
+ stages.push("restore-height");
53723
+ if (outputAxis)
53724
+ stages.push("output-axis");
53590
53725
  return {
53726
+ description: Object.freeze({
53727
+ inputAxis: fromAxis,
53728
+ outputAxis: toAxis,
53729
+ requiresInputZ,
53730
+ geocentricOutput: to.kind === "geocentric",
53731
+ stages: Object.freeze(stages)
53732
+ }),
53591
53733
  flat,
53592
- requiresInputZ: Boolean(from.verticalGrid || to.verticalGrid) || from.kind === "geocentric" || /[ud]/.test(fromAxis.slice(0, 2)) || /[ud]/.test(toAxis.slice(0, 2)),
53734
+ requiresInputZ,
53593
53735
  geocentricOutput: to.kind === "geocentric",
53594
53736
  run(point) {
53595
53737
  if (!finite(point))
@@ -54039,6 +54181,7 @@ return true;`);
54039
54181
  init_rendering_bounds();
54040
54182
  var mercator = {
54041
54183
  name: "merc",
54184
+ semantics: { id: "@math.gl/geospatial/merc", version: 1 },
54042
54185
  aliases: [
54043
54186
  "Mercator",
54044
54187
  "Popular Visualisation Pseudo Mercator",
@@ -54127,6 +54270,7 @@ return true;`);
54127
54270
  init_rendering_bounds();
54128
54271
  var equidistantCylindrical = {
54129
54272
  name: "eqc",
54273
+ semantics: { id: "@math.gl/geospatial/eqc", version: 1 },
54130
54274
  aliases: ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical"],
54131
54275
  parameters: ["lon_0", "lat_0", "lat_ts", "x_0", "y_0"],
54132
54276
  create({ semiMajorAxis: a, parameters, primeMeridian: primeMeridian2 = 0 }) {