@math.gl/geospatial 5.0.0-beta.10 → 5.0.0-beta.12
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 +3 -3
- package/dist/crs/index.cjs +54 -0
- package/dist/crs/index.cjs.map +2 -2
- package/dist/crs/index.d.ts +1 -0
- package/dist/crs/index.d.ts.map +1 -1
- package/dist/crs/index.js +1 -0
- package/dist/crs/index.js.map +1 -1
- package/dist/crs/spatial-reference-metadata.d.ts +20 -0
- package/dist/crs/spatial-reference-metadata.d.ts.map +1 -0
- package/dist/crs/spatial-reference-metadata.js +86 -0
- package/dist/crs/spatial-reference-metadata.js.map +1 -0
- package/dist/expressions.d.ts +1 -1
- package/dist/expressions.d.ts.map +1 -1
- package/dist/index.cjs +1738 -316
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +14 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/projection/experimental/core.cjs.map +1 -1
- package/dist/projection/experimental/crs/spatial-reference.d.ts.map +1 -1
- package/dist/projection/experimental/crs/spatial-reference.js.map +1 -1
- package/dist/projection/experimental/crs/types.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/aea.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/aea.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/aea.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/aea.js +4 -1
- package/dist/projection/experimental/lazy-projections/aea.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/bonne.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.js +4 -1
- package/dist/projection/experimental/lazy-projections/bonne.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/cass.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/cass.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/cass.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/cass.js +4 -1
- package/dist/projection/experimental/lazy-projections/cass.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/eck6.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.js +4 -1
- package/dist/projection/experimental/lazy-projections/eck6.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/eqdc.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.js +4 -1
- package/dist/projection/experimental/lazy-projections/eqdc.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/eqearth.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.js +4 -1
- package/dist/projection/experimental/lazy-projections/eqearth.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/equi.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/equi.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/equi.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/equi.js +4 -1
- package/dist/projection/experimental/lazy-projections/equi.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/geocent.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.js +4 -1
- package/dist/projection/experimental/lazy-projections/geocent.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/geos.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/geos.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/geos.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/geos.js +4 -1
- package/dist/projection/experimental/lazy-projections/geos.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/gnom.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.js +4 -1
- package/dist/projection/experimental/lazy-projections/gnom.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/index.cjs +92 -23
- package/dist/projection/experimental/lazy-projections/index.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/krovak.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.js +4 -1
- package/dist/projection/experimental/lazy-projections/krovak.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/merc.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/merc.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/merc.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/merc.js +4 -1
- package/dist/projection/experimental/lazy-projections/merc.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/mill.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/mill.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/mill.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/mill.js +4 -1
- package/dist/projection/experimental/lazy-projections/mill.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/moll.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/moll.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/moll.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/moll.js +4 -1
- package/dist/projection/experimental/lazy-projections/moll.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/nzmg.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.js +4 -1
- package/dist/projection/experimental/lazy-projections/nzmg.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/omerc.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.js +4 -1
- package/dist/projection/experimental/lazy-projections/omerc.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/ortho.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.js +4 -1
- package/dist/projection/experimental/lazy-projections/ortho.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/poly.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/poly.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/poly.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/poly.js +4 -1
- package/dist/projection/experimental/lazy-projections/poly.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/robin.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/robin.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/robin.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/robin.js +4 -1
- package/dist/projection/experimental/lazy-projections/robin.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/sinu.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.js +4 -1
- package/dist/projection/experimental/lazy-projections/sinu.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/stere.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/stere.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/stere.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/stere.js +4 -1
- package/dist/projection/experimental/lazy-projections/stere.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/tpers.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.js +4 -1
- package/dist/projection/experimental/lazy-projections/tpers.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/vandg.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.js +4 -1
- package/dist/projection/experimental/lazy-projections/vandg.js.map +1 -1
- package/dist/projection/index.cjs.map +1 -1
- package/dist/projection/index.d.ts.map +1 -1
- package/dist/projection/index.js.map +1 -1
- package/dist/projection/lib/projection.js.map +1 -1
- package/dist/projection/pipeline.cjs.map +1 -1
- package/dist/projection/transform-analysis.cjs.map +1 -1
- package/dist/tasks/index.cjs +181 -84
- package/dist/tasks/index.cjs.map +2 -2
- package/dist/tasks/terrain-residency.d.ts.map +1 -1
- package/dist/tasks/terrain-residency.js +80 -18
- package/dist/tasks/terrain-residency.js.map +1 -1
- package/dist/terrain/cutout-polygons.d.ts +21 -0
- package/dist/terrain/cutout-polygons.d.ts.map +1 -0
- package/dist/terrain/cutout-polygons.js +172 -0
- package/dist/terrain/cutout-polygons.js.map +1 -0
- package/dist/terrain/cutout-region.d.ts +34 -0
- package/dist/terrain/cutout-region.d.ts.map +1 -0
- package/dist/terrain/cutout-region.js +33 -0
- package/dist/terrain/cutout-region.js.map +1 -0
- package/dist/terrain/cutout-skirts.d.ts +34 -0
- package/dist/terrain/cutout-skirts.d.ts.map +1 -0
- package/dist/terrain/cutout-skirts.js +29 -0
- package/dist/terrain/cutout-skirts.js.map +1 -0
- package/dist/terrain/depression-fill.d.ts +25 -0
- package/dist/terrain/depression-fill.d.ts.map +1 -0
- package/dist/terrain/depression-fill.js +106 -0
- package/dist/terrain/depression-fill.js.map +1 -0
- package/dist/terrain/geographic-cutout.d.ts +38 -0
- package/dist/terrain/geographic-cutout.d.ts.map +1 -0
- package/dist/terrain/geographic-cutout.js +120 -0
- package/dist/terrain/geographic-cutout.js.map +1 -0
- package/dist/terrain/hydrology.d.ts +42 -0
- package/dist/terrain/hydrology.d.ts.map +1 -0
- package/dist/terrain/hydrology.js +112 -0
- package/dist/terrain/hydrology.js.map +1 -0
- package/dist/terrain/index.cjs +1529 -107
- package/dist/terrain/index.cjs.map +3 -3
- package/dist/terrain/index.d.ts +15 -1
- package/dist/terrain/index.d.ts.map +1 -1
- package/dist/terrain/index.js +13 -0
- package/dist/terrain/index.js.map +1 -1
- package/dist/terrain/lod-screen-error.d.ts +28 -0
- package/dist/terrain/lod-screen-error.d.ts.map +1 -0
- package/dist/terrain/lod-screen-error.js +95 -0
- package/dist/terrain/lod-screen-error.js.map +1 -0
- package/dist/terrain/lod-select.d.ts +26 -10
- package/dist/terrain/lod-select.d.ts.map +1 -1
- package/dist/terrain/lod-select.js +27 -14
- package/dist/terrain/lod-select.js.map +1 -1
- package/dist/terrain/mesh-cutout.d.ts +45 -0
- package/dist/terrain/mesh-cutout.d.ts.map +1 -0
- package/dist/terrain/mesh-cutout.js +336 -0
- package/dist/terrain/mesh-cutout.js.map +1 -0
- package/dist/terrain/mesh-skirts.d.ts +8 -2
- package/dist/terrain/mesh-skirts.d.ts.map +1 -1
- package/dist/terrain/mesh-skirts.js +5 -4
- package/dist/terrain/mesh-skirts.js.map +1 -1
- package/dist/terrain/mixed-halo-update.d.ts.map +1 -1
- package/dist/terrain/mixed-halo-update.js +58 -23
- package/dist/terrain/mixed-halo-update.js.map +1 -1
- package/dist/terrain/mixed-vertex-halos.d.ts +24 -1
- package/dist/terrain/mixed-vertex-halos.d.ts.map +1 -1
- package/dist/terrain/mixed-vertex-halos.js +75 -58
- package/dist/terrain/mixed-vertex-halos.js.map +1 -1
- package/dist/terrain/regional-viewshed.d.ts +55 -0
- package/dist/terrain/regional-viewshed.d.ts.map +1 -0
- package/dist/terrain/regional-viewshed.js +119 -0
- package/dist/terrain/regional-viewshed.js.map +1 -0
- package/dist/terrain/sweep-polytope.d.ts +4 -0
- package/dist/terrain/sweep-polytope.d.ts.map +1 -1
- package/dist/terrain/sweep-polytope.js +15 -5
- package/dist/terrain/sweep-polytope.js.map +1 -1
- package/dist/terrain/sweep-rotating-capsule.d.ts +17 -0
- package/dist/terrain/sweep-rotating-capsule.d.ts.map +1 -0
- package/dist/terrain/sweep-rotating-capsule.js +118 -0
- package/dist/terrain/sweep-rotating-capsule.js.map +1 -0
- package/dist/terrain/sweep-rotation.d.ts +35 -0
- package/dist/terrain/sweep-rotation.d.ts.map +1 -0
- package/dist/terrain/sweep-rotation.js +114 -0
- package/dist/terrain/sweep-rotation.js.map +1 -0
- package/dist/terrain/tile-cutout-update.d.ts +73 -0
- package/dist/terrain/tile-cutout-update.d.ts.map +1 -0
- package/dist/terrain/tile-cutout-update.js +181 -0
- package/dist/terrain/tile-cutout-update.js.map +1 -0
- package/dist/terrain/tile-cutout.d.ts +33 -0
- package/dist/terrain/tile-cutout.d.ts.map +1 -0
- package/dist/terrain/tile-cutout.js +93 -0
- package/dist/terrain/tile-cutout.js.map +1 -0
- package/dist/terrain/watershed-accumulation.d.ts +20 -0
- package/dist/terrain/watershed-accumulation.d.ts.map +1 -0
- package/dist/terrain/watershed-accumulation.js +53 -0
- package/dist/terrain/watershed-accumulation.js.map +1 -0
- package/dist/turf/expressions.cjs +4 -4
- package/dist/turf/expressions.cjs.map +2 -2
- package/dist/turf/expressions.d.ts +2 -2
- package/dist/turf/expressions.d.ts.map +1 -1
- package/dist/turf/expressions.js +2 -2
- package/dist/turf/expressions.js.map +1 -1
- package/dist/turf.cjs +25 -25
- package/dist/turf.cjs.map +2 -2
- package/dist/turf.d.ts +1 -1
- package/dist/turf.d.ts.map +1 -1
- package/dist/turf.js +2 -2
- package/dist/turf.js.map +1 -1
- package/dist/web-mercator/assert.d.ts +2 -0
- package/dist/web-mercator/assert.d.ts.map +1 -0
- package/dist/web-mercator/assert.js +12 -0
- package/dist/web-mercator/assert.js.map +1 -0
- package/dist/web-mercator/fit-bounds.d.ts +52 -0
- package/dist/web-mercator/fit-bounds.d.ts.map +1 -0
- package/dist/web-mercator/fit-bounds.js +70 -0
- package/dist/web-mercator/fit-bounds.js.map +1 -0
- package/dist/web-mercator/fly-to-viewport.d.ts +19 -0
- package/dist/web-mercator/fly-to-viewport.d.ts.map +1 -0
- package/dist/web-mercator/fly-to-viewport.js +94 -0
- package/dist/web-mercator/fly-to-viewport.js.map +1 -0
- package/dist/web-mercator/get-bounds.d.ts +3 -0
- package/dist/web-mercator/get-bounds.d.ts.map +1 -0
- package/dist/web-mercator/get-bounds.js +56 -0
- package/dist/web-mercator/get-bounds.js.map +1 -0
- package/dist/web-mercator/index.cjs +705 -0
- package/dist/web-mercator/index.cjs.map +6 -0
- package/dist/web-mercator/index.d.ts +14 -0
- package/dist/web-mercator/index.d.ts.map +1 -0
- package/dist/web-mercator/index.js +14 -0
- package/dist/web-mercator/index.js.map +1 -0
- package/dist/web-mercator/math-utils.d.ts +7 -0
- package/dist/web-mercator/math-utils.d.ts.map +1 -0
- package/dist/web-mercator/math-utils.js +30 -0
- package/dist/web-mercator/math-utils.js.map +1 -0
- package/dist/web-mercator/mercator-meters.d.ts +29 -0
- package/dist/web-mercator/mercator-meters.d.ts.map +1 -0
- package/dist/web-mercator/mercator-meters.js +61 -0
- package/dist/web-mercator/mercator-meters.js.map +1 -0
- package/dist/web-mercator/normalize-viewport-props.d.ts +16 -0
- package/dist/web-mercator/normalize-viewport-props.d.ts.map +1 -0
- package/dist/web-mercator/normalize-viewport-props.js +45 -0
- package/dist/web-mercator/normalize-viewport-props.js.map +1 -0
- package/dist/web-mercator/web-mercator-utils.d.ts +192 -0
- package/dist/web-mercator/web-mercator-utils.d.ts.map +1 -0
- package/dist/web-mercator/web-mercator-utils.js +321 -0
- package/dist/web-mercator/web-mercator-utils.js.map +1 -0
- package/dist/web-mercator/web-mercator-viewport.d.ts +177 -0
- package/dist/web-mercator/web-mercator-viewport.d.ts.map +1 -0
- package/dist/web-mercator/web-mercator-viewport.js +276 -0
- package/dist/web-mercator/web-mercator-viewport.js.map +1 -0
- package/dist/web-mercator.d.ts +1 -1
- package/dist/web-mercator.d.ts.map +1 -1
- package/dist/web-mercator.js +1 -1
- package/dist/web-mercator.js.map +1 -1
- package/package.json +19 -458
- package/src/crs/index.ts +7 -0
- package/src/crs/spatial-reference-metadata.ts +118 -0
- package/src/expressions.ts +1 -1
- package/src/index.ts +92 -4
- package/src/projection/experimental/crs/spatial-reference.ts +1 -6
- package/src/projection/experimental/crs/types.ts +1 -1
- package/src/projection/experimental/crs/wkt.ts +1 -1
- package/src/projection/experimental/crs-descriptor.ts +1 -1
- package/src/projection/experimental/lazy-projections/aea.ts +4 -1
- package/src/projection/experimental/lazy-projections/bonne.ts +4 -1
- package/src/projection/experimental/lazy-projections/cass.ts +4 -1
- package/src/projection/experimental/lazy-projections/eck6.ts +4 -1
- package/src/projection/experimental/lazy-projections/eqdc.ts +4 -1
- package/src/projection/experimental/lazy-projections/eqearth.ts +4 -1
- package/src/projection/experimental/lazy-projections/equi.ts +4 -1
- package/src/projection/experimental/lazy-projections/geocent.ts +4 -1
- package/src/projection/experimental/lazy-projections/geos.ts +4 -1
- package/src/projection/experimental/lazy-projections/gnom.ts +4 -1
- package/src/projection/experimental/lazy-projections/krovak.ts +4 -1
- package/src/projection/experimental/lazy-projections/merc.ts +4 -1
- package/src/projection/experimental/lazy-projections/mill.ts +4 -1
- package/src/projection/experimental/lazy-projections/moll.ts +4 -1
- package/src/projection/experimental/lazy-projections/nzmg.ts +4 -1
- package/src/projection/experimental/lazy-projections/omerc.ts +4 -1
- package/src/projection/experimental/lazy-projections/ortho.ts +4 -1
- package/src/projection/experimental/lazy-projections/poly.ts +4 -1
- package/src/projection/experimental/lazy-projections/robin.ts +4 -1
- package/src/projection/experimental/lazy-projections/sinu.ts +4 -1
- package/src/projection/experimental/lazy-projections/stere.ts +4 -1
- package/src/projection/experimental/lazy-projections/tpers.ts +4 -1
- package/src/projection/experimental/lazy-projections/vandg.ts +4 -1
- package/src/projection/index.ts +1 -1
- package/src/projection/lib/projection.ts +1 -1
- package/src/tasks/terrain-residency.ts +86 -21
- package/src/terrain/cutout-polygons.ts +202 -0
- package/src/terrain/cutout-region.ts +54 -0
- package/src/terrain/cutout-skirts.ts +52 -0
- package/src/terrain/depression-fill.ts +125 -0
- package/src/terrain/geographic-cutout.ts +154 -0
- package/src/terrain/hydrology.ts +149 -0
- package/src/terrain/index.ts +85 -1
- package/src/terrain/lod-screen-error.ts +128 -0
- package/src/terrain/lod-select.ts +65 -31
- package/src/terrain/mesh-cutout.ts +420 -0
- package/src/terrain/mesh-skirts.ts +10 -7
- package/src/terrain/mixed-halo-update.ts +54 -20
- package/src/terrain/mixed-vertex-halos.ts +94 -78
- package/src/terrain/regional-viewshed.ts +177 -0
- package/src/terrain/sweep-polytope.ts +49 -25
- package/src/terrain/sweep-rotating-capsule.ts +139 -0
- package/src/terrain/sweep-rotation.ts +149 -0
- package/src/terrain/tile-cutout-update.ts +293 -0
- package/src/terrain/tile-cutout.ts +123 -0
- package/src/terrain/watershed-accumulation.ts +67 -0
- package/src/turf/expressions.ts +3 -3
- package/src/turf.ts +3 -7
- package/src/web-mercator/assert.ts +11 -0
- package/src/web-mercator/fit-bounds.ts +132 -0
- package/src/web-mercator/fly-to-viewport.ts +157 -0
- package/src/web-mercator/get-bounds.ts +62 -0
- package/src/web-mercator/index.ts +49 -0
- package/src/web-mercator/math-utils.ts +35 -0
- package/src/web-mercator/mercator-meters.ts +83 -0
- package/src/web-mercator/normalize-viewport-props.ts +58 -0
- package/src/web-mercator/web-mercator-utils.ts +468 -0
- package/src/web-mercator/web-mercator-viewport.ts +406 -0
- package/src/web-mercator.ts +1 -1
- package/dist/projection/experimental/index.cjs +0 -11707
- package/dist/projection/experimental/index.cjs.map +0 -6
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import {createSpatialReference} from './spatial-reference';
|
|
6
|
+
import type {SpatialReference} from './spatial-reference';
|
|
7
|
+
|
|
8
|
+
/** JSON spatial reference for current coordinate values in schema or field metadata. */
|
|
9
|
+
export const SPATIAL_REFERENCE_METADATA_KEY = 'vis.gl:spatial_reference';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Returns a copy of metadata containing the spatial reference for current coordinate values.
|
|
13
|
+
* Other entries and caller-owned objects are preserved. Invalid descriptors throw.
|
|
14
|
+
*/
|
|
15
|
+
export function setSpatialReferenceMetadata(
|
|
16
|
+
metadata: ReadonlyMap<string, string> | undefined,
|
|
17
|
+
spatialReference: SpatialReference
|
|
18
|
+
): Map<string, string> {
|
|
19
|
+
validateSpatialReference(spatialReference);
|
|
20
|
+
const result = new Map(metadata);
|
|
21
|
+
result.set(SPATIAL_REFERENCE_METADATA_KEY, JSON.stringify(spatialReference));
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Reads an immutable spatial reference, or undefined when the metadata key is missing.
|
|
27
|
+
* Malformed JSON or descriptors throw; CRS definitions are not parsed or resolved.
|
|
28
|
+
*/
|
|
29
|
+
export function getSpatialReferenceMetadata(
|
|
30
|
+
metadata: ReadonlyMap<string, string> | undefined
|
|
31
|
+
): SpatialReference | undefined {
|
|
32
|
+
const value = metadata?.get(SPATIAL_REFERENCE_METADATA_KEY);
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
const reference: unknown = JSON.parse(value);
|
|
37
|
+
validateSpatialReference(reference);
|
|
38
|
+
return createSpatialReference(reference);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Resolves a coordinate field's declaration before the schema default.
|
|
43
|
+
* Explicit unknown or absent field references block inheritance. The caller identifies coordinate
|
|
44
|
+
* fields and handles format-specific metadata such as GeoArrow before using this convention.
|
|
45
|
+
*/
|
|
46
|
+
export function resolveSpatialReferenceMetadata(
|
|
47
|
+
schemaMetadata: ReadonlyMap<string, string> | undefined,
|
|
48
|
+
fieldMetadata?: ReadonlyMap<string, string>
|
|
49
|
+
): SpatialReference | undefined {
|
|
50
|
+
return getSpatialReferenceMetadata(fieldMetadata) ?? getSpatialReferenceMetadata(schemaMetadata);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Validate the descriptor envelope without importing a CRS parser or projection engine. */
|
|
54
|
+
function validateSpatialReference(value: unknown): asserts value is SpatialReference {
|
|
55
|
+
if (
|
|
56
|
+
!isObject(value) ||
|
|
57
|
+
!isReference(value['crs']) ||
|
|
58
|
+
(value['vertical'] !== undefined && !isReference(value['vertical'])) ||
|
|
59
|
+
!['geographic', 'geocentric', 'projected', 'local', 'unknown'].includes(
|
|
60
|
+
value['coordinateFrame'] as string
|
|
61
|
+
) ||
|
|
62
|
+
!isStringArray(value['coordinateOrder']) ||
|
|
63
|
+
(value['units'] !== undefined && !isStringArray(value['units'])) ||
|
|
64
|
+
(value['coordinateEpoch'] !== undefined &&
|
|
65
|
+
(typeof value['coordinateEpoch'] !== 'number' || !Number.isFinite(value['coordinateEpoch'])))
|
|
66
|
+
) {
|
|
67
|
+
throw new Error('Invalid spatial reference metadata');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Check known and unresolved reference variants, including alternate representations. */
|
|
72
|
+
function isReference(value: unknown): boolean {
|
|
73
|
+
if (
|
|
74
|
+
!isObject(value) ||
|
|
75
|
+
!['metadata', 'format-default', 'caller-override', 'legacy-assumption', 'unknown'].includes(
|
|
76
|
+
value['provenance'] as string
|
|
77
|
+
)
|
|
78
|
+
) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (value['state'] === 'unknown' || value['state'] === 'absent') {
|
|
82
|
+
return (
|
|
83
|
+
value['definition'] === undefined &&
|
|
84
|
+
value['representation'] === undefined &&
|
|
85
|
+
value['alternatives'] === undefined
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
return (
|
|
89
|
+
(value['state'] === 'explicit' || value['state'] === 'default') &&
|
|
90
|
+
isDefinition(value) &&
|
|
91
|
+
(value['alternatives'] === undefined ||
|
|
92
|
+
(Array.isArray(value['alternatives']) && value['alternatives'].every(isDefinition)))
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** Check representation and serialized value shape without validating CRS semantics. */
|
|
97
|
+
function isDefinition(value: unknown): boolean {
|
|
98
|
+
if (!isObject(value)) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
if (value['representation'] === 'projjson') {
|
|
102
|
+
return isObject(value['definition']);
|
|
103
|
+
}
|
|
104
|
+
return (
|
|
105
|
+
['identifier', 'wkt', 'proj-string', 'opaque'].includes(value['representation'] as string) &&
|
|
106
|
+
typeof value['definition'] === 'string'
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Exclude arrays and null from JSON objects. */
|
|
111
|
+
function isObject(value: unknown): value is Record<string, unknown> {
|
|
112
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Check coordinate order and unit arrays. */
|
|
116
|
+
function isStringArray(value: unknown): value is string[] {
|
|
117
|
+
return Array.isArray(value) && value['every'](item => typeof item === 'string');
|
|
118
|
+
}
|
package/src/expressions.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {eastNorthUpToFixedFrame} from './ellipsoid-transforms';
|
|
|
7
7
|
import {Ellipsoid} from './ellipsoid';
|
|
8
8
|
import {isWGS84} from './type-utils';
|
|
9
9
|
import {toDegrees, toRadians} from '@math.gl/core';
|
|
10
|
-
import type {ExpressionFunctionLibrary} from '@math.gl/expressions';
|
|
10
|
+
import type {ExpressionFunctionLibrary} from '@math.gl/sql/expressions';
|
|
11
11
|
|
|
12
12
|
/** WGS84 ellipsoid helpers available to the expression evaluator. */
|
|
13
13
|
export const GEOSPATIAL_FUNCTION_LIBRARY: ExpressionFunctionLibrary = {
|
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export {
|
|
|
27
27
|
PROJStringSyntaxError,
|
|
28
28
|
getCRSSignature,
|
|
29
29
|
linearUnits
|
|
30
|
-
} from './crs
|
|
30
|
+
} from './crs';
|
|
31
31
|
export type {
|
|
32
32
|
CRSExecutionIdentity,
|
|
33
33
|
CRSDefinition,
|
|
@@ -83,7 +83,7 @@ export type {
|
|
|
83
83
|
CRSRenderingScale,
|
|
84
84
|
CRSRenderingScaleCallback,
|
|
85
85
|
CRSUnit
|
|
86
|
-
} from './crs
|
|
86
|
+
} from './crs';
|
|
87
87
|
export {createCRSDictionaryProvider, createCRSResolver, CRSResolutionError} from './crs/resolver';
|
|
88
88
|
export type {
|
|
89
89
|
CRSDefinitionProvider,
|
|
@@ -191,7 +191,7 @@ export type {
|
|
|
191
191
|
SubdivideGeographicCutRingOptions,
|
|
192
192
|
SubdividedGeographicCutRing
|
|
193
193
|
} from './geographic-cuts';
|
|
194
|
-
export {HeightField, TerrainSampleStatus, createTerrainSkirt} from './terrain
|
|
194
|
+
export {HeightField, TerrainSampleStatus, createTerrainSkirt} from './terrain';
|
|
195
195
|
export type {
|
|
196
196
|
HeightFieldProps,
|
|
197
197
|
TerrainArray,
|
|
@@ -203,7 +203,7 @@ export type {
|
|
|
203
203
|
TerrainSampleBatch,
|
|
204
204
|
TerrainSkirtOptions,
|
|
205
205
|
TerrainSkirtMesh
|
|
206
|
-
} from './terrain
|
|
206
|
+
} from './terrain';
|
|
207
207
|
export {HeightFieldGeometry} from './terrain/geometry';
|
|
208
208
|
export type {HeightFieldGeometryOptions} from './terrain/geometry';
|
|
209
209
|
export {GeographicHeightField} from './terrain/geographic';
|
|
@@ -392,6 +392,7 @@ export {
|
|
|
392
392
|
export {
|
|
393
393
|
selectTerrainLod,
|
|
394
394
|
type TerrainLodCandidate,
|
|
395
|
+
type TerrainLodCertifiedView,
|
|
395
396
|
type TerrainLodView
|
|
396
397
|
} from './terrain/lod-select';
|
|
397
398
|
export {stitchTerrainLodCut, type TerrainLodSeam} from './terrain/lod-stitch';
|
|
@@ -433,6 +434,10 @@ export {
|
|
|
433
434
|
type TerrainPolytopeSweepResult
|
|
434
435
|
} from './terrain/sweep-polytope';
|
|
435
436
|
|
|
437
|
+
export {
|
|
438
|
+
sweepTerrainRotatingCapsule,
|
|
439
|
+
sweepTerrainRotatingSphere
|
|
440
|
+
} from './terrain/sweep-rotating-capsule';
|
|
436
441
|
export {sweepTerrainCylinder} from './terrain/sweep-cylinder';
|
|
437
442
|
|
|
438
443
|
export {sweepTerrainPlane} from './terrain/sweep-plane';
|
|
@@ -443,3 +448,86 @@ export {
|
|
|
443
448
|
type TerrainPoleIncidence,
|
|
444
449
|
type TerrainPoleCoverage
|
|
445
450
|
} from './terrain/geographic-poles';
|
|
451
|
+
|
|
452
|
+
export {
|
|
453
|
+
sweepTerrainRotatingBox,
|
|
454
|
+
sweepTerrainRotatingPolytope,
|
|
455
|
+
type TerrainRigidMotion,
|
|
456
|
+
type TerrainRotationalSweepResult
|
|
457
|
+
} from './terrain/sweep-rotation';
|
|
458
|
+
|
|
459
|
+
export {
|
|
460
|
+
boundTerrainLodScreenError,
|
|
461
|
+
type TerrainLodErrorBounds,
|
|
462
|
+
type TerrainLodProjection
|
|
463
|
+
} from './terrain/lod-screen-error';
|
|
464
|
+
|
|
465
|
+
export {
|
|
466
|
+
createTerrainRegionalViewshed,
|
|
467
|
+
TerrainRegionalViewStatus,
|
|
468
|
+
type TerrainRegionalViewshed,
|
|
469
|
+
type TerrainRegionalViewshedOptions,
|
|
470
|
+
type TerrainViewshedGrid
|
|
471
|
+
} from './terrain/regional-viewshed';
|
|
472
|
+
|
|
473
|
+
export {
|
|
474
|
+
createTerrainDrainage,
|
|
475
|
+
getTerrainCellMetrics,
|
|
476
|
+
type TerrainCellMetrics,
|
|
477
|
+
type TerrainDrainage,
|
|
478
|
+
type TerrainDrainageOptions
|
|
479
|
+
} from './terrain/hydrology';
|
|
480
|
+
|
|
481
|
+
export {
|
|
482
|
+
fillTerrainDepressions,
|
|
483
|
+
type TerrainDepressionFill,
|
|
484
|
+
type TerrainDepressionFillOptions
|
|
485
|
+
} from './terrain/depression-fill';
|
|
486
|
+
|
|
487
|
+
export {
|
|
488
|
+
splitTerrainMesh,
|
|
489
|
+
createTerrainCutoutSkirts,
|
|
490
|
+
type TerrainCutout,
|
|
491
|
+
type TerrainCutoutInput,
|
|
492
|
+
type TerrainCutoutOptions,
|
|
493
|
+
type TerrainCutoutPiece,
|
|
494
|
+
type SkirtedTerrainCutout,
|
|
495
|
+
type TerrainCutoutSkirtOptions
|
|
496
|
+
} from './terrain';
|
|
497
|
+
|
|
498
|
+
export {
|
|
499
|
+
accumulateTerrainWatersheds,
|
|
500
|
+
type TerrainWatershedAccumulation,
|
|
501
|
+
type TerrainWatershedAccumulationOptions
|
|
502
|
+
} from './terrain/watershed-accumulation';
|
|
503
|
+
|
|
504
|
+
export {
|
|
505
|
+
splitTerrainMeshTiles,
|
|
506
|
+
type TerrainCutoutTile,
|
|
507
|
+
type TerrainTileCutout
|
|
508
|
+
} from './terrain/tile-cutout';
|
|
509
|
+
|
|
510
|
+
export {
|
|
511
|
+
updateTerrainTileCutouts,
|
|
512
|
+
type TerrainCutoutResident,
|
|
513
|
+
type TerrainTileCutoutUpdateOptions,
|
|
514
|
+
type TerrainTileCutoutCache,
|
|
515
|
+
type TerrainTileCutoutUpdate
|
|
516
|
+
} from './terrain/tile-cutout-update';
|
|
517
|
+
export {
|
|
518
|
+
createGeographicTerrainCutoutFrame,
|
|
519
|
+
projectGeographicTerrainCutout,
|
|
520
|
+
unprojectGeographicTerrainCutout,
|
|
521
|
+
type GeographicTerrainCutoutFrame,
|
|
522
|
+
type GeographicTerrainCutoutFrameOptions
|
|
523
|
+
} from './terrain/geographic-cutout';
|
|
524
|
+
|
|
525
|
+
export {
|
|
526
|
+
prepareTerrainCutoutPolygons,
|
|
527
|
+
type TerrainCutoutPolygonOptions
|
|
528
|
+
} from './terrain/cutout-polygons';
|
|
529
|
+
export type {
|
|
530
|
+
TerrainCutoutPolygon,
|
|
531
|
+
TerrainCutoutPolygonSet,
|
|
532
|
+
TerrainCutoutRegion
|
|
533
|
+
} from './terrain/cutout-region';
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
// math.gl
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
-
import type {
|
|
5
|
-
CRSInput,
|
|
6
|
-
CRSReference,
|
|
7
|
-
ReadonlyCRSDefinition,
|
|
8
|
-
SpatialReference
|
|
9
|
-
} from '../../../crs/index';
|
|
4
|
+
import type {CRSInput, CRSReference, ReadonlyCRSDefinition, SpatialReference} from '../../../crs';
|
|
10
5
|
import {TypeScriptCRSError, unsupportedStage} from './types';
|
|
11
6
|
import type {CRSNormalizationOptions, NormalizedCRS} from './types';
|
|
12
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
import type {SpheroidParameters} from '@math.gl/core';
|
|
5
|
-
import type {CRSMetadata, ReadonlyCRSDefinition} from '../../../crs
|
|
5
|
+
import type {CRSMetadata, ReadonlyCRSDefinition} from '../../../crs';
|
|
6
6
|
import type {ProjectionParameters} from '../types';
|
|
7
7
|
import type {DatumGridReference} from '../grids/types';
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// SPDX-FileComment: Original adapter; named-axis fallback inspired by proj4js 2.22.0 / wkt-parser (MIT). See ../../../../PROJ4-LICENSE.md for upstream attribution.
|
|
5
5
|
import {inferCRSRepresentation} from '../../../crs/spatial-reference';
|
|
6
6
|
import {parseWKTCRS} from '../../../crs/wkt-crs';
|
|
7
|
-
import type {WKTCRSNode} from '../../../crs
|
|
7
|
+
import type {WKTCRSNode} from '../../../crs';
|
|
8
8
|
import type {CRSParser} from './types';
|
|
9
9
|
import {unsupportedStage} from './types';
|
|
10
10
|
import {readStructuredCRS} from './structured';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {CRSMetadata, CRSUnit} from '../../crs
|
|
5
|
+
import type {CRSMetadata, CRSUnit} from '../../crs';
|
|
6
6
|
import type {CRSResolver} from '../../crs/resolver';
|
|
7
7
|
import {normalizeCRS} from './crs/normalize';
|
|
8
8
|
import {createRenderingScale} from './crs-rendering-scale';
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyAlbersEqualArea: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'aea', aliases: ['Albers_Conic_Equal_Area', 'Albers_Equal_Area', 'Albers']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/aea');
|
|
11
|
+
return projectionModule.albersEqualArea;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyBonne: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'bonne', aliases: ['Bonne (Werner lat_1=90)']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/bonne');
|
|
11
|
+
return projectionModule.bonne;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyCassiniSoldner: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'cass', aliases: ['Cassini', 'Cassini_Soldner']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/cass');
|
|
11
|
+
return projectionModule.cassiniSoldner;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyEckertVI: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'eck6', aliases: ['Eckert_VI']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/eck6');
|
|
11
|
+
return projectionModule.eckertVI;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyEquidistantConic: ProjectionDescriptor =
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'eqdc', aliases: ['Equidistant_Conic']},
|
|
10
|
-
async () =>
|
|
10
|
+
async () => {
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/eqdc');
|
|
12
|
+
return projectionModule.equidistantConic;
|
|
13
|
+
}
|
|
11
14
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyEqualEarth: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'eqearth', aliases: ['Equal Earth', 'Equal_Earth']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/eqearth');
|
|
11
|
+
return projectionModule.equalEarth;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyEquirectangular: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'equi', aliases: []},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/equi');
|
|
11
|
+
return projectionModule.equirectangular;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyGeocentric: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'geocent', aliases: ['Geocentric', 'geocentric', 'Geocent']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/geocent');
|
|
11
|
+
return projectionModule.geocentric;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyGeostationary: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'geos', aliases: ['Geostationary Satellite View', 'Geostationary_Satellite']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/geos');
|
|
11
|
+
return projectionModule.geostationary;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyGnomonic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'gnom', aliases: []},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/gnom');
|
|
11
|
+
return projectionModule.gnomonic;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -14,5 +14,8 @@ export const lazyKrovak: ProjectionDescriptor = /* @__PURE__ */ createProjection
|
|
|
14
14
|
'Krovak Modified (North Orientated)'
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
-
async () =>
|
|
17
|
+
async () => {
|
|
18
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/krovak');
|
|
19
|
+
return projectionModule.krovak;
|
|
20
|
+
}
|
|
18
21
|
);
|
|
@@ -15,5 +15,8 @@ export const lazyMercator: ProjectionDescriptor = /* @__PURE__ */ createProjecti
|
|
|
15
15
|
'Mercator_Variant_A'
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
|
-
async () =>
|
|
18
|
+
async () => {
|
|
19
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/merc');
|
|
20
|
+
return projectionModule.mercator;
|
|
21
|
+
}
|
|
19
22
|
);
|
|
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyMillerCylindrical: ProjectionDescriptor =
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'mill', aliases: ['Miller_Cylindrical']},
|
|
10
|
-
async () =>
|
|
10
|
+
async () => {
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/mill');
|
|
12
|
+
return projectionModule.millerCylindrical;
|
|
13
|
+
}
|
|
11
14
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyMollweide: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'moll', aliases: ['Mollweide']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/moll');
|
|
11
|
+
return projectionModule.mollweide;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyNewZealandMapGrid: ProjectionDescriptor =
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'nzmg', aliases: ['New_Zealand_Map_Grid']},
|
|
10
|
-
async () =>
|
|
10
|
+
async () => {
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/nzmg');
|
|
12
|
+
return projectionModule.newZealandMapGrid;
|
|
13
|
+
}
|
|
11
14
|
);
|
|
@@ -18,5 +18,8 @@ export const lazyObliqueMercator: ProjectionDescriptor = /* @__PURE__ */ createP
|
|
|
18
18
|
'Oblique_Mercator'
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
-
async () =>
|
|
21
|
+
async () => {
|
|
22
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/omerc');
|
|
23
|
+
return projectionModule.obliqueMercator;
|
|
24
|
+
}
|
|
22
25
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyOrthographic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'ortho', aliases: []},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/ortho');
|
|
11
|
+
return projectionModule.orthographic;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyPolyconic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'poly', aliases: ['Polyconic', 'American_Polyconic']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/poly');
|
|
11
|
+
return projectionModule.polyconic;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyRobinson: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'robin', aliases: ['Robinson']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/robin');
|
|
11
|
+
return projectionModule.robinson;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazySinusoidal: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'sinu', aliases: ['Sinusoidal']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/sinu');
|
|
11
|
+
return projectionModule.sinusoidal;
|
|
12
|
+
}
|
|
10
13
|
);
|
|
@@ -14,5 +14,8 @@ export const lazyStereographic: ProjectionDescriptor = /* @__PURE__ */ createPro
|
|
|
14
14
|
'Polar_Stereographic'
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
-
async () =>
|
|
17
|
+
async () => {
|
|
18
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/stere');
|
|
19
|
+
return projectionModule.stereographic;
|
|
20
|
+
}
|
|
18
21
|
);
|
|
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyTiltedPerspective: ProjectionDescriptor =
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'tpers', aliases: ['Tilted_Perspective']},
|
|
10
|
-
async () =>
|
|
10
|
+
async () => {
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/tpers');
|
|
12
|
+
return projectionModule.tiltedPerspective;
|
|
13
|
+
}
|
|
11
14
|
);
|
|
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
|
|
|
6
6
|
import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
7
7
|
export const lazyVanDerGrinten: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'vandg', aliases: ['Van_der_Grinten_I', 'VanDerGrinten', 'Van_der_Grinten']},
|
|
9
|
-
async () =>
|
|
9
|
+
async () => {
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection/projections/vandg');
|
|
11
|
+
return projectionModule.vanDerGrinten;
|
|
12
|
+
}
|
|
10
13
|
);
|
package/src/projection/index.ts
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
obliqueTransformation,
|
|
47
47
|
wktCRSParser,
|
|
48
48
|
projJSONCRSParser
|
|
49
|
-
} from '../experimental
|
|
49
|
+
} from '../experimental';
|
|
50
50
|
import {CORE_PARAMETERS} from '../experimental/crs/normalize';
|
|
51
51
|
import type {ProjectionPlugin} from '../experimental/types';
|
|
52
52
|
|