@math.gl/geospatial 5.0.0-rc.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/coordinates.cjs +2523 -0
- package/dist/coordinates.cjs.map +6 -0
- package/dist/coordinates.d.ts +4 -0
- package/dist/coordinates.d.ts.map +1 -1
- package/dist/coordinates.js +2 -0
- package/dist/coordinates.js.map +1 -1
- package/dist/entries/ellipsoid.cjs +1209 -0
- package/dist/entries/ellipsoid.cjs.map +6 -0
- package/dist/entries/ellipsoid.d.ts +3 -19
- package/dist/entries/ellipsoid.d.ts.map +1 -1
- package/dist/entries/ellipsoid.js +1 -9
- package/dist/entries/ellipsoid.js.map +1 -1
- package/dist/expressions.cjs +726 -0
- package/dist/expressions.cjs.map +6 -0
- package/dist/geodesics.cjs +3195 -0
- package/dist/geodesics.cjs.map +6 -0
- package/dist/geodesics.d.ts +18 -0
- package/dist/geodesics.d.ts.map +1 -0
- package/dist/geodesics.js +13 -0
- package/dist/geodesics.js.map +1 -0
- package/dist/geographic-atlas/sampling.d.ts +1 -1
- package/dist/geographic-atlas/sampling.d.ts.map +1 -1
- package/dist/geographic-atlas/sampling.js +1 -1
- package/dist/geographic-atlas/sampling.js.map +1 -1
- package/dist/geographic-cuts.cjs +4160 -0
- package/dist/geographic-cuts.cjs.map +6 -0
- package/dist/geographic-cuts.d.ts +2 -0
- package/dist/geographic-cuts.d.ts.map +1 -1
- package/dist/geographic-cuts.js +1 -0
- package/dist/geographic-cuts.js.map +1 -1
- package/dist/geographic-seams/subdivide-cut.d.ts +1 -1
- package/dist/geographic-seams/subdivide-cut.d.ts.map +1 -1
- package/dist/geographic-seams/subdivide-cut.js +1 -1
- package/dist/geographic-seams/subdivide-cut.js.map +1 -1
- package/dist/geographic-seams/types.shared.cjs +32 -0
- package/dist/geographic-seams/types.shared.cjs.map +6 -0
- package/dist/globe.cjs +4223 -0
- package/dist/globe.cjs.map +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/line-simplification.d.ts +7 -0
- package/dist/line-simplification.d.ts.map +1 -1
- package/dist/line-simplification.js +4 -13
- package/dist/line-simplification.js.map +1 -1
- package/dist/linear-referencing.d.ts +13 -1
- package/dist/linear-referencing.d.ts.map +1 -1
- package/dist/linear-referencing.js +29 -9
- package/dist/linear-referencing.js.map +1 -1
- package/dist/maps/map-transition.shared.cjs +364 -0
- package/dist/maps/map-transition.shared.cjs.map +6 -0
- package/dist/maps/myriahedral/unfold.d.ts +1 -1
- package/dist/maps/myriahedral/unfold.d.ts.map +1 -1
- package/dist/maps/myriahedral/unfold.js +1 -1
- package/dist/maps/myriahedral/unfold.js.map +1 -1
- package/dist/maps/presets.cjs +2 -2
- package/dist/maps/presets.cjs.map +2 -2
- package/dist/maps/transitions.cjs +3 -342
- package/dist/maps/transitions.cjs.map +3 -3
- package/dist/maps.cjs +15 -319
- package/dist/maps.cjs.map +3 -3
- package/dist/measure-referencing.d.ts +16 -0
- package/dist/measure-referencing.d.ts.map +1 -0
- package/dist/measure-referencing.js +143 -0
- package/dist/measure-referencing.js.map +1 -0
- package/dist/polygon-simplification.d.ts +6 -0
- package/dist/polygon-simplification.d.ts.map +1 -0
- package/dist/polygon-simplification.js +141 -0
- package/dist/polygon-simplification.js.map +1 -0
- package/dist/projection/experimental/core.cjs +63 -1317
- package/dist/projection/experimental/core.cjs.map +3 -3
- package/dist/projection/experimental/core.d.ts +1 -1
- package/dist/projection/experimental/core.d.ts.map +1 -1
- package/dist/projection/experimental/crs/projjson.cjs +26 -45
- package/dist/projection/experimental/crs/projjson.cjs.map +3 -3
- package/dist/projection/experimental/crs/types.shared.cjs +44 -0
- package/dist/projection/experimental/crs/types.shared.cjs.map +6 -0
- package/dist/projection/experimental/crs/wkt.cjs +36 -52
- package/dist/projection/experimental/crs/wkt.cjs.map +3 -3
- package/dist/projection/experimental/entries/projections/ob_tran.cjs +9 -23
- package/dist/projection/experimental/entries/projections/ob_tran.cjs.map +3 -3
- package/dist/projection/experimental/lazy-projections/aea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/aea.js +1 -1
- package/dist/projection/experimental/lazy-projections/aeqd.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/aeqd.js +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.js +1 -1
- package/dist/projection/experimental/lazy-projections/cass.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/cass.js +1 -1
- package/dist/projection/experimental/lazy-projections/cea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/cea.js +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.js +1 -1
- package/dist/projection/experimental/lazy-projections/eqc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eqc.js +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.js +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.js +1 -1
- package/dist/projection/experimental/lazy-projections/equi.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/equi.js +1 -1
- package/dist/projection/experimental/lazy-projections/etmerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/etmerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.js +1 -1
- package/dist/projection/experimental/lazy-projections/geos.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/geos.js +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.js +1 -1
- package/dist/projection/experimental/lazy-projections/gstmerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/gstmerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/index.cjs +60 -903
- package/dist/projection/experimental/lazy-projections/index.cjs.map +3 -3
- package/dist/projection/experimental/lazy-projections/krovak.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.js +1 -1
- package/dist/projection/experimental/lazy-projections/laea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/laea.js +1 -1
- package/dist/projection/experimental/lazy-projections/lcc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/lcc.js +1 -1
- package/dist/projection/experimental/lazy-projections/merc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/merc.js +1 -1
- package/dist/projection/experimental/lazy-projections/mill.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/mill.js +1 -1
- package/dist/projection/experimental/lazy-projections/moll.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/moll.js +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.js +1 -1
- package/dist/projection/experimental/lazy-projections/ob_tran.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/ob_tran.js +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.js +1 -1
- package/dist/projection/experimental/lazy-projections/poly.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/poly.js +1 -1
- package/dist/projection/experimental/lazy-projections/qsc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/qsc.js +1 -1
- package/dist/projection/experimental/lazy-projections/robin.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/robin.js +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.js +1 -1
- package/dist/projection/experimental/lazy-projections/somerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/somerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/stere.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/stere.js +1 -1
- package/dist/projection/experimental/lazy-projections/sterea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/sterea.js +1 -1
- package/dist/projection/experimental/lazy-projections/tmerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/tmerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.js +1 -1
- package/dist/projection/experimental/lazy-projections/utm.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/utm.js +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.js +1 -1
- package/dist/projection/experimental/projection-engine.shared.cjs +1184 -0
- package/dist/projection/experimental/projection-engine.shared.cjs.map +6 -0
- package/dist/projection/experimental/typescript-projection.shared.cjs +1703 -0
- package/dist/projection/experimental/typescript-projection.shared.cjs.map +6 -0
- package/dist/projection/index.cjs +622 -1535
- package/dist/projection/index.cjs.map +3 -3
- package/dist/projection/pipeline.cjs +44 -58
- package/dist/projection/pipeline.cjs.map +3 -3
- package/dist/projection/transform-analysis.cjs +20 -936
- package/dist/projection/transform-analysis.cjs.map +3 -3
- package/dist/spatial-box-clipping.d.ts +9 -0
- package/dist/spatial-box-clipping.d.ts.map +1 -0
- package/dist/spatial-box-clipping.js +123 -0
- package/dist/spatial-box-clipping.js.map +1 -0
- package/dist/spatial-dwithin.d.ts +19 -0
- package/dist/spatial-dwithin.d.ts.map +1 -0
- package/dist/spatial-dwithin.js +107 -0
- package/dist/spatial-dwithin.js.map +1 -0
- package/dist/spatial-hulls.d.ts +6 -0
- package/dist/spatial-hulls.d.ts.map +1 -0
- package/dist/spatial-hulls.js +176 -0
- package/dist/spatial-hulls.js.map +1 -0
- package/dist/spatial-line-intersection-result.d.ts +4 -0
- package/dist/spatial-line-intersection-result.d.ts.map +1 -0
- package/dist/spatial-line-intersection-result.js +79 -0
- package/dist/spatial-line-intersection-result.js.map +1 -0
- package/dist/spatial-line-polygon-intersection.d.ts +4 -0
- package/dist/spatial-line-polygon-intersection.d.ts.map +1 -0
- package/dist/spatial-line-polygon-intersection.js +130 -0
- package/dist/spatial-line-polygon-intersection.js.map +1 -0
- package/dist/spatial-planar-intersects.d.ts +11 -0
- package/dist/spatial-planar-intersects.d.ts.map +1 -1
- package/dist/spatial-planar-intersects.js +20 -12
- package/dist/spatial-planar-intersects.js.map +1 -1
- package/dist/spatial-planar.d.ts +9 -0
- package/dist/spatial-planar.d.ts.map +1 -1
- package/dist/spatial-planar.js +13 -1
- package/dist/spatial-planar.js.map +1 -1
- package/dist/spatial-polygon-overlay.d.ts +5 -0
- package/dist/spatial-polygon-overlay.d.ts.map +1 -0
- package/dist/spatial-polygon-overlay.js +23 -0
- package/dist/spatial-polygon-overlay.js.map +1 -0
- package/dist/spatial-sql.d.ts +13 -2
- package/dist/spatial-sql.d.ts.map +1 -1
- package/dist/spatial-sql.js +30 -12
- package/dist/spatial-sql.js.map +1 -1
- package/dist/spatial-subdivision.d.ts +9 -0
- package/dist/spatial-subdivision.d.ts.map +1 -0
- package/dist/spatial-subdivision.js +61 -0
- package/dist/spatial-subdivision.js.map +1 -0
- package/dist/spatial-touches.d.ts +13 -0
- package/dist/spatial-touches.d.ts.map +1 -0
- package/dist/spatial-touches.js +192 -0
- package/dist/spatial-touches.js.map +1 -0
- package/dist/st-functions.cjs +2411 -112
- package/dist/st-functions.cjs.map +3 -3
- package/dist/st-functions.d.ts +67 -2
- package/dist/st-functions.d.ts.map +1 -1
- package/dist/st-functions.js +195 -12
- package/dist/st-functions.js.map +1 -1
- package/dist/st-geodesic-functions.d.ts +33 -0
- package/dist/st-geodesic-functions.d.ts.map +1 -0
- package/dist/st-geodesic-functions.js +84 -0
- package/dist/st-geodesic-functions.js.map +1 -0
- package/dist/st-hull-functions.cjs +386 -0
- package/dist/st-hull-functions.cjs.map +6 -0
- package/dist/st-hull-functions.d.ts +17 -0
- package/dist/st-hull-functions.d.ts.map +1 -0
- package/dist/st-hull-functions.js +14 -0
- package/dist/st-hull-functions.js.map +1 -0
- package/dist/st-overlay-functions.cjs +621 -0
- package/dist/st-overlay-functions.cjs.map +6 -0
- package/dist/st-overlay-functions.d.ts +36 -0
- package/dist/st-overlay-functions.d.ts.map +1 -0
- package/dist/st-overlay-functions.js +183 -0
- package/dist/st-overlay-functions.js.map +1 -0
- package/dist/st-viewport-functions.cjs +481 -0
- package/dist/st-viewport-functions.cjs.map +6 -0
- package/dist/st-viewport-functions.d.ts +13 -0
- package/dist/st-viewport-functions.d.ts.map +1 -0
- package/dist/st-viewport-functions.js +81 -0
- package/dist/st-viewport-functions.js.map +1 -0
- package/dist/subdivide-geodesic-polyline.d.ts +1 -1
- package/dist/subdivide-geodesic-polyline.d.ts.map +1 -1
- package/dist/subdivide-geodesic-polyline.js +1 -1
- package/dist/subdivide-geodesic-polyline.js.map +1 -1
- package/dist/subdivide-globe-mesh.d.ts +1 -1
- package/dist/subdivide-globe-mesh.d.ts.map +1 -1
- package/dist/subdivide-globe-mesh.js +1 -1
- package/dist/subdivide-globe-mesh.js.map +1 -1
- package/dist/subdivide-rhumb-polyline.d.ts +1 -1
- package/dist/subdivide-rhumb-polyline.d.ts.map +1 -1
- package/dist/subdivide-rhumb-polyline.js +1 -1
- package/dist/subdivide-rhumb-polyline.js.map +1 -1
- package/dist/tasks/index.cjs +808 -2993
- package/dist/tasks/index.cjs.map +3 -3
- package/dist/terrain/geometry.d.ts +1 -1
- package/dist/terrain/geometry.d.ts.map +1 -1
- package/dist/terrain/geometry.js +1 -1
- package/dist/terrain/geometry.js.map +1 -1
- package/dist/terrain/index.cjs +95 -22
- package/dist/terrain/index.cjs.map +3 -3
- package/dist/terrain/index.d.ts +1 -0
- package/dist/terrain/index.d.ts.map +1 -1
- package/dist/terrain/index.js +1 -0
- package/dist/terrain/index.js.map +1 -1
- package/dist/terrain/regional-watersheds.d.ts +44 -0
- package/dist/terrain/regional-watersheds.d.ts.map +1 -0
- package/dist/terrain/regional-watersheds.js +108 -0
- package/dist/terrain/regional-watersheds.js.map +1 -0
- package/dist/terrain/tile-cutout-update.d.ts.map +1 -1
- package/dist/terrain/tile-cutout-update.js +28 -22
- package/dist/terrain/tile-cutout-update.js.map +1 -1
- package/dist/tiles.cjs +354 -0
- package/dist/tiles.cjs.map +6 -0
- package/dist/turf-functions.cjs +16 -9
- package/dist/turf-functions.cjs.map +1 -1
- package/package.json +154 -117
- package/src/coordinates.ts +5 -0
- package/src/entries/ellipsoid.ts +7 -32
- package/src/geodesics.ts +40 -0
- package/src/geographic-atlas/sampling.ts +1 -1
- package/src/geographic-cuts.ts +21 -0
- package/src/geographic-seams/subdivide-cut.ts +1 -1
- package/src/index.ts +2 -0
- package/src/line-simplification.ts +4 -16
- package/src/linear-referencing.ts +44 -16
- package/src/maps/myriahedral/unfold.ts +1 -1
- package/src/measure-referencing.ts +165 -0
- package/src/polygon-simplification.ts +185 -0
- package/src/projection/experimental/core.ts +1 -1
- package/src/projection/experimental/lazy-projections/aea.ts +1 -1
- package/src/projection/experimental/lazy-projections/aeqd.ts +1 -1
- package/src/projection/experimental/lazy-projections/bonne.ts +1 -1
- package/src/projection/experimental/lazy-projections/cass.ts +1 -1
- package/src/projection/experimental/lazy-projections/cea.ts +1 -1
- package/src/projection/experimental/lazy-projections/eck6.ts +1 -1
- package/src/projection/experimental/lazy-projections/eqc.ts +1 -1
- package/src/projection/experimental/lazy-projections/eqdc.ts +1 -1
- package/src/projection/experimental/lazy-projections/eqearth.ts +1 -1
- package/src/projection/experimental/lazy-projections/equi.ts +1 -1
- package/src/projection/experimental/lazy-projections/etmerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/geocent.ts +1 -1
- package/src/projection/experimental/lazy-projections/geos.ts +1 -1
- package/src/projection/experimental/lazy-projections/gnom.ts +1 -1
- package/src/projection/experimental/lazy-projections/gstmerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/krovak.ts +1 -1
- package/src/projection/experimental/lazy-projections/laea.ts +1 -1
- package/src/projection/experimental/lazy-projections/lcc.ts +1 -1
- package/src/projection/experimental/lazy-projections/merc.ts +1 -1
- package/src/projection/experimental/lazy-projections/mill.ts +1 -1
- package/src/projection/experimental/lazy-projections/moll.ts +1 -1
- package/src/projection/experimental/lazy-projections/nzmg.ts +1 -1
- package/src/projection/experimental/lazy-projections/ob_tran.ts +1 -1
- package/src/projection/experimental/lazy-projections/omerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/ortho.ts +1 -1
- package/src/projection/experimental/lazy-projections/poly.ts +1 -1
- package/src/projection/experimental/lazy-projections/qsc.ts +1 -1
- package/src/projection/experimental/lazy-projections/robin.ts +1 -1
- package/src/projection/experimental/lazy-projections/sinu.ts +1 -1
- package/src/projection/experimental/lazy-projections/somerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/stere.ts +1 -1
- package/src/projection/experimental/lazy-projections/sterea.ts +1 -1
- package/src/projection/experimental/lazy-projections/tmerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/tpers.ts +1 -1
- package/src/projection/experimental/lazy-projections/utm.ts +1 -1
- package/src/projection/experimental/lazy-projections/vandg.ts +1 -1
- package/src/spatial-box-clipping.ts +140 -0
- package/src/spatial-dwithin.ts +135 -0
- package/src/spatial-hulls.ts +203 -0
- package/src/spatial-line-intersection-result.ts +93 -0
- package/src/spatial-line-polygon-intersection.ts +147 -0
- package/src/spatial-planar-intersects.ts +21 -15
- package/src/spatial-planar.ts +20 -1
- package/src/spatial-polygon-overlay.ts +30 -0
- package/src/spatial-sql.ts +47 -12
- package/src/spatial-subdivision.ts +75 -0
- package/src/spatial-touches.ts +218 -0
- package/src/st-functions.ts +283 -15
- package/src/st-geodesic-functions.ts +121 -0
- package/src/st-hull-functions.ts +25 -0
- package/src/st-overlay-functions.ts +244 -0
- package/src/st-viewport-functions.ts +98 -0
- package/src/subdivide-geodesic-polyline.ts +2 -2
- package/src/subdivide-globe-mesh.ts +2 -2
- package/src/subdivide-rhumb-polyline.ts +2 -2
- package/src/terrain/geometry.ts +1 -1
- package/src/terrain/index.ts +7 -0
- package/src/terrain/regional-watersheds.ts +153 -0
- package/src/terrain/tile-cutout-update.ts +32 -26
- package/dist/index.cjs +0 -18674
- package/dist/index.cjs.map +0 -6
- package/dist/turf-expressions.cjs +0 -1997
- package/dist/turf-expressions.cjs.map +0 -6
- package/dist/turf-expressions.d.ts +0 -3
- package/dist/turf-expressions.d.ts.map +0 -1
- package/dist/turf-expressions.js +0 -7
- package/dist/turf-expressions.js.map +0 -1
- package/src/turf-expressions.ts +0 -7
|
@@ -0,0 +1,1184 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// dist/projection/experimental/projection-engine.js
|
|
20
|
+
var projection_engine_exports = {};
|
|
21
|
+
__export(projection_engine_exports, {
|
|
22
|
+
ConfigurableProjectionEngine: () => ConfigurableProjectionEngine,
|
|
23
|
+
createProjectionEngine: () => createProjectionEngine,
|
|
24
|
+
hasCRSOverrides: () => hasCRSOverrides
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(projection_engine_exports);
|
|
27
|
+
|
|
28
|
+
// dist/crs/spatial-reference.js
|
|
29
|
+
function inferCRSRepresentation(definition) {
|
|
30
|
+
if (typeof definition === "object") {
|
|
31
|
+
return "projjson";
|
|
32
|
+
}
|
|
33
|
+
const text = definition.trim();
|
|
34
|
+
if (/^[A-Z][A-Z0-9_]*\s*[\[(]/i.test(text)) {
|
|
35
|
+
return "wkt";
|
|
36
|
+
}
|
|
37
|
+
if (/(?:^|\s)\+?proj=/i.test(text)) {
|
|
38
|
+
return "proj-string";
|
|
39
|
+
}
|
|
40
|
+
if (/^[A-Z][A-Z0-9._-]*(?::[A-Z0-9._-]+)+$/i.test(text) || /^urn:ogc:def:crs:/i.test(text) || /^https?:\/\//i.test(text) || /^[A-Z][A-Z0-9._-]*$/i.test(text)) {
|
|
41
|
+
return "identifier";
|
|
42
|
+
}
|
|
43
|
+
return "opaque";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// dist/crs/proj-string.js
|
|
47
|
+
var PROJStringSyntaxError = class extends SyntaxError {
|
|
48
|
+
/** Create a PROJ string syntax error at a source location. */
|
|
49
|
+
constructor(message, source, offset) {
|
|
50
|
+
const location = getSourceLocation(source, offset);
|
|
51
|
+
super(`${message} at ${location.line}:${location.column}`);
|
|
52
|
+
this.name = "PROJStringSyntaxError";
|
|
53
|
+
this.offset = offset;
|
|
54
|
+
this.line = location.line;
|
|
55
|
+
this.column = location.column;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function parsePROJString(text) {
|
|
59
|
+
const tokens = tokenizePROJString(text);
|
|
60
|
+
if (tokens.length === 0) {
|
|
61
|
+
throw new PROJStringSyntaxError("PROJ string is empty", text, 0);
|
|
62
|
+
}
|
|
63
|
+
const parameters = tokens.map((token) => parseParameter(token.raw, token.offset, text));
|
|
64
|
+
return { type: "proj-string", parameters };
|
|
65
|
+
}
|
|
66
|
+
var DMS_VALUE = /^[+-]?\d+(?:\.\d*)?d(?:\d+(?:\.\d*)?'(?:\d+(?:\.\d*)?")?)?[NSEW]?$/i;
|
|
67
|
+
function parseParameter(rawToken, offset, source) {
|
|
68
|
+
const token = rawToken.startsWith("+") ? rawToken.slice(1) : rawToken;
|
|
69
|
+
if (!token) {
|
|
70
|
+
throw new PROJStringSyntaxError("Expected a parameter after '+'", source, offset);
|
|
71
|
+
}
|
|
72
|
+
const equalsIndex = token.indexOf("=");
|
|
73
|
+
const name = equalsIndex < 0 ? token : token.slice(0, equalsIndex);
|
|
74
|
+
if (!name || /[\s+=]/.test(name)) {
|
|
75
|
+
throw new PROJStringSyntaxError(`Invalid PROJ parameter name '${name}'`, source, offset);
|
|
76
|
+
}
|
|
77
|
+
if (equalsIndex < 0) {
|
|
78
|
+
return { type: "parameter", name };
|
|
79
|
+
}
|
|
80
|
+
const rawValue = token.slice(equalsIndex + 1);
|
|
81
|
+
const value = decodeParameterValue(rawValue, source, offset + equalsIndex + 1);
|
|
82
|
+
return { type: "parameter", name, value, rawValue };
|
|
83
|
+
}
|
|
84
|
+
function tokenizePROJString(source) {
|
|
85
|
+
const tokens = [];
|
|
86
|
+
let offset = 0;
|
|
87
|
+
while (offset < source.length) {
|
|
88
|
+
while (offset < source.length && /\s/.test(source[offset])) {
|
|
89
|
+
offset++;
|
|
90
|
+
}
|
|
91
|
+
if (offset >= source.length) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
const start = offset;
|
|
95
|
+
let quote = null;
|
|
96
|
+
let escaped = false;
|
|
97
|
+
while (offset < source.length) {
|
|
98
|
+
const character = source[offset];
|
|
99
|
+
if (escaped) {
|
|
100
|
+
escaped = false;
|
|
101
|
+
offset++;
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if (character === "\\" && quote) {
|
|
105
|
+
escaped = true;
|
|
106
|
+
offset++;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (quote) {
|
|
110
|
+
if (character === quote) {
|
|
111
|
+
quote = null;
|
|
112
|
+
}
|
|
113
|
+
offset++;
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if ((character === '"' || character === "'") && source[offset - 1] === "=") {
|
|
117
|
+
quote = character;
|
|
118
|
+
offset++;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (/\s/.test(character)) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
offset++;
|
|
125
|
+
}
|
|
126
|
+
if (quote) {
|
|
127
|
+
throw new PROJStringSyntaxError("Unterminated quoted PROJ value", source, start);
|
|
128
|
+
}
|
|
129
|
+
tokens.push({ raw: source.slice(start, offset), offset: start });
|
|
130
|
+
}
|
|
131
|
+
return tokens;
|
|
132
|
+
}
|
|
133
|
+
function decodeParameterValue(rawValue, source, offset) {
|
|
134
|
+
if (!rawValue) {
|
|
135
|
+
return "";
|
|
136
|
+
}
|
|
137
|
+
const first = rawValue[0];
|
|
138
|
+
if (first !== '"' && first !== "'") {
|
|
139
|
+
if ((rawValue.includes('"') || rawValue.includes("'")) && !DMS_VALUE.test(rawValue)) {
|
|
140
|
+
throw new PROJStringSyntaxError("Quote must begin a PROJ parameter value", source, offset);
|
|
141
|
+
}
|
|
142
|
+
return rawValue;
|
|
143
|
+
}
|
|
144
|
+
if (rawValue[rawValue.length - 1] !== first) {
|
|
145
|
+
throw new PROJStringSyntaxError("Unterminated quoted PROJ value", source, offset);
|
|
146
|
+
}
|
|
147
|
+
let value = "";
|
|
148
|
+
for (let index = 1; index < rawValue.length - 1; index++) {
|
|
149
|
+
const character = rawValue[index];
|
|
150
|
+
if (character === "\\" && index + 1 < rawValue.length - 1) {
|
|
151
|
+
value += rawValue[++index];
|
|
152
|
+
} else {
|
|
153
|
+
value += character;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return value;
|
|
157
|
+
}
|
|
158
|
+
function getSourceLocation(source, offset) {
|
|
159
|
+
let line = 1;
|
|
160
|
+
let column = 1;
|
|
161
|
+
for (let index = 0; index < offset && index < source.length; index++) {
|
|
162
|
+
if (source[index] === "\n") {
|
|
163
|
+
line++;
|
|
164
|
+
column = 1;
|
|
165
|
+
} else {
|
|
166
|
+
column++;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return { line, column };
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// dist/projection/experimental/crs/spatial-reference.js
|
|
173
|
+
var import_types = require("./crs/types.shared.cjs");
|
|
174
|
+
function resolveCRSInput(input, options) {
|
|
175
|
+
if (typeof input === "string" || "type" in input)
|
|
176
|
+
return { definition: input, lossy: false };
|
|
177
|
+
const metadata = input;
|
|
178
|
+
const spatialReference = "crs" in metadata ? metadata : void 0;
|
|
179
|
+
const reference = "crs" in metadata ? metadata.crs : metadata;
|
|
180
|
+
if (reference.state !== "explicit" && reference.state !== "default")
|
|
181
|
+
throw new import_types.TypeScriptCRSError("unknown-syntax", "Cannot transform an " + reference.state + " CRS reference");
|
|
182
|
+
let lossy = false;
|
|
183
|
+
if ((spatialReference == null ? void 0 : spatialReference.coordinateEpoch) !== void 0)
|
|
184
|
+
(0, import_types.unsupportedStage)("Coordinate epochs require a time-dependent transformation");
|
|
185
|
+
if ((spatialReference == null ? void 0 : spatialReference.vertical) && spatialReference.vertical.state !== "absent") {
|
|
186
|
+
if (options.mode !== "horizontal")
|
|
187
|
+
(0, import_types.unsupportedStage)("A separately declared vertical CRS requires explicit horizontal extraction");
|
|
188
|
+
lossy = true;
|
|
189
|
+
}
|
|
190
|
+
return { definition: reference.definition, spatialReference, lossy };
|
|
191
|
+
}
|
|
192
|
+
function applySpatialReference(crs, reference) {
|
|
193
|
+
var _a;
|
|
194
|
+
if (!reference)
|
|
195
|
+
return crs;
|
|
196
|
+
if (reference.coordinateFrame !== "unknown" && reference.coordinateFrame !== crs.kind)
|
|
197
|
+
throw new Error("SpatialReference coordinate frame disagrees with its CRS");
|
|
198
|
+
const order = reference.coordinateOrder;
|
|
199
|
+
const names = crs.kind === "geocentric" ? { x: "e", y: "n", z: "u" } : {
|
|
200
|
+
longitude: "e",
|
|
201
|
+
lon: "e",
|
|
202
|
+
latitude: "n",
|
|
203
|
+
lat: "n",
|
|
204
|
+
easting: "e",
|
|
205
|
+
northing: "n",
|
|
206
|
+
height: "u",
|
|
207
|
+
altitude: "u",
|
|
208
|
+
x: "e",
|
|
209
|
+
y: "n",
|
|
210
|
+
z: "u"
|
|
211
|
+
};
|
|
212
|
+
let storedAxis;
|
|
213
|
+
if (order.length) {
|
|
214
|
+
storedAxis = order.slice(0, 3).map((name) => names[name.toLowerCase()] || "?").join("");
|
|
215
|
+
if (storedAxis.length === 2)
|
|
216
|
+
storedAxis += "u";
|
|
217
|
+
if (storedAxis.length !== 3 || !storedAxis.includes("e") || !storedAxis.includes("n") || !storedAxis.includes("u"))
|
|
218
|
+
(0, import_types.unsupportedStage)("Unsupported SpatialReference coordinate order");
|
|
219
|
+
if (order.length > 4 || order.length > 3 && !["m", "measure"].includes(order[3]))
|
|
220
|
+
(0, import_types.unsupportedStage)("Unsupported fourth coordinate component");
|
|
221
|
+
}
|
|
222
|
+
if ((_a = reference.units) == null ? void 0 : _a.length) {
|
|
223
|
+
const units = {
|
|
224
|
+
m: 1,
|
|
225
|
+
meter: 1,
|
|
226
|
+
metre: 1,
|
|
227
|
+
meters: 1,
|
|
228
|
+
metres: 1,
|
|
229
|
+
km: 1e3,
|
|
230
|
+
ft: 0.3048,
|
|
231
|
+
"us-ft": 1200 / 3937,
|
|
232
|
+
degree: Math.PI / 180,
|
|
233
|
+
degrees: Math.PI / 180,
|
|
234
|
+
radian: 1,
|
|
235
|
+
radians: 1,
|
|
236
|
+
grad: Math.PI / 200
|
|
237
|
+
};
|
|
238
|
+
for (let i = 0; i < Math.min(reference.units.length, 3); i++) {
|
|
239
|
+
const vertical = (storedAxis || "enu")[i] === "u";
|
|
240
|
+
const expected = crs.kind === "geocentric" ? crs.toMeter : vertical ? crs.verticalUnit : crs.kind === "geographic" ? crs.angularUnit : crs.toMeter;
|
|
241
|
+
if (Math.abs((units[reference.units[i]] ?? NaN) - expected) > 1e-12 || units[reference.units[i]] === void 0)
|
|
242
|
+
(0, import_types.unsupportedStage)("SpatialReference units disagree with its CRS");
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return Object.freeze({ ...crs, storedAxis });
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// dist/projection/experimental/parameters.js
|
|
249
|
+
var DEGREES_TO_RADIANS = Math.PI / 180;
|
|
250
|
+
function numberParameter(parameters, name, fallback) {
|
|
251
|
+
if (!Object.prototype.hasOwnProperty.call(parameters, name))
|
|
252
|
+
return fallback;
|
|
253
|
+
const value = parameters[name];
|
|
254
|
+
if (typeof value !== "string" || !/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(value)) {
|
|
255
|
+
throw new Error(`Invalid numeric PROJ parameter: +${name}`);
|
|
256
|
+
}
|
|
257
|
+
const number = Number(value);
|
|
258
|
+
if (!Number.isFinite(number))
|
|
259
|
+
throw new Error(`Invalid numeric PROJ parameter: +${name}`);
|
|
260
|
+
return number;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// dist/projection/experimental/crs/datum-catalog.js
|
|
264
|
+
var wgs84 = { towgs84: "0,0,0", ellipse: "WGS84" };
|
|
265
|
+
var nad83 = { towgs84: "0,0,0", ellipse: "GRS80" };
|
|
266
|
+
var builtins = {
|
|
267
|
+
wgs84,
|
|
268
|
+
WGS84: wgs84,
|
|
269
|
+
nad83,
|
|
270
|
+
North_American_Datum_1983: nad83
|
|
271
|
+
};
|
|
272
|
+
var resolved = /* @__PURE__ */ new WeakMap();
|
|
273
|
+
var datumNameKey = (name) => name.toLowerCase().replace(/[\s_-]/g, "");
|
|
274
|
+
function getDatumDefinitions(options) {
|
|
275
|
+
var _a;
|
|
276
|
+
if (!((_a = options.datumCatalogs) == null ? void 0 : _a.length))
|
|
277
|
+
return builtins;
|
|
278
|
+
const cached = resolved.get(options);
|
|
279
|
+
if ((cached == null ? void 0 : cached.catalogs) === options.datumCatalogs)
|
|
280
|
+
return cached.definitions;
|
|
281
|
+
const definitions = Object.assign(/* @__PURE__ */ Object.create(null), builtins);
|
|
282
|
+
const names = new Map(Object.entries(builtins).map(([name, definition]) => [
|
|
283
|
+
datumNameKey(name),
|
|
284
|
+
{ definition, owner: -1 }
|
|
285
|
+
]));
|
|
286
|
+
options.datumCatalogs.forEach((catalog, owner) => {
|
|
287
|
+
if (!catalog.name || !catalog.datums)
|
|
288
|
+
throw new Error("Invalid datum catalogue plugin");
|
|
289
|
+
for (const [name, definition] of Object.entries(catalog.datums)) {
|
|
290
|
+
const key = datumNameKey(name);
|
|
291
|
+
if (!key || key === "none" || !definition || ["ellipse", "towgs84", "nadgrids"].some((field) => definition[field] !== void 0 && typeof definition[field] !== "string"))
|
|
292
|
+
throw new Error("Invalid datum definition: " + name);
|
|
293
|
+
const previous = names.get(key);
|
|
294
|
+
if (previous && (previous.owner !== owner || previous.definition.ellipse !== definition.ellipse || previous.definition.towgs84 !== definition.towgs84 || previous.definition.nadgrids !== definition.nadgrids))
|
|
295
|
+
throw new Error("Conflicting datum registration: " + name);
|
|
296
|
+
names.set(key, { definition, owner });
|
|
297
|
+
definitions[name] = definition;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
resolved.set(options, { catalogs: options.datumCatalogs, definitions });
|
|
301
|
+
return definitions;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// dist/projection/experimental/crs/ellipsoid-table.js
|
|
305
|
+
var ellipsoids = {
|
|
306
|
+
MERIT: {
|
|
307
|
+
a: 6378137,
|
|
308
|
+
rf: 298.257,
|
|
309
|
+
ellipseName: "MERIT 1983"
|
|
310
|
+
},
|
|
311
|
+
SGS85: {
|
|
312
|
+
a: 6378136,
|
|
313
|
+
rf: 298.257,
|
|
314
|
+
ellipseName: "Soviet Geodetic System 85"
|
|
315
|
+
},
|
|
316
|
+
GRS80: {
|
|
317
|
+
a: 6378137,
|
|
318
|
+
rf: 298.257222101,
|
|
319
|
+
ellipseName: "GRS 1980(IUGG, 1980)"
|
|
320
|
+
},
|
|
321
|
+
IAU76: {
|
|
322
|
+
a: 6378140,
|
|
323
|
+
rf: 298.257,
|
|
324
|
+
ellipseName: "IAU 1976"
|
|
325
|
+
},
|
|
326
|
+
airy: {
|
|
327
|
+
a: 6377563396e-3,
|
|
328
|
+
b: 635625691e-2,
|
|
329
|
+
ellipseName: "Airy 1830"
|
|
330
|
+
},
|
|
331
|
+
APL4: {
|
|
332
|
+
a: 6378137,
|
|
333
|
+
rf: 298.25,
|
|
334
|
+
ellipseName: "Appl. Physics. 1965"
|
|
335
|
+
},
|
|
336
|
+
NWL9D: {
|
|
337
|
+
a: 6378145,
|
|
338
|
+
rf: 298.25,
|
|
339
|
+
ellipseName: "Naval Weapons Lab., 1965"
|
|
340
|
+
},
|
|
341
|
+
mod_airy: {
|
|
342
|
+
a: 6377340189e-3,
|
|
343
|
+
b: 6356034446e-3,
|
|
344
|
+
ellipseName: "Modified Airy"
|
|
345
|
+
},
|
|
346
|
+
andrae: {
|
|
347
|
+
a: 637710443e-2,
|
|
348
|
+
rf: 300,
|
|
349
|
+
ellipseName: "Andrae 1876 (Den., Iclnd.)"
|
|
350
|
+
},
|
|
351
|
+
aust_SA: {
|
|
352
|
+
a: 6378160,
|
|
353
|
+
rf: 298.25,
|
|
354
|
+
ellipseName: "Australian Natl & S. Amer. 1969"
|
|
355
|
+
},
|
|
356
|
+
GRS67: {
|
|
357
|
+
a: 6378160,
|
|
358
|
+
rf: 298.247167427,
|
|
359
|
+
ellipseName: "GRS 67(IUGG 1967)"
|
|
360
|
+
},
|
|
361
|
+
bessel: {
|
|
362
|
+
a: 6377397155e-3,
|
|
363
|
+
rf: 299.1528128,
|
|
364
|
+
ellipseName: "Bessel 1841"
|
|
365
|
+
},
|
|
366
|
+
bess_nam: {
|
|
367
|
+
a: 6377483865e-3,
|
|
368
|
+
rf: 299.1528128,
|
|
369
|
+
ellipseName: "Bessel 1841 (Namibia)"
|
|
370
|
+
},
|
|
371
|
+
clrk66: {
|
|
372
|
+
a: 63782064e-1,
|
|
373
|
+
b: 63565838e-1,
|
|
374
|
+
ellipseName: "Clarke 1866"
|
|
375
|
+
},
|
|
376
|
+
clrk80: {
|
|
377
|
+
a: 6378249145e-3,
|
|
378
|
+
rf: 293.4663,
|
|
379
|
+
ellipseName: "Clarke 1880 mod."
|
|
380
|
+
},
|
|
381
|
+
clrk80ign: {
|
|
382
|
+
a: 63782492e-1,
|
|
383
|
+
b: 6356515,
|
|
384
|
+
rf: 293.4660213,
|
|
385
|
+
ellipseName: "Clarke 1880 (IGN)"
|
|
386
|
+
},
|
|
387
|
+
clrk58: {
|
|
388
|
+
a: 6378293645208759e-9,
|
|
389
|
+
rf: 294.2606763692654,
|
|
390
|
+
ellipseName: "Clarke 1858"
|
|
391
|
+
},
|
|
392
|
+
CPM: {
|
|
393
|
+
a: 63757387e-1,
|
|
394
|
+
rf: 334.29,
|
|
395
|
+
ellipseName: "Comm. des Poids et Mesures 1799"
|
|
396
|
+
},
|
|
397
|
+
delmbr: {
|
|
398
|
+
a: 6376428,
|
|
399
|
+
rf: 311.5,
|
|
400
|
+
ellipseName: "Delambre 1810 (Belgium)"
|
|
401
|
+
},
|
|
402
|
+
engelis: {
|
|
403
|
+
a: 637813605e-2,
|
|
404
|
+
rf: 298.2566,
|
|
405
|
+
ellipseName: "Engelis 1985"
|
|
406
|
+
},
|
|
407
|
+
evrst30: {
|
|
408
|
+
a: 6377276345e-3,
|
|
409
|
+
rf: 300.8017,
|
|
410
|
+
ellipseName: "Everest 1830"
|
|
411
|
+
},
|
|
412
|
+
evrst48: {
|
|
413
|
+
a: 6377304063e-3,
|
|
414
|
+
rf: 300.8017,
|
|
415
|
+
ellipseName: "Everest 1948"
|
|
416
|
+
},
|
|
417
|
+
evrst56: {
|
|
418
|
+
a: 6377301243e-3,
|
|
419
|
+
rf: 300.8017,
|
|
420
|
+
ellipseName: "Everest 1956"
|
|
421
|
+
},
|
|
422
|
+
evrst69: {
|
|
423
|
+
a: 6377295664e-3,
|
|
424
|
+
rf: 300.8017,
|
|
425
|
+
ellipseName: "Everest 1969"
|
|
426
|
+
},
|
|
427
|
+
evrstSS: {
|
|
428
|
+
a: 6377298556e-3,
|
|
429
|
+
rf: 300.8017,
|
|
430
|
+
ellipseName: "Everest (Sabah & Sarawak)"
|
|
431
|
+
},
|
|
432
|
+
fschr60: {
|
|
433
|
+
a: 6378166,
|
|
434
|
+
rf: 298.3,
|
|
435
|
+
ellipseName: "Fischer (Mercury Datum) 1960"
|
|
436
|
+
},
|
|
437
|
+
fschr60m: {
|
|
438
|
+
a: 6378155,
|
|
439
|
+
rf: 298.3,
|
|
440
|
+
ellipseName: "Fischer 1960"
|
|
441
|
+
},
|
|
442
|
+
fschr68: {
|
|
443
|
+
a: 6378150,
|
|
444
|
+
rf: 298.3,
|
|
445
|
+
ellipseName: "Fischer 1968"
|
|
446
|
+
},
|
|
447
|
+
helmert: {
|
|
448
|
+
a: 6378200,
|
|
449
|
+
rf: 298.3,
|
|
450
|
+
ellipseName: "Helmert 1906"
|
|
451
|
+
},
|
|
452
|
+
hough: {
|
|
453
|
+
a: 6378270,
|
|
454
|
+
rf: 297,
|
|
455
|
+
ellipseName: "Hough"
|
|
456
|
+
},
|
|
457
|
+
intl: {
|
|
458
|
+
a: 6378388,
|
|
459
|
+
rf: 297,
|
|
460
|
+
ellipseName: "International 1909 (Hayford)"
|
|
461
|
+
},
|
|
462
|
+
kaula: {
|
|
463
|
+
a: 6378163,
|
|
464
|
+
rf: 298.24,
|
|
465
|
+
ellipseName: "Kaula 1961"
|
|
466
|
+
},
|
|
467
|
+
lerch: {
|
|
468
|
+
a: 6378139,
|
|
469
|
+
rf: 298.257,
|
|
470
|
+
ellipseName: "Lerch 1979"
|
|
471
|
+
},
|
|
472
|
+
mprts: {
|
|
473
|
+
a: 6397300,
|
|
474
|
+
rf: 191,
|
|
475
|
+
ellipseName: "Maupertius 1738"
|
|
476
|
+
},
|
|
477
|
+
new_intl: {
|
|
478
|
+
a: 63781575e-1,
|
|
479
|
+
b: 63567722e-1,
|
|
480
|
+
ellipseName: "New International 1967"
|
|
481
|
+
},
|
|
482
|
+
plessis: {
|
|
483
|
+
a: 6376523,
|
|
484
|
+
b: 6355863,
|
|
485
|
+
ellipseName: "Plessis 1817 (France)"
|
|
486
|
+
},
|
|
487
|
+
krass: {
|
|
488
|
+
a: 6378245,
|
|
489
|
+
rf: 298.3,
|
|
490
|
+
ellipseName: "Krassovsky, 1942"
|
|
491
|
+
},
|
|
492
|
+
SEasia: {
|
|
493
|
+
a: 6378155,
|
|
494
|
+
b: 63567733205e-4,
|
|
495
|
+
ellipseName: "Southeast Asia"
|
|
496
|
+
},
|
|
497
|
+
walbeck: {
|
|
498
|
+
a: 6376896,
|
|
499
|
+
b: 63558348467e-4,
|
|
500
|
+
ellipseName: "Walbeck"
|
|
501
|
+
},
|
|
502
|
+
WGS60: {
|
|
503
|
+
a: 6378165,
|
|
504
|
+
rf: 298.3,
|
|
505
|
+
ellipseName: "WGS 60"
|
|
506
|
+
},
|
|
507
|
+
WGS66: {
|
|
508
|
+
a: 6378145,
|
|
509
|
+
rf: 298.25,
|
|
510
|
+
ellipseName: "WGS 66"
|
|
511
|
+
},
|
|
512
|
+
WGS72: {
|
|
513
|
+
a: 6378135,
|
|
514
|
+
rf: 298.26,
|
|
515
|
+
ellipseName: "WGS 72"
|
|
516
|
+
},
|
|
517
|
+
WGS84: {
|
|
518
|
+
a: 6378137,
|
|
519
|
+
rf: 298.257223563,
|
|
520
|
+
ellipseName: "WGS 84"
|
|
521
|
+
},
|
|
522
|
+
sphere: {
|
|
523
|
+
a: 6370997,
|
|
524
|
+
b: 6370997,
|
|
525
|
+
ellipseName: "Normal Sphere (r=6370997)"
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
var ellipsoid_table_default = ellipsoids;
|
|
529
|
+
|
|
530
|
+
// dist/projection/experimental/crs/primemeridian-table.js
|
|
531
|
+
var primeMeridian = {};
|
|
532
|
+
primeMeridian["greenwich"] = 0;
|
|
533
|
+
primeMeridian["lisbon"] = -9.131906111111;
|
|
534
|
+
primeMeridian["paris"] = 2.337229166667;
|
|
535
|
+
primeMeridian["bogota"] = -74.080916666667;
|
|
536
|
+
primeMeridian["madrid"] = -3.687938888889;
|
|
537
|
+
primeMeridian["rome"] = 12.452333333333;
|
|
538
|
+
primeMeridian["bern"] = 7.439583333333;
|
|
539
|
+
primeMeridian["jakarta"] = 106.807719444444;
|
|
540
|
+
primeMeridian["ferro"] = -17.666666666667;
|
|
541
|
+
primeMeridian["brussels"] = 4.367975;
|
|
542
|
+
primeMeridian["stockholm"] = 18.058277777778;
|
|
543
|
+
primeMeridian["athens"] = 23.7163375;
|
|
544
|
+
primeMeridian["oslo"] = 10.722916666667;
|
|
545
|
+
var primemeridian_table_default = primeMeridian;
|
|
546
|
+
|
|
547
|
+
// dist/crs/units-table.js
|
|
548
|
+
var linearUnits = {
|
|
549
|
+
m: { name: "meters", metersPerUnit: 1 },
|
|
550
|
+
mm: { name: "millimeters", metersPerUnit: 1e-3 },
|
|
551
|
+
cm: { name: "centimeters", metersPerUnit: 0.01 },
|
|
552
|
+
ft: { name: "feet", metersPerUnit: 0.3048 },
|
|
553
|
+
"us-ft": { name: "us-survey-feet", metersPerUnit: 1200 / 3937 },
|
|
554
|
+
fath: { name: "fathoms", metersPerUnit: 1.8288 },
|
|
555
|
+
kmi: { name: "nautical-miles", metersPerUnit: 1852 },
|
|
556
|
+
"us-ch": { name: "us-survey-chains", metersPerUnit: 20.1168402336805 },
|
|
557
|
+
"us-mi": { name: "us-survey-miles", metersPerUnit: 1609.34721869444 },
|
|
558
|
+
km: { name: "kilometers", metersPerUnit: 1e3 },
|
|
559
|
+
"ind-ft": { name: "indian-feet", metersPerUnit: 0.30479841 },
|
|
560
|
+
"ind-yd": { name: "indian-yards", metersPerUnit: 0.91439523 },
|
|
561
|
+
mi: { name: "miles", metersPerUnit: 1609.344 },
|
|
562
|
+
yd: { name: "yards", metersPerUnit: 0.9144 },
|
|
563
|
+
ch: { name: "chains", metersPerUnit: 20.1168 },
|
|
564
|
+
link: { name: "links", metersPerUnit: 0.201168 },
|
|
565
|
+
dm: { name: "decimeters", metersPerUnit: 0.1 },
|
|
566
|
+
in: { name: "inches", metersPerUnit: 0.0254 },
|
|
567
|
+
"ind-ch": { name: "indian-chains", metersPerUnit: 20.11669506 },
|
|
568
|
+
"us-in": { name: "us-survey-inches", metersPerUnit: 0.025400050800101 },
|
|
569
|
+
"us-yd": { name: "us-survey-yards", metersPerUnit: 0.914401828803658 }
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
// dist/crs/crs-metadata.js
|
|
573
|
+
function getCRSSignature(crs) {
|
|
574
|
+
return JSON.stringify([
|
|
575
|
+
crs.coordinateFrame,
|
|
576
|
+
crs.projection,
|
|
577
|
+
Object.keys(crs.parameters).sort().map((key) => [key, crs.parameters[key]]),
|
|
578
|
+
[crs.ellipsoid.semiMajorAxis, crs.ellipsoid.semiMinorAxis],
|
|
579
|
+
crs.axis,
|
|
580
|
+
[crs.xUnit.name, crs.xUnit.metersPerUnit, crs.xUnit.degreesPerUnit],
|
|
581
|
+
[crs.yUnit.name, crs.yUnit.metersPerUnit, crs.yUnit.degreesPerUnit],
|
|
582
|
+
[crs.zUnit.name, crs.zUnit.metersPerUnit, crs.zUnit.degreesPerUnit],
|
|
583
|
+
crs.lossy,
|
|
584
|
+
crs.areaOfUse
|
|
585
|
+
]);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
// dist/projection/experimental/crs/normalize.js
|
|
589
|
+
var import_types2 = require("./crs/types.shared.cjs");
|
|
590
|
+
var ALIASES = {
|
|
591
|
+
WGS84: "+proj=longlat +datum=WGS84",
|
|
592
|
+
"EPSG:4326": "+proj=longlat +datum=WGS84",
|
|
593
|
+
"EPSG:4269": "+proj=longlat +datum=NAD83",
|
|
594
|
+
"EPSG:4978": "+proj=geocent +datum=WGS84",
|
|
595
|
+
"EPSG:4979": "+proj=longlat +datum=WGS84",
|
|
596
|
+
"EPSG:3857": "+proj=merc +a=6378137 +b=6378137 +nadgrids=@null +units=m",
|
|
597
|
+
"EPSG:3785": "EPSG:3857",
|
|
598
|
+
GOOGLE: "EPSG:3857",
|
|
599
|
+
"EPSG:900913": "EPSG:3857",
|
|
600
|
+
"EPSG:102113": "EPSG:3857"
|
|
601
|
+
};
|
|
602
|
+
var own = (object, key) => Object.prototype.hasOwnProperty.call(object, key);
|
|
603
|
+
var keyOf = (value) => value.toLowerCase().replace(/[\s_-]/g, "");
|
|
604
|
+
function lookup(table, name) {
|
|
605
|
+
const key = Object.keys(table).find((key2) => keyOf(key2) === keyOf(name));
|
|
606
|
+
return key === void 0 ? void 0 : table[key];
|
|
607
|
+
}
|
|
608
|
+
function parseAngle(text) {
|
|
609
|
+
if (/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i.test(text)) {
|
|
610
|
+
const value = Number(text);
|
|
611
|
+
if (Number.isFinite(value))
|
|
612
|
+
return value;
|
|
613
|
+
}
|
|
614
|
+
if (/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?r$/i.test(text)) {
|
|
615
|
+
const value = Number(text.slice(0, -1)) / DEGREES_TO_RADIANS;
|
|
616
|
+
if (Number.isFinite(value))
|
|
617
|
+
return value;
|
|
618
|
+
}
|
|
619
|
+
const dms = /^([+-]?)(\d+(?:\.\d*)?)(?:d(?:(\d+(?:\.\d*)?)'(?:(\d+(?:\.\d*)?)")?)?)?([NSEW])?$/i.exec(text);
|
|
620
|
+
if (dms && (/d/i.test(text) || dms[5])) {
|
|
621
|
+
const minutes = Number(dms[3] || 0), seconds = Number(dms[4] || 0);
|
|
622
|
+
if (minutes < 60 && seconds < 60) {
|
|
623
|
+
const sign = dms[1] === "-" ? -1 : 1;
|
|
624
|
+
const direction = /[SW]/i.test(dms[5] || "") ? -1 : 1;
|
|
625
|
+
const value = sign * direction * (Number(dms[2]) + minutes / 60 + seconds / 3600);
|
|
626
|
+
if (Number.isFinite(value))
|
|
627
|
+
return value;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
throw new Error("Invalid angular parameter: " + text);
|
|
631
|
+
}
|
|
632
|
+
function resolveLocalCRSDefinition(input, options = {}) {
|
|
633
|
+
let definition = input;
|
|
634
|
+
const aliases = options.aliases || {};
|
|
635
|
+
const visited = /* @__PURE__ */ new Set();
|
|
636
|
+
while (typeof definition === "string" && (own(aliases, definition) || own(ALIASES, definition))) {
|
|
637
|
+
if (visited.has(definition))
|
|
638
|
+
throw new Error("Circular CRS alias: " + definition);
|
|
639
|
+
visited.add(definition);
|
|
640
|
+
definition = own(aliases, definition) ? aliases[definition] : ALIASES[definition];
|
|
641
|
+
}
|
|
642
|
+
if (typeof definition === "string") {
|
|
643
|
+
const utm = /^EPSG:(326|327)(\d{2})$/.exec(definition);
|
|
644
|
+
if (utm && Number(utm[2]) >= 1 && Number(utm[2]) <= 60) {
|
|
645
|
+
definition = "+proj=utm +datum=WGS84 +zone=" + Number(utm[2]) + (utm[1] === "327" ? " +south" : "");
|
|
646
|
+
}
|
|
647
|
+
if (definition === "EPSG:5041" || definition === "EPSG:5042") {
|
|
648
|
+
definition = "+proj=stere +datum=WGS84 +lat_0=" + (definition === "EPSG:5041" ? 90 : -90) + " +k_0=0.994 +x_0=2000000 +y_0=2000000";
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
return definition;
|
|
652
|
+
}
|
|
653
|
+
function normalizeCRS(input, options = {}) {
|
|
654
|
+
var _a;
|
|
655
|
+
const datums = getDatumDefinitions(options);
|
|
656
|
+
const resolved2 = resolveCRSInput(input, options);
|
|
657
|
+
const definition = resolveLocalCRSDefinition(resolved2.definition, options);
|
|
658
|
+
let parsed;
|
|
659
|
+
if (inferCRSRepresentation(definition) === "proj-string" && typeof definition === "string") {
|
|
660
|
+
const parameters2 = /* @__PURE__ */ Object.create(null);
|
|
661
|
+
for (const parameter of parsePROJString(definition).parameters) {
|
|
662
|
+
if (own(parameters2, parameter.name))
|
|
663
|
+
throw new Error("Duplicate PROJ parameter: +" + parameter.name);
|
|
664
|
+
parameters2[parameter.name] = parameter.value;
|
|
665
|
+
}
|
|
666
|
+
parsed = { parameters: parameters2 };
|
|
667
|
+
} else {
|
|
668
|
+
const parser = (_a = options.parsers) == null ? void 0 : _a.find((candidate) => candidate.canParse(definition));
|
|
669
|
+
if (!parser) {
|
|
670
|
+
const serialized = ["wkt", "projjson"].includes(inferCRSRepresentation(definition));
|
|
671
|
+
throw new import_types2.TypeScriptCRSError(serialized ? "missing-parser" : "unknown-syntax", inferCRSRepresentation(definition) === "identifier" ? "Unsupported CRS definition: " + definition + "; resolve it first" : "Unsupported CRS definition; register a WKT or PROJJSON parser for structured definitions");
|
|
672
|
+
}
|
|
673
|
+
parsed = parser.parse(definition, options);
|
|
674
|
+
}
|
|
675
|
+
const parameters = { ...parsed.parameters };
|
|
676
|
+
for (const name2 of [
|
|
677
|
+
"lon_0",
|
|
678
|
+
"lat_0",
|
|
679
|
+
"lat_1",
|
|
680
|
+
"lat_2",
|
|
681
|
+
"lat_ts",
|
|
682
|
+
"lon_wrap",
|
|
683
|
+
"lon_1",
|
|
684
|
+
"lon_2",
|
|
685
|
+
"lonc",
|
|
686
|
+
"alpha",
|
|
687
|
+
"gamma",
|
|
688
|
+
"tilt",
|
|
689
|
+
"azi",
|
|
690
|
+
"o_alpha",
|
|
691
|
+
"o_lon_c",
|
|
692
|
+
"o_lat_c",
|
|
693
|
+
"o_lon_p",
|
|
694
|
+
"o_lat_p",
|
|
695
|
+
"o_lon_1",
|
|
696
|
+
"o_lat_1",
|
|
697
|
+
"o_lon_2",
|
|
698
|
+
"o_lat_2"
|
|
699
|
+
]) {
|
|
700
|
+
if (parameters[name2] !== void 0)
|
|
701
|
+
parameters[name2] = String(parseAngle(parameters[name2]));
|
|
702
|
+
}
|
|
703
|
+
const suppliedName = parameters["proj"];
|
|
704
|
+
const lowerName = suppliedName == null ? void 0 : suppliedName.toLowerCase();
|
|
705
|
+
const name = lowerName === "geocentric" ? "geocent" : ["longlat", "latlong", "latlon", "lonlat", "identity", "geocent"].includes(lowerName) ? lowerName : suppliedName;
|
|
706
|
+
if (!name)
|
|
707
|
+
throw new Error("CRS requires +proj");
|
|
708
|
+
const kind = ["longlat", "latlong", "latlon", "lonlat"].includes(name) ? "geographic" : name === "geocent" ? "geocentric" : name === "identity" ? "identity" : "projected";
|
|
709
|
+
const datumName = parameters["datum"];
|
|
710
|
+
const datum = datumName && datumName !== "none" ? lookup(datums, datumName) : void 0;
|
|
711
|
+
if (datumName && datumName !== "none" && !datum)
|
|
712
|
+
(0, import_types2.unsupportedStage)("Unknown datum: " + datumName + "; register a datumCatalogs plugin");
|
|
713
|
+
const ellipsoid = getEllipsoid(parameters, datum == null ? void 0 : datum.ellipse);
|
|
714
|
+
const grids = parameters["nadgrids"] ?? (datum == null ? void 0 : datum.nadgrids);
|
|
715
|
+
const gridReferences = grids === void 0 ? void 0 : grids.split(",").map((entry) => {
|
|
716
|
+
const optional = entry.startsWith("@");
|
|
717
|
+
const name2 = optional ? entry.slice(1) : entry;
|
|
718
|
+
if (!name2 || /\s/.test(name2))
|
|
719
|
+
throw new Error("Invalid datum grid name");
|
|
720
|
+
return Object.freeze({ name: name2, optional });
|
|
721
|
+
});
|
|
722
|
+
const rawShift = parameters["towgs84"] ?? (datum == null ? void 0 : datum.towgs84);
|
|
723
|
+
let shift;
|
|
724
|
+
if (rawShift !== void 0) {
|
|
725
|
+
shift = rawShift.split(",").map((value) => numberParameter({ value }, "value", NaN));
|
|
726
|
+
if (![3, 7].includes(shift.length) || shift.some((value) => !Number.isFinite(value)) || shift.length === 7 && shift[6] <= -1e6) {
|
|
727
|
+
throw new Error("+towgs84 requires three or seven finite values and positive scale");
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if (datumName === "none")
|
|
731
|
+
shift = void 0;
|
|
732
|
+
if (gridReferences && datumName !== "none")
|
|
733
|
+
shift = [0, 0, 0];
|
|
734
|
+
const datumEllipsoid = grids === "@null" || grids === "null" ? getEllipsoid({ ellps: "WGS84" }) : ellipsoid;
|
|
735
|
+
const axis = parameters["axis"] || "enu";
|
|
736
|
+
if (axis.length !== 3 || !/[ew]/.test(axis) || !/[ns]/.test(axis) || !/[ud]/.test(axis))
|
|
737
|
+
throw new Error("Invalid axis: " + axis);
|
|
738
|
+
const angularUnit = parsed.angularUnit ?? DEGREES_TO_RADIANS;
|
|
739
|
+
if (kind === "geographic" && (parameters["units"] && parameters["units"] !== "degrees" || own(parameters, "to_meter")))
|
|
740
|
+
throw new Error("Geographic coordinates must use angular units");
|
|
741
|
+
if (kind !== "geographic" && parameters["units"] === "degrees")
|
|
742
|
+
throw new Error("Linear coordinates require linear units");
|
|
743
|
+
const toMeter = unitFactor(parameters, "units", "to_meter");
|
|
744
|
+
const verticalUnit = parsed.verticalUnit ?? unitFactor(parameters, "vunits", "vto_meter");
|
|
745
|
+
if (!(verticalUnit > 0) || !Number.isFinite(verticalUnit))
|
|
746
|
+
throw new Error("Invalid vertical unit");
|
|
747
|
+
if (!(angularUnit > 0) || !Number.isFinite(angularUnit))
|
|
748
|
+
throw new Error("Invalid angular unit");
|
|
749
|
+
const pm = parameters["pm"];
|
|
750
|
+
const primeMeridian2 = pm === void 0 ? 0 : (lookup(primemeridian_table_default, pm) ?? parseAngle(pm)) * DEGREES_TO_RADIANS;
|
|
751
|
+
return applySpatialReference(Object.freeze({
|
|
752
|
+
kind,
|
|
753
|
+
projection: name,
|
|
754
|
+
parameters: Object.freeze(parameters),
|
|
755
|
+
ellipsoid,
|
|
756
|
+
datum: Object.freeze({
|
|
757
|
+
ellipsoid: datumEllipsoid,
|
|
758
|
+
towgs84: shift && Object.freeze(shift),
|
|
759
|
+
grids: datumName === "none" || grids === "@null" || grids === "null" ? void 0 : gridReferences && Object.freeze(gridReferences)
|
|
760
|
+
}),
|
|
761
|
+
areaOfUse: parsed.areaOfUse,
|
|
762
|
+
angularUnit,
|
|
763
|
+
toMeter,
|
|
764
|
+
verticalUnit,
|
|
765
|
+
primeMeridian: primeMeridian2,
|
|
766
|
+
axis,
|
|
767
|
+
longitudeWrap: parameters["lon_wrap"] === void 0 ? void 0 : Number(parameters["lon_wrap"]) * DEGREES_TO_RADIANS,
|
|
768
|
+
lossy: Boolean(parsed.lossy || resolved2.lossy)
|
|
769
|
+
}), resolved2.spatialReference);
|
|
770
|
+
}
|
|
771
|
+
function unitFactor(parameters, unitKey, factorKey) {
|
|
772
|
+
const unit = parameters[unitKey];
|
|
773
|
+
const table = linearUnits;
|
|
774
|
+
if (unitKey === "vunits" && unit === "degrees")
|
|
775
|
+
throw new Error("Height requires linear units");
|
|
776
|
+
if (unit && !["m", "degrees"].includes(unit) && !own(table, unit))
|
|
777
|
+
throw new Error("Unsupported units: " + unit);
|
|
778
|
+
const factor = numberParameter(parameters, factorKey, unit && table[unit] ? table[unit].metersPerUnit : 1);
|
|
779
|
+
if (!(factor > 0))
|
|
780
|
+
throw new Error("+" + factorKey + " must be positive");
|
|
781
|
+
return factor;
|
|
782
|
+
}
|
|
783
|
+
function getEllipsoid(parameters, datumEllipsoid) {
|
|
784
|
+
const name = datumEllipsoid || parameters["ellps"] || "WGS84";
|
|
785
|
+
const definition = lookup(ellipsoid_table_default, name);
|
|
786
|
+
if (!definition)
|
|
787
|
+
throw new Error("Unsupported ellipsoid: " + name);
|
|
788
|
+
const a = numberParameter(parameters, "a", definition.a);
|
|
789
|
+
const f = numberParameter(parameters, "f", NaN);
|
|
790
|
+
const rf = numberParameter(parameters, "rf", Number.isNaN(f) ? definition.rf || 0 : f === 0 ? 0 : 1 / f);
|
|
791
|
+
const b = numberParameter(parameters, "b", rf ? a * (1 - 1 / rf) : own(parameters, "f") || own(parameters, "rf") || own(parameters, "a") ? a : definition.b || a);
|
|
792
|
+
const radius = numberParameter(parameters, "R", 0);
|
|
793
|
+
if (a <= 0 || b <= 0 || b > a || rf < 0 || rf > 0 && rf <= 1 || own(parameters, "R") && radius <= 0 || !Number.isNaN(f) && (f < 0 || f >= 1))
|
|
794
|
+
throw new Error("Invalid ellipsoid dimensions");
|
|
795
|
+
return Object.freeze({
|
|
796
|
+
semiMajorAxis: radius || a,
|
|
797
|
+
semiMinorAxis: radius || b,
|
|
798
|
+
eccentricitySquared: radius ? 0 : 1 - (b / a) ** 2
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// dist/projection/numerical-derivative.js
|
|
803
|
+
var NumericalDerivative = class {
|
|
804
|
+
constructor(sample) {
|
|
805
|
+
this.sample = sample;
|
|
806
|
+
this.result = [0, 0, 0];
|
|
807
|
+
this.samples = Array.from({ length: 4 }, () => [0, 0, 0]);
|
|
808
|
+
this.coarse = [0, 0, 0];
|
|
809
|
+
this.fine = [0, 0, 0];
|
|
810
|
+
}
|
|
811
|
+
evaluate(step, referenceScale, tolerance = 1e-6) {
|
|
812
|
+
if (!this.difference(step, this.coarse) || !this.difference(step / 2, this.fine))
|
|
813
|
+
return false;
|
|
814
|
+
const bound = tolerance * Math.max(referenceScale, Math.abs(this.fine[0]), Math.abs(this.fine[1]), Math.abs(this.fine[2]));
|
|
815
|
+
for (let i = 0; i < 3; i++) {
|
|
816
|
+
if (Math.abs(this.coarse[i] - this.fine[i]) > bound)
|
|
817
|
+
return false;
|
|
818
|
+
this.fine[i] += (this.fine[i] - this.coarse[i]) / 15;
|
|
819
|
+
if (!Number.isFinite(this.fine[i]))
|
|
820
|
+
return false;
|
|
821
|
+
}
|
|
822
|
+
for (let i = 0; i < 3; i++)
|
|
823
|
+
this.result[i] = this.fine[i];
|
|
824
|
+
return true;
|
|
825
|
+
}
|
|
826
|
+
difference(step, output) {
|
|
827
|
+
const [a, b, c, d] = this.samples;
|
|
828
|
+
if (!this.sample(-2 * step, a) || !this.sample(-step, b) || !this.sample(step, c) || !this.sample(2 * step, d))
|
|
829
|
+
return false;
|
|
830
|
+
for (let i = 0; i < 3; i++) {
|
|
831
|
+
output[i] = (a[i] - d[i] + 8 * (c[i] - b[i])) / (12 * step);
|
|
832
|
+
if (!Number.isFinite(output[i]))
|
|
833
|
+
return false;
|
|
834
|
+
}
|
|
835
|
+
return true;
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
// dist/projection/experimental/crs-rendering-scale.js
|
|
840
|
+
var RADIANS = Math.PI / 180;
|
|
841
|
+
var WGS84 = normalizeCRS("WGS84").ellipsoid;
|
|
842
|
+
function isEarth(ellipsoid) {
|
|
843
|
+
return Math.abs(ellipsoid.semiMajorAxis - 6375e3) < 7e-3 * 6375e3;
|
|
844
|
+
}
|
|
845
|
+
function validateScale(scale) {
|
|
846
|
+
if (scale.length !== 3 || scale.some((value) => !Number.isFinite(value) || value <= 0))
|
|
847
|
+
throw new Error("Invalid CRS rendering scale");
|
|
848
|
+
return scale;
|
|
849
|
+
}
|
|
850
|
+
function createRenderingScale(crs, projection, axis, center) {
|
|
851
|
+
if (crs.kind === "geocentric")
|
|
852
|
+
return validateScale([crs.toMeter, crs.toMeter, crs.toMeter]);
|
|
853
|
+
if (crs.kind === "identity") {
|
|
854
|
+
return validateScale([...axis].map((direction) => /[ud]/.test(direction) ? crs.verticalUnit : crs.toMeter));
|
|
855
|
+
}
|
|
856
|
+
const anchor = [0, 0, 0], input = [0, 0, 0], geographic = [0, 0, 0], sample = [0, 0, 0];
|
|
857
|
+
const derivatives = Array.from({ length: 3 }, () => [0, 0, 0]);
|
|
858
|
+
const body = isEarth(crs.ellipsoid) ? WGS84 : crs.ellipsoid;
|
|
859
|
+
let component = 0, longitudeMeters = 0, latitudeMeters = 0, busy = false;
|
|
860
|
+
const numerical = new NumericalDerivative((offset, output) => {
|
|
861
|
+
for (let i = 0; i < 3; i++)
|
|
862
|
+
input[i] = anchor[i];
|
|
863
|
+
input[component] += offset;
|
|
864
|
+
projection.unprojectTo(input, sample);
|
|
865
|
+
const rawDelta = sample[0] - geographic[0];
|
|
866
|
+
const delta = Math.abs(rawDelta) <= 180 ? rawDelta : ((rawDelta + 180) % 360 + 360) % 360 - 180;
|
|
867
|
+
if (Math.abs(sample[1]) >= 90)
|
|
868
|
+
return false;
|
|
869
|
+
output[0] = delta * longitudeMeters;
|
|
870
|
+
output[1] = (sample[1] - geographic[1]) * latitudeMeters;
|
|
871
|
+
output[2] = sample[2] - geographic[2];
|
|
872
|
+
return output.every(Number.isFinite);
|
|
873
|
+
});
|
|
874
|
+
return (coordinate) => {
|
|
875
|
+
if (busy || coordinate.length < 2)
|
|
876
|
+
return null;
|
|
877
|
+
busy = true;
|
|
878
|
+
let scale;
|
|
879
|
+
try {
|
|
880
|
+
anchor[0] = coordinate[0];
|
|
881
|
+
anchor[1] = coordinate[1];
|
|
882
|
+
anchor[2] = coordinate[2] ?? 0;
|
|
883
|
+
if (!anchor.every(Number.isFinite))
|
|
884
|
+
return null;
|
|
885
|
+
projection.unprojectTo(anchor, geographic);
|
|
886
|
+
const latitude = geographic[1] * RADIANS;
|
|
887
|
+
const a = body.semiMajorAxis, es = body.eccentricitySquared;
|
|
888
|
+
const denominator = 1 - es * Math.sin(latitude) ** 2;
|
|
889
|
+
longitudeMeters = a * Math.cos(latitude) / Math.sqrt(denominator) * RADIANS;
|
|
890
|
+
latitudeMeters = a * (1 - es) / denominator ** 1.5 * RADIANS;
|
|
891
|
+
if (!(longitudeMeters > a * RADIANS * 1e-8) || !(latitudeMeters > 0))
|
|
892
|
+
return null;
|
|
893
|
+
const offset = ((geographic[0] - center + 180) % 360 + 360) % 360 - 180;
|
|
894
|
+
const hasLongitudeSeam = crs.kind === "geographic" ? crs.longitudeWrap !== void 0 : !Object.prototype.hasOwnProperty.call(crs.parameters, "over");
|
|
895
|
+
if (hasLongitudeSeam && Math.abs(offset) + 2 / longitudeMeters >= 180 || Math.abs(geographic[1]) + 2 / latitudeMeters >= 90)
|
|
896
|
+
return null;
|
|
897
|
+
for (component = 0; component < 3; component++) {
|
|
898
|
+
const direction = axis[component];
|
|
899
|
+
const nominalMeters = /[ud]/.test(direction) ? crs.verticalUnit : crs.kind === "geographic" ? (/[ew]/.test(direction) ? longitudeMeters : latitudeMeters) * crs.angularUnit / RADIANS : crs.toMeter;
|
|
900
|
+
if (!numerical.evaluate(1 / nominalMeters, nominalMeters))
|
|
901
|
+
return null;
|
|
902
|
+
for (let i = 0; i < 3; i++)
|
|
903
|
+
derivatives[component][i] = numerical.result[i];
|
|
904
|
+
}
|
|
905
|
+
scale = derivatives.map((derivative) => Math.hypot(...derivative));
|
|
906
|
+
if (crs.kind === "projected") {
|
|
907
|
+
const east = derivatives[axis.search(/[ew]/)];
|
|
908
|
+
const north = derivatives[axis.search(/[ns]/)];
|
|
909
|
+
const inverseArea = Math.abs(east[0] * north[1] - east[1] * north[0]) / crs.toMeter ** 2;
|
|
910
|
+
scale[axis.search(/[ud]/)] = crs.verticalUnit * Math.sqrt(inverseArea);
|
|
911
|
+
}
|
|
912
|
+
} catch {
|
|
913
|
+
return null;
|
|
914
|
+
} finally {
|
|
915
|
+
busy = false;
|
|
916
|
+
}
|
|
917
|
+
return validateScale(scale);
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
// dist/projection/experimental/scalar-output.js
|
|
922
|
+
var FLOAT32_MAX = 34028234663852886e22;
|
|
923
|
+
function validateScalarOutput(coordinate, output, length) {
|
|
924
|
+
if (!(Array.isArray(coordinate) || coordinate instanceof Float32Array || coordinate instanceof Float64Array))
|
|
925
|
+
throw new Error("Scalar input requires a number array, Float32Array or Float64Array");
|
|
926
|
+
if (!(Array.isArray(output) || output instanceof Float32Array || output instanceof Float64Array) || output.length < length)
|
|
927
|
+
throw new Error("Scalar output requires a preallocated number array, Float32Array or Float64Array with sufficient capacity");
|
|
928
|
+
if (coordinate === output || Array.isArray(coordinate) || Array.isArray(output))
|
|
929
|
+
return;
|
|
930
|
+
const input = coordinate;
|
|
931
|
+
const result = output;
|
|
932
|
+
const shared = typeof SharedArrayBuffer !== "undefined" && input.buffer instanceof SharedArrayBuffer && result.buffer instanceof SharedArrayBuffer;
|
|
933
|
+
if ((input.buffer === result.buffer || shared) && input.byteOffset < result.byteOffset + length * result.BYTES_PER_ELEMENT && result.byteOffset < input.byteOffset + input.byteLength)
|
|
934
|
+
throw new Error("Scalar input/output views overlap; use the same view for in-place projection");
|
|
935
|
+
}
|
|
936
|
+
function writeScalarOutput(coordinate, output, point, length) {
|
|
937
|
+
if (output instanceof Float32Array) {
|
|
938
|
+
if (Math.abs(point.x) > FLOAT32_MAX || Math.abs(point.y) > FLOAT32_MAX || length >= 3 && Math.abs(point.z) > FLOAT32_MAX)
|
|
939
|
+
throw new Error("Projected coordinate exceeds Float32 range");
|
|
940
|
+
for (let i = 3; i < coordinate.length; i++) {
|
|
941
|
+
const value = coordinate[i];
|
|
942
|
+
if (Number.isFinite(value) && Math.abs(value) > FLOAT32_MAX)
|
|
943
|
+
throw new Error("Trailing ordinate exceeds Float32 range");
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
for (let i = 3; i < coordinate.length; i++)
|
|
947
|
+
output[i] = coordinate[i];
|
|
948
|
+
output[0] = point.x;
|
|
949
|
+
output[1] = point.y;
|
|
950
|
+
if (length >= 3)
|
|
951
|
+
output[2] = point.z;
|
|
952
|
+
return output;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
// dist/projection/experimental/crs-descriptor.js
|
|
956
|
+
var ANGULAR_UNITS = {
|
|
957
|
+
degrees: Math.PI / 180,
|
|
958
|
+
radians: 1,
|
|
959
|
+
gradians: Math.PI / 200
|
|
960
|
+
};
|
|
961
|
+
var LINEAR_UNITS = {
|
|
962
|
+
...Object.fromEntries(Object.values(linearUnits).map((unit) => [unit.name, unit.metersPerUnit]))
|
|
963
|
+
};
|
|
964
|
+
async function resolveCRSDescriptor(engine, definition, normalization, options = {}, useDefinitionSignature = false, prepareInput) {
|
|
965
|
+
const captured = typeof definition === "string" ? definition : JSON.parse(JSON.stringify(definition));
|
|
966
|
+
const conventions = {
|
|
967
|
+
enforceAxis: normalization.enforceAxis,
|
|
968
|
+
mode: normalization.mode,
|
|
969
|
+
...options,
|
|
970
|
+
converters: options.converters && [...options.converters]
|
|
971
|
+
};
|
|
972
|
+
const input = prepareInput ? await prepareInput(captured, { ...normalization, ...conventions }) : captured;
|
|
973
|
+
const crs = normalizeCRS(input, { ...normalization, ...conventions });
|
|
974
|
+
const projection = await engine.createProjectionAsync({
|
|
975
|
+
...conventions,
|
|
976
|
+
from: "WGS84",
|
|
977
|
+
to: input
|
|
978
|
+
});
|
|
979
|
+
const axis = crs.storedAxis || (conventions.enforceAxis ? crs.axis : "enu");
|
|
980
|
+
const horizontalUnit = getUnit(crs.kind === "geographic" ? crs.angularUnit : crs.toMeter, crs.kind === "geographic");
|
|
981
|
+
const heightUnit = getUnit(crs.verticalUnit, false);
|
|
982
|
+
const units = [...axis].map((direction) => crs.kind !== "geocentric" && /[ud]/.test(direction) ? heightUnit : horizontalUnit);
|
|
983
|
+
const profile = projection.targetProfile;
|
|
984
|
+
if (!profile)
|
|
985
|
+
throw new Error("Projection must define a rendering profile for CRS retrieval");
|
|
986
|
+
const center = (projection.targetLongitudeOrigin + crs.primeMeridian) * 180 / Math.PI;
|
|
987
|
+
const bounds = adaptBounds(profile, crs, axis);
|
|
988
|
+
const normalizeWGS84 = createNormalization(profile.normalize);
|
|
989
|
+
const renderingScale = createRenderingScale(crs, projection, axis, center);
|
|
990
|
+
const sources = [.../* @__PURE__ */ new Set(["WGS84", ...conventions.converters || []])];
|
|
991
|
+
if (sources.some((source) => typeof source !== "string" || !source.trim()))
|
|
992
|
+
throw new Error("Converter source CRS must be a nonempty string");
|
|
993
|
+
const entries = await Promise.all(sources.map(async (source) => {
|
|
994
|
+
if (source === "WGS84")
|
|
995
|
+
return [source, createConverter(projection, normalizeWGS84)];
|
|
996
|
+
const [pair, geographic] = await Promise.all([
|
|
997
|
+
engine.createProjectionAsync({ ...conventions, from: source, to: input }),
|
|
998
|
+
engine.createProjectionAsync({ ...conventions, from: "WGS84", to: source })
|
|
999
|
+
]);
|
|
1000
|
+
return [
|
|
1001
|
+
source,
|
|
1002
|
+
createConverter(pair, createSourceNormalization(geographic, normalizeWGS84))
|
|
1003
|
+
];
|
|
1004
|
+
}));
|
|
1005
|
+
const converter = Object.assign(/* @__PURE__ */ Object.create(null), Object.fromEntries(entries));
|
|
1006
|
+
const metadata = {
|
|
1007
|
+
coordinateFrame: crs.kind,
|
|
1008
|
+
projection: crs.projection,
|
|
1009
|
+
parameters: crs.parameters,
|
|
1010
|
+
ellipsoid: {
|
|
1011
|
+
semiMajorAxis: crs.ellipsoid.semiMajorAxis,
|
|
1012
|
+
semiMinorAxis: crs.ellipsoid.semiMinorAxis
|
|
1013
|
+
},
|
|
1014
|
+
axis,
|
|
1015
|
+
xUnit: units[0],
|
|
1016
|
+
yUnit: units[1],
|
|
1017
|
+
zUnit: units[2],
|
|
1018
|
+
areaOfUse: crs.areaOfUse,
|
|
1019
|
+
lossy: crs.lossy
|
|
1020
|
+
};
|
|
1021
|
+
return {
|
|
1022
|
+
...metadata,
|
|
1023
|
+
// Exact caller identity is sufficient under default execution conventions.
|
|
1024
|
+
// Additional source converters do not change the target CRS.
|
|
1025
|
+
signature: useDefinitionSignature && typeof input === "string" && !conventions.enforceAxis && !crs.lossy ? input : getCRSSignature(metadata),
|
|
1026
|
+
renderingBounds: bounds,
|
|
1027
|
+
renderingScale,
|
|
1028
|
+
getRenderingScale: (coordinate) => typeof renderingScale === "function" ? renderingScale(coordinate) : renderingScale,
|
|
1029
|
+
converter
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
function createConverter(projection, normalize) {
|
|
1033
|
+
return {
|
|
1034
|
+
from: createConversion(projection.project.bind(projection), projection.projectTo.bind(projection)),
|
|
1035
|
+
to: createConversion(projection.unproject.bind(projection), projection.unprojectTo.bind(projection)),
|
|
1036
|
+
normalize
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
function createSourceNormalization(geographic, normalizeWGS84) {
|
|
1040
|
+
function normalize(coordinate, output) {
|
|
1041
|
+
if (output !== void 0)
|
|
1042
|
+
validateScalarOutput(coordinate, output, coordinate.length);
|
|
1043
|
+
const wgs842 = geographic.unproject(Array.from(coordinate));
|
|
1044
|
+
const [longitude, latitude, altitude] = wgs842;
|
|
1045
|
+
normalizeWGS84(wgs842, wgs842);
|
|
1046
|
+
if (wgs842[0] === longitude && wgs842[1] === latitude && wgs842[2] === altitude) {
|
|
1047
|
+
return output === void 0 ? Array.from(coordinate) : writeScalarOutput(coordinate, output, { x: coordinate[0], y: coordinate[1], z: coordinate[2] ?? 0 }, coordinate.length);
|
|
1048
|
+
}
|
|
1049
|
+
return output === void 0 ? geographic.project(wgs842) : geographic.projectTo(wgs842, output);
|
|
1050
|
+
}
|
|
1051
|
+
return normalize;
|
|
1052
|
+
}
|
|
1053
|
+
function createConversion(allocate, write) {
|
|
1054
|
+
function convert(coordinate, output) {
|
|
1055
|
+
return output === void 0 ? allocate(Array.isArray(coordinate) ? coordinate : Array.from(coordinate)) : write(coordinate, output);
|
|
1056
|
+
}
|
|
1057
|
+
return convert;
|
|
1058
|
+
}
|
|
1059
|
+
function createNormalization(normalizeDomain) {
|
|
1060
|
+
function normalize(coordinate, output) {
|
|
1061
|
+
const result = output ?? new Array(coordinate.length);
|
|
1062
|
+
validateScalarOutput(coordinate, result, coordinate.length);
|
|
1063
|
+
const longitude = coordinate[0], latitude = coordinate[1], altitude = coordinate[2] ?? 0;
|
|
1064
|
+
if (coordinate.length < 2 || !Number.isFinite(longitude) || !Number.isFinite(latitude) || !Number.isFinite(altitude))
|
|
1065
|
+
throw new Error("Normalization requires finite longitude, latitude and altitude");
|
|
1066
|
+
const point = { x: longitude, y: latitude, z: altitude };
|
|
1067
|
+
normalizeDomain == null ? void 0 : normalizeDomain(point);
|
|
1068
|
+
return writeScalarOutput(coordinate, result, point, coordinate.length);
|
|
1069
|
+
}
|
|
1070
|
+
return normalize;
|
|
1071
|
+
}
|
|
1072
|
+
function adaptBounds(profile, crs, axis) {
|
|
1073
|
+
const horizontalUnit = crs.kind === "geographic" ? crs.angularUnit : crs.toMeter;
|
|
1074
|
+
const units = [
|
|
1075
|
+
horizontalUnit,
|
|
1076
|
+
horizontalUnit,
|
|
1077
|
+
crs.kind === "geocentric" ? crs.toMeter : crs.verticalUnit
|
|
1078
|
+
];
|
|
1079
|
+
const bounds = profile.bounds;
|
|
1080
|
+
const limits = [...axis].map((direction) => {
|
|
1081
|
+
const index = /[ew]/.test(direction) ? 0 : /[ns]/.test(direction) ? 1 : 2;
|
|
1082
|
+
const minimum = bounds[0][index] / units[index];
|
|
1083
|
+
const maximum = bounds[1][index] / units[index];
|
|
1084
|
+
return /[wsd]/.test(direction) ? [-maximum, -minimum] : [minimum, maximum];
|
|
1085
|
+
});
|
|
1086
|
+
return [
|
|
1087
|
+
[limits[0][0], limits[1][0], limits[2][0]],
|
|
1088
|
+
[limits[0][1], limits[1][1], limits[2][1]]
|
|
1089
|
+
];
|
|
1090
|
+
}
|
|
1091
|
+
function getUnit(factor, angular) {
|
|
1092
|
+
const units = angular ? ANGULAR_UNITS : LINEAR_UNITS;
|
|
1093
|
+
const name = Object.keys(units).find((candidate) => units[candidate] === factor) || "custom";
|
|
1094
|
+
return angular ? { name, degreesPerUnit: factor / ANGULAR_UNITS["degrees"] } : { name, metersPerUnit: factor };
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
// dist/projection/experimental/engine-options.js
|
|
1098
|
+
function snapshotEngineOptions(options) {
|
|
1099
|
+
return {
|
|
1100
|
+
...options,
|
|
1101
|
+
projections: options.projections && [...options.projections],
|
|
1102
|
+
parsers: options.parsers && [...options.parsers],
|
|
1103
|
+
datumCatalogs: options.datumCatalogs && [...options.datumCatalogs],
|
|
1104
|
+
aliases: options.aliases && JSON.parse(JSON.stringify(options.aliases)),
|
|
1105
|
+
datumGrids: options.datumGrids && { ...options.datumGrids },
|
|
1106
|
+
verticalGrids: options.verticalGrids && { ...options.verticalGrids }
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
function hasCRSOverrides(options) {
|
|
1110
|
+
return Boolean(options.projections || options.parsers || options.datumCatalogs || options.aliases || options.datumGrids || options.verticalGrids || options.resolver);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
// dist/projection/experimental/crs/resolve.js
|
|
1114
|
+
async function prepareEngineOptions(options) {
|
|
1115
|
+
const captured = {
|
|
1116
|
+
...options,
|
|
1117
|
+
from: capture(options.from ?? "WGS84"),
|
|
1118
|
+
to: capture(options.to ?? "WGS84")
|
|
1119
|
+
};
|
|
1120
|
+
const [from, to] = await Promise.all([
|
|
1121
|
+
prepareCRSInput(captured.from, captured),
|
|
1122
|
+
prepareCRSInput(captured.to, captured)
|
|
1123
|
+
]);
|
|
1124
|
+
return { ...captured, from, to };
|
|
1125
|
+
}
|
|
1126
|
+
async function prepareCRSInput(captured, options) {
|
|
1127
|
+
var _a;
|
|
1128
|
+
const source = resolveCRSInput(captured, options);
|
|
1129
|
+
const local = resolveLocalCRSDefinition(source.definition, options);
|
|
1130
|
+
const reference = typeof captured === "string" || "type" in captured ? void 0 : "crs" in captured ? captured.crs : captured;
|
|
1131
|
+
const representation = local === source.definition && reference ? reference.representation : inferCRSRepresentation(local);
|
|
1132
|
+
if (representation !== "identifier" || ((_a = options.parsers) == null ? void 0 : _a.some((p) => p.canParse(local)))) {
|
|
1133
|
+
return captured;
|
|
1134
|
+
}
|
|
1135
|
+
const result = await options.resolver.resolve({
|
|
1136
|
+
state: "explicit",
|
|
1137
|
+
provenance: (reference == null ? void 0 : reference.provenance) ?? "unknown",
|
|
1138
|
+
definition: local,
|
|
1139
|
+
representation
|
|
1140
|
+
});
|
|
1141
|
+
const definition = resolveCRSInput(result.input, options).definition;
|
|
1142
|
+
if (!reference)
|
|
1143
|
+
return definition;
|
|
1144
|
+
const metadata = captured;
|
|
1145
|
+
const resolved2 = {
|
|
1146
|
+
...reference,
|
|
1147
|
+
definition,
|
|
1148
|
+
representation: inferCRSRepresentation(definition),
|
|
1149
|
+
alternatives: [
|
|
1150
|
+
{ definition: reference.definition, representation: reference.representation },
|
|
1151
|
+
...reference.alternatives ?? []
|
|
1152
|
+
]
|
|
1153
|
+
};
|
|
1154
|
+
return "crs" in metadata ? { ...metadata, crs: resolved2 } : resolved2;
|
|
1155
|
+
}
|
|
1156
|
+
function capture(input) {
|
|
1157
|
+
return typeof input === "string" ? input : JSON.parse(JSON.stringify(input));
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
// dist/projection/experimental/projection-engine.js
|
|
1161
|
+
var import_typescript_projection = require("./typescript-projection.shared.cjs");
|
|
1162
|
+
var ConfigurableProjectionEngine = class {
|
|
1163
|
+
constructor(options = {}) {
|
|
1164
|
+
this.options = snapshotEngineOptions(options);
|
|
1165
|
+
this.useDefinitionSignature = !hasCRSOverrides(options);
|
|
1166
|
+
}
|
|
1167
|
+
/** Resolve a CRS and load only its required algorithms before exposing sync conversions. */
|
|
1168
|
+
getCRS(definition, options = {}) {
|
|
1169
|
+
return resolveCRSDescriptor(this, definition, this.options, options, this.useDefinitionSignature, this.options.resolver ? prepareCRSInput : void 0);
|
|
1170
|
+
}
|
|
1171
|
+
/** Compile a CRS pair. Lazy descriptors remain unloaded until the transform is used. */
|
|
1172
|
+
createProjection(options = {}) {
|
|
1173
|
+
return new import_typescript_projection.ProjectionTransform({ ...this.options, ...options });
|
|
1174
|
+
}
|
|
1175
|
+
/** Load only the algorithms required by this CRS pair and return a synchronous transform. */
|
|
1176
|
+
async createProjectionAsync(options = {}) {
|
|
1177
|
+
const config = { ...this.options, ...options };
|
|
1178
|
+
return import_typescript_projection.ProjectionTransform.create(config.resolver ? await prepareEngineOptions(config) : config);
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
function createProjectionEngine(options = {}) {
|
|
1182
|
+
return new ConfigurableProjectionEngine(options);
|
|
1183
|
+
}
|
|
1184
|
+
//# sourceMappingURL=projection-engine.shared.cjs.map
|