@math.gl/geospatial 5.0.0-alpha.9 → 5.0.0-beta.2
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/GEOGRAPHICLIB-LICENSE.txt +28 -0
- package/LICENSE +268 -69
- package/README.md +51 -0
- package/THIRD-PARTY-NOTICES.md +116 -0
- package/crs/README.md +84 -0
- package/crs/schemas/README.md +9 -0
- package/crs/schemas/projjson.schema.json +1174 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -3
- package/dist/constants.js.map +1 -1
- package/dist/coordinates/angles.d.ts +20 -0
- package/dist/coordinates/angles.d.ts.map +1 -0
- package/dist/coordinates/angles.js +117 -0
- package/dist/coordinates/angles.js.map +1 -0
- package/dist/coordinates/grid.d.ts +23 -0
- package/dist/coordinates/grid.d.ts.map +1 -0
- package/dist/coordinates/grid.js +110 -0
- package/dist/coordinates/grid.js.map +1 -0
- package/dist/coordinates/mgrs.d.ts +25 -0
- package/dist/coordinates/mgrs.d.ts.map +1 -0
- package/dist/coordinates/mgrs.js +124 -0
- package/dist/coordinates/mgrs.js.map +1 -0
- package/dist/coordinates.d.ts +7 -0
- package/dist/coordinates.d.ts.map +1 -0
- package/dist/coordinates.js +7 -0
- package/dist/coordinates.js.map +1 -0
- package/dist/crs/crs-descriptor-types.d.ts +71 -0
- package/dist/crs/crs-descriptor-types.d.ts.map +1 -0
- package/dist/crs/crs-descriptor-types.js +5 -0
- package/dist/crs/crs-descriptor-types.js.map +1 -0
- package/dist/crs/crs-descriptor.d.ts +26 -0
- package/dist/crs/crs-descriptor.d.ts.map +1 -0
- package/dist/crs/crs-descriptor.js +131 -0
- package/dist/crs/crs-descriptor.js.map +1 -0
- package/dist/crs/crs-identifier.d.ts +23 -0
- package/dist/crs/crs-identifier.d.ts.map +1 -0
- package/dist/crs/crs-identifier.js +74 -0
- package/dist/crs/crs-identifier.js.map +1 -0
- package/dist/crs/crs-metadata.d.ts +43 -0
- package/dist/crs/crs-metadata.d.ts.map +1 -0
- package/dist/crs/crs-metadata.js +26 -0
- package/dist/crs/crs-metadata.js.map +1 -0
- package/dist/crs/crs.d.ts +22 -0
- package/dist/crs/crs.d.ts.map +1 -0
- package/dist/crs/crs.js +5 -0
- package/dist/crs/crs.js.map +1 -0
- package/dist/crs/execution-identity.d.ts +26 -0
- package/dist/crs/execution-identity.d.ts.map +1 -0
- package/dist/crs/execution-identity.js +76 -0
- package/dist/crs/execution-identity.js.map +1 -0
- package/dist/crs/index.cjs +1300 -0
- package/dist/crs/index.cjs.map +6 -0
- package/dist/crs/index.d.ts +22 -0
- package/dist/crs/index.d.ts.map +1 -0
- package/dist/crs/index.js +16 -0
- package/dist/crs/index.js.map +1 -0
- package/dist/crs/proj-string.d.ts +32 -0
- package/dist/crs/proj-string.d.ts.map +1 -0
- package/dist/crs/proj-string.js +204 -0
- package/dist/crs/proj-string.js.map +1 -0
- package/dist/crs/projection-domain.d.ts +33 -0
- package/dist/crs/projection-domain.d.ts.map +1 -0
- package/dist/crs/projection-domain.js +69 -0
- package/dist/crs/projection-domain.js.map +1 -0
- package/dist/crs/projjson-schema-constants.d.ts +5 -0
- package/dist/crs/projjson-schema-constants.d.ts.map +1 -0
- package/dist/crs/projjson-schema-constants.js +8 -0
- package/dist/crs/projjson-schema-constants.js.map +1 -0
- package/dist/crs/projjson-types.d.ts +557 -0
- package/dist/crs/projjson-types.d.ts.map +1 -0
- package/dist/crs/projjson-types.js +5 -0
- package/dist/crs/projjson-types.js.map +1 -0
- package/dist/crs/resolver.d.ts +43 -0
- package/dist/crs/resolver.d.ts.map +1 -0
- package/dist/crs/resolver.js +142 -0
- package/dist/crs/resolver.js.map +1 -0
- package/dist/crs/spatial-reference.d.ts +106 -0
- package/dist/crs/spatial-reference.d.ts.map +1 -0
- package/dist/crs/spatial-reference.js +86 -0
- package/dist/crs/spatial-reference.js.map +1 -0
- package/dist/crs/units-table.d.ts +4 -0
- package/dist/crs/units-table.d.ts.map +1 -0
- package/dist/crs/units-table.js +29 -0
- package/dist/crs/units-table.js.map +1 -0
- package/dist/crs/wkt-crs.d.ts +86 -0
- package/dist/crs/wkt-crs.d.ts.map +1 -0
- package/dist/crs/wkt-crs.js +613 -0
- package/dist/crs/wkt-crs.js.map +1 -0
- package/dist/discontinuous/air-ocean-mesh.d.ts +15 -0
- package/dist/discontinuous/air-ocean-mesh.d.ts.map +1 -0
- package/dist/discontinuous/air-ocean-mesh.js +75 -0
- package/dist/discontinuous/air-ocean-mesh.js.map +1 -0
- package/dist/discontinuous/albers-usa.d.ts +9 -0
- package/dist/discontinuous/albers-usa.d.ts.map +1 -0
- package/dist/discontinuous/albers-usa.js +105 -0
- package/dist/discontinuous/albers-usa.js.map +1 -0
- package/dist/discontinuous/cap-map.d.ts +23 -0
- package/dist/discontinuous/cap-map.d.ts.map +1 -0
- package/dist/discontinuous/cap-map.js +498 -0
- package/dist/discontinuous/cap-map.js.map +1 -0
- package/dist/discontinuous/elastic/data.d.ts +26 -0
- package/dist/discontinuous/elastic/data.d.ts.map +1 -0
- package/dist/discontinuous/elastic/data.js +72 -0
- package/dist/discontinuous/elastic/data.js.map +1 -0
- package/dist/discontinuous/elastic/elasticI.d.ts +3 -0
- package/dist/discontinuous/elastic/elasticI.d.ts.map +1 -0
- package/dist/discontinuous/elastic/elasticI.js +5233 -0
- package/dist/discontinuous/elastic/elasticI.js.map +1 -0
- package/dist/discontinuous/elastic/elasticII.d.ts +3 -0
- package/dist/discontinuous/elastic/elasticII.d.ts.map +1 -0
- package/dist/discontinuous/elastic/elasticII.js +18162 -0
- package/dist/discontinuous/elastic/elasticII.js.map +1 -0
- package/dist/discontinuous/elastic/elasticIII.d.ts +3 -0
- package/dist/discontinuous/elastic/elasticIII.d.ts.map +1 -0
- package/dist/discontinuous/elastic/elasticIII.js +29566 -0
- package/dist/discontinuous/elastic/elasticIII.js.map +1 -0
- package/dist/discontinuous/elastic/geometry.d.ts +22 -0
- package/dist/discontinuous/elastic/geometry.d.ts.map +1 -0
- package/dist/discontinuous/elastic/geometry.js +131 -0
- package/dist/discontinuous/elastic/geometry.js.map +1 -0
- package/dist/discontinuous/elastic/grid.d.ts +15 -0
- package/dist/discontinuous/elastic/grid.d.ts.map +1 -0
- package/dist/discontinuous/elastic/grid.js +177 -0
- package/dist/discontinuous/elastic/grid.js.map +1 -0
- package/dist/discontinuous/elastic/map.d.ts +8 -0
- package/dist/discontinuous/elastic/map.d.ts.map +1 -0
- package/dist/discontinuous/elastic/map.js +500 -0
- package/dist/discontinuous/elastic/map.js.map +1 -0
- package/dist/discontinuous/elastic/source-arc.d.ts +10 -0
- package/dist/discontinuous/elastic/source-arc.d.ts.map +1 -0
- package/dist/discontinuous/elastic/source-arc.js +111 -0
- package/dist/discontinuous/elastic/source-arc.js.map +1 -0
- package/dist/discontinuous/global-polygons.d.ts +35 -0
- package/dist/discontinuous/global-polygons.d.ts.map +1 -0
- package/dist/discontinuous/global-polygons.js +263 -0
- package/dist/discontinuous/global-polygons.js.map +1 -0
- package/dist/discontinuous/gray-fuller.d.ts +5 -0
- package/dist/discontinuous/gray-fuller.d.ts.map +1 -0
- package/dist/discontinuous/gray-fuller.js +36 -0
- package/dist/discontinuous/gray-fuller.js.map +1 -0
- package/dist/discontinuous/gringorten-kernel.d.ts +5 -0
- package/dist/discontinuous/gringorten-kernel.d.ts.map +1 -0
- package/dist/discontinuous/gringorten-kernel.js +94 -0
- package/dist/discontinuous/gringorten-kernel.js.map +1 -0
- package/dist/discontinuous/healpix.d.ts +13 -0
- package/dist/discontinuous/healpix.d.ts.map +1 -0
- package/dist/discontinuous/healpix.js +61 -0
- package/dist/discontinuous/healpix.js.map +1 -0
- package/dist/discontinuous/layout.d.ts +72 -0
- package/dist/discontinuous/layout.d.ts.map +1 -0
- package/dist/discontinuous/layout.js +114 -0
- package/dist/discontinuous/layout.js.map +1 -0
- package/dist/discontinuous/map-engine.d.ts +223 -0
- package/dist/discontinuous/map-engine.d.ts.map +1 -0
- package/dist/discontinuous/map-engine.js +408 -0
- package/dist/discontinuous/map-engine.js.map +1 -0
- package/dist/discontinuous/map-layout.d.ts +114 -0
- package/dist/discontinuous/map-layout.d.ts.map +1 -0
- package/dist/discontinuous/map-layout.js +605 -0
- package/dist/discontinuous/map-layout.js.map +1 -0
- package/dist/discontinuous/map-transition.d.ts +42 -0
- package/dist/discontinuous/map-transition.d.ts.map +1 -0
- package/dist/discontinuous/map-transition.js +346 -0
- package/dist/discontinuous/map-transition.js.map +1 -0
- package/dist/discontinuous/math.d.ts +19 -0
- package/dist/discontinuous/math.d.ts.map +1 -0
- package/dist/discontinuous/math.js +65 -0
- package/dist/discontinuous/math.js.map +1 -0
- package/dist/discontinuous/mercator-map.d.ts +24 -0
- package/dist/discontinuous/mercator-map.d.ts.map +1 -0
- package/dist/discontinuous/mercator-map.js +246 -0
- package/dist/discontinuous/mercator-map.js.map +1 -0
- package/dist/discontinuous/myriahedral/graticule.d.ts +6 -0
- package/dist/discontinuous/myriahedral/graticule.d.ts.map +1 -0
- package/dist/discontinuous/myriahedral/graticule.js +37 -0
- package/dist/discontinuous/myriahedral/graticule.js.map +1 -0
- package/dist/discontinuous/myriahedral/mesh.d.ts +18 -0
- package/dist/discontinuous/myriahedral/mesh.d.ts.map +1 -0
- package/dist/discontinuous/myriahedral/mesh.js +131 -0
- package/dist/discontinuous/myriahedral/mesh.js.map +1 -0
- package/dist/discontinuous/myriahedral/unfold.d.ts +56 -0
- package/dist/discontinuous/myriahedral/unfold.d.ts.map +1 -0
- package/dist/discontinuous/myriahedral/unfold.js +191 -0
- package/dist/discontinuous/myriahedral/unfold.js.map +1 -0
- package/dist/discontinuous/myriahedral.d.ts +62 -0
- package/dist/discontinuous/myriahedral.d.ts.map +1 -0
- package/dist/discontinuous/myriahedral.js +217 -0
- package/dist/discontinuous/myriahedral.js.map +1 -0
- package/dist/discontinuous/petroff.d.ts +8 -0
- package/dist/discontinuous/petroff.d.ts.map +1 -0
- package/dist/discontinuous/petroff.js +159 -0
- package/dist/discontinuous/petroff.js.map +1 -0
- package/dist/discontinuous/polygon-constraints.d.ts +16 -0
- package/dist/discontinuous/polygon-constraints.d.ts.map +1 -0
- package/dist/discontinuous/polygon-constraints.js +157 -0
- package/dist/discontinuous/polygon-constraints.js.map +1 -0
- package/dist/discontinuous/polyhedral.d.ts +8 -0
- package/dist/discontinuous/polyhedral.d.ts.map +1 -0
- package/dist/discontinuous/polyhedral.js +117 -0
- package/dist/discontinuous/polyhedral.js.map +1 -0
- package/dist/discontinuous/prepare-features.d.ts +108 -0
- package/dist/discontinuous/prepare-features.d.ts.map +1 -0
- package/dist/discontinuous/prepare-features.js +250 -0
- package/dist/discontinuous/prepare-features.js.map +1 -0
- package/dist/discontinuous/presets.d.ts +71 -0
- package/dist/discontinuous/presets.d.ts.map +1 -0
- package/dist/discontinuous/presets.js +372 -0
- package/dist/discontinuous/presets.js.map +1 -0
- package/dist/discontinuous/projection-catalog.d.ts +33 -0
- package/dist/discontinuous/projection-catalog.d.ts.map +1 -0
- package/dist/discontinuous/projection-catalog.js +96 -0
- package/dist/discontinuous/projection-catalog.js.map +1 -0
- package/dist/discontinuous/quincuncial-kernel.d.ts +9 -0
- package/dist/discontinuous/quincuncial-kernel.d.ts.map +1 -0
- package/dist/discontinuous/quincuncial-kernel.js +139 -0
- package/dist/discontinuous/quincuncial-kernel.js.map +1 -0
- package/dist/discontinuous/quincuncial-star.d.ts +29 -0
- package/dist/discontinuous/quincuncial-star.d.ts.map +1 -0
- package/dist/discontinuous/quincuncial-star.js +307 -0
- package/dist/discontinuous/quincuncial-star.js.map +1 -0
- package/dist/discontinuous/regional-map.d.ts +19 -0
- package/dist/discontinuous/regional-map.d.ts.map +1 -0
- package/dist/discontinuous/regional-map.js +190 -0
- package/dist/discontinuous/regional-map.js.map +1 -0
- package/dist/discontinuous/retroazimuthal-map.d.ts +6 -0
- package/dist/discontinuous/retroazimuthal-map.d.ts.map +1 -0
- package/dist/discontinuous/retroazimuthal-map.js +52 -0
- package/dist/discontinuous/retroazimuthal-map.js.map +1 -0
- package/dist/discontinuous/rotated-map.d.ts +40 -0
- package/dist/discontinuous/rotated-map.d.ts.map +1 -0
- package/dist/discontinuous/rotated-map.js +66 -0
- package/dist/discontinuous/rotated-map.js.map +1 -0
- package/dist/discontinuous/snyder-mesh.d.ts +11 -0
- package/dist/discontinuous/snyder-mesh.d.ts.map +1 -0
- package/dist/discontinuous/snyder-mesh.js +88 -0
- package/dist/discontinuous/snyder-mesh.js.map +1 -0
- package/dist/discontinuous/snyder.d.ts +16 -0
- package/dist/discontinuous/snyder.d.ts.map +1 -0
- package/dist/discontinuous/snyder.js +153 -0
- package/dist/discontinuous/snyder.js.map +1 -0
- package/dist/discontinuous/source-arc.d.ts +4 -0
- package/dist/discontinuous/source-arc.d.ts.map +1 -0
- package/dist/discontinuous/source-arc.js +23 -0
- package/dist/discontinuous/source-arc.js.map +1 -0
- package/dist/discontinuous/spherical-clip/cartesian.d.ts +8 -0
- package/dist/discontinuous/spherical-clip/cartesian.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/cartesian.js +34 -0
- package/dist/discontinuous/spherical-clip/cartesian.js.map +1 -0
- package/dist/discontinuous/spherical-clip/circle.d.ts +2 -0
- package/dist/discontinuous/spherical-clip/circle.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/circle.js +34 -0
- package/dist/discontinuous/spherical-clip/circle.js.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-buffer.d.ts +9 -0
- package/dist/discontinuous/spherical-clip/clip-buffer.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-buffer.js +28 -0
- package/dist/discontinuous/spherical-clip/clip-buffer.js.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-circle.d.ts +9 -0
- package/dist/discontinuous/spherical-clip/clip-circle.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-circle.js +160 -0
- package/dist/discontinuous/spherical-clip/clip-circle.js.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-index.d.ts +9 -0
- package/dist/discontinuous/spherical-clip/clip-index.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-index.js +117 -0
- package/dist/discontinuous/spherical-clip/clip-index.js.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-rejoin.d.ts +2 -0
- package/dist/discontinuous/spherical-clip/clip-rejoin.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/clip-rejoin.js +99 -0
- package/dist/discontinuous/spherical-clip/clip-rejoin.js.map +1 -0
- package/dist/discontinuous/spherical-clip/helpers.d.ts +8 -0
- package/dist/discontinuous/spherical-clip/helpers.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/helpers.js +21 -0
- package/dist/discontinuous/spherical-clip/helpers.js.map +1 -0
- package/dist/discontinuous/spherical-clip/math.d.ts +26 -0
- package/dist/discontinuous/spherical-clip/math.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/math.js +39 -0
- package/dist/discontinuous/spherical-clip/math.js.map +1 -0
- package/dist/discontinuous/spherical-clip/noop.d.ts +2 -0
- package/dist/discontinuous/spherical-clip/noop.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/noop.js +6 -0
- package/dist/discontinuous/spherical-clip/noop.js.map +1 -0
- package/dist/discontinuous/spherical-clip/pointEqual.d.ts +2 -0
- package/dist/discontinuous/spherical-clip/pointEqual.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/pointEqual.js +9 -0
- package/dist/discontinuous/spherical-clip/pointEqual.js.map +1 -0
- package/dist/discontinuous/spherical-clip/polygonContains.d.ts +2 -0
- package/dist/discontinuous/spherical-clip/polygonContains.d.ts.map +1 -0
- package/dist/discontinuous/spherical-clip/polygonContains.js +52 -0
- package/dist/discontinuous/spherical-clip/polygonContains.js.map +1 -0
- package/dist/discontinuous/world-composite-kernels.d.ts +11 -0
- package/dist/discontinuous/world-composite-kernels.d.ts.map +1 -0
- package/dist/discontinuous/world-composite-kernels.js +30 -0
- package/dist/discontinuous/world-composite-kernels.js.map +1 -0
- package/dist/discontinuous/world-kernels/airy.d.ts +5 -0
- package/dist/discontinuous/world-kernels/airy.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/airy.js +28 -0
- package/dist/discontinuous/world-kernels/airy.js.map +1 -0
- package/dist/discontinuous/world-kernels/aitoff.d.ts +5 -0
- package/dist/discontinuous/world-kernels/aitoff.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/aitoff.js +26 -0
- package/dist/discontinuous/world-kernels/aitoff.js.map +1 -0
- package/dist/discontinuous/world-kernels/armadillo.d.ts +5 -0
- package/dist/discontinuous/world-kernels/armadillo.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/armadillo.js +28 -0
- package/dist/discontinuous/world-kernels/armadillo.js.map +1 -0
- package/dist/discontinuous/world-kernels/august.d.ts +5 -0
- package/dist/discontinuous/world-kernels/august.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/august.js +21 -0
- package/dist/discontinuous/world-kernels/august.js.map +1 -0
- package/dist/discontinuous/world-kernels/baker.d.ts +5 -0
- package/dist/discontinuous/world-kernels/baker.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/baker.js +29 -0
- package/dist/discontinuous/world-kernels/baker.js.map +1 -0
- package/dist/discontinuous/world-kernels/bertin.d.ts +5 -0
- package/dist/discontinuous/world-kernels/bertin.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/bertin.js +32 -0
- package/dist/discontinuous/world-kernels/bertin.js.map +1 -0
- package/dist/discontinuous/world-kernels/boggs.d.ts +5 -0
- package/dist/discontinuous/world-kernels/boggs.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/boggs.js +24 -0
- package/dist/discontinuous/world-kernels/boggs.js.map +1 -0
- package/dist/discontinuous/world-kernels/bonne.d.ts +3 -0
- package/dist/discontinuous/world-kernels/bonne.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/bonne.js +22 -0
- package/dist/discontinuous/world-kernels/bonne.js.map +1 -0
- package/dist/discontinuous/world-kernels/bottomley.d.ts +5 -0
- package/dist/discontinuous/world-kernels/bottomley.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/bottomley.js +18 -0
- package/dist/discontinuous/world-kernels/bottomley.js.map +1 -0
- package/dist/discontinuous/world-kernels/bromley.d.ts +5 -0
- package/dist/discontinuous/world-kernels/bromley.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/bromley.js +9 -0
- package/dist/discontinuous/world-kernels/bromley.js.map +1 -0
- package/dist/discontinuous/world-kernels/chamberlin.d.ts +2 -0
- package/dist/discontinuous/world-kernels/chamberlin.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/chamberlin.js +81 -0
- package/dist/discontinuous/world-kernels/chamberlin.js.map +1 -0
- package/dist/discontinuous/world-kernels/collignon.d.ts +5 -0
- package/dist/discontinuous/world-kernels/collignon.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/collignon.js +15 -0
- package/dist/discontinuous/world-kernels/collignon.js.map +1 -0
- package/dist/discontinuous/world-kernels/craig.d.ts +5 -0
- package/dist/discontinuous/world-kernels/craig.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/craig.js +30 -0
- package/dist/discontinuous/world-kernels/craig.js.map +1 -0
- package/dist/discontinuous/world-kernels/craster.d.ts +5 -0
- package/dist/discontinuous/world-kernels/craster.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/craster.js +15 -0
- package/dist/discontinuous/world-kernels/craster.js.map +1 -0
- package/dist/discontinuous/world-kernels/cylindricalEqualArea.d.ts +5 -0
- package/dist/discontinuous/world-kernels/cylindricalEqualArea.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/cylindricalEqualArea.js +17 -0
- package/dist/discontinuous/world-kernels/cylindricalEqualArea.js.map +1 -0
- package/dist/discontinuous/world-kernels/cylindricalStereographic.d.ts +5 -0
- package/dist/discontinuous/world-kernels/cylindricalStereographic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/cylindricalStereographic.js +17 -0
- package/dist/discontinuous/world-kernels/cylindricalStereographic.js.map +1 -0
- package/dist/discontinuous/world-kernels/d3-geo-raw.d.ts +9 -0
- package/dist/discontinuous/world-kernels/d3-geo-raw.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/d3-geo-raw.js +21 -0
- package/dist/discontinuous/world-kernels/d3-geo-raw.js.map +1 -0
- package/dist/discontinuous/world-kernels/eckert1.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eckert1.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eckert1.js +15 -0
- package/dist/discontinuous/world-kernels/eckert1.js.map +1 -0
- package/dist/discontinuous/world-kernels/eckert2.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eckert2.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eckert2.js +15 -0
- package/dist/discontinuous/world-kernels/eckert2.js.map +1 -0
- package/dist/discontinuous/world-kernels/eckert3.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eckert3.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eckert3.js +15 -0
- package/dist/discontinuous/world-kernels/eckert3.js.map +1 -0
- package/dist/discontinuous/world-kernels/eckert4.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eckert4.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eckert4.js +20 -0
- package/dist/discontinuous/world-kernels/eckert4.js.map +1 -0
- package/dist/discontinuous/world-kernels/eckert5.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eckert5.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eckert5.js +14 -0
- package/dist/discontinuous/world-kernels/eckert5.js.map +1 -0
- package/dist/discontinuous/world-kernels/eckert6.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eckert6.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eckert6.js +19 -0
- package/dist/discontinuous/world-kernels/eckert6.js.map +1 -0
- package/dist/discontinuous/world-kernels/eisenlohr.d.ts +5 -0
- package/dist/discontinuous/world-kernels/eisenlohr.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/eisenlohr.js +41 -0
- package/dist/discontinuous/world-kernels/eisenlohr.js.map +1 -0
- package/dist/discontinuous/world-kernels/fahey.d.ts +5 -0
- package/dist/discontinuous/world-kernels/fahey.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/fahey.js +16 -0
- package/dist/discontinuous/world-kernels/fahey.js.map +1 -0
- package/dist/discontinuous/world-kernels/foucaut.d.ts +5 -0
- package/dist/discontinuous/world-kernels/foucaut.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/foucaut.js +15 -0
- package/dist/discontinuous/world-kernels/foucaut.js.map +1 -0
- package/dist/discontinuous/world-kernels/foucautSinusoidal.d.ts +5 -0
- package/dist/discontinuous/world-kernels/foucautSinusoidal.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/foucautSinusoidal.js +27 -0
- package/dist/discontinuous/world-kernels/foucautSinusoidal.js.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg4.d.ts +5 -0
- package/dist/discontinuous/world-kernels/ginzburg4.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg4.js +8 -0
- package/dist/discontinuous/world-kernels/ginzburg4.js.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg5.d.ts +5 -0
- package/dist/discontinuous/world-kernels/ginzburg5.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg5.js +8 -0
- package/dist/discontinuous/world-kernels/ginzburg5.js.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg6.d.ts +5 -0
- package/dist/discontinuous/world-kernels/ginzburg6.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg6.js +9 -0
- package/dist/discontinuous/world-kernels/ginzburg6.js.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg8.d.ts +5 -0
- package/dist/discontinuous/world-kernels/ginzburg8.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg8.js +28 -0
- package/dist/discontinuous/world-kernels/ginzburg8.js.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg9.d.ts +5 -0
- package/dist/discontinuous/world-kernels/ginzburg9.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburg9.js +8 -0
- package/dist/discontinuous/world-kernels/ginzburg9.js.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburgPolyconic.d.ts +5 -0
- package/dist/discontinuous/world-kernels/ginzburgPolyconic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/ginzburgPolyconic.js +29 -0
- package/dist/discontinuous/world-kernels/ginzburgPolyconic.js.map +1 -0
- package/dist/discontinuous/world-kernels/hammer.d.ts +3 -0
- package/dist/discontinuous/world-kernels/hammer.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/hammer.js +34 -0
- package/dist/discontinuous/world-kernels/hammer.js.map +1 -0
- package/dist/discontinuous/world-kernels/hammerRetroazimuthal.d.ts +5 -0
- package/dist/discontinuous/world-kernels/hammerRetroazimuthal.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/hammerRetroazimuthal.js +37 -0
- package/dist/discontinuous/world-kernels/hammerRetroazimuthal.js.map +1 -0
- package/dist/discontinuous/world-kernels/hill.d.ts +5 -0
- package/dist/discontinuous/world-kernels/hill.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/hill.js +36 -0
- package/dist/discontinuous/world-kernels/hill.js.map +1 -0
- package/dist/discontinuous/world-kernels/homolosine.d.ts +5 -0
- package/dist/discontinuous/world-kernels/homolosine.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/homolosine.js +22 -0
- package/dist/discontinuous/world-kernels/homolosine.js.map +1 -0
- package/dist/discontinuous/world-kernels/hufnagel.d.ts +5 -0
- package/dist/discontinuous/world-kernels/hufnagel.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/hufnagel.js +53 -0
- package/dist/discontinuous/world-kernels/hufnagel.js.map +1 -0
- package/dist/discontinuous/world-kernels/hyperelliptical.d.ts +5 -0
- package/dist/discontinuous/world-kernels/hyperelliptical.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/hyperelliptical.js +47 -0
- package/dist/discontinuous/world-kernels/hyperelliptical.js.map +1 -0
- package/dist/discontinuous/world-kernels/integrate.d.ts +2 -0
- package/dist/discontinuous/world-kernels/integrate.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/integrate.js +82 -0
- package/dist/discontinuous/world-kernels/integrate.js.map +1 -0
- package/dist/discontinuous/world-kernels/kavrayskiy7.d.ts +5 -0
- package/dist/discontinuous/world-kernels/kavrayskiy7.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/kavrayskiy7.js +13 -0
- package/dist/discontinuous/world-kernels/kavrayskiy7.js.map +1 -0
- package/dist/discontinuous/world-kernels/lagrange.d.ts +5 -0
- package/dist/discontinuous/world-kernels/lagrange.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/lagrange.js +27 -0
- package/dist/discontinuous/world-kernels/lagrange.js.map +1 -0
- package/dist/discontinuous/world-kernels/larrivee.d.ts +5 -0
- package/dist/discontinuous/world-kernels/larrivee.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/larrivee.js +26 -0
- package/dist/discontinuous/world-kernels/larrivee.js.map +1 -0
- package/dist/discontinuous/world-kernels/laskowski.d.ts +5 -0
- package/dist/discontinuous/world-kernels/laskowski.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/laskowski.js +31 -0
- package/dist/discontinuous/world-kernels/laskowski.js.map +1 -0
- package/dist/discontinuous/world-kernels/littrow.d.ts +5 -0
- package/dist/discontinuous/world-kernels/littrow.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/littrow.js +13 -0
- package/dist/discontinuous/world-kernels/littrow.js.map +1 -0
- package/dist/discontinuous/world-kernels/loximuthal.d.ts +5 -0
- package/dist/discontinuous/world-kernels/loximuthal.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/loximuthal.js +30 -0
- package/dist/discontinuous/world-kernels/loximuthal.js.map +1 -0
- package/dist/discontinuous/world-kernels/math.d.ts +36 -0
- package/dist/discontinuous/world-kernels/math.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/math.js +63 -0
- package/dist/discontinuous/world-kernels/math.js.map +1 -0
- package/dist/discontinuous/world-kernels/miller.d.ts +5 -0
- package/dist/discontinuous/world-kernels/miller.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/miller.js +13 -0
- package/dist/discontinuous/world-kernels/miller.js.map +1 -0
- package/dist/discontinuous/world-kernels/modifiedStereographic.d.ts +18 -0
- package/dist/discontinuous/world-kernels/modifiedStereographic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/modifiedStereographic.js +79 -0
- package/dist/discontinuous/world-kernels/modifiedStereographic.js.map +1 -0
- package/dist/discontinuous/world-kernels/mollweide.d.ts +10 -0
- package/dist/discontinuous/world-kernels/mollweide.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/mollweide.js +24 -0
- package/dist/discontinuous/world-kernels/mollweide.js.map +1 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarParabolic.d.ts +5 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarParabolic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarParabolic.js +19 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarParabolic.js.map +1 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarQuartic.d.ts +5 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarQuartic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarQuartic.js +26 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarQuartic.js.map +1 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarSinusoidal.d.ts +5 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarSinusoidal.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarSinusoidal.js +22 -0
- package/dist/discontinuous/world-kernels/mtFlatPolarSinusoidal.js.map +1 -0
- package/dist/discontinuous/world-kernels/naturalEarth2.d.ts +5 -0
- package/dist/discontinuous/world-kernels/naturalEarth2.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/naturalEarth2.js +37 -0
- package/dist/discontinuous/world-kernels/naturalEarth2.js.map +1 -0
- package/dist/discontinuous/world-kernels/nellHammer.d.ts +5 -0
- package/dist/discontinuous/world-kernels/nellHammer.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/nellHammer.js +18 -0
- package/dist/discontinuous/world-kernels/nellHammer.js.map +1 -0
- package/dist/discontinuous/world-kernels/newton.d.ts +3 -0
- package/dist/discontinuous/world-kernels/newton.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/newton.js +65 -0
- package/dist/discontinuous/world-kernels/newton.js.map +1 -0
- package/dist/discontinuous/world-kernels/nicolosi.d.ts +5 -0
- package/dist/discontinuous/world-kernels/nicolosi.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/nicolosi.js +38 -0
- package/dist/discontinuous/world-kernels/nicolosi.js.map +1 -0
- package/dist/discontinuous/world-kernels/patterson.d.ts +5 -0
- package/dist/discontinuous/world-kernels/patterson.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/patterson.js +32 -0
- package/dist/discontinuous/world-kernels/patterson.js.map +1 -0
- package/dist/discontinuous/world-kernels/polyconic.d.ts +5 -0
- package/dist/discontinuous/world-kernels/polyconic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/polyconic.js +30 -0
- package/dist/discontinuous/world-kernels/polyconic.js.map +1 -0
- package/dist/discontinuous/world-kernels/rectangularPolyconic.d.ts +5 -0
- package/dist/discontinuous/world-kernels/rectangularPolyconic.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/rectangularPolyconic.js +31 -0
- package/dist/discontinuous/world-kernels/rectangularPolyconic.js.map +1 -0
- package/dist/discontinuous/world-kernels/robinson.d.ts +5 -0
- package/dist/discontinuous/world-kernels/robinson.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/robinson.js +63 -0
- package/dist/discontinuous/world-kernels/robinson.js.map +1 -0
- package/dist/discontinuous/world-kernels/satellite.d.ts +5 -0
- package/dist/discontinuous/world-kernels/satellite.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/satellite.js +32 -0
- package/dist/discontinuous/world-kernels/satellite.js.map +1 -0
- package/dist/discontinuous/world-kernels/sinuMollweide.d.ts +7 -0
- package/dist/discontinuous/world-kernels/sinuMollweide.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/sinuMollweide.js +20 -0
- package/dist/discontinuous/world-kernels/sinuMollweide.js.map +1 -0
- package/dist/discontinuous/world-kernels/sinusoidal.d.ts +5 -0
- package/dist/discontinuous/world-kernels/sinusoidal.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/sinusoidal.js +13 -0
- package/dist/discontinuous/world-kernels/sinusoidal.js.map +1 -0
- package/dist/discontinuous/world-kernels/times.d.ts +5 -0
- package/dist/discontinuous/world-kernels/times.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/times.js +15 -0
- package/dist/discontinuous/world-kernels/times.js.map +1 -0
- package/dist/discontinuous/world-kernels/twoPointEquidistant.d.ts +3 -0
- package/dist/discontinuous/world-kernels/twoPointEquidistant.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/twoPointEquidistant.js +28 -0
- package/dist/discontinuous/world-kernels/twoPointEquidistant.js.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten.d.ts +5 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten.js +30 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten.js.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten2.d.ts +5 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten2.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten2.js +25 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten2.js.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten3.d.ts +5 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten3.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten3.js +22 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten3.js.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten4.d.ts +5 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten4.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten4.js +38 -0
- package/dist/discontinuous/world-kernels/vanDerGrinten4.js.map +1 -0
- package/dist/discontinuous/world-kernels/wagner.d.ts +5 -0
- package/dist/discontinuous/world-kernels/wagner.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/wagner.js +44 -0
- package/dist/discontinuous/world-kernels/wagner.js.map +1 -0
- package/dist/discontinuous/world-kernels/wagner4.d.ts +5 -0
- package/dist/discontinuous/world-kernels/wagner4.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/wagner4.js +10 -0
- package/dist/discontinuous/world-kernels/wagner4.js.map +1 -0
- package/dist/discontinuous/world-kernels/wagner6.d.ts +5 -0
- package/dist/discontinuous/world-kernels/wagner6.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/wagner6.js +13 -0
- package/dist/discontinuous/world-kernels/wagner6.js.map +1 -0
- package/dist/discontinuous/world-kernels/wiechel.d.ts +5 -0
- package/dist/discontinuous/world-kernels/wiechel.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/wiechel.js +15 -0
- package/dist/discontinuous/world-kernels/wiechel.js.map +1 -0
- package/dist/discontinuous/world-kernels/winkel3.d.ts +5 -0
- package/dist/discontinuous/world-kernels/winkel3.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels/winkel3.js +20 -0
- package/dist/discontinuous/world-kernels/winkel3.js.map +1 -0
- package/dist/discontinuous/world-kernels.d.ts +150 -0
- package/dist/discontinuous/world-kernels.d.ts.map +1 -0
- package/dist/discontinuous/world-kernels.js +215 -0
- package/dist/discontinuous/world-kernels.js.map +1 -0
- package/dist/discontinuous/world-map.d.ts +25 -0
- package/dist/discontinuous/world-map.d.ts.map +1 -0
- package/dist/discontinuous/world-map.js +187 -0
- package/dist/discontinuous/world-map.js.map +1 -0
- package/dist/discontinuous.cjs +8282 -0
- package/dist/discontinuous.cjs.map +6 -0
- package/dist/discontinuous.d.ts +52 -0
- package/dist/discontinuous.d.ts.map +1 -0
- package/dist/discontinuous.js +36 -0
- package/dist/discontinuous.js.map +1 -0
- package/dist/elastic.cjs +52991 -0
- package/dist/elastic.cjs.map +6 -0
- package/dist/elastic.d.ts +5 -0
- package/dist/elastic.d.ts.map +1 -0
- package/dist/elastic.js +8 -0
- package/dist/elastic.js.map +1 -0
- package/dist/ellipsoid-geodesic.d.ts +63 -0
- package/dist/ellipsoid-geodesic.d.ts.map +1 -0
- package/dist/ellipsoid-geodesic.js +70 -0
- package/dist/ellipsoid-geodesic.js.map +1 -0
- package/dist/ellipsoid-helpers/ellipsoid-transform.d.ts +1 -1
- package/dist/ellipsoid-helpers/ellipsoid-transform.d.ts.map +1 -1
- package/dist/ellipsoid-helpers/ellipsoid-transform.js +59 -18
- package/dist/ellipsoid-helpers/ellipsoid-transform.js.map +1 -1
- package/dist/ellipsoid-helpers/exact-nearest-surface.d.ts +16 -0
- package/dist/ellipsoid-helpers/exact-nearest-surface.d.ts.map +1 -0
- package/dist/ellipsoid-helpers/exact-nearest-surface.js +108 -0
- package/dist/ellipsoid-helpers/exact-nearest-surface.js.map +1 -0
- package/dist/ellipsoid-helpers/intersection-bounds.d.ts +18 -0
- package/dist/ellipsoid-helpers/intersection-bounds.d.ts.map +1 -0
- package/dist/ellipsoid-helpers/intersection-bounds.js +60 -0
- package/dist/ellipsoid-helpers/intersection-bounds.js.map +1 -0
- package/dist/ellipsoid-helpers/nearest-surface.d.ts +12 -0
- package/dist/ellipsoid-helpers/nearest-surface.d.ts.map +1 -0
- package/dist/ellipsoid-helpers/nearest-surface.js +127 -0
- package/dist/ellipsoid-helpers/nearest-surface.js.map +1 -0
- package/dist/ellipsoid-helpers/rhumb-pole-distance.d.ts +3 -0
- package/dist/ellipsoid-helpers/rhumb-pole-distance.d.ts.map +1 -0
- package/dist/ellipsoid-helpers/rhumb-pole-distance.js +63 -0
- package/dist/ellipsoid-helpers/rhumb-pole-distance.js.map +1 -0
- package/dist/ellipsoid-helpers/scale-to-geodetic-surface.d.ts +2 -0
- package/dist/ellipsoid-helpers/scale-to-geodetic-surface.d.ts.map +1 -1
- package/dist/ellipsoid-helpers/scale-to-geodetic-surface.js +32 -63
- package/dist/ellipsoid-helpers/scale-to-geodetic-surface.js.map +1 -1
- package/dist/ellipsoid-helpers/surface-polygon.d.ts +65 -0
- package/dist/ellipsoid-helpers/surface-polygon.d.ts.map +1 -0
- package/dist/ellipsoid-helpers/surface-polygon.js +159 -0
- package/dist/ellipsoid-helpers/surface-polygon.js.map +1 -0
- package/dist/ellipsoid-helpers/tangent-plane-numerics.d.ts +7 -0
- package/dist/ellipsoid-helpers/tangent-plane-numerics.d.ts.map +1 -0
- package/dist/ellipsoid-helpers/tangent-plane-numerics.js +88 -0
- package/dist/ellipsoid-helpers/tangent-plane-numerics.js.map +1 -0
- package/dist/ellipsoid-metrics.d.ts +31 -0
- package/dist/ellipsoid-metrics.d.ts.map +1 -0
- package/dist/ellipsoid-metrics.js +186 -0
- package/dist/ellipsoid-metrics.js.map +1 -0
- package/dist/ellipsoid-occluder.d.ts +28 -0
- package/dist/ellipsoid-occluder.d.ts.map +1 -0
- package/dist/ellipsoid-occluder.js +112 -0
- package/dist/ellipsoid-occluder.js.map +1 -0
- package/dist/ellipsoid-rhumb.d.ts +52 -0
- package/dist/ellipsoid-rhumb.d.ts.map +1 -0
- package/dist/ellipsoid-rhumb.js +321 -0
- package/dist/ellipsoid-rhumb.js.map +1 -0
- package/dist/ellipsoid-tangent-plane.d.ts +30 -8
- package/dist/ellipsoid-tangent-plane.d.ts.map +1 -1
- package/dist/ellipsoid-tangent-plane.js +181 -31
- package/dist/ellipsoid-tangent-plane.js.map +1 -1
- package/dist/ellipsoid-transforms.d.ts +12 -0
- package/dist/ellipsoid-transforms.d.ts.map +1 -0
- package/dist/ellipsoid-transforms.js +15 -0
- package/dist/ellipsoid-transforms.js.map +1 -0
- package/dist/ellipsoid.d.ts +13 -12
- package/dist/ellipsoid.d.ts.map +1 -1
- package/dist/ellipsoid.js +230 -66
- package/dist/ellipsoid.js.map +1 -1
- package/dist/entries/ellipsoid.d.ts +26 -0
- package/dist/entries/ellipsoid.d.ts.map +1 -0
- package/dist/entries/ellipsoid.js +17 -0
- package/dist/entries/ellipsoid.js.map +1 -0
- package/dist/expressions.d.ts +4 -0
- package/dist/expressions.d.ts.map +1 -0
- package/dist/expressions.js +24 -0
- package/dist/expressions.js.map +1 -0
- package/dist/geoarrow/builder-entry.d.ts +4 -0
- package/dist/geoarrow/builder-entry.d.ts.map +1 -0
- package/dist/geoarrow/builder-entry.js +5 -0
- package/dist/geoarrow/builder-entry.js.map +1 -0
- package/dist/geoarrow/builder.d.ts +106 -0
- package/dist/geoarrow/builder.d.ts.map +1 -0
- package/dist/geoarrow/builder.js +668 -0
- package/dist/geoarrow/builder.js.map +1 -0
- package/dist/geoarrow/codecs.d.ts +24 -0
- package/dist/geoarrow/codecs.d.ts.map +1 -0
- package/dist/geoarrow/codecs.js +916 -0
- package/dist/geoarrow/codecs.js.map +1 -0
- package/dist/geoarrow/index.cjs +4352 -0
- package/dist/geoarrow/index.cjs.map +6 -0
- package/dist/geoarrow/index.d.ts +21 -0
- package/dist/geoarrow/index.d.ts.map +1 -0
- package/dist/geoarrow/index.js +15 -0
- package/dist/geoarrow/index.js.map +1 -0
- package/dist/geoarrow/kernels.d.ts +56 -0
- package/dist/geoarrow/kernels.d.ts.map +1 -0
- package/dist/geoarrow/kernels.js +982 -0
- package/dist/geoarrow/kernels.js.map +1 -0
- package/dist/geoarrow/layout.d.ts +66 -0
- package/dist/geoarrow/layout.d.ts.map +1 -0
- package/dist/geoarrow/layout.js +723 -0
- package/dist/geoarrow/layout.js.map +1 -0
- package/dist/geoarrow/stream-tessellate.d.ts +34 -0
- package/dist/geoarrow/stream-tessellate.d.ts.map +1 -0
- package/dist/geoarrow/stream-tessellate.js +171 -0
- package/dist/geoarrow/stream-tessellate.js.map +1 -0
- package/dist/geoarrow/stream.d.ts +29 -0
- package/dist/geoarrow/stream.d.ts.map +1 -0
- package/dist/geoarrow/stream.js +100 -0
- package/dist/geoarrow/stream.js.map +1 -0
- package/dist/geoarrow/tessellate.d.ts +31 -0
- package/dist/geoarrow/tessellate.d.ts.map +1 -0
- package/dist/geoarrow/tessellate.js +102 -0
- package/dist/geoarrow/tessellate.js.map +1 -0
- package/dist/geoarrow/tessellation-entry.d.ts +4 -0
- package/dist/geoarrow/tessellation-entry.d.ts.map +1 -0
- package/dist/geoarrow/tessellation-entry.js +5 -0
- package/dist/geoarrow/tessellation-entry.js.map +1 -0
- package/dist/geoarrow/types.d.ts +155 -0
- package/dist/geoarrow/types.d.ts.map +1 -0
- package/dist/geoarrow/types.js +71 -0
- package/dist/geoarrow/types.js.map +1 -0
- package/dist/geoarrow/views.d.ts +45 -0
- package/dist/geoarrow/views.d.ts.map +1 -0
- package/dist/geoarrow/views.js +114 -0
- package/dist/geoarrow/views.js.map +1 -0
- package/dist/geoarrow/wkb-entry.d.ts +4 -0
- package/dist/geoarrow/wkb-entry.d.ts.map +1 -0
- package/dist/geoarrow/wkb-entry.js +6 -0
- package/dist/geoarrow/wkb-entry.js.map +1 -0
- package/dist/geoarrow/worker.d.ts +11 -0
- package/dist/geoarrow/worker.d.ts.map +1 -0
- package/dist/geoarrow/worker.js +10 -0
- package/dist/geoarrow/worker.js.map +1 -0
- package/dist/geodesic-buffer.d.ts +34 -0
- package/dist/geodesic-buffer.d.ts.map +1 -0
- package/dist/geodesic-buffer.js +86 -0
- package/dist/geodesic-buffer.js.map +1 -0
- package/dist/geodesic-exact/area.d.ts +5 -0
- package/dist/geodesic-exact/area.d.ts.map +1 -0
- package/dist/geodesic-exact/area.js +56 -0
- package/dist/geodesic-exact/area.js.map +1 -0
- package/dist/geodesic-exact/inverse-engine.d.ts +57 -0
- package/dist/geodesic-exact/inverse-engine.d.ts.map +1 -0
- package/dist/geodesic-exact/inverse-engine.js +56 -0
- package/dist/geodesic-exact/inverse-engine.js.map +1 -0
- package/dist/geodesic-exact/polygon.d.ts +12 -0
- package/dist/geodesic-exact/polygon.d.ts.map +1 -0
- package/dist/geodesic-exact/polygon.js +27 -0
- package/dist/geodesic-exact/polygon.js.map +1 -0
- package/dist/geodesic-exact/quadrature.d.ts +9 -0
- package/dist/geodesic-exact/quadrature.d.ts.map +1 -0
- package/dist/geodesic-exact/quadrature.js +62 -0
- package/dist/geodesic-exact/quadrature.js.map +1 -0
- package/dist/geodesic-exact.d.ts +23 -0
- package/dist/geodesic-exact.d.ts.map +1 -0
- package/dist/geodesic-exact.js +210 -0
- package/dist/geodesic-exact.js.map +1 -0
- package/dist/geodesic-intersections.d.ts +83 -0
- package/dist/geodesic-intersections.d.ts.map +1 -0
- package/dist/geodesic-intersections.js +451 -0
- package/dist/geodesic-intersections.js.map +1 -0
- package/dist/geodesic-path.d.ts +28 -0
- package/dist/geodesic-path.d.ts.map +1 -0
- package/dist/geodesic-path.js +102 -0
- package/dist/geodesic-path.js.map +1 -0
- package/dist/geodesic-polygon.d.ts +11 -0
- package/dist/geodesic-polygon.d.ts.map +1 -0
- package/dist/geodesic-polygon.js +16 -0
- package/dist/geodesic-polygon.js.map +1 -0
- package/dist/geographic-atlas/atlas.d.ts +34 -0
- package/dist/geographic-atlas/atlas.d.ts.map +1 -0
- package/dist/geographic-atlas/atlas.js +493 -0
- package/dist/geographic-atlas/atlas.js.map +1 -0
- package/dist/geographic-atlas/curves.d.ts +25 -0
- package/dist/geographic-atlas/curves.d.ts.map +1 -0
- package/dist/geographic-atlas/curves.js +270 -0
- package/dist/geographic-atlas/curves.js.map +1 -0
- package/dist/geographic-atlas/math.d.ts +38 -0
- package/dist/geographic-atlas/math.d.ts.map +1 -0
- package/dist/geographic-atlas/math.js +115 -0
- package/dist/geographic-atlas/math.js.map +1 -0
- package/dist/geographic-atlas/sampling.d.ts +18 -0
- package/dist/geographic-atlas/sampling.d.ts.map +1 -0
- package/dist/geographic-atlas/sampling.js +96 -0
- package/dist/geographic-atlas/sampling.js.map +1 -0
- package/dist/geographic-atlas/topology.d.ts +20 -0
- package/dist/geographic-atlas/topology.d.ts.map +1 -0
- package/dist/geographic-atlas/topology.js +159 -0
- package/dist/geographic-atlas/topology.js.map +1 -0
- package/dist/geographic-atlas/types.d.ts +55 -0
- package/dist/geographic-atlas/types.d.ts.map +1 -0
- package/dist/geographic-atlas/types.js +2 -0
- package/dist/geographic-atlas/types.js.map +1 -0
- package/dist/geographic-atlas.d.ts +37 -0
- package/dist/geographic-atlas.d.ts.map +1 -0
- package/dist/geographic-atlas.js +77 -0
- package/dist/geographic-atlas.js.map +1 -0
- package/dist/geographic-cuts.d.ts +35 -0
- package/dist/geographic-cuts.d.ts.map +1 -0
- package/dist/geographic-cuts.js +78 -0
- package/dist/geographic-cuts.js.map +1 -0
- package/dist/geographic-seams/cut-options.d.ts +13 -0
- package/dist/geographic-seams/cut-options.d.ts.map +1 -0
- package/dist/geographic-seams/cut-options.js +38 -0
- package/dist/geographic-seams/cut-options.js.map +1 -0
- package/dist/geographic-seams/edge.d.ts +46 -0
- package/dist/geographic-seams/edge.d.ts.map +1 -0
- package/dist/geographic-seams/edge.js +372 -0
- package/dist/geographic-seams/edge.js.map +1 -0
- package/dist/geographic-seams/latitude.d.ts +6 -0
- package/dist/geographic-seams/latitude.d.ts.map +1 -0
- package/dist/geographic-seams/latitude.js +47 -0
- package/dist/geographic-seams/latitude.js.map +1 -0
- package/dist/geographic-seams/polygon.d.ts +27 -0
- package/dist/geographic-seams/polygon.d.ts.map +1 -0
- package/dist/geographic-seams/polygon.js +422 -0
- package/dist/geographic-seams/polygon.js.map +1 -0
- package/dist/geographic-seams/subdivide-cut.d.ts +14 -0
- package/dist/geographic-seams/subdivide-cut.d.ts.map +1 -0
- package/dist/geographic-seams/subdivide-cut.js +149 -0
- package/dist/geographic-seams/subdivide-cut.js.map +1 -0
- package/dist/geographic-seams/types.d.ts +59 -0
- package/dist/geographic-seams/types.d.ts.map +1 -0
- package/dist/geographic-seams/types.js +8 -0
- package/dist/geographic-seams/types.js.map +1 -0
- package/dist/geographic-seams.d.ts +12 -0
- package/dist/geographic-seams.d.ts.map +1 -0
- package/dist/geographic-seams.js +54 -0
- package/dist/geographic-seams.js.map +1 -0
- package/dist/geographic-tiles.d.ts +24 -0
- package/dist/geographic-tiles.d.ts.map +1 -0
- package/dist/geographic-tiles.js +72 -0
- package/dist/geographic-tiles.js.map +1 -0
- package/dist/globe-horizon-bounds.d.ts +13 -0
- package/dist/globe-horizon-bounds.d.ts.map +1 -0
- package/dist/globe-horizon-bounds.js +59 -0
- package/dist/globe-horizon-bounds.js.map +1 -0
- package/dist/globe.d.ts +16 -0
- package/dist/globe.d.ts.map +1 -0
- package/dist/globe.js +12 -0
- package/dist/globe.js.map +1 -0
- package/dist/index.cjs +17783 -500
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +71 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -6
- package/dist/index.js.map +1 -1
- package/dist/lng-lat-rectangle.d.ts.map +1 -1
- package/dist/lng-lat-rectangle.js +5 -3
- package/dist/lng-lat-rectangle.js.map +1 -1
- package/dist/local-reference-frame.d.ts +57 -0
- package/dist/local-reference-frame.d.ts.map +1 -0
- package/dist/local-reference-frame.js +247 -0
- package/dist/local-reference-frame.js.map +1 -0
- package/dist/make-obb-from-region.d.ts +1 -1
- package/dist/make-obb-from-region.d.ts.map +1 -1
- package/dist/make-obb-from-region.js +6 -4
- package/dist/make-obb-from-region.js.map +1 -1
- package/dist/projection/analysis.cjs +239 -0
- package/dist/projection/analysis.cjs.map +6 -0
- package/dist/projection/analysis.d.ts +72 -0
- package/dist/projection/analysis.d.ts.map +1 -0
- package/dist/projection/analysis.js +221 -0
- package/dist/projection/analysis.js.map +1 -0
- package/dist/projection/bulk.cjs +203 -0
- package/dist/projection/bulk.cjs.map +6 -0
- package/dist/projection/bulk.d.ts +51 -0
- package/dist/projection/bulk.d.ts.map +1 -0
- package/dist/projection/bulk.js +215 -0
- package/dist/projection/bulk.js.map +1 -0
- package/dist/projection/datums.cjs +1383 -0
- package/dist/projection/datums.cjs.map +6 -0
- package/dist/projection/datums.d.ts +5 -0
- package/dist/projection/datums.d.ts.map +1 -0
- package/dist/projection/datums.js +10 -0
- package/dist/projection/datums.js.map +1 -0
- package/dist/projection/deformation.cjs +134 -0
- package/dist/projection/deformation.cjs.map +6 -0
- package/dist/projection/deformation.d.ts +3 -0
- package/dist/projection/deformation.d.ts.map +1 -0
- package/dist/projection/deformation.js +5 -0
- package/dist/projection/deformation.js.map +1 -0
- package/dist/projection/experimental/authalic-latitude.d.ts +7 -0
- package/dist/projection/experimental/authalic-latitude.d.ts.map +1 -0
- package/dist/projection/experimental/authalic-latitude.js +51 -0
- package/dist/projection/experimental/authalic-latitude.js.map +1 -0
- package/dist/projection/experimental/catalogue-kernel.d.ts +9 -0
- package/dist/projection/experimental/catalogue-kernel.d.ts.map +1 -0
- package/dist/projection/experimental/catalogue-kernel.js +44 -0
- package/dist/projection/experimental/catalogue-kernel.js.map +1 -0
- package/dist/projection/experimental/common/adjust_lat.d.ts +2 -0
- package/dist/projection/experimental/common/adjust_lat.d.ts.map +1 -0
- package/dist/projection/experimental/common/adjust_lat.js +10 -0
- package/dist/projection/experimental/common/adjust_lat.js.map +1 -0
- package/dist/projection/experimental/common/adjust_lon.d.ts +2 -0
- package/dist/projection/experimental/common/adjust_lon.d.ts.map +1 -0
- package/dist/projection/experimental/common/adjust_lon.js +13 -0
- package/dist/projection/experimental/common/adjust_lon.js.map +1 -0
- package/dist/projection/experimental/common/asinhy.d.ts +2 -0
- package/dist/projection/experimental/common/asinhy.d.ts.map +1 -0
- package/dist/projection/experimental/common/asinhy.js +12 -0
- package/dist/projection/experimental/common/asinhy.js.map +1 -0
- package/dist/projection/experimental/common/asinz.d.ts +2 -0
- package/dist/projection/experimental/common/asinz.d.ts.map +1 -0
- package/dist/projection/experimental/common/asinz.js +11 -0
- package/dist/projection/experimental/common/asinz.js.map +1 -0
- package/dist/projection/experimental/common/authlat.d.ts +2 -0
- package/dist/projection/experimental/common/authlat.d.ts.map +1 -0
- package/dist/projection/experimental/common/authlat.js +9 -0
- package/dist/projection/experimental/common/authlat.js.map +1 -0
- package/dist/projection/experimental/common/authset.d.ts +2 -0
- package/dist/projection/experimental/common/authset.d.ts.map +1 -0
- package/dist/projection/experimental/common/authset.js +24 -0
- package/dist/projection/experimental/common/authset.js.map +1 -0
- package/dist/projection/experimental/common/clens.d.ts +2 -0
- package/dist/projection/experimental/common/clens.d.ts.map +1 -0
- package/dist/projection/experimental/common/clens.js +18 -0
- package/dist/projection/experimental/common/clens.js.map +1 -0
- package/dist/projection/experimental/common/clens_cmplx.d.ts +5 -0
- package/dist/projection/experimental/common/clens_cmplx.d.ts.map +1 -0
- package/dist/projection/experimental/common/clens_cmplx.js +34 -0
- package/dist/projection/experimental/common/clens_cmplx.js.map +1 -0
- package/dist/projection/experimental/common/constants.d.ts +9 -0
- package/dist/projection/experimental/common/constants.d.ts.map +1 -0
- package/dist/projection/experimental/common/constants.js +14 -0
- package/dist/projection/experimental/common/constants.js.map +1 -0
- package/dist/projection/experimental/common/cosh.d.ts +2 -0
- package/dist/projection/experimental/common/cosh.d.ts.map +1 -0
- package/dist/projection/experimental/common/cosh.js +10 -0
- package/dist/projection/experimental/common/cosh.js.map +1 -0
- package/dist/projection/experimental/common/e0fn.d.ts +2 -0
- package/dist/projection/experimental/common/e0fn.d.ts.map +1 -0
- package/dist/projection/experimental/common/e0fn.js +8 -0
- package/dist/projection/experimental/common/e0fn.js.map +1 -0
- package/dist/projection/experimental/common/e1fn.d.ts +2 -0
- package/dist/projection/experimental/common/e1fn.d.ts.map +1 -0
- package/dist/projection/experimental/common/e1fn.js +8 -0
- package/dist/projection/experimental/common/e1fn.js.map +1 -0
- package/dist/projection/experimental/common/e2fn.d.ts +2 -0
- package/dist/projection/experimental/common/e2fn.d.ts.map +1 -0
- package/dist/projection/experimental/common/e2fn.js +8 -0
- package/dist/projection/experimental/common/e2fn.js.map +1 -0
- package/dist/projection/experimental/common/e3fn.d.ts +2 -0
- package/dist/projection/experimental/common/e3fn.d.ts.map +1 -0
- package/dist/projection/experimental/common/e3fn.js +8 -0
- package/dist/projection/experimental/common/e3fn.js.map +1 -0
- package/dist/projection/experimental/common/fL.d.ts +2 -0
- package/dist/projection/experimental/common/fL.d.ts.map +1 -0
- package/dist/projection/experimental/common/fL.js +9 -0
- package/dist/projection/experimental/common/fL.js.map +1 -0
- package/dist/projection/experimental/common/gN.d.ts +2 -0
- package/dist/projection/experimental/common/gN.d.ts.map +1 -0
- package/dist/projection/experimental/common/gN.js +9 -0
- package/dist/projection/experimental/common/gN.js.map +1 -0
- package/dist/projection/experimental/common/gatg.d.ts +2 -0
- package/dist/projection/experimental/common/gatg.d.ts.map +1 -0
- package/dist/projection/experimental/common/gatg.js +18 -0
- package/dist/projection/experimental/common/gatg.js.map +1 -0
- package/dist/projection/experimental/common/hypot.d.ts +2 -0
- package/dist/projection/experimental/common/hypot.d.ts.map +1 -0
- package/dist/projection/experimental/common/hypot.js +12 -0
- package/dist/projection/experimental/common/hypot.js.map +1 -0
- package/dist/projection/experimental/common/imlfn.d.ts +2 -0
- package/dist/projection/experimental/common/imlfn.d.ts.map +1 -0
- package/dist/projection/experimental/common/imlfn.js +21 -0
- package/dist/projection/experimental/common/imlfn.js.map +1 -0
- package/dist/projection/experimental/common/invlatiso.d.ts +2 -0
- package/dist/projection/experimental/common/invlatiso.d.ts.map +1 -0
- package/dist/projection/experimental/common/invlatiso.js +20 -0
- package/dist/projection/experimental/common/invlatiso.js.map +1 -0
- package/dist/projection/experimental/common/iqsfnz.d.ts +2 -0
- package/dist/projection/experimental/common/iqsfnz.d.ts.map +1 -0
- package/dist/projection/experimental/common/iqsfnz.js +44 -0
- package/dist/projection/experimental/common/iqsfnz.js.map +1 -0
- package/dist/projection/experimental/common/latiso.d.ts +2 -0
- package/dist/projection/experimental/common/latiso.d.ts.map +1 -0
- package/dist/projection/experimental/common/latiso.js +19 -0
- package/dist/projection/experimental/common/latiso.js.map +1 -0
- package/dist/projection/experimental/common/log1py.d.ts +2 -0
- package/dist/projection/experimental/common/log1py.d.ts.map +1 -0
- package/dist/projection/experimental/common/log1py.js +10 -0
- package/dist/projection/experimental/common/log1py.js.map +1 -0
- package/dist/projection/experimental/common/meridian-distance.d.ts +5 -0
- package/dist/projection/experimental/common/meridian-distance.d.ts.map +1 -0
- package/dist/projection/experimental/common/meridian-distance.js +47 -0
- package/dist/projection/experimental/common/meridian-distance.js.map +1 -0
- package/dist/projection/experimental/common/mlfn.d.ts +2 -0
- package/dist/projection/experimental/common/mlfn.d.ts.map +1 -0
- package/dist/projection/experimental/common/mlfn.js +8 -0
- package/dist/projection/experimental/common/mlfn.js.map +1 -0
- package/dist/projection/experimental/common/msfnz.d.ts +2 -0
- package/dist/projection/experimental/common/msfnz.d.ts.map +1 -0
- package/dist/projection/experimental/common/msfnz.js +9 -0
- package/dist/projection/experimental/common/msfnz.js.map +1 -0
- package/dist/projection/experimental/common/phi2z.d.ts +2 -0
- package/dist/projection/experimental/common/phi2z.d.ts.map +1 -0
- package/dist/projection/experimental/common/phi2z.js +21 -0
- package/dist/projection/experimental/common/phi2z.js.map +1 -0
- package/dist/projection/experimental/common/pj_enfn.d.ts +2 -0
- package/dist/projection/experimental/common/pj_enfn.d.ts.map +1 -0
- package/dist/projection/experimental/common/pj_enfn.js +28 -0
- package/dist/projection/experimental/common/pj_enfn.js.map +1 -0
- package/dist/projection/experimental/common/pj_inv_mlfn.d.ts +2 -0
- package/dist/projection/experimental/common/pj_inv_mlfn.d.ts.map +1 -0
- package/dist/projection/experimental/common/pj_inv_mlfn.js +26 -0
- package/dist/projection/experimental/common/pj_inv_mlfn.js.map +1 -0
- package/dist/projection/experimental/common/pj_mlfn.d.ts +2 -0
- package/dist/projection/experimental/common/pj_mlfn.d.ts.map +1 -0
- package/dist/projection/experimental/common/pj_mlfn.js +10 -0
- package/dist/projection/experimental/common/pj_mlfn.js.map +1 -0
- package/dist/projection/experimental/common/qsfnz.d.ts +2 -0
- package/dist/projection/experimental/common/qsfnz.d.ts.map +1 -0
- package/dist/projection/experimental/common/qsfnz.js +16 -0
- package/dist/projection/experimental/common/qsfnz.js.map +1 -0
- package/dist/projection/experimental/common/sign.d.ts +2 -0
- package/dist/projection/experimental/common/sign.d.ts.map +1 -0
- package/dist/projection/experimental/common/sign.js +8 -0
- package/dist/projection/experimental/common/sign.js.map +1 -0
- package/dist/projection/experimental/common/sinh.d.ts +2 -0
- package/dist/projection/experimental/common/sinh.d.ts.map +1 -0
- package/dist/projection/experimental/common/sinh.js +10 -0
- package/dist/projection/experimental/common/sinh.js.map +1 -0
- package/dist/projection/experimental/common/srat.d.ts +2 -0
- package/dist/projection/experimental/common/srat.d.ts.map +1 -0
- package/dist/projection/experimental/common/srat.js +8 -0
- package/dist/projection/experimental/common/srat.js.map +1 -0
- package/dist/projection/experimental/common/tsfnz.d.ts +2 -0
- package/dist/projection/experimental/common/tsfnz.d.ts.map +1 -0
- package/dist/projection/experimental/common/tsfnz.js +12 -0
- package/dist/projection/experimental/common/tsfnz.js.map +1 -0
- package/dist/projection/experimental/common/vincenty.d.ts +29 -0
- package/dist/projection/experimental/common/vincenty.d.ts.map +1 -0
- package/dist/projection/experimental/common/vincenty.js +134 -0
- package/dist/projection/experimental/common/vincenty.js.map +1 -0
- package/dist/projection/experimental/core.cjs +1995 -0
- package/dist/projection/experimental/core.cjs.map +6 -0
- package/dist/projection/experimental/core.d.ts +16 -0
- package/dist/projection/experimental/core.d.ts.map +1 -0
- package/dist/projection/experimental/core.js +10 -0
- package/dist/projection/experimental/core.js.map +1 -0
- package/dist/projection/experimental/crs/datum-catalog.d.ts +5 -0
- package/dist/projection/experimental/crs/datum-catalog.d.ts.map +1 -0
- package/dist/projection/experimental/crs/datum-catalog.js +47 -0
- package/dist/projection/experimental/crs/datum-catalog.js.map +1 -0
- package/dist/projection/experimental/crs/datum-table.d.ts +8 -0
- package/dist/projection/experimental/crs/datum-table.d.ts.map +1 -0
- package/dist/projection/experimental/crs/datum-table.js +1355 -0
- package/dist/projection/experimental/crs/datum-table.js.map +1 -0
- package/dist/projection/experimental/crs/ellipsoid-table.d.ts +8 -0
- package/dist/projection/experimental/crs/ellipsoid-table.d.ts.map +1 -0
- package/dist/projection/experimental/crs/ellipsoid-table.js +229 -0
- package/dist/projection/experimental/crs/ellipsoid-table.js.map +1 -0
- package/dist/projection/experimental/crs/normalize.d.ts +11 -0
- package/dist/projection/experimental/crs/normalize.d.ts.map +1 -0
- package/dist/projection/experimental/crs/normalize.js +286 -0
- package/dist/projection/experimental/crs/normalize.js.map +1 -0
- package/dist/projection/experimental/crs/primemeridian-table.d.ts +3 -0
- package/dist/projection/experimental/crs/primemeridian-table.d.ts.map +1 -0
- package/dist/projection/experimental/crs/primemeridian-table.js +20 -0
- package/dist/projection/experimental/crs/primemeridian-table.js.map +1 -0
- package/dist/projection/experimental/crs/projjson.cjs +564 -0
- package/dist/projection/experimental/crs/projjson.cjs.map +6 -0
- package/dist/projection/experimental/crs/projjson.d.ts +4 -0
- package/dist/projection/experimental/crs/projjson.d.ts.map +1 -0
- package/dist/projection/experimental/crs/projjson.js +12 -0
- package/dist/projection/experimental/crs/projjson.js.map +1 -0
- package/dist/projection/experimental/crs/resolve.d.ts +11 -0
- package/dist/projection/experimental/crs/resolve.d.ts.map +1 -0
- package/dist/projection/experimental/crs/resolve.js +61 -0
- package/dist/projection/experimental/crs/resolve.js.map +1 -0
- package/dist/projection/experimental/crs/spatial-reference.d.ts +11 -0
- package/dist/projection/experimental/crs/spatial-reference.d.ts.map +1 -0
- package/dist/projection/experimental/crs/spatial-reference.js +91 -0
- package/dist/projection/experimental/crs/spatial-reference.js.map +1 -0
- package/dist/projection/experimental/crs/structured.d.ts +8 -0
- package/dist/projection/experimental/crs/structured.d.ts.map +1 -0
- package/dist/projection/experimental/crs/structured.js +534 -0
- package/dist/projection/experimental/crs/structured.js.map +1 -0
- package/dist/projection/experimental/crs/types.d.ts +73 -0
- package/dist/projection/experimental/crs/types.d.ts.map +1 -0
- package/dist/projection/experimental/crs/types.js +21 -0
- package/dist/projection/experimental/crs/types.js.map +1 -0
- package/dist/projection/experimental/crs/wkt.cjs +1229 -0
- package/dist/projection/experimental/crs/wkt.cjs.map +6 -0
- package/dist/projection/experimental/crs/wkt.d.ts +3 -0
- package/dist/projection/experimental/crs/wkt.d.ts.map +1 -0
- package/dist/projection/experimental/crs/wkt.js +190 -0
- package/dist/projection/experimental/crs/wkt.js.map +1 -0
- package/dist/projection/experimental/crs-descriptor.d.ts +13 -0
- package/dist/projection/experimental/crs-descriptor.d.ts.map +1 -0
- package/dist/projection/experimental/crs-descriptor.js +174 -0
- package/dist/projection/experimental/crs-descriptor.js.map +1 -0
- package/dist/projection/experimental/crs-rendering-scale.d.ts +5 -0
- package/dist/projection/experimental/crs-rendering-scale.d.ts.map +1 -0
- package/dist/projection/experimental/crs-rendering-scale.js +97 -0
- package/dist/projection/experimental/crs-rendering-scale.js.map +1 -0
- package/dist/projection/experimental/datum.d.ts +17 -0
- package/dist/projection/experimental/datum.d.ts.map +1 -0
- package/dist/projection/experimental/datum.js +160 -0
- package/dist/projection/experimental/datum.js.map +1 -0
- package/dist/projection/experimental/deformation-inverse.d.ts +5 -0
- package/dist/projection/experimental/deformation-inverse.d.ts.map +1 -0
- package/dist/projection/experimental/deformation-inverse.js +89 -0
- package/dist/projection/experimental/deformation-inverse.js.map +1 -0
- package/dist/projection/experimental/deformation.d.ts +23 -0
- package/dist/projection/experimental/deformation.d.ts.map +1 -0
- package/dist/projection/experimental/deformation.js +13 -0
- package/dist/projection/experimental/deformation.js.map +1 -0
- package/dist/projection/experimental/ellipsoidal-gnomonic.d.ts +10 -0
- package/dist/projection/experimental/ellipsoidal-gnomonic.d.ts.map +1 -0
- package/dist/projection/experimental/ellipsoidal-gnomonic.js +59 -0
- package/dist/projection/experimental/ellipsoidal-gnomonic.js.map +1 -0
- package/dist/projection/experimental/engine-options.d.ts +10 -0
- package/dist/projection/experimental/engine-options.d.ts.map +1 -0
- package/dist/projection/experimental/engine-options.js +26 -0
- package/dist/projection/experimental/engine-options.js.map +1 -0
- package/dist/projection/experimental/entries/projections/aea.cjs +649 -0
- package/dist/projection/experimental/entries/projections/aea.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/aea.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/aea.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/aea.js +5 -0
- package/dist/projection/experimental/entries/projections/aea.js.map +1 -0
- package/dist/projection/experimental/entries/projections/aeqd.cjs +718 -0
- package/dist/projection/experimental/entries/projections/aeqd.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/aeqd.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/aeqd.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/aeqd.js +5 -0
- package/dist/projection/experimental/entries/projections/aeqd.js.map +1 -0
- package/dist/projection/experimental/entries/projections/bonne.cjs +621 -0
- package/dist/projection/experimental/entries/projections/bonne.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/bonne.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/bonne.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/bonne.js +5 -0
- package/dist/projection/experimental/entries/projections/bonne.js.map +1 -0
- package/dist/projection/experimental/entries/projections/cass.cjs +610 -0
- package/dist/projection/experimental/entries/projections/cass.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/cass.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/cass.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/cass.js +5 -0
- package/dist/projection/experimental/entries/projections/cass.js.map +1 -0
- package/dist/projection/experimental/entries/projections/cea.cjs +536 -0
- package/dist/projection/experimental/entries/projections/cea.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/cea.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/cea.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/cea.js +5 -0
- package/dist/projection/experimental/entries/projections/cea.js.map +1 -0
- package/dist/projection/experimental/entries/projections/eck6.cjs +562 -0
- package/dist/projection/experimental/entries/projections/eck6.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/eck6.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/eck6.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/eck6.js +5 -0
- package/dist/projection/experimental/entries/projections/eck6.js.map +1 -0
- package/dist/projection/experimental/entries/projections/eqc.cjs +256 -0
- package/dist/projection/experimental/entries/projections/eqc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/eqc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/eqc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/eqc.js +5 -0
- package/dist/projection/experimental/entries/projections/eqc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/eqdc.cjs +650 -0
- package/dist/projection/experimental/entries/projections/eqdc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/eqdc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/eqdc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/eqdc.js +5 -0
- package/dist/projection/experimental/entries/projections/eqdc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/eqearth.cjs +460 -0
- package/dist/projection/experimental/entries/projections/eqearth.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/eqearth.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/eqearth.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/eqearth.js +5 -0
- package/dist/projection/experimental/entries/projections/eqearth.js.map +1 -0
- package/dist/projection/experimental/entries/projections/equi.cjs +477 -0
- package/dist/projection/experimental/entries/projections/equi.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/equi.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/equi.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/equi.js +5 -0
- package/dist/projection/experimental/entries/projections/equi.js.map +1 -0
- package/dist/projection/experimental/entries/projections/etmerc.cjs +887 -0
- package/dist/projection/experimental/entries/projections/etmerc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/etmerc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/etmerc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/etmerc.js +5 -0
- package/dist/projection/experimental/entries/projections/etmerc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/geocent.cjs +215 -0
- package/dist/projection/experimental/entries/projections/geocent.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/geocent.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/geocent.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/geocent.js +5 -0
- package/dist/projection/experimental/entries/projections/geocent.js.map +1 -0
- package/dist/projection/experimental/entries/projections/geos.cjs +703 -0
- package/dist/projection/experimental/entries/projections/geos.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/geos.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/geos.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/geos.js +5 -0
- package/dist/projection/experimental/entries/projections/geos.js.map +1 -0
- package/dist/projection/experimental/entries/projections/gnom.cjs +2028 -0
- package/dist/projection/experimental/entries/projections/gnom.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/gnom.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/gnom.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/gnom.js +5 -0
- package/dist/projection/experimental/entries/projections/gnom.js.map +1 -0
- package/dist/projection/experimental/entries/projections/gstmerc.cjs +526 -0
- package/dist/projection/experimental/entries/projections/gstmerc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/gstmerc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/gstmerc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/gstmerc.js +5 -0
- package/dist/projection/experimental/entries/projections/gstmerc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/krovak.cjs +683 -0
- package/dist/projection/experimental/entries/projections/krovak.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/krovak.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/krovak.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/krovak.js +5 -0
- package/dist/projection/experimental/entries/projections/krovak.js.map +1 -0
- package/dist/projection/experimental/entries/projections/laea.cjs +797 -0
- package/dist/projection/experimental/entries/projections/laea.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/laea.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/laea.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/laea.js +5 -0
- package/dist/projection/experimental/entries/projections/laea.js.map +1 -0
- package/dist/projection/experimental/entries/projections/lcc.cjs +637 -0
- package/dist/projection/experimental/entries/projections/lcc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/lcc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/lcc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/lcc.js +5 -0
- package/dist/projection/experimental/entries/projections/lcc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/merc.cjs +354 -0
- package/dist/projection/experimental/entries/projections/merc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/merc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/merc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/merc.js +5 -0
- package/dist/projection/experimental/entries/projections/merc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/mill.cjs +470 -0
- package/dist/projection/experimental/entries/projections/mill.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/mill.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/mill.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/mill.js +5 -0
- package/dist/projection/experimental/entries/projections/mill.js.map +1 -0
- package/dist/projection/experimental/entries/projections/moll.cjs +517 -0
- package/dist/projection/experimental/entries/projections/moll.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/moll.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/moll.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/moll.js +5 -0
- package/dist/projection/experimental/entries/projections/moll.js.map +1 -0
- package/dist/projection/experimental/entries/projections/nzmg.cjs +623 -0
- package/dist/projection/experimental/entries/projections/nzmg.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/nzmg.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/nzmg.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/nzmg.js +5 -0
- package/dist/projection/experimental/entries/projections/nzmg.js.map +1 -0
- package/dist/projection/experimental/entries/projections/ob_tran.cjs +540 -0
- package/dist/projection/experimental/entries/projections/ob_tran.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/ob_tran.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/ob_tran.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/ob_tran.js +5 -0
- package/dist/projection/experimental/entries/projections/ob_tran.js.map +1 -0
- package/dist/projection/experimental/entries/projections/omerc.cjs +850 -0
- package/dist/projection/experimental/entries/projections/omerc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/omerc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/omerc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/omerc.js +5 -0
- package/dist/projection/experimental/entries/projections/omerc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/ortho.cjs +519 -0
- package/dist/projection/experimental/entries/projections/ortho.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/ortho.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/ortho.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/ortho.js +5 -0
- package/dist/projection/experimental/entries/projections/ortho.js.map +1 -0
- package/dist/projection/experimental/entries/projections/poly.cjs +622 -0
- package/dist/projection/experimental/entries/projections/poly.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/poly.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/poly.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/poly.js +5 -0
- package/dist/projection/experimental/entries/projections/poly.js.map +1 -0
- package/dist/projection/experimental/entries/projections/qsc.cjs +695 -0
- package/dist/projection/experimental/entries/projections/qsc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/qsc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/qsc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/qsc.js +5 -0
- package/dist/projection/experimental/entries/projections/qsc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/robin.cjs +584 -0
- package/dist/projection/experimental/entries/projections/robin.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/robin.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/robin.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/robin.js +5 -0
- package/dist/projection/experimental/entries/projections/robin.js.map +1 -0
- package/dist/projection/experimental/entries/projections/sinu.cjs +586 -0
- package/dist/projection/experimental/entries/projections/sinu.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/sinu.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/sinu.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/sinu.js +5 -0
- package/dist/projection/experimental/entries/projections/sinu.js.map +1 -0
- package/dist/projection/experimental/entries/projections/somerc.cjs +575 -0
- package/dist/projection/experimental/entries/projections/somerc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/somerc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/somerc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/somerc.js +5 -0
- package/dist/projection/experimental/entries/projections/somerc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/stere.cjs +697 -0
- package/dist/projection/experimental/entries/projections/stere.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/stere.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/stere.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/stere.js +5 -0
- package/dist/projection/experimental/entries/projections/stere.js.map +1 -0
- package/dist/projection/experimental/entries/projections/sterea.cjs +631 -0
- package/dist/projection/experimental/entries/projections/sterea.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/sterea.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/sterea.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/sterea.js +5 -0
- package/dist/projection/experimental/entries/projections/sterea.js.map +1 -0
- package/dist/projection/experimental/entries/projections/tmerc.cjs +887 -0
- package/dist/projection/experimental/entries/projections/tmerc.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/tmerc.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/tmerc.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/tmerc.js +5 -0
- package/dist/projection/experimental/entries/projections/tmerc.js.map +1 -0
- package/dist/projection/experimental/entries/projections/tpers.cjs +645 -0
- package/dist/projection/experimental/entries/projections/tpers.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/tpers.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/tpers.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/tpers.js +5 -0
- package/dist/projection/experimental/entries/projections/tpers.js.map +1 -0
- package/dist/projection/experimental/entries/projections/utm.cjs +915 -0
- package/dist/projection/experimental/entries/projections/utm.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/utm.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/utm.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/utm.js +5 -0
- package/dist/projection/experimental/entries/projections/utm.js.map +1 -0
- package/dist/projection/experimental/entries/projections/vandg.cjs +560 -0
- package/dist/projection/experimental/entries/projections/vandg.cjs.map +6 -0
- package/dist/projection/experimental/entries/projections/vandg.d.ts +2 -0
- package/dist/projection/experimental/entries/projections/vandg.d.ts.map +1 -0
- package/dist/projection/experimental/entries/projections/vandg.js +5 -0
- package/dist/projection/experimental/entries/projections/vandg.js.map +1 -0
- package/dist/projection/experimental/exact-helmert.d.ts +9 -0
- package/dist/projection/experimental/exact-helmert.d.ts.map +1 -0
- package/dist/projection/experimental/exact-helmert.js +32 -0
- package/dist/projection/experimental/exact-helmert.js.map +1 -0
- package/dist/projection/experimental/flat-projection.d.ts +15 -0
- package/dist/projection/experimental/flat-projection.d.ts.map +1 -0
- package/dist/projection/experimental/flat-projection.js +70 -0
- package/dist/projection/experimental/flat-projection.js.map +1 -0
- package/dist/projection/experimental/grids/geotiff.cjs +180 -0
- package/dist/projection/experimental/grids/geotiff.cjs.map +6 -0
- package/dist/projection/experimental/grids/geotiff.d.ts +23 -0
- package/dist/projection/experimental/grids/geotiff.d.ts.map +1 -0
- package/dist/projection/experimental/grids/geotiff.js +59 -0
- package/dist/projection/experimental/grids/geotiff.js.map +1 -0
- package/dist/projection/experimental/grids/grid.d.ts +4 -0
- package/dist/projection/experimental/grids/grid.d.ts.map +1 -0
- package/dist/projection/experimental/grids/grid.js +111 -0
- package/dist/projection/experimental/grids/grid.js.map +1 -0
- package/dist/projection/experimental/grids/gtx.cjs +91 -0
- package/dist/projection/experimental/grids/gtx.cjs.map +6 -0
- package/dist/projection/experimental/grids/gtx.d.ts +7 -0
- package/dist/projection/experimental/grids/gtx.d.ts.map +1 -0
- package/dist/projection/experimental/grids/gtx.js +30 -0
- package/dist/projection/experimental/grids/gtx.js.map +1 -0
- package/dist/projection/experimental/grids/ntv2.cjs +181 -0
- package/dist/projection/experimental/grids/ntv2.cjs.map +6 -0
- package/dist/projection/experimental/grids/ntv2.d.ts +8 -0
- package/dist/projection/experimental/grids/ntv2.d.ts.map +1 -0
- package/dist/projection/experimental/grids/ntv2.js +56 -0
- package/dist/projection/experimental/grids/ntv2.js.map +1 -0
- package/dist/projection/experimental/grids/scalar-geotiff.d.ts +58 -0
- package/dist/projection/experimental/grids/scalar-geotiff.d.ts.map +1 -0
- package/dist/projection/experimental/grids/scalar-geotiff.js +147 -0
- package/dist/projection/experimental/grids/scalar-geotiff.js.map +1 -0
- package/dist/projection/experimental/grids/types.d.ts +35 -0
- package/dist/projection/experimental/grids/types.d.ts.map +1 -0
- package/dist/projection/experimental/grids/types.js +2 -0
- package/dist/projection/experimental/grids/types.js.map +1 -0
- package/dist/projection/experimental/grids/velocity-geotiff.cjs +247 -0
- package/dist/projection/experimental/grids/velocity-geotiff.cjs.map +6 -0
- package/dist/projection/experimental/grids/velocity-geotiff.d.ts +11 -0
- package/dist/projection/experimental/grids/velocity-geotiff.d.ts.map +1 -0
- package/dist/projection/experimental/grids/velocity-geotiff.js +61 -0
- package/dist/projection/experimental/grids/velocity-geotiff.js.map +1 -0
- package/dist/projection/experimental/grids/velocity.d.ts +21 -0
- package/dist/projection/experimental/grids/velocity.d.ts.map +1 -0
- package/dist/projection/experimental/grids/velocity.js +29 -0
- package/dist/projection/experimental/grids/velocity.js.map +1 -0
- package/dist/projection/experimental/grids/vertical-geotiff.cjs +195 -0
- package/dist/projection/experimental/grids/vertical-geotiff.cjs.map +6 -0
- package/dist/projection/experimental/grids/vertical-geotiff.d.ts +6 -0
- package/dist/projection/experimental/grids/vertical-geotiff.d.ts.map +1 -0
- package/dist/projection/experimental/grids/vertical-geotiff.js +20 -0
- package/dist/projection/experimental/grids/vertical-geotiff.js.map +1 -0
- package/dist/projection/experimental/grids/vertical.cjs +80 -0
- package/dist/projection/experimental/grids/vertical.cjs.map +6 -0
- package/dist/projection/experimental/grids/vertical.d.ts +22 -0
- package/dist/projection/experimental/grids/vertical.d.ts.map +1 -0
- package/dist/projection/experimental/grids/vertical.js +73 -0
- package/dist/projection/experimental/grids/vertical.js.map +1 -0
- package/dist/projection/experimental/helmert-flat.d.ts +4 -0
- package/dist/projection/experimental/helmert-flat.d.ts.map +1 -0
- package/dist/projection/experimental/helmert-flat.js +53 -0
- package/dist/projection/experimental/helmert-flat.js.map +1 -0
- package/dist/projection/experimental/index.cjs +11607 -0
- package/dist/projection/experimental/index.cjs.map +6 -0
- package/dist/projection/experimental/index.d.ts +49 -0
- package/dist/projection/experimental/index.d.ts.map +1 -0
- package/dist/projection/experimental/index.js +48 -0
- package/dist/projection/experimental/index.js.map +1 -0
- package/dist/projection/experimental/inverse-spherical-latitude.d.ts +2 -0
- package/dist/projection/experimental/inverse-spherical-latitude.d.ts.map +1 -0
- package/dist/projection/experimental/inverse-spherical-latitude.js +11 -0
- package/dist/projection/experimental/inverse-spherical-latitude.js.map +1 -0
- package/dist/projection/experimental/kernel.d.ts +37 -0
- package/dist/projection/experimental/kernel.d.ts.map +1 -0
- package/dist/projection/experimental/kernel.js +81 -0
- package/dist/projection/experimental/kernel.js.map +1 -0
- package/dist/projection/experimental/kernels/aea.d.ts +25 -0
- package/dist/projection/experimental/kernels/aea.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/aea.js +118 -0
- package/dist/projection/experimental/kernels/aea.js.map +1 -0
- package/dist/projection/experimental/kernels/aeqd.d.ts +10 -0
- package/dist/projection/experimental/kernels/aeqd.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/aeqd.js +168 -0
- package/dist/projection/experimental/kernels/aeqd.js.map +1 -0
- package/dist/projection/experimental/kernels/bonne.d.ts +12 -0
- package/dist/projection/experimental/kernels/bonne.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/bonne.js +128 -0
- package/dist/projection/experimental/kernels/bonne.js.map +1 -0
- package/dist/projection/experimental/kernels/cass.d.ts +10 -0
- package/dist/projection/experimental/kernels/cass.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/cass.js +122 -0
- package/dist/projection/experimental/kernels/cass.js.map +1 -0
- package/dist/projection/experimental/kernels/cea.d.ts +6 -0
- package/dist/projection/experimental/kernels/cea.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/cea.js +63 -0
- package/dist/projection/experimental/kernels/cea.js.map +1 -0
- package/dist/projection/experimental/kernels/eck6.d.ts +13 -0
- package/dist/projection/experimental/kernels/eck6.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/eck6.js +23 -0
- package/dist/projection/experimental/kernels/eck6.js.map +1 -0
- package/dist/projection/experimental/kernels/eqdc.d.ts +19 -0
- package/dist/projection/experimental/kernels/eqdc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/eqdc.js +117 -0
- package/dist/projection/experimental/kernels/eqdc.js.map +1 -0
- package/dist/projection/experimental/kernels/eqearth.d.ts +10 -0
- package/dist/projection/experimental/kernels/eqearth.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/eqearth.js +114 -0
- package/dist/projection/experimental/kernels/eqearth.js.map +1 -0
- package/dist/projection/experimental/kernels/equi.d.ts +9 -0
- package/dist/projection/experimental/kernels/equi.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/equi.js +43 -0
- package/dist/projection/experimental/kernels/equi.js.map +1 -0
- package/dist/projection/experimental/kernels/etmerc.d.ts +13 -0
- package/dist/projection/experimental/kernels/etmerc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/etmerc.js +145 -0
- package/dist/projection/experimental/kernels/etmerc.js.map +1 -0
- package/dist/projection/experimental/kernels/gauss.d.ts +12 -0
- package/dist/projection/experimental/kernels/gauss.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/gauss.js +64 -0
- package/dist/projection/experimental/kernels/gauss.js.map +1 -0
- package/dist/projection/experimental/kernels/geos.d.ts +17 -0
- package/dist/projection/experimental/kernels/geos.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/geos.js +153 -0
- package/dist/projection/experimental/kernels/geos.js.map +1 -0
- package/dist/projection/experimental/kernels/gnom.d.ts +14 -0
- package/dist/projection/experimental/kernels/gnom.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/gnom.js +102 -0
- package/dist/projection/experimental/kernels/gnom.js.map +1 -0
- package/dist/projection/experimental/kernels/gstmerc.d.ts +13 -0
- package/dist/projection/experimental/kernels/gstmerc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/gstmerc.js +57 -0
- package/dist/projection/experimental/kernels/gstmerc.js.map +1 -0
- package/dist/projection/experimental/kernels/krovak.d.ts +23 -0
- package/dist/projection/experimental/kernels/krovak.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/krovak.js +128 -0
- package/dist/projection/experimental/kernels/krovak.js.map +1 -0
- package/dist/projection/experimental/kernels/laea.d.ts +22 -0
- package/dist/projection/experimental/kernels/laea.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/laea.js +296 -0
- package/dist/projection/experimental/kernels/laea.js.map +1 -0
- package/dist/projection/experimental/kernels/lcc.d.ts +10 -0
- package/dist/projection/experimental/kernels/lcc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/lcc.js +126 -0
- package/dist/projection/experimental/kernels/lcc.js.map +1 -0
- package/dist/projection/experimental/kernels/mill.d.ts +6 -0
- package/dist/projection/experimental/kernels/mill.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/mill.js +49 -0
- package/dist/projection/experimental/kernels/mill.js.map +1 -0
- package/dist/projection/experimental/kernels/moll.d.ts +6 -0
- package/dist/projection/experimental/kernels/moll.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/moll.js +104 -0
- package/dist/projection/experimental/kernels/moll.js.map +1 -0
- package/dist/projection/experimental/kernels/nzmg.d.ts +28 -0
- package/dist/projection/experimental/kernels/nzmg.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/nzmg.js +209 -0
- package/dist/projection/experimental/kernels/nzmg.js.map +1 -0
- package/dist/projection/experimental/kernels/omerc.d.ts +30 -0
- package/dist/projection/experimental/kernels/omerc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/omerc.js +260 -0
- package/dist/projection/experimental/kernels/omerc.js.map +1 -0
- package/dist/projection/experimental/kernels/ortho.d.ts +10 -0
- package/dist/projection/experimental/kernels/ortho.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/ortho.js +43 -0
- package/dist/projection/experimental/kernels/ortho.js.map +1 -0
- package/dist/projection/experimental/kernels/poly.d.ts +10 -0
- package/dist/projection/experimental/kernels/poly.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/poly.js +193 -0
- package/dist/projection/experimental/kernels/poly.js.map +1 -0
- package/dist/projection/experimental/kernels/qsc.d.ts +10 -0
- package/dist/projection/experimental/kernels/qsc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/qsc.js +364 -0
- package/dist/projection/experimental/kernels/qsc.js.map +1 -0
- package/dist/projection/experimental/kernels/robin.d.ts +6 -0
- package/dist/projection/experimental/kernels/robin.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/robin.js +166 -0
- package/dist/projection/experimental/kernels/robin.js.map +1 -0
- package/dist/projection/experimental/kernels/sinu.d.ts +12 -0
- package/dist/projection/experimental/kernels/sinu.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/sinu.js +107 -0
- package/dist/projection/experimental/kernels/sinu.js.map +1 -0
- package/dist/projection/experimental/kernels/somerc.d.ts +13 -0
- package/dist/projection/experimental/kernels/somerc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/somerc.js +79 -0
- package/dist/projection/experimental/kernels/somerc.js.map +1 -0
- package/dist/projection/experimental/kernels/stere.d.ts +15 -0
- package/dist/projection/experimental/kernels/stere.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/stere.js +207 -0
- package/dist/projection/experimental/kernels/stere.js.map +1 -0
- package/dist/projection/experimental/kernels/sterea.d.ts +11 -0
- package/dist/projection/experimental/kernels/sterea.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/sterea.js +67 -0
- package/dist/projection/experimental/kernels/sterea.js.map +1 -0
- package/dist/projection/experimental/kernels/tmerc.d.ts +9 -0
- package/dist/projection/experimental/kernels/tmerc.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/tmerc.js +201 -0
- package/dist/projection/experimental/kernels/tmerc.js.map +1 -0
- package/dist/projection/experimental/kernels/tpers.d.ts +22 -0
- package/dist/projection/experimental/kernels/tpers.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/tpers.js +156 -0
- package/dist/projection/experimental/kernels/tpers.js.map +1 -0
- package/dist/projection/experimental/kernels/vandg.d.ts +8 -0
- package/dist/projection/experimental/kernels/vandg.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/vandg.js +133 -0
- package/dist/projection/experimental/kernels/vandg.js.map +1 -0
- package/dist/projection/experimental/kinematic-helmert-flat.d.ts +4 -0
- package/dist/projection/experimental/kinematic-helmert-flat.d.ts.map +1 -0
- package/dist/projection/experimental/kinematic-helmert-flat.js +60 -0
- package/dist/projection/experimental/kinematic-helmert-flat.js.map +1 -0
- package/dist/projection/experimental/kinematic-helmert.d.ts +11 -0
- package/dist/projection/experimental/kinematic-helmert.d.ts.map +1 -0
- package/dist/projection/experimental/kinematic-helmert.js +103 -0
- package/dist/projection/experimental/kinematic-helmert.js.map +1 -0
- package/dist/projection/experimental/lazy-projection.d.ts +17 -0
- package/dist/projection/experimental/lazy-projection.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projection.js +166 -0
- package/dist/projection/experimental/lazy-projection.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/aea.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/aea.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/aea.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/aea.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/aea.js +7 -0
- package/dist/projection/experimental/lazy-projections/aea.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/aeqd.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/aeqd.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/aeqd.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/aeqd.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/aeqd.js +8 -0
- package/dist/projection/experimental/lazy-projections/aeqd.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/bonne.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/bonne.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/bonne.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/bonne.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/bonne.js +7 -0
- package/dist/projection/experimental/lazy-projections/bonne.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/cass.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/cass.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/cass.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/cass.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/cass.js +7 -0
- package/dist/projection/experimental/lazy-projections/cass.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/cea.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/cea.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/cea.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/cea.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/cea.js +8 -0
- package/dist/projection/experimental/lazy-projections/cea.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/eck6.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/eck6.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/eck6.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/eck6.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/eck6.js +7 -0
- package/dist/projection/experimental/lazy-projections/eck6.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/eqc.cjs +82 -0
- package/dist/projection/experimental/lazy-projections/eqc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/eqc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/eqc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/eqc.js +11 -0
- package/dist/projection/experimental/lazy-projections/eqc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/eqdc.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/eqdc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/eqdc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/eqdc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/eqdc.js +8 -0
- package/dist/projection/experimental/lazy-projections/eqdc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/eqearth.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/eqearth.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/eqearth.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/eqearth.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/eqearth.js +7 -0
- package/dist/projection/experimental/lazy-projections/eqearth.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/equi.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/equi.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/equi.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/equi.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/equi.js +7 -0
- package/dist/projection/experimental/lazy-projections/equi.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/etmerc.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/etmerc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/etmerc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/etmerc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/etmerc.js +8 -0
- package/dist/projection/experimental/lazy-projections/etmerc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/geocent.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/geocent.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/geocent.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/geocent.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/geocent.js +7 -0
- package/dist/projection/experimental/lazy-projections/geocent.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/geos.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/geos.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/geos.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/geos.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/geos.js +7 -0
- package/dist/projection/experimental/lazy-projections/geos.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/gnom.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/gnom.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/gnom.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/gnom.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/gnom.js +7 -0
- package/dist/projection/experimental/lazy-projections/gnom.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/gstmerc.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/gstmerc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/gstmerc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/gstmerc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/gstmerc.js +9 -0
- package/dist/projection/experimental/lazy-projections/gstmerc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/index.cjs +2401 -0
- package/dist/projection/experimental/lazy-projections/index.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/index.d.ts +38 -0
- package/dist/projection/experimental/lazy-projections/index.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/index.js +41 -0
- package/dist/projection/experimental/lazy-projections/index.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/krovak.cjs +87 -0
- package/dist/projection/experimental/lazy-projections/krovak.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/krovak.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/krovak.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/krovak.js +15 -0
- package/dist/projection/experimental/lazy-projections/krovak.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/laea.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/laea.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/laea.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/laea.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/laea.js +8 -0
- package/dist/projection/experimental/lazy-projections/laea.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/lcc.cjs +89 -0
- package/dist/projection/experimental/lazy-projections/lcc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/lcc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/lcc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/lcc.js +18 -0
- package/dist/projection/experimental/lazy-projections/lcc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/merc.cjs +88 -0
- package/dist/projection/experimental/lazy-projections/merc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/merc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/merc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/merc.js +16 -0
- package/dist/projection/experimental/lazy-projections/merc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/mill.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/mill.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/mill.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/mill.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/mill.js +8 -0
- package/dist/projection/experimental/lazy-projections/mill.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/moll.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/moll.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/moll.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/moll.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/moll.js +7 -0
- package/dist/projection/experimental/lazy-projections/moll.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/nzmg.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/nzmg.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/nzmg.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/nzmg.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/nzmg.js +8 -0
- package/dist/projection/experimental/lazy-projections/nzmg.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/ob_tran.cjs +90 -0
- package/dist/projection/experimental/lazy-projections/ob_tran.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/ob_tran.d.ts +5 -0
- package/dist/projection/experimental/lazy-projections/ob_tran.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/ob_tran.js +18 -0
- package/dist/projection/experimental/lazy-projections/ob_tran.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/omerc.cjs +91 -0
- package/dist/projection/experimental/lazy-projections/omerc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/omerc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/omerc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/omerc.js +19 -0
- package/dist/projection/experimental/lazy-projections/omerc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/ortho.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/ortho.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/ortho.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/ortho.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/ortho.js +7 -0
- package/dist/projection/experimental/lazy-projections/ortho.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/poly.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/poly.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/poly.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/poly.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/poly.js +7 -0
- package/dist/projection/experimental/lazy-projections/poly.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/qsc.cjs +82 -0
- package/dist/projection/experimental/lazy-projections/qsc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/qsc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/qsc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/qsc.js +12 -0
- package/dist/projection/experimental/lazy-projections/qsc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/robin.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/robin.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/robin.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/robin.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/robin.js +7 -0
- package/dist/projection/experimental/lazy-projections/robin.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/sinu.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/sinu.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/sinu.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/sinu.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/sinu.js +7 -0
- package/dist/projection/experimental/lazy-projections/sinu.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/somerc.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/somerc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/somerc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/somerc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/somerc.js +8 -0
- package/dist/projection/experimental/lazy-projections/somerc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/stere.cjs +87 -0
- package/dist/projection/experimental/lazy-projections/stere.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/stere.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/stere.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/stere.js +15 -0
- package/dist/projection/experimental/lazy-projections/stere.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/sterea.cjs +87 -0
- package/dist/projection/experimental/lazy-projections/sterea.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/sterea.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/sterea.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/sterea.js +16 -0
- package/dist/projection/experimental/lazy-projections/sterea.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/tmerc.cjs +89 -0
- package/dist/projection/experimental/lazy-projections/tmerc.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/tmerc.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/tmerc.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/tmerc.js +18 -0
- package/dist/projection/experimental/lazy-projections/tmerc.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/tpers.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/tpers.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/tpers.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/tpers.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/tpers.js +8 -0
- package/dist/projection/experimental/lazy-projections/tpers.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/utm.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/utm.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/utm.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/utm.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/utm.js +8 -0
- package/dist/projection/experimental/lazy-projections/utm.js.map +1 -0
- package/dist/projection/experimental/lazy-projections/vandg.cjs +79 -0
- package/dist/projection/experimental/lazy-projections/vandg.cjs.map +6 -0
- package/dist/projection/experimental/lazy-projections/vandg.d.ts +3 -0
- package/dist/projection/experimental/lazy-projections/vandg.d.ts.map +1 -0
- package/dist/projection/experimental/lazy-projections/vandg.js +7 -0
- package/dist/projection/experimental/lazy-projections/vandg.js.map +1 -0
- package/dist/projection/experimental/mutable-projection.d.ts +6 -0
- package/dist/projection/experimental/mutable-projection.d.ts.map +1 -0
- package/dist/projection/experimental/mutable-projection.js +53 -0
- package/dist/projection/experimental/mutable-projection.js.map +1 -0
- package/dist/projection/experimental/numeric-flat.d.ts +8 -0
- package/dist/projection/experimental/numeric-flat.d.ts.map +1 -0
- package/dist/projection/experimental/numeric-flat.js +54 -0
- package/dist/projection/experimental/numeric-flat.js.map +1 -0
- package/dist/projection/experimental/parameters.d.ts +8 -0
- package/dist/projection/experimental/parameters.d.ts.map +1 -0
- package/dist/projection/experimental/parameters.js +31 -0
- package/dist/projection/experimental/parameters.js.map +1 -0
- package/dist/projection/experimental/projection-descriptor.d.ts +13 -0
- package/dist/projection/experimental/projection-descriptor.d.ts.map +1 -0
- package/dist/projection/experimental/projection-descriptor.js +52 -0
- package/dist/projection/experimental/projection-descriptor.js.map +1 -0
- package/dist/projection/experimental/projection-engine.d.ts +23 -0
- package/dist/projection/experimental/projection-engine.d.ts.map +1 -0
- package/dist/projection/experimental/projection-engine.js +33 -0
- package/dist/projection/experimental/projection-engine.js.map +1 -0
- package/dist/projection/experimental/projection-pipeline.d.ts +142 -0
- package/dist/projection/experimental/projection-pipeline.d.ts.map +1 -0
- package/dist/projection/experimental/projection-pipeline.js +740 -0
- package/dist/projection/experimental/projection-pipeline.js.map +1 -0
- package/dist/projection/experimental/projection-scratch.d.ts +11 -0
- package/dist/projection/experimental/projection-scratch.d.ts.map +1 -0
- package/dist/projection/experimental/projection-scratch.js +25 -0
- package/dist/projection/experimental/projection-scratch.js.map +1 -0
- package/dist/projection/experimental/projections/aea.d.ts +3 -0
- package/dist/projection/experimental/projections/aea.d.ts.map +1 -0
- package/dist/projection/experimental/projections/aea.js +24 -0
- package/dist/projection/experimental/projections/aea.js.map +1 -0
- package/dist/projection/experimental/projections/aeqd.d.ts +3 -0
- package/dist/projection/experimental/projections/aeqd.d.ts.map +1 -0
- package/dist/projection/experimental/projections/aeqd.js +19 -0
- package/dist/projection/experimental/projections/aeqd.js.map +1 -0
- package/dist/projection/experimental/projections/bonne.d.ts +3 -0
- package/dist/projection/experimental/projections/bonne.d.ts.map +1 -0
- package/dist/projection/experimental/projections/bonne.js +25 -0
- package/dist/projection/experimental/projections/bonne.js.map +1 -0
- package/dist/projection/experimental/projections/cass.d.ts +3 -0
- package/dist/projection/experimental/projections/cass.d.ts.map +1 -0
- package/dist/projection/experimental/projections/cass.js +22 -0
- package/dist/projection/experimental/projections/cass.js.map +1 -0
- package/dist/projection/experimental/projections/cea.d.ts +3 -0
- package/dist/projection/experimental/projections/cea.d.ts.map +1 -0
- package/dist/projection/experimental/projections/cea.js +24 -0
- package/dist/projection/experimental/projections/cea.js.map +1 -0
- package/dist/projection/experimental/projections/eck6.d.ts +3 -0
- package/dist/projection/experimental/projections/eck6.d.ts.map +1 -0
- package/dist/projection/experimental/projections/eck6.js +22 -0
- package/dist/projection/experimental/projections/eck6.js.map +1 -0
- package/dist/projection/experimental/projections/eqdc.d.ts +3 -0
- package/dist/projection/experimental/projections/eqdc.d.ts.map +1 -0
- package/dist/projection/experimental/projections/eqdc.js +23 -0
- package/dist/projection/experimental/projections/eqdc.js.map +1 -0
- package/dist/projection/experimental/projections/eqearth.d.ts +3 -0
- package/dist/projection/experimental/projections/eqearth.d.ts.map +1 -0
- package/dist/projection/experimental/projections/eqearth.js +47 -0
- package/dist/projection/experimental/projections/eqearth.js.map +1 -0
- package/dist/projection/experimental/projections/equi.d.ts +3 -0
- package/dist/projection/experimental/projections/equi.d.ts.map +1 -0
- package/dist/projection/experimental/projections/equi.js +24 -0
- package/dist/projection/experimental/projections/equi.js.map +1 -0
- package/dist/projection/experimental/projections/equidistant-cylindrical.d.ts +4 -0
- package/dist/projection/experimental/projections/equidistant-cylindrical.d.ts.map +1 -0
- package/dist/projection/experimental/projections/equidistant-cylindrical.js +47 -0
- package/dist/projection/experimental/projections/equidistant-cylindrical.js.map +1 -0
- package/dist/projection/experimental/projections/geocentric.d.ts +3 -0
- package/dist/projection/experimental/projections/geocentric.d.ts.map +1 -0
- package/dist/projection/experimental/projections/geocentric.js +34 -0
- package/dist/projection/experimental/projections/geocentric.js.map +1 -0
- package/dist/projection/experimental/projections/geos.d.ts +3 -0
- package/dist/projection/experimental/projections/geos.d.ts.map +1 -0
- package/dist/projection/experimental/projections/geos.js +30 -0
- package/dist/projection/experimental/projections/geos.js.map +1 -0
- package/dist/projection/experimental/projections/gnom.d.ts +3 -0
- package/dist/projection/experimental/projections/gnom.d.ts.map +1 -0
- package/dist/projection/experimental/projections/gnom.js +22 -0
- package/dist/projection/experimental/projections/gnom.js.map +1 -0
- package/dist/projection/experimental/projections/gstmerc.d.ts +3 -0
- package/dist/projection/experimental/projections/gstmerc.d.ts.map +1 -0
- package/dist/projection/experimental/projections/gstmerc.js +23 -0
- package/dist/projection/experimental/projections/gstmerc.js.map +1 -0
- package/dist/projection/experimental/projections/krovak.d.ts +3 -0
- package/dist/projection/experimental/projections/krovak.d.ts.map +1 -0
- package/dist/projection/experimental/projections/krovak.js +41 -0
- package/dist/projection/experimental/projections/krovak.js.map +1 -0
- package/dist/projection/experimental/projections/laea.d.ts +3 -0
- package/dist/projection/experimental/projections/laea.d.ts.map +1 -0
- package/dist/projection/experimental/projections/laea.js +22 -0
- package/dist/projection/experimental/projections/laea.js.map +1 -0
- package/dist/projection/experimental/projections/lcc.d.ts +3 -0
- package/dist/projection/experimental/projections/lcc.d.ts.map +1 -0
- package/dist/projection/experimental/projections/lcc.js +39 -0
- package/dist/projection/experimental/projections/lcc.js.map +1 -0
- package/dist/projection/experimental/projections/mercator.d.ts +4 -0
- package/dist/projection/experimental/projections/mercator.d.ts.map +1 -0
- package/dist/projection/experimental/projections/mercator.js +106 -0
- package/dist/projection/experimental/projections/mercator.js.map +1 -0
- package/dist/projection/experimental/projections/mill.d.ts +3 -0
- package/dist/projection/experimental/projections/mill.d.ts.map +1 -0
- package/dist/projection/experimental/projections/mill.js +22 -0
- package/dist/projection/experimental/projections/mill.js.map +1 -0
- package/dist/projection/experimental/projections/moll.d.ts +3 -0
- package/dist/projection/experimental/projections/moll.d.ts.map +1 -0
- package/dist/projection/experimental/projections/moll.js +22 -0
- package/dist/projection/experimental/projections/moll.js.map +1 -0
- package/dist/projection/experimental/projections/nzmg.d.ts +3 -0
- package/dist/projection/experimental/projections/nzmg.d.ts.map +1 -0
- package/dist/projection/experimental/projections/nzmg.js +29 -0
- package/dist/projection/experimental/projections/nzmg.js.map +1 -0
- package/dist/projection/experimental/projections/ob-tran.d.ts +4 -0
- package/dist/projection/experimental/projections/ob-tran.d.ts.map +1 -0
- package/dist/projection/experimental/projections/ob-tran.js +194 -0
- package/dist/projection/experimental/projections/ob-tran.js.map +1 -0
- package/dist/projection/experimental/projections/omerc.d.ts +3 -0
- package/dist/projection/experimental/projections/omerc.d.ts.map +1 -0
- package/dist/projection/experimental/projections/omerc.js +69 -0
- package/dist/projection/experimental/projections/omerc.js.map +1 -0
- package/dist/projection/experimental/projections/ortho.d.ts +3 -0
- package/dist/projection/experimental/projections/ortho.d.ts.map +1 -0
- package/dist/projection/experimental/projections/ortho.js +20 -0
- package/dist/projection/experimental/projections/ortho.js.map +1 -0
- package/dist/projection/experimental/projections/poly.d.ts +3 -0
- package/dist/projection/experimental/projections/poly.d.ts.map +1 -0
- package/dist/projection/experimental/projections/poly.js +22 -0
- package/dist/projection/experimental/projections/poly.js.map +1 -0
- package/dist/projection/experimental/projections/qsc.d.ts +3 -0
- package/dist/projection/experimental/projections/qsc.d.ts.map +1 -0
- package/dist/projection/experimental/projections/qsc.js +64 -0
- package/dist/projection/experimental/projections/qsc.js.map +1 -0
- package/dist/projection/experimental/projections/robin.d.ts +3 -0
- package/dist/projection/experimental/projections/robin.d.ts.map +1 -0
- package/dist/projection/experimental/projections/robin.js +22 -0
- package/dist/projection/experimental/projections/robin.js.map +1 -0
- package/dist/projection/experimental/projections/sinu.d.ts +3 -0
- package/dist/projection/experimental/projections/sinu.d.ts.map +1 -0
- package/dist/projection/experimental/projections/sinu.js +22 -0
- package/dist/projection/experimental/projections/sinu.js.map +1 -0
- package/dist/projection/experimental/projections/somerc.d.ts +3 -0
- package/dist/projection/experimental/projections/somerc.d.ts.map +1 -0
- package/dist/projection/experimental/projections/somerc.js +22 -0
- package/dist/projection/experimental/projections/somerc.js.map +1 -0
- package/dist/projection/experimental/projections/stere.d.ts +3 -0
- package/dist/projection/experimental/projections/stere.d.ts.map +1 -0
- package/dist/projection/experimental/projections/stere.js +32 -0
- package/dist/projection/experimental/projections/stere.js.map +1 -0
- package/dist/projection/experimental/projections/sterea.d.ts +3 -0
- package/dist/projection/experimental/projections/sterea.d.ts.map +1 -0
- package/dist/projection/experimental/projections/sterea.js +32 -0
- package/dist/projection/experimental/projections/sterea.js.map +1 -0
- package/dist/projection/experimental/projections/tpers.d.ts +3 -0
- package/dist/projection/experimental/projections/tpers.d.ts.map +1 -0
- package/dist/projection/experimental/projections/tpers.js +31 -0
- package/dist/projection/experimental/projections/tpers.js.map +1 -0
- package/dist/projection/experimental/projections/transverse-mercator.d.ts +6 -0
- package/dist/projection/experimental/projections/transverse-mercator.d.ts.map +1 -0
- package/dist/projection/experimental/projections/transverse-mercator.js +48 -0
- package/dist/projection/experimental/projections/transverse-mercator.js.map +1 -0
- package/dist/projection/experimental/projections/utm.d.ts +3 -0
- package/dist/projection/experimental/projections/utm.d.ts.map +1 -0
- package/dist/projection/experimental/projections/utm.js +37 -0
- package/dist/projection/experimental/projections/utm.js.map +1 -0
- package/dist/projection/experimental/projections/vandg.d.ts +3 -0
- package/dist/projection/experimental/projections/vandg.d.ts.map +1 -0
- package/dist/projection/experimental/projections/vandg.js +22 -0
- package/dist/projection/experimental/projections/vandg.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/angular-rendering-profile.d.ts +9 -0
- package/dist/projection/experimental/rendering-profile/angular-rendering-profile.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/angular-rendering-profile.js +79 -0
- package/dist/projection/experimental/rendering-profile/angular-rendering-profile.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/azimuthal-rendering-bounds.d.ts +23 -0
- package/dist/projection/experimental/rendering-profile/azimuthal-rendering-bounds.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/azimuthal-rendering-bounds.js +131 -0
- package/dist/projection/experimental/rendering-profile/azimuthal-rendering-bounds.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/geographic-bounds.d.ts +29 -0
- package/dist/projection/experimental/rendering-profile/geographic-bounds.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/geographic-bounds.js +127 -0
- package/dist/projection/experimental/rendering-profile/geographic-bounds.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/geographic-rendering-profile.d.ts +4 -0
- package/dist/projection/experimental/rendering-profile/geographic-rendering-profile.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/geographic-rendering-profile.js +18 -0
- package/dist/projection/experimental/rendering-profile/geographic-rendering-profile.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/geostationary-rendering-profile.d.ts +7 -0
- package/dist/projection/experimental/rendering-profile/geostationary-rendering-profile.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/geostationary-rendering-profile.js +86 -0
- package/dist/projection/experimental/rendering-profile/geostationary-rendering-profile.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/identity-rendering-profile.d.ts +4 -0
- package/dist/projection/experimental/rendering-profile/identity-rendering-profile.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/identity-rendering-profile.js +13 -0
- package/dist/projection/experimental/rendering-profile/identity-rendering-profile.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/rectangular-rendering-profile.d.ts +13 -0
- package/dist/projection/experimental/rendering-profile/rectangular-rendering-profile.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/rectangular-rendering-profile.js +76 -0
- package/dist/projection/experimental/rendering-profile/rectangular-rendering-profile.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/regional-rendering-bounds.d.ts +29 -0
- package/dist/projection/experimental/rendering-profile/regional-rendering-bounds.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/regional-rendering-bounds.js +143 -0
- package/dist/projection/experimental/rendering-profile/regional-rendering-bounds.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/rendering-bounds.d.ts +28 -0
- package/dist/projection/experimental/rendering-profile/rendering-bounds.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/rendering-bounds.js +111 -0
- package/dist/projection/experimental/rendering-profile/rendering-bounds.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/rendering-profile.d.ts +11 -0
- package/dist/projection/experimental/rendering-profile/rendering-profile.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/rendering-profile.js +81 -0
- package/dist/projection/experimental/rendering-profile/rendering-profile.js.map +1 -0
- package/dist/projection/experimental/rendering-profile/spherical-rendering-domain.d.ts +24 -0
- package/dist/projection/experimental/rendering-profile/spherical-rendering-domain.d.ts.map +1 -0
- package/dist/projection/experimental/rendering-profile/spherical-rendering-domain.js +129 -0
- package/dist/projection/experimental/rendering-profile/spherical-rendering-domain.js.map +1 -0
- package/dist/projection/experimental/scalar-output.d.ts +8 -0
- package/dist/projection/experimental/scalar-output.d.ts.map +1 -0
- package/dist/projection/experimental/scalar-output.js +46 -0
- package/dist/projection/experimental/scalar-output.js.map +1 -0
- package/dist/projection/experimental/spatial-deformation.d.ts +6 -0
- package/dist/projection/experimental/spatial-deformation.d.ts.map +1 -0
- package/dist/projection/experimental/spatial-deformation.js +85 -0
- package/dist/projection/experimental/spatial-deformation.js.map +1 -0
- package/dist/projection/experimental/types.d.ts +98 -0
- package/dist/projection/experimental/types.d.ts.map +1 -0
- package/dist/projection/experimental/types.js +5 -0
- package/dist/projection/experimental/types.js.map +1 -0
- package/dist/projection/experimental/typescript-projection.d.ts +76 -0
- package/dist/projection/experimental/typescript-projection.d.ts.map +1 -0
- package/dist/projection/experimental/typescript-projection.js +459 -0
- package/dist/projection/experimental/typescript-projection.js.map +1 -0
- package/dist/projection/experimental/vertical-datum.d.ts +4 -0
- package/dist/projection/experimental/vertical-datum.d.ts.map +1 -0
- package/dist/projection/experimental/vertical-datum.js +43 -0
- package/dist/projection/experimental/vertical-datum.js.map +1 -0
- package/dist/projection/grids/velocity.cjs +92 -0
- package/dist/projection/grids/velocity.cjs.map +6 -0
- package/dist/projection/grids/velocity.d.ts +3 -0
- package/dist/projection/grids/velocity.d.ts.map +1 -0
- package/dist/projection/grids/velocity.js +5 -0
- package/dist/projection/grids/velocity.js.map +1 -0
- package/dist/projection/index.cjs +13064 -0
- package/dist/projection/index.cjs.map +6 -0
- package/dist/projection/index.d.ts +3 -0
- package/dist/projection/index.d.ts.map +1 -0
- package/dist/projection/index.js +6 -0
- package/dist/projection/index.js.map +1 -0
- package/dist/projection/lib/projection.d.ts +8 -0
- package/dist/projection/lib/projection.d.ts.map +1 -0
- package/dist/projection/lib/projection.js +115 -0
- package/dist/projection/lib/projection.js.map +1 -0
- package/dist/projection/numerical-derivative.d.ts +15 -0
- package/dist/projection/numerical-derivative.d.ts.map +1 -0
- package/dist/projection/numerical-derivative.js +47 -0
- package/dist/projection/numerical-derivative.js.map +1 -0
- package/dist/projection/operations.cjs +322 -0
- package/dist/projection/operations.cjs.map +6 -0
- package/dist/projection/operations.d.ts +89 -0
- package/dist/projection/operations.d.ts.map +1 -0
- package/dist/projection/operations.js +344 -0
- package/dist/projection/operations.js.map +1 -0
- package/dist/projection/pipeline.cjs +1965 -0
- package/dist/projection/pipeline.cjs.map +6 -0
- package/dist/projection/pipeline.d.ts +2 -0
- package/dist/projection/pipeline.d.ts.map +1 -0
- package/dist/projection/pipeline.js +5 -0
- package/dist/projection/pipeline.js.map +1 -0
- package/dist/projection/temporal.cjs +290 -0
- package/dist/projection/temporal.cjs.map +6 -0
- package/dist/projection/temporal.d.ts +31 -0
- package/dist/projection/temporal.d.ts.map +1 -0
- package/dist/projection/temporal.js +91 -0
- package/dist/projection/temporal.js.map +1 -0
- package/dist/projection/transform-analysis.cjs +1893 -0
- package/dist/projection/transform-analysis.cjs.map +6 -0
- package/dist/projection/transform-analysis.d.ts +43 -0
- package/dist/projection/transform-analysis.d.ts.map +1 -0
- package/dist/projection/transform-analysis.js +110 -0
- package/dist/projection/transform-analysis.js.map +1 -0
- package/dist/projection/types.cjs +18 -0
- package/dist/projection/types.cjs.map +6 -0
- package/dist/projection/types.d.ts +51 -0
- package/dist/projection/types.d.ts.map +1 -0
- package/dist/projection/types.js +5 -0
- package/dist/projection/types.js.map +1 -0
- package/dist/projection/web-mercator.cjs +171 -0
- package/dist/projection/web-mercator.cjs.map +6 -0
- package/dist/projection/web-mercator.d.ts +7 -0
- package/dist/projection/web-mercator.d.ts.map +1 -0
- package/dist/projection/web-mercator.js +113 -0
- package/dist/projection/web-mercator.js.map +1 -0
- package/dist/rhumb-path.d.ts +28 -0
- package/dist/rhumb-path.d.ts.map +1 -0
- package/dist/rhumb-path.js +100 -0
- package/dist/rhumb-path.js.map +1 -0
- package/dist/rhumb-polygon.d.ts +11 -0
- package/dist/rhumb-polygon.d.ts.map +1 -0
- package/dist/rhumb-polygon.js +19 -0
- package/dist/rhumb-polygon.js.map +1 -0
- package/dist/subdivide-geodesic-polyline.d.ts +15 -0
- package/dist/subdivide-geodesic-polyline.d.ts.map +1 -0
- package/dist/subdivide-geodesic-polyline.js +52 -0
- package/dist/subdivide-geodesic-polyline.js.map +1 -0
- package/dist/subdivide-globe-mesh.d.ts +20 -0
- package/dist/subdivide-globe-mesh.d.ts.map +1 -0
- package/dist/subdivide-globe-mesh.js +54 -0
- package/dist/subdivide-globe-mesh.js.map +1 -0
- package/dist/subdivide-rhumb-polyline.d.ts +12 -0
- package/dist/subdivide-rhumb-polyline.d.ts.map +1 -0
- package/dist/subdivide-rhumb-polyline.js +82 -0
- package/dist/subdivide-rhumb-polyline.js.map +1 -0
- package/dist/terrain/adaptive-mesh-types.d.ts +21 -0
- package/dist/terrain/adaptive-mesh-types.d.ts.map +1 -0
- package/dist/terrain/adaptive-mesh-types.js +5 -0
- package/dist/terrain/adaptive-mesh-types.js.map +1 -0
- package/dist/terrain/bounds.d.ts +41 -0
- package/dist/terrain/bounds.d.ts.map +1 -0
- package/dist/terrain/bounds.js +141 -0
- package/dist/terrain/bounds.js.map +1 -0
- package/dist/terrain/contour-path-data.d.ts +26 -0
- package/dist/terrain/contour-path-data.d.ts.map +1 -0
- package/dist/terrain/contour-path-data.js +59 -0
- package/dist/terrain/contour-path-data.js.map +1 -0
- package/dist/terrain/contour-paths.d.ts +8 -0
- package/dist/terrain/contour-paths.d.ts.map +1 -0
- package/dist/terrain/contour-paths.js +83 -0
- package/dist/terrain/contour-paths.js.map +1 -0
- package/dist/terrain/contour-simplify.d.ts +18 -0
- package/dist/terrain/contour-simplify.d.ts.map +1 -0
- package/dist/terrain/contour-simplify.js +152 -0
- package/dist/terrain/contour-simplify.js.map +1 -0
- package/dist/terrain/contours.d.ts +29 -0
- package/dist/terrain/contours.d.ts.map +1 -0
- package/dist/terrain/contours.js +133 -0
- package/dist/terrain/contours.js.map +1 -0
- package/dist/terrain/delatin.d.ts +12 -0
- package/dist/terrain/delatin.d.ts.map +1 -0
- package/dist/terrain/delatin.js +69 -0
- package/dist/terrain/delatin.js.map +1 -0
- package/dist/terrain/derivatives.d.ts +23 -0
- package/dist/terrain/derivatives.d.ts.map +1 -0
- package/dist/terrain/derivatives.js +71 -0
- package/dist/terrain/derivatives.js.map +1 -0
- package/dist/terrain/geographic.d.ts +21 -0
- package/dist/terrain/geographic.d.ts.map +1 -0
- package/dist/terrain/geographic.js +91 -0
- package/dist/terrain/geographic.js.map +1 -0
- package/dist/terrain/geometry.d.ts +14 -0
- package/dist/terrain/geometry.d.ts.map +1 -0
- package/dist/terrain/geometry.js +116 -0
- package/dist/terrain/geometry.js.map +1 -0
- package/dist/terrain/height-field.d.ts +31 -0
- package/dist/terrain/height-field.d.ts.map +1 -0
- package/dist/terrain/height-field.js +305 -0
- package/dist/terrain/height-field.js.map +1 -0
- package/dist/terrain/index.cjs +3099 -0
- package/dist/terrain/index.cjs.map +6 -0
- package/dist/terrain/index.d.ts +46 -0
- package/dist/terrain/index.d.ts.map +1 -0
- package/dist/terrain/index.js +28 -0
- package/dist/terrain/index.js.map +1 -0
- package/dist/terrain/martini.d.ts +13 -0
- package/dist/terrain/martini.d.ts.map +1 -0
- package/dist/terrain/martini.js +65 -0
- package/dist/terrain/martini.js.map +1 -0
- package/dist/terrain/mesh-data.d.ts +21 -0
- package/dist/terrain/mesh-data.d.ts.map +1 -0
- package/dist/terrain/mesh-data.js +79 -0
- package/dist/terrain/mesh-data.js.map +1 -0
- package/dist/terrain/mesh-edges.d.ts +7 -0
- package/dist/terrain/mesh-edges.d.ts.map +1 -0
- package/dist/terrain/mesh-edges.js +21 -0
- package/dist/terrain/mesh-edges.js.map +1 -0
- package/dist/terrain/mesh-error.d.ts +16 -0
- package/dist/terrain/mesh-error.d.ts.map +1 -0
- package/dist/terrain/mesh-error.js +114 -0
- package/dist/terrain/mesh-error.js.map +1 -0
- package/dist/terrain/mesh-skirts.d.ts +29 -0
- package/dist/terrain/mesh-skirts.d.ts.map +1 -0
- package/dist/terrain/mesh-skirts.js +119 -0
- package/dist/terrain/mesh-skirts.js.map +1 -0
- package/dist/terrain/mesh-stitch.d.ts +35 -0
- package/dist/terrain/mesh-stitch.d.ts.map +1 -0
- package/dist/terrain/mesh-stitch.js +267 -0
- package/dist/terrain/mesh-stitch.js.map +1 -0
- package/dist/terrain/mesh.d.ts +6 -0
- package/dist/terrain/mesh.d.ts.map +1 -0
- package/dist/terrain/mesh.js +38 -0
- package/dist/terrain/mesh.js.map +1 -0
- package/dist/terrain/packed.d.ts +33 -0
- package/dist/terrain/packed.d.ts.map +1 -0
- package/dist/terrain/packed.js +136 -0
- package/dist/terrain/packed.js.map +1 -0
- package/dist/terrain/profile-measure.d.ts +26 -0
- package/dist/terrain/profile-measure.d.ts.map +1 -0
- package/dist/terrain/profile-measure.js +111 -0
- package/dist/terrain/profile-measure.js.map +1 -0
- package/dist/terrain/profile.d.ts +22 -0
- package/dist/terrain/profile.d.ts.map +1 -0
- package/dist/terrain/profile.js +76 -0
- package/dist/terrain/profile.js.map +1 -0
- package/dist/terrain/slope-aspect.d.ts +21 -0
- package/dist/terrain/slope-aspect.d.ts.map +1 -0
- package/dist/terrain/slope-aspect.js +52 -0
- package/dist/terrain/slope-aspect.js.map +1 -0
- package/dist/terrain/surface.d.ts +123 -0
- package/dist/terrain/surface.d.ts.map +1 -0
- package/dist/terrain/surface.js +366 -0
- package/dist/terrain/surface.js.map +1 -0
- package/dist/terrain/tiled.d.ts +80 -0
- package/dist/terrain/tiled.d.ts.map +1 -0
- package/dist/terrain/tiled.js +378 -0
- package/dist/terrain/tiled.js.map +1 -0
- package/dist/terrain/types.d.ts +58 -0
- package/dist/terrain/types.d.ts.map +1 -0
- package/dist/terrain/types.js +13 -0
- package/dist/terrain/types.js.map +1 -0
- package/dist/terrain/vendor/delatin.d.ts +38 -0
- package/dist/terrain/vendor/delatin.d.ts.map +1 -0
- package/dist/terrain/vendor/delatin.js +407 -0
- package/dist/terrain/vendor/delatin.js.map +1 -0
- package/dist/terrain/vertex-tiles.d.ts +35 -0
- package/dist/terrain/vertex-tiles.d.ts.map +1 -0
- package/dist/terrain/vertex-tiles.js +120 -0
- package/dist/terrain/vertex-tiles.js.map +1 -0
- package/dist/tile-matrix.d.ts +107 -0
- package/dist/tile-matrix.d.ts.map +1 -0
- package/dist/tile-matrix.js +383 -0
- package/dist/tile-matrix.js.map +1 -0
- package/dist/tiles.d.ts +5 -0
- package/dist/tiles.d.ts.map +1 -0
- package/dist/tiles.js +6 -0
- package/dist/tiles.js.map +1 -0
- package/dist/triaxial/integrate.d.ts +2 -0
- package/dist/triaxial/integrate.d.ts.map +1 -0
- package/dist/triaxial/integrate.js +76 -0
- package/dist/triaxial/integrate.js.map +1 -0
- package/dist/triaxial.d.ts +42 -0
- package/dist/triaxial.d.ts.map +1 -0
- package/dist/triaxial.js +141 -0
- package/dist/triaxial.js.map +1 -0
- package/dist/turf.cjs +1724 -0
- package/dist/turf.cjs.map +6 -0
- package/dist/turf.d.ts +112 -0
- package/dist/turf.d.ts.map +1 -0
- package/dist/turf.js +1093 -0
- package/dist/turf.js.map +1 -0
- package/dist/type-utils.d.ts +2 -0
- package/dist/type-utils.d.ts.map +1 -1
- package/dist/type-utils.js +25 -2
- package/dist/type-utils.js.map +1 -1
- package/dist/vendor/geographiclib-geodesic/runtime.d.ts +9 -0
- package/dist/vendor/geographiclib-geodesic/runtime.d.ts.map +1 -0
- package/dist/vendor/geographiclib-geodesic/runtime.js +2245 -0
- package/dist/vendor/geographiclib-geodesic/runtime.js.map +1 -0
- package/dist/web-mercator.d.ts +2 -0
- package/dist/web-mercator.d.ts.map +1 -0
- package/dist/web-mercator.js +5 -0
- package/dist/web-mercator.js.map +1 -0
- package/dist/wkb/index.d.ts +11 -0
- package/dist/wkb/index.d.ts.map +1 -0
- package/dist/wkb/index.js +9 -0
- package/dist/wkb/index.js.map +1 -0
- package/dist/wkb/types.d.ts +30 -0
- package/dist/wkb/types.d.ts.map +1 -0
- package/dist/wkb/types.js +34 -0
- package/dist/wkb/types.js.map +1 -0
- package/dist/wkb/wkb-builder.d.ts +91 -0
- package/dist/wkb/wkb-builder.d.ts.map +1 -0
- package/dist/wkb/wkb-builder.js +283 -0
- package/dist/wkb/wkb-builder.js.map +1 -0
- package/dist/wkb/wkb-reader.d.ts +74 -0
- package/dist/wkb/wkb-reader.d.ts.map +1 -0
- package/dist/wkb/wkb-reader.js +251 -0
- package/dist/wkb/wkb-reader.js.map +1 -0
- package/dist/wkb/wkb.d.ts +21 -0
- package/dist/wkb/wkb.d.ts.map +1 -0
- package/dist/wkb/wkb.js +204 -0
- package/dist/wkb/wkb.js.map +1 -0
- package/dist/wkb/wkt.d.ts +19 -0
- package/dist/wkb/wkt.d.ts.map +1 -0
- package/dist/wkb/wkt.js +321 -0
- package/dist/wkb/wkt.js.map +1 -0
- package/dist/workers/index.cjs +21875 -0
- package/dist/workers/index.cjs.map +6 -0
- package/dist/workers/index.d.ts +12 -0
- package/dist/workers/index.d.ts.map +1 -0
- package/dist/workers/index.js +41 -0
- package/dist/workers/index.js.map +1 -0
- package/dist/workers/map-worker.d.ts +2 -0
- package/dist/workers/map-worker.d.ts.map +1 -0
- package/dist/workers/map-worker.js +7 -0
- package/dist/workers/map-worker.js.map +1 -0
- package/dist/workers/operations.cjs +21008 -0
- package/dist/workers/operations.cjs.map +6 -0
- package/dist/workers/operations.d.ts +15 -0
- package/dist/workers/operations.d.ts.map +1 -0
- package/dist/workers/operations.js +46 -0
- package/dist/workers/operations.js.map +1 -0
- package/dist/workers/projection-worker.d.ts +2 -0
- package/dist/workers/projection-worker.d.ts.map +1 -0
- package/dist/workers/projection-worker.js +7 -0
- package/dist/workers/projection-worker.js.map +1 -0
- package/package.json +1023 -6
- package/projection/APACHE-2.0-LICENSE.txt +55 -0
- package/projection/PROJ-LICENSE.txt +37 -0
- package/projection/PROJ4-LICENSE.md +29 -0
- package/projection/THIRD-PARTY-NOTICES.md +210 -0
- package/src/constants.ts +5 -3
- package/src/coordinates/angles.ts +160 -0
- package/src/coordinates/grid.ts +141 -0
- package/src/coordinates/mgrs.ts +157 -0
- package/src/coordinates.ts +24 -0
- package/src/crs/crs-descriptor-types.ts +81 -0
- package/src/crs/crs-descriptor.ts +203 -0
- package/src/crs/crs-identifier.ts +86 -0
- package/src/crs/crs-metadata.ts +63 -0
- package/src/crs/crs.ts +36 -0
- package/src/crs/execution-identity.ts +98 -0
- package/src/crs/index.ts +102 -0
- package/src/crs/proj-string.ts +239 -0
- package/src/crs/projection-domain.ts +100 -0
- package/src/crs/projjson-schema-constants.ts +9 -0
- package/src/crs/projjson-types.ts +665 -0
- package/src/crs/resolver.ts +194 -0
- package/src/crs/spatial-reference.ts +224 -0
- package/src/crs/units-table.ts +51 -0
- package/src/crs/wkt-crs.ts +790 -0
- package/src/discontinuous/AIR-OCEAN-LICENSE.txt +26 -0
- package/src/discontinuous/D3-LICENSE.txt +37 -0
- package/src/discontinuous/PETROFF-LICENSE.txt +55 -0
- package/src/discontinuous/PROJ-LICENSE.txt +34 -0
- package/src/discontinuous/air-ocean-mesh.ts +86 -0
- package/src/discontinuous/albers-usa.ts +181 -0
- package/src/discontinuous/cap-map.ts +635 -0
- package/src/discontinuous/elastic/README.md +20 -0
- package/src/discontinuous/elastic/UNLICENSE.txt +24 -0
- package/src/discontinuous/elastic/data.ts +86 -0
- package/src/discontinuous/elastic/elasticI.ts +5238 -0
- package/src/discontinuous/elastic/elasticII.ts +18167 -0
- package/src/discontinuous/elastic/elasticIII.ts +29571 -0
- package/src/discontinuous/elastic/geometry.ts +183 -0
- package/src/discontinuous/elastic/grid.ts +194 -0
- package/src/discontinuous/elastic/map.ts +621 -0
- package/src/discontinuous/elastic/source-arc.ts +129 -0
- package/src/discontinuous/global-polygons.ts +327 -0
- package/src/discontinuous/gray-fuller.ts +38 -0
- package/src/discontinuous/gringorten-kernel.ts +160 -0
- package/src/discontinuous/healpix.ts +61 -0
- package/src/discontinuous/layout.ts +177 -0
- package/src/discontinuous/map-engine.ts +602 -0
- package/src/discontinuous/map-layout.ts +768 -0
- package/src/discontinuous/map-transition.ts +403 -0
- package/src/discontinuous/math.ts +67 -0
- package/src/discontinuous/mercator-map.ts +299 -0
- package/src/discontinuous/myriahedral/graticule.ts +40 -0
- package/src/discontinuous/myriahedral/mesh.ts +138 -0
- package/src/discontinuous/myriahedral/unfold.ts +240 -0
- package/src/discontinuous/myriahedral.ts +311 -0
- package/src/discontinuous/petroff.ts +178 -0
- package/src/discontinuous/polygon-constraints.ts +184 -0
- package/src/discontinuous/polyhedral.ts +138 -0
- package/src/discontinuous/prepare-features.ts +393 -0
- package/src/discontinuous/presets.ts +450 -0
- package/src/discontinuous/projection-catalog.ts +132 -0
- package/src/discontinuous/quincuncial-kernel.ts +173 -0
- package/src/discontinuous/quincuncial-star.ts +328 -0
- package/src/discontinuous/regional-map.ts +229 -0
- package/src/discontinuous/retroazimuthal-map.ts +52 -0
- package/src/discontinuous/rotated-map.ts +86 -0
- package/src/discontinuous/snyder-mesh.ts +88 -0
- package/src/discontinuous/snyder.ts +171 -0
- package/src/discontinuous/source-arc.ts +31 -0
- package/src/discontinuous/spherical-clip/D3-GEO-LICENSE.txt +34 -0
- package/src/discontinuous/spherical-clip/README.md +16 -0
- package/src/discontinuous/spherical-clip/cartesian.js +43 -0
- package/src/discontinuous/spherical-clip/circle.js +35 -0
- package/src/discontinuous/spherical-clip/clip-buffer.js +29 -0
- package/src/discontinuous/spherical-clip/clip-circle.js +197 -0
- package/src/discontinuous/spherical-clip/clip-index.js +140 -0
- package/src/discontinuous/spherical-clip/clip-rejoin.js +111 -0
- package/src/discontinuous/spherical-clip/helpers.js +20 -0
- package/src/discontinuous/spherical-clip/math.js +45 -0
- package/src/discontinuous/spherical-clip/noop.js +6 -0
- package/src/discontinuous/spherical-clip/pointEqual.js +10 -0
- package/src/discontinuous/spherical-clip/polygonContains.js +96 -0
- package/src/discontinuous/world-composite-kernels.ts +30 -0
- package/src/discontinuous/world-kernels/INTEGRATE-LICENSE.txt +21 -0
- package/src/discontinuous/world-kernels/README.md +24 -0
- package/src/discontinuous/world-kernels/airy.js +43 -0
- package/src/discontinuous/world-kernels/aitoff.js +48 -0
- package/src/discontinuous/world-kernels/armadillo.js +51 -0
- package/src/discontinuous/world-kernels/august.js +36 -0
- package/src/discontinuous/world-kernels/baker.js +50 -0
- package/src/discontinuous/world-kernels/bertin.js +41 -0
- package/src/discontinuous/world-kernels/boggs.js +32 -0
- package/src/discontinuous/world-kernels/bonne.js +27 -0
- package/src/discontinuous/world-kernels/bottomley.js +25 -0
- package/src/discontinuous/world-kernels/bromley.js +10 -0
- package/src/discontinuous/world-kernels/chamberlin.js +97 -0
- package/src/discontinuous/world-kernels/collignon.js +17 -0
- package/src/discontinuous/world-kernels/craig.js +33 -0
- package/src/discontinuous/world-kernels/craster.js +18 -0
- package/src/discontinuous/world-kernels/cylindricalEqualArea.js +21 -0
- package/src/discontinuous/world-kernels/cylindricalStereographic.js +21 -0
- package/src/discontinuous/world-kernels/d3-geo-raw.js +26 -0
- package/src/discontinuous/world-kernels/eckert1.js +18 -0
- package/src/discontinuous/world-kernels/eckert2.js +17 -0
- package/src/discontinuous/world-kernels/eckert3.js +17 -0
- package/src/discontinuous/world-kernels/eckert4.js +24 -0
- package/src/discontinuous/world-kernels/eckert5.js +17 -0
- package/src/discontinuous/world-kernels/eckert6.js +22 -0
- package/src/discontinuous/world-kernels/eisenlohr.js +88 -0
- package/src/discontinuous/world-kernels/fahey.js +19 -0
- package/src/discontinuous/world-kernels/foucaut.js +20 -0
- package/src/discontinuous/world-kernels/foucautSinusoidal.js +38 -0
- package/src/discontinuous/world-kernels/ginzburg4.js +17 -0
- package/src/discontinuous/world-kernels/ginzburg5.js +17 -0
- package/src/discontinuous/world-kernels/ginzburg6.js +19 -0
- package/src/discontinuous/world-kernels/ginzburg8.js +34 -0
- package/src/discontinuous/world-kernels/ginzburg9.js +17 -0
- package/src/discontinuous/world-kernels/ginzburgPolyconic.js +64 -0
- package/src/discontinuous/world-kernels/hammer.js +37 -0
- package/src/discontinuous/world-kernels/hammerRetroazimuthal.js +63 -0
- package/src/discontinuous/world-kernels/hill.js +57 -0
- package/src/discontinuous/world-kernels/homolosine.js +24 -0
- package/src/discontinuous/world-kernels/hufnagel.js +68 -0
- package/src/discontinuous/world-kernels/hyperelliptical.js +56 -0
- package/src/discontinuous/world-kernels/integrate.js +99 -0
- package/src/discontinuous/world-kernels/kavrayskiy7.js +15 -0
- package/src/discontinuous/world-kernels/lagrange.js +32 -0
- package/src/discontinuous/world-kernels/larrivee.js +43 -0
- package/src/discontinuous/world-kernels/laskowski.js +50 -0
- package/src/discontinuous/world-kernels/littrow.js +19 -0
- package/src/discontinuous/world-kernels/loximuthal.js +38 -0
- package/src/discontinuous/world-kernels/math.js +98 -0
- package/src/discontinuous/world-kernels/miller.js +15 -0
- package/src/discontinuous/world-kernels/modifiedStereographic.js +112 -0
- package/src/discontinuous/world-kernels/mollweide.js +30 -0
- package/src/discontinuous/world-kernels/mtFlatPolarParabolic.js +23 -0
- package/src/discontinuous/world-kernels/mtFlatPolarQuartic.js +29 -0
- package/src/discontinuous/world-kernels/mtFlatPolarSinusoidal.js +25 -0
- package/src/discontinuous/world-kernels/naturalEarth2.js +46 -0
- package/src/discontinuous/world-kernels/nellHammer.js +20 -0
- package/src/discontinuous/world-kernels/newton.js +77 -0
- package/src/discontinuous/world-kernels/nicolosi.js +60 -0
- package/src/discontinuous/world-kernels/patterson.js +45 -0
- package/src/discontinuous/world-kernels/polyconic.js +36 -0
- package/src/discontinuous/world-kernels/rectangularPolyconic.js +41 -0
- package/src/discontinuous/world-kernels/robinson.js +88 -0
- package/src/discontinuous/world-kernels/satellite.js +44 -0
- package/src/discontinuous/world-kernels/sinuMollweide.js +24 -0
- package/src/discontinuous/world-kernels/sinusoidal.js +15 -0
- package/src/discontinuous/world-kernels/times.js +19 -0
- package/src/discontinuous/world-kernels/twoPointEquidistant.js +41 -0
- package/src/discontinuous/world-kernels/vanDerGrinten.js +48 -0
- package/src/discontinuous/world-kernels/vanDerGrinten2.js +32 -0
- package/src/discontinuous/world-kernels/vanDerGrinten3.js +24 -0
- package/src/discontinuous/world-kernels/vanDerGrinten4.js +70 -0
- package/src/discontinuous/world-kernels/wagner.js +61 -0
- package/src/discontinuous/world-kernels/wagner4.js +13 -0
- package/src/discontinuous/world-kernels/wagner6.js +15 -0
- package/src/discontinuous/world-kernels/wiechel.js +25 -0
- package/src/discontinuous/world-kernels/winkel3.js +45 -0
- package/src/discontinuous/world-kernels.ts +249 -0
- package/src/discontinuous/world-map.ts +257 -0
- package/src/discontinuous.ts +142 -0
- package/src/elastic.ts +7 -0
- package/src/ellipsoid-geodesic.ts +170 -0
- package/src/ellipsoid-helpers/ellipsoid-transform.ts +79 -20
- package/src/ellipsoid-helpers/exact-nearest-surface.ts +118 -0
- package/src/ellipsoid-helpers/intersection-bounds.ts +85 -0
- package/src/ellipsoid-helpers/nearest-surface.ts +157 -0
- package/src/ellipsoid-helpers/rhumb-pole-distance.ts +76 -0
- package/src/ellipsoid-helpers/scale-to-geodetic-surface.ts +31 -90
- package/src/ellipsoid-helpers/surface-polygon.ts +210 -0
- package/src/ellipsoid-helpers/tangent-plane-numerics.ts +124 -0
- package/src/ellipsoid-metrics.ts +225 -0
- package/src/ellipsoid-occluder.ts +135 -0
- package/src/ellipsoid-rhumb.ts +408 -0
- package/src/ellipsoid-tangent-plane.ts +236 -38
- package/src/ellipsoid-transforms.ts +61 -0
- package/src/ellipsoid.ts +281 -117
- package/src/entries/ellipsoid.ts +44 -0
- package/src/expressions.ts +35 -0
- package/src/geoarrow/builder-entry.ts +18 -0
- package/src/geoarrow/builder.ts +860 -0
- package/src/geoarrow/codecs.ts +1268 -0
- package/src/geoarrow/index.ts +111 -0
- package/src/geoarrow/kernels.ts +1290 -0
- package/src/geoarrow/layout.ts +900 -0
- package/src/geoarrow/stream-tessellate.ts +205 -0
- package/src/geoarrow/stream.ts +130 -0
- package/src/geoarrow/tessellate.ts +133 -0
- package/src/geoarrow/tessellation-entry.ts +7 -0
- package/src/geoarrow/types.ts +259 -0
- package/src/geoarrow/views.ts +150 -0
- package/src/geoarrow/wkb-entry.ts +13 -0
- package/src/geoarrow/worker.ts +20 -0
- package/src/geodesic-buffer.ts +120 -0
- package/src/geodesic-exact/area.ts +70 -0
- package/src/geodesic-exact/inverse-engine.ts +166 -0
- package/src/geodesic-exact/polygon.ts +36 -0
- package/src/geodesic-exact/quadrature.ts +60 -0
- package/src/geodesic-exact.ts +290 -0
- package/src/geodesic-intersections.ts +598 -0
- package/src/geodesic-path.ts +128 -0
- package/src/geodesic-polygon.ts +19 -0
- package/src/geographic-atlas/atlas.ts +645 -0
- package/src/geographic-atlas/curves.ts +360 -0
- package/src/geographic-atlas/math.ts +125 -0
- package/src/geographic-atlas/sampling.ts +146 -0
- package/src/geographic-atlas/topology.ts +196 -0
- package/src/geographic-atlas/types.ts +48 -0
- package/src/geographic-atlas.ts +104 -0
- package/src/geographic-cuts.ts +114 -0
- package/src/geographic-seams/cut-options.ts +50 -0
- package/src/geographic-seams/edge.ts +416 -0
- package/src/geographic-seams/latitude.ts +47 -0
- package/src/geographic-seams/polygon.ts +551 -0
- package/src/geographic-seams/subdivide-cut.ts +203 -0
- package/src/geographic-seams/types.ts +67 -0
- package/src/geographic-seams.ts +81 -0
- package/src/geographic-tiles.ts +87 -0
- package/src/globe-horizon-bounds.ts +68 -0
- package/src/globe.ts +31 -0
- package/src/index.ts +393 -7
- package/src/lng-lat-rectangle.ts +5 -3
- package/src/local-reference-frame.ts +316 -0
- package/src/make-obb-from-region.ts +6 -4
- package/src/projection/analysis.ts +284 -0
- package/src/projection/bulk.ts +343 -0
- package/src/projection/datums.ts +13 -0
- package/src/projection/deformation.ts +5 -0
- package/src/projection/experimental/authalic-latitude.ts +49 -0
- package/src/projection/experimental/catalogue-kernel.ts +65 -0
- package/src/projection/experimental/common/adjust_lat.ts +11 -0
- package/src/projection/experimental/common/adjust_lon.ts +14 -0
- package/src/projection/experimental/common/asinhy.ts +14 -0
- package/src/projection/experimental/common/asinz.ts +11 -0
- package/src/projection/experimental/common/authlat.ts +9 -0
- package/src/projection/experimental/common/authset.ts +25 -0
- package/src/projection/experimental/common/clens.ts +20 -0
- package/src/projection/experimental/common/clens_cmplx.ts +43 -0
- package/src/projection/experimental/common/constants.ts +15 -0
- package/src/projection/experimental/common/cosh.ts +10 -0
- package/src/projection/experimental/common/e0fn.ts +8 -0
- package/src/projection/experimental/common/e1fn.ts +8 -0
- package/src/projection/experimental/common/e2fn.ts +8 -0
- package/src/projection/experimental/common/e3fn.ts +8 -0
- package/src/projection/experimental/common/fL.ts +10 -0
- package/src/projection/experimental/common/gN.ts +9 -0
- package/src/projection/experimental/common/gatg.ts +20 -0
- package/src/projection/experimental/common/hypot.ts +13 -0
- package/src/projection/experimental/common/imlfn.ts +23 -0
- package/src/projection/experimental/common/invlatiso.ts +20 -0
- package/src/projection/experimental/common/iqsfnz.ts +45 -0
- package/src/projection/experimental/common/latiso.ts +21 -0
- package/src/projection/experimental/common/log1py.ts +11 -0
- package/src/projection/experimental/common/meridian-distance.ts +45 -0
- package/src/projection/experimental/common/mlfn.ts +8 -0
- package/src/projection/experimental/common/msfnz.ts +9 -0
- package/src/projection/experimental/common/phi2z.ts +22 -0
- package/src/projection/experimental/common/pj_enfn.ts +29 -0
- package/src/projection/experimental/common/pj_inv_mlfn.ts +28 -0
- package/src/projection/experimental/common/pj_mlfn.ts +10 -0
- package/src/projection/experimental/common/qsfnz.ts +17 -0
- package/src/projection/experimental/common/sign.ts +8 -0
- package/src/projection/experimental/common/sinh.ts +10 -0
- package/src/projection/experimental/common/srat.ts +8 -0
- package/src/projection/experimental/common/tsfnz.ts +14 -0
- package/src/projection/experimental/common/vincenty.ts +180 -0
- package/src/projection/experimental/core.ts +77 -0
- package/src/projection/experimental/crs/datum-catalog.ts +65 -0
- package/src/projection/experimental/crs/datum-table.ts +1360 -0
- package/src/projection/experimental/crs/ellipsoid-table.ts +230 -0
- package/src/projection/experimental/crs/normalize.ts +318 -0
- package/src/projection/experimental/crs/primemeridian-table.ts +22 -0
- package/src/projection/experimental/crs/projjson.ts +12 -0
- package/src/projection/experimental/crs/resolve.ts +78 -0
- package/src/projection/experimental/crs/spatial-reference.ts +120 -0
- package/src/projection/experimental/crs/structured.ts +580 -0
- package/src/projection/experimental/crs/types.ts +97 -0
- package/src/projection/experimental/crs/wkt.ts +201 -0
- package/src/projection/experimental/crs-descriptor.ts +256 -0
- package/src/projection/experimental/crs-rendering-scale.ts +115 -0
- package/src/projection/experimental/datum.ts +185 -0
- package/src/projection/experimental/deformation-inverse.ts +125 -0
- package/src/projection/experimental/deformation.ts +30 -0
- package/src/projection/experimental/ellipsoidal-gnomonic.ts +83 -0
- package/src/projection/experimental/engine-options.ts +36 -0
- package/src/projection/experimental/entries/projections/aea.ts +5 -0
- package/src/projection/experimental/entries/projections/aeqd.ts +5 -0
- package/src/projection/experimental/entries/projections/bonne.ts +5 -0
- package/src/projection/experimental/entries/projections/cass.ts +5 -0
- package/src/projection/experimental/entries/projections/cea.ts +5 -0
- package/src/projection/experimental/entries/projections/eck6.ts +5 -0
- package/src/projection/experimental/entries/projections/eqc.ts +5 -0
- package/src/projection/experimental/entries/projections/eqdc.ts +5 -0
- package/src/projection/experimental/entries/projections/eqearth.ts +5 -0
- package/src/projection/experimental/entries/projections/equi.ts +5 -0
- package/src/projection/experimental/entries/projections/etmerc.ts +5 -0
- package/src/projection/experimental/entries/projections/geocent.ts +5 -0
- package/src/projection/experimental/entries/projections/geos.ts +5 -0
- package/src/projection/experimental/entries/projections/gnom.ts +5 -0
- package/src/projection/experimental/entries/projections/gstmerc.ts +5 -0
- package/src/projection/experimental/entries/projections/krovak.ts +5 -0
- package/src/projection/experimental/entries/projections/laea.ts +5 -0
- package/src/projection/experimental/entries/projections/lcc.ts +5 -0
- package/src/projection/experimental/entries/projections/merc.ts +5 -0
- package/src/projection/experimental/entries/projections/mill.ts +5 -0
- package/src/projection/experimental/entries/projections/moll.ts +5 -0
- package/src/projection/experimental/entries/projections/nzmg.ts +5 -0
- package/src/projection/experimental/entries/projections/ob_tran.ts +5 -0
- package/src/projection/experimental/entries/projections/omerc.ts +5 -0
- package/src/projection/experimental/entries/projections/ortho.ts +5 -0
- package/src/projection/experimental/entries/projections/poly.ts +5 -0
- package/src/projection/experimental/entries/projections/qsc.ts +5 -0
- package/src/projection/experimental/entries/projections/robin.ts +5 -0
- package/src/projection/experimental/entries/projections/sinu.ts +5 -0
- package/src/projection/experimental/entries/projections/somerc.ts +5 -0
- package/src/projection/experimental/entries/projections/stere.ts +5 -0
- package/src/projection/experimental/entries/projections/sterea.ts +5 -0
- package/src/projection/experimental/entries/projections/tmerc.ts +5 -0
- package/src/projection/experimental/entries/projections/tpers.ts +5 -0
- package/src/projection/experimental/entries/projections/utm.ts +5 -0
- package/src/projection/experimental/entries/projections/vandg.ts +5 -0
- package/src/projection/experimental/exact-helmert.ts +58 -0
- package/src/projection/experimental/flat-projection.ts +80 -0
- package/src/projection/experimental/grids/geotiff.ts +88 -0
- package/src/projection/experimental/grids/grid.ts +141 -0
- package/src/projection/experimental/grids/gtx.ts +31 -0
- package/src/projection/experimental/grids/ntv2.ts +71 -0
- package/src/projection/experimental/grids/scalar-geotiff.ts +231 -0
- package/src/projection/experimental/grids/types.ts +35 -0
- package/src/projection/experimental/grids/velocity-geotiff.ts +82 -0
- package/src/projection/experimental/grids/velocity.ts +58 -0
- package/src/projection/experimental/grids/vertical-geotiff.ts +28 -0
- package/src/projection/experimental/grids/vertical.ts +99 -0
- package/src/projection/experimental/helmert-flat.ts +76 -0
- package/src/projection/experimental/index.ts +59 -0
- package/src/projection/experimental/inverse-spherical-latitude.ts +19 -0
- package/src/projection/experimental/kernel.ts +142 -0
- package/src/projection/experimental/kernels/aea.ts +149 -0
- package/src/projection/experimental/kernels/aeqd.ts +171 -0
- package/src/projection/experimental/kernels/bonne.ts +141 -0
- package/src/projection/experimental/kernels/cass.ts +140 -0
- package/src/projection/experimental/kernels/cea.ts +71 -0
- package/src/projection/experimental/kernels/eck6.ts +36 -0
- package/src/projection/experimental/kernels/eqdc.ts +137 -0
- package/src/projection/experimental/kernels/eqearth.ts +146 -0
- package/src/projection/experimental/kernels/equi.ts +55 -0
- package/src/projection/experimental/kernels/etmerc.ts +190 -0
- package/src/projection/experimental/kernels/gauss.ts +79 -0
- package/src/projection/experimental/kernels/geos.ts +183 -0
- package/src/projection/experimental/kernels/gnom.ts +123 -0
- package/src/projection/experimental/kernels/gstmerc.ts +74 -0
- package/src/projection/experimental/kernels/krovak.ts +166 -0
- package/src/projection/experimental/kernels/laea.ts +320 -0
- package/src/projection/experimental/kernels/lcc.ts +141 -0
- package/src/projection/experimental/kernels/mill.ts +60 -0
- package/src/projection/experimental/kernels/moll.ts +109 -0
- package/src/projection/experimental/kernels/nzmg.ts +249 -0
- package/src/projection/experimental/kernels/omerc.ts +343 -0
- package/src/projection/experimental/kernels/ortho.ts +52 -0
- package/src/projection/experimental/kernels/poly.ts +217 -0
- package/src/projection/experimental/kernels/qsc.ts +359 -0
- package/src/projection/experimental/kernels/robin.ts +189 -0
- package/src/projection/experimental/kernels/sinu.ts +118 -0
- package/src/projection/experimental/kernels/somerc.ts +102 -0
- package/src/projection/experimental/kernels/stere.ts +249 -0
- package/src/projection/experimental/kernels/sterea.ts +82 -0
- package/src/projection/experimental/kernels/tmerc.ts +227 -0
- package/src/projection/experimental/kernels/tpers.ts +187 -0
- package/src/projection/experimental/kernels/vandg.ts +147 -0
- package/src/projection/experimental/kinematic-helmert-flat.ts +85 -0
- package/src/projection/experimental/kinematic-helmert.ts +132 -0
- package/src/projection/experimental/lazy-projection.ts +190 -0
- package/src/projection/experimental/lazy-projections/aea.ts +10 -0
- package/src/projection/experimental/lazy-projections/aeqd.ts +12 -0
- package/src/projection/experimental/lazy-projections/bonne.ts +10 -0
- package/src/projection/experimental/lazy-projections/cass.ts +10 -0
- package/src/projection/experimental/lazy-projections/cea.ts +12 -0
- package/src/projection/experimental/lazy-projections/eck6.ts +10 -0
- package/src/projection/experimental/lazy-projections/eqc.ts +15 -0
- package/src/projection/experimental/lazy-projections/eqdc.ts +11 -0
- package/src/projection/experimental/lazy-projections/eqearth.ts +10 -0
- package/src/projection/experimental/lazy-projections/equi.ts +10 -0
- package/src/projection/experimental/lazy-projections/etmerc.ts +12 -0
- package/src/projection/experimental/lazy-projections/geocent.ts +10 -0
- package/src/projection/experimental/lazy-projections/geos.ts +10 -0
- package/src/projection/experimental/lazy-projections/gnom.ts +10 -0
- package/src/projection/experimental/lazy-projections/gstmerc.ts +13 -0
- package/src/projection/experimental/lazy-projections/index.ts +41 -0
- package/src/projection/experimental/lazy-projections/krovak.ts +18 -0
- package/src/projection/experimental/lazy-projections/laea.ts +12 -0
- package/src/projection/experimental/lazy-projections/lcc.ts +22 -0
- package/src/projection/experimental/lazy-projections/merc.ts +19 -0
- package/src/projection/experimental/lazy-projections/mill.ts +11 -0
- package/src/projection/experimental/lazy-projections/moll.ts +10 -0
- package/src/projection/experimental/lazy-projections/nzmg.ts +11 -0
- package/src/projection/experimental/lazy-projections/ob_tran.ts +25 -0
- package/src/projection/experimental/lazy-projections/omerc.ts +22 -0
- package/src/projection/experimental/lazy-projections/ortho.ts +10 -0
- package/src/projection/experimental/lazy-projections/poly.ts +10 -0
- package/src/projection/experimental/lazy-projections/qsc.ts +16 -0
- package/src/projection/experimental/lazy-projections/robin.ts +10 -0
- package/src/projection/experimental/lazy-projections/sinu.ts +10 -0
- package/src/projection/experimental/lazy-projections/somerc.ts +12 -0
- package/src/projection/experimental/lazy-projections/stere.ts +18 -0
- package/src/projection/experimental/lazy-projections/sterea.ts +20 -0
- package/src/projection/experimental/lazy-projections/tmerc.ts +22 -0
- package/src/projection/experimental/lazy-projections/tpers.ts +11 -0
- package/src/projection/experimental/lazy-projections/utm.ts +12 -0
- package/src/projection/experimental/lazy-projections/vandg.ts +10 -0
- package/src/projection/experimental/mutable-projection.ts +63 -0
- package/src/projection/experimental/numeric-flat.ts +73 -0
- package/src/projection/experimental/parameters.ts +36 -0
- package/src/projection/experimental/projection-descriptor.ts +79 -0
- package/src/projection/experimental/projection-engine.ts +62 -0
- package/src/projection/experimental/projection-pipeline.ts +1047 -0
- package/src/projection/experimental/projection-scratch.ts +26 -0
- package/src/projection/experimental/projections/aea.ts +41 -0
- package/src/projection/experimental/projections/aeqd.ts +27 -0
- package/src/projection/experimental/projections/bonne.ts +38 -0
- package/src/projection/experimental/projections/cass.ts +39 -0
- package/src/projection/experimental/projections/cea.ts +31 -0
- package/src/projection/experimental/projections/eck6.ts +30 -0
- package/src/projection/experimental/projections/eqdc.ts +40 -0
- package/src/projection/experimental/projections/eqearth.ts +72 -0
- package/src/projection/experimental/projections/equi.ts +31 -0
- package/src/projection/experimental/projections/equidistant-cylindrical.ts +79 -0
- package/src/projection/experimental/projections/geocentric.ts +42 -0
- package/src/projection/experimental/projections/geos.ts +46 -0
- package/src/projection/experimental/projections/gnom.ts +51 -0
- package/src/projection/experimental/projections/gstmerc.ts +43 -0
- package/src/projection/experimental/projections/krovak.ts +61 -0
- package/src/projection/experimental/projections/laea.ts +39 -0
- package/src/projection/experimental/projections/lcc.ts +67 -0
- package/src/projection/experimental/projections/mercator.ts +150 -0
- package/src/projection/experimental/projections/mill.ts +30 -0
- package/src/projection/experimental/projections/moll.ts +30 -0
- package/src/projection/experimental/projections/nzmg.ts +47 -0
- package/src/projection/experimental/projections/ob-tran.ts +279 -0
- package/src/projection/experimental/projections/omerc.ts +86 -0
- package/src/projection/experimental/projections/ortho.ts +34 -0
- package/src/projection/experimental/projections/poly.ts +40 -0
- package/src/projection/experimental/projections/qsc.ts +84 -0
- package/src/projection/experimental/projections/robin.ts +30 -0
- package/src/projection/experimental/projections/sinu.ts +30 -0
- package/src/projection/experimental/projections/somerc.ts +39 -0
- package/src/projection/experimental/projections/stere.ts +59 -0
- package/src/projection/experimental/projections/sterea.ts +61 -0
- package/src/projection/experimental/projections/tpers.ts +59 -0
- package/src/projection/experimental/projections/transverse-mercator.ts +89 -0
- package/src/projection/experimental/projections/utm.ts +50 -0
- package/src/projection/experimental/projections/vandg.ts +30 -0
- package/src/projection/experimental/rendering-profile/angular-rendering-profile.ts +117 -0
- package/src/projection/experimental/rendering-profile/azimuthal-rendering-bounds.ts +251 -0
- package/src/projection/experimental/rendering-profile/geographic-bounds.ts +190 -0
- package/src/projection/experimental/rendering-profile/geographic-rendering-profile.ts +29 -0
- package/src/projection/experimental/rendering-profile/geostationary-rendering-profile.ts +128 -0
- package/src/projection/experimental/rendering-profile/identity-rendering-profile.ts +15 -0
- package/src/projection/experimental/rendering-profile/rectangular-rendering-profile.ts +133 -0
- package/src/projection/experimental/rendering-profile/regional-rendering-bounds.ts +252 -0
- package/src/projection/experimental/rendering-profile/rendering-bounds.ts +163 -0
- package/src/projection/experimental/rendering-profile/rendering-profile.ts +96 -0
- package/src/projection/experimental/rendering-profile/spherical-rendering-domain.ts +175 -0
- package/src/projection/experimental/scalar-output.ts +77 -0
- package/src/projection/experimental/spatial-deformation.ts +115 -0
- package/src/projection/experimental/types.ts +117 -0
- package/src/projection/experimental/typescript-projection.ts +581 -0
- package/src/projection/experimental/vertical-datum.ts +39 -0
- package/src/projection/grids/velocity.ts +5 -0
- package/src/projection/index.ts +6 -0
- package/src/projection/lib/projection.ts +161 -0
- package/src/projection/numerical-derivative.ts +50 -0
- package/src/projection/operations.ts +479 -0
- package/src/projection/pipeline.ts +4 -0
- package/src/projection/temporal.ts +133 -0
- package/src/projection/transform-analysis.ts +169 -0
- package/src/projection/types.ts +83 -0
- package/src/projection/web-mercator.ts +148 -0
- package/src/rhumb-path.ts +128 -0
- package/src/rhumb-polygon.ts +24 -0
- package/src/subdivide-geodesic-polyline.ts +74 -0
- package/src/subdivide-globe-mesh.ts +75 -0
- package/src/subdivide-rhumb-polyline.ts +108 -0
- package/src/terrain/adaptive-mesh-types.ts +25 -0
- package/src/terrain/bounds.ts +189 -0
- package/src/terrain/contour-path-data.ts +106 -0
- package/src/terrain/contour-paths.ts +107 -0
- package/src/terrain/contour-simplify.ts +189 -0
- package/src/terrain/contours.ts +180 -0
- package/src/terrain/delatin.ts +82 -0
- package/src/terrain/derivatives.ts +100 -0
- package/src/terrain/geographic.ts +131 -0
- package/src/terrain/geometry.ts +128 -0
- package/src/terrain/height-field.ts +361 -0
- package/src/terrain/index.ts +82 -0
- package/src/terrain/martini.ts +77 -0
- package/src/terrain/mesh-data.ts +111 -0
- package/src/terrain/mesh-edges.ts +27 -0
- package/src/terrain/mesh-error.ts +158 -0
- package/src/terrain/mesh-skirts.ts +166 -0
- package/src/terrain/mesh-stitch.ts +345 -0
- package/src/terrain/mesh.ts +49 -0
- package/src/terrain/packed.ts +172 -0
- package/src/terrain/profile-measure.ts +146 -0
- package/src/terrain/profile.ts +111 -0
- package/src/terrain/slope-aspect.ts +74 -0
- package/src/terrain/surface.ts +511 -0
- package/src/terrain/tiled.ts +488 -0
- package/src/terrain/types.ts +65 -0
- package/src/terrain/vendor/DELATIN-LICENSE.txt +17 -0
- package/src/terrain/vendor/README.md +20 -0
- package/src/terrain/vendor/delatin.js +491 -0
- package/src/terrain/vertex-tiles.ts +160 -0
- package/src/tile-matrix.ts +589 -0
- package/src/tiles.ts +32 -0
- package/src/triaxial/integrate.ts +82 -0
- package/src/triaxial.ts +195 -0
- package/src/turf.ts +1286 -0
- package/src/type-utils.ts +31 -3
- package/src/vendor/geographiclib-geodesic/README.md +26 -0
- package/src/vendor/geographiclib-geodesic/runtime.js +2339 -0
- package/src/web-mercator.ts +5 -0
- package/src/wkb/index.ts +38 -0
- package/src/wkb/types.ts +54 -0
- package/src/wkb/wkb-builder.ts +395 -0
- package/src/wkb/wkb-reader.ts +401 -0
- package/src/wkb/wkb.ts +255 -0
- package/src/wkb/wkt.ts +375 -0
- package/src/workers/index.ts +59 -0
- package/src/workers/map-worker.ts +7 -0
- package/src/workers/operations.ts +65 -0
- package/src/workers/projection-worker.ts +7 -0
|
@@ -0,0 +1,2401 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __esm = (fn, res, err) => function __init() {
|
|
8
|
+
if (err) throw err[0];
|
|
9
|
+
try {
|
|
10
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw err = [e], e;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var __export = (target, all) => {
|
|
16
|
+
for (var name in all)
|
|
17
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
+
for (let key2 of __getOwnPropNames(from))
|
|
22
|
+
if (!__hasOwnProp.call(to, key2) && key2 !== except)
|
|
23
|
+
__defProp(to, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
+
mod
|
|
34
|
+
));
|
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
|
|
37
|
+
// dist/crs/spatial-reference.js
|
|
38
|
+
function inferCRSRepresentation(definition) {
|
|
39
|
+
if (typeof definition === "object") {
|
|
40
|
+
return "projjson";
|
|
41
|
+
}
|
|
42
|
+
const text = definition.trim();
|
|
43
|
+
if (/^[A-Z][A-Z0-9_]*\s*[\[(]/i.test(text)) {
|
|
44
|
+
return "wkt";
|
|
45
|
+
}
|
|
46
|
+
if (/(?:^|\s)\+?proj=/i.test(text)) {
|
|
47
|
+
return "proj-string";
|
|
48
|
+
}
|
|
49
|
+
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)) {
|
|
50
|
+
return "identifier";
|
|
51
|
+
}
|
|
52
|
+
return "opaque";
|
|
53
|
+
}
|
|
54
|
+
var init_spatial_reference = __esm({
|
|
55
|
+
"dist/crs/spatial-reference.js"() {
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// dist/crs/proj-string.js
|
|
60
|
+
function parsePROJString(text) {
|
|
61
|
+
const tokens = tokenizePROJString(text);
|
|
62
|
+
if (tokens.length === 0) {
|
|
63
|
+
throw new PROJStringSyntaxError("PROJ string is empty", text, 0);
|
|
64
|
+
}
|
|
65
|
+
const parameters = tokens.map((token) => parseParameter(token.raw, token.offset, text));
|
|
66
|
+
return { type: "proj-string", parameters };
|
|
67
|
+
}
|
|
68
|
+
function parseParameter(rawToken, offset, source) {
|
|
69
|
+
const token = rawToken.startsWith("+") ? rawToken.slice(1) : rawToken;
|
|
70
|
+
if (!token) {
|
|
71
|
+
throw new PROJStringSyntaxError("Expected a parameter after '+'", source, offset);
|
|
72
|
+
}
|
|
73
|
+
const equalsIndex = token.indexOf("=");
|
|
74
|
+
const name = equalsIndex < 0 ? token : token.slice(0, equalsIndex);
|
|
75
|
+
if (!name || /[\s+=]/.test(name)) {
|
|
76
|
+
throw new PROJStringSyntaxError(`Invalid PROJ parameter name '${name}'`, source, offset);
|
|
77
|
+
}
|
|
78
|
+
if (equalsIndex < 0) {
|
|
79
|
+
return { type: "parameter", name };
|
|
80
|
+
}
|
|
81
|
+
const rawValue = token.slice(equalsIndex + 1);
|
|
82
|
+
const value = decodeParameterValue(rawValue, source, offset + equalsIndex + 1);
|
|
83
|
+
return { type: "parameter", name, value, rawValue };
|
|
84
|
+
}
|
|
85
|
+
function tokenizePROJString(source) {
|
|
86
|
+
const tokens = [];
|
|
87
|
+
let offset = 0;
|
|
88
|
+
while (offset < source.length) {
|
|
89
|
+
while (offset < source.length && /\s/.test(source[offset])) {
|
|
90
|
+
offset++;
|
|
91
|
+
}
|
|
92
|
+
if (offset >= source.length) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
const start = offset;
|
|
96
|
+
let quote = null;
|
|
97
|
+
let escaped = false;
|
|
98
|
+
while (offset < source.length) {
|
|
99
|
+
const character = source[offset];
|
|
100
|
+
if (escaped) {
|
|
101
|
+
escaped = false;
|
|
102
|
+
offset++;
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if (character === "\\" && quote) {
|
|
106
|
+
escaped = true;
|
|
107
|
+
offset++;
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
if (quote) {
|
|
111
|
+
if (character === quote) {
|
|
112
|
+
quote = null;
|
|
113
|
+
}
|
|
114
|
+
offset++;
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
if ((character === '"' || character === "'") && source[offset - 1] === "=") {
|
|
118
|
+
quote = character;
|
|
119
|
+
offset++;
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
if (/\s/.test(character)) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
offset++;
|
|
126
|
+
}
|
|
127
|
+
if (quote) {
|
|
128
|
+
throw new PROJStringSyntaxError("Unterminated quoted PROJ value", source, start);
|
|
129
|
+
}
|
|
130
|
+
tokens.push({ raw: source.slice(start, offset), offset: start });
|
|
131
|
+
}
|
|
132
|
+
return tokens;
|
|
133
|
+
}
|
|
134
|
+
function decodeParameterValue(rawValue, source, offset) {
|
|
135
|
+
if (!rawValue) {
|
|
136
|
+
return "";
|
|
137
|
+
}
|
|
138
|
+
const first = rawValue[0];
|
|
139
|
+
if (first !== '"' && first !== "'") {
|
|
140
|
+
if ((rawValue.includes('"') || rawValue.includes("'")) && !DMS_VALUE.test(rawValue)) {
|
|
141
|
+
throw new PROJStringSyntaxError("Quote must begin a PROJ parameter value", source, offset);
|
|
142
|
+
}
|
|
143
|
+
return rawValue;
|
|
144
|
+
}
|
|
145
|
+
if (rawValue[rawValue.length - 1] !== first) {
|
|
146
|
+
throw new PROJStringSyntaxError("Unterminated quoted PROJ value", source, offset);
|
|
147
|
+
}
|
|
148
|
+
let value = "";
|
|
149
|
+
for (let index = 1; index < rawValue.length - 1; index++) {
|
|
150
|
+
const character = rawValue[index];
|
|
151
|
+
if (character === "\\" && index + 1 < rawValue.length - 1) {
|
|
152
|
+
value += rawValue[++index];
|
|
153
|
+
} else {
|
|
154
|
+
value += character;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return value;
|
|
158
|
+
}
|
|
159
|
+
function getSourceLocation(source, offset) {
|
|
160
|
+
let line = 1;
|
|
161
|
+
let column = 1;
|
|
162
|
+
for (let index = 0; index < offset && index < source.length; index++) {
|
|
163
|
+
if (source[index] === "\n") {
|
|
164
|
+
line++;
|
|
165
|
+
column = 1;
|
|
166
|
+
} else {
|
|
167
|
+
column++;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return { line, column };
|
|
171
|
+
}
|
|
172
|
+
var PROJStringSyntaxError, DMS_VALUE;
|
|
173
|
+
var init_proj_string = __esm({
|
|
174
|
+
"dist/crs/proj-string.js"() {
|
|
175
|
+
PROJStringSyntaxError = class extends SyntaxError {
|
|
176
|
+
/** Create a PROJ string syntax error at a source location. */
|
|
177
|
+
constructor(message, source, offset) {
|
|
178
|
+
const location = getSourceLocation(source, offset);
|
|
179
|
+
super(`${message} at ${location.line}:${location.column}`);
|
|
180
|
+
this.name = "PROJStringSyntaxError";
|
|
181
|
+
this.offset = offset;
|
|
182
|
+
this.line = location.line;
|
|
183
|
+
this.column = location.column;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
DMS_VALUE = /^[+-]?\d+(?:\.\d*)?d(?:\d+(?:\.\d*)?'(?:\d+(?:\.\d*)?")?)?[NSEW]?$/i;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// dist/projection/experimental/crs/types.js
|
|
191
|
+
function unsupportedStage(message) {
|
|
192
|
+
throw new TypeScriptCRSError("missing-transform-stage", message);
|
|
193
|
+
}
|
|
194
|
+
var _a, CRS_ERROR, TypeScriptCRSError;
|
|
195
|
+
var init_types = __esm({
|
|
196
|
+
"dist/projection/experimental/crs/types.js"() {
|
|
197
|
+
CRS_ERROR = /* @__PURE__ */ Symbol.for("@math.gl/projection/TypeScriptCRSError");
|
|
198
|
+
TypeScriptCRSError = class _TypeScriptCRSError extends Error {
|
|
199
|
+
static [(_a = CRS_ERROR, Symbol.hasInstance)](value) {
|
|
200
|
+
if (this !== _TypeScriptCRSError)
|
|
201
|
+
return Function.prototype[Symbol.hasInstance].call(this, value);
|
|
202
|
+
return value instanceof Error && value[CRS_ERROR] === true;
|
|
203
|
+
}
|
|
204
|
+
constructor(reason, message) {
|
|
205
|
+
super(message);
|
|
206
|
+
this.reason = reason;
|
|
207
|
+
this[_a] = true;
|
|
208
|
+
this.name = "TypeScriptCRSError";
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
// dist/projection/experimental/crs/spatial-reference.js
|
|
215
|
+
function resolveCRSInput(input, options) {
|
|
216
|
+
if (typeof input === "string" || "type" in input)
|
|
217
|
+
return { definition: input, lossy: false };
|
|
218
|
+
const metadata = input;
|
|
219
|
+
const spatialReference = "crs" in metadata ? metadata : void 0;
|
|
220
|
+
const reference = "crs" in metadata ? metadata.crs : metadata;
|
|
221
|
+
if (reference.state !== "explicit" && reference.state !== "default")
|
|
222
|
+
throw new TypeScriptCRSError("unknown-syntax", "Cannot transform an " + reference.state + " CRS reference");
|
|
223
|
+
let lossy = false;
|
|
224
|
+
if ((spatialReference == null ? void 0 : spatialReference.coordinateEpoch) !== void 0)
|
|
225
|
+
unsupportedStage("Coordinate epochs require a time-dependent transformation");
|
|
226
|
+
if ((spatialReference == null ? void 0 : spatialReference.vertical) && spatialReference.vertical.state !== "absent") {
|
|
227
|
+
if (options.mode !== "horizontal")
|
|
228
|
+
unsupportedStage("A separately declared vertical CRS requires explicit horizontal extraction");
|
|
229
|
+
lossy = true;
|
|
230
|
+
}
|
|
231
|
+
return { definition: reference.definition, spatialReference, lossy };
|
|
232
|
+
}
|
|
233
|
+
function applySpatialReference(crs, reference) {
|
|
234
|
+
var _a2;
|
|
235
|
+
if (!reference)
|
|
236
|
+
return crs;
|
|
237
|
+
if (reference.coordinateFrame !== "unknown" && reference.coordinateFrame !== crs.kind)
|
|
238
|
+
throw new Error("SpatialReference coordinate frame disagrees with its CRS");
|
|
239
|
+
const order = reference.coordinateOrder;
|
|
240
|
+
const names = crs.kind === "geocentric" ? { x: "e", y: "n", z: "u" } : {
|
|
241
|
+
longitude: "e",
|
|
242
|
+
lon: "e",
|
|
243
|
+
latitude: "n",
|
|
244
|
+
lat: "n",
|
|
245
|
+
easting: "e",
|
|
246
|
+
northing: "n",
|
|
247
|
+
height: "u",
|
|
248
|
+
altitude: "u",
|
|
249
|
+
x: "e",
|
|
250
|
+
y: "n",
|
|
251
|
+
z: "u"
|
|
252
|
+
};
|
|
253
|
+
let storedAxis;
|
|
254
|
+
if (order.length) {
|
|
255
|
+
storedAxis = order.slice(0, 3).map((name) => names[name.toLowerCase()] || "?").join("");
|
|
256
|
+
if (storedAxis.length === 2)
|
|
257
|
+
storedAxis += "u";
|
|
258
|
+
if (storedAxis.length !== 3 || !storedAxis.includes("e") || !storedAxis.includes("n") || !storedAxis.includes("u"))
|
|
259
|
+
unsupportedStage("Unsupported SpatialReference coordinate order");
|
|
260
|
+
if (order.length > 4 || order.length > 3 && !["m", "measure"].includes(order[3]))
|
|
261
|
+
unsupportedStage("Unsupported fourth coordinate component");
|
|
262
|
+
}
|
|
263
|
+
if ((_a2 = reference.units) == null ? void 0 : _a2.length) {
|
|
264
|
+
const units = {
|
|
265
|
+
m: 1,
|
|
266
|
+
meter: 1,
|
|
267
|
+
metre: 1,
|
|
268
|
+
meters: 1,
|
|
269
|
+
metres: 1,
|
|
270
|
+
km: 1e3,
|
|
271
|
+
ft: 0.3048,
|
|
272
|
+
"us-ft": 1200 / 3937,
|
|
273
|
+
degree: Math.PI / 180,
|
|
274
|
+
degrees: Math.PI / 180,
|
|
275
|
+
radian: 1,
|
|
276
|
+
radians: 1,
|
|
277
|
+
grad: Math.PI / 200
|
|
278
|
+
};
|
|
279
|
+
for (let i = 0; i < Math.min(reference.units.length, 3); i++) {
|
|
280
|
+
const vertical = (storedAxis || "enu")[i] === "u";
|
|
281
|
+
const expected = crs.kind === "geocentric" ? crs.toMeter : vertical ? crs.verticalUnit : crs.kind === "geographic" ? crs.angularUnit : crs.toMeter;
|
|
282
|
+
if (Math.abs((units[reference.units[i]] ?? NaN) - expected) > 1e-12 || units[reference.units[i]] === void 0)
|
|
283
|
+
unsupportedStage("SpatialReference units disagree with its CRS");
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return Object.freeze({ ...crs, storedAxis });
|
|
287
|
+
}
|
|
288
|
+
var init_spatial_reference2 = __esm({
|
|
289
|
+
"dist/projection/experimental/crs/spatial-reference.js"() {
|
|
290
|
+
init_types();
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
// dist/projection/experimental/parameters.js
|
|
295
|
+
function numberParameter(parameters, name, fallback) {
|
|
296
|
+
if (!Object.prototype.hasOwnProperty.call(parameters, name))
|
|
297
|
+
return fallback;
|
|
298
|
+
const value = parameters[name];
|
|
299
|
+
if (typeof value !== "string" || !/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i.test(value)) {
|
|
300
|
+
throw new Error(`Invalid numeric PROJ parameter: +${name}`);
|
|
301
|
+
}
|
|
302
|
+
const number = Number(value);
|
|
303
|
+
if (!Number.isFinite(number))
|
|
304
|
+
throw new Error(`Invalid numeric PROJ parameter: +${name}`);
|
|
305
|
+
return number;
|
|
306
|
+
}
|
|
307
|
+
function wrapLongitude(longitude, over = false) {
|
|
308
|
+
if (over || Math.abs(longitude) <= Math.PI)
|
|
309
|
+
return longitude;
|
|
310
|
+
const circle = 2 * Math.PI;
|
|
311
|
+
return ((longitude + Math.PI) % circle + circle) % circle - Math.PI;
|
|
312
|
+
}
|
|
313
|
+
var DEGREES_TO_RADIANS;
|
|
314
|
+
var init_parameters = __esm({
|
|
315
|
+
"dist/projection/experimental/parameters.js"() {
|
|
316
|
+
DEGREES_TO_RADIANS = Math.PI / 180;
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// dist/projection/experimental/crs/datum-catalog.js
|
|
321
|
+
function getDatumDefinitions(options) {
|
|
322
|
+
var _a2;
|
|
323
|
+
if (!((_a2 = options.datumCatalogs) == null ? void 0 : _a2.length))
|
|
324
|
+
return builtins;
|
|
325
|
+
const cached = resolved.get(options);
|
|
326
|
+
if ((cached == null ? void 0 : cached.catalogs) === options.datumCatalogs)
|
|
327
|
+
return cached.definitions;
|
|
328
|
+
const definitions = Object.assign(/* @__PURE__ */ Object.create(null), builtins);
|
|
329
|
+
const names = new Map(Object.entries(builtins).map(([name, definition]) => [
|
|
330
|
+
datumNameKey(name),
|
|
331
|
+
{ definition, owner: -1 }
|
|
332
|
+
]));
|
|
333
|
+
options.datumCatalogs.forEach((catalog, owner) => {
|
|
334
|
+
if (!catalog.name || !catalog.datums)
|
|
335
|
+
throw new Error("Invalid datum catalogue plugin");
|
|
336
|
+
for (const [name, definition] of Object.entries(catalog.datums)) {
|
|
337
|
+
const key2 = datumNameKey(name);
|
|
338
|
+
if (!key2 || key2 === "none" || !definition || ["ellipse", "towgs84", "nadgrids"].some((field) => definition[field] !== void 0 && typeof definition[field] !== "string"))
|
|
339
|
+
throw new Error("Invalid datum definition: " + name);
|
|
340
|
+
const previous = names.get(key2);
|
|
341
|
+
if (previous && (previous.owner !== owner || previous.definition.ellipse !== definition.ellipse || previous.definition.towgs84 !== definition.towgs84 || previous.definition.nadgrids !== definition.nadgrids))
|
|
342
|
+
throw new Error("Conflicting datum registration: " + name);
|
|
343
|
+
names.set(key2, { definition, owner });
|
|
344
|
+
definitions[name] = definition;
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
resolved.set(options, { catalogs: options.datumCatalogs, definitions });
|
|
348
|
+
return definitions;
|
|
349
|
+
}
|
|
350
|
+
var wgs84, nad83, builtins, resolved, datumNameKey;
|
|
351
|
+
var init_datum_catalog = __esm({
|
|
352
|
+
"dist/projection/experimental/crs/datum-catalog.js"() {
|
|
353
|
+
wgs84 = { towgs84: "0,0,0", ellipse: "WGS84" };
|
|
354
|
+
nad83 = { towgs84: "0,0,0", ellipse: "GRS80" };
|
|
355
|
+
builtins = {
|
|
356
|
+
wgs84,
|
|
357
|
+
WGS84: wgs84,
|
|
358
|
+
nad83,
|
|
359
|
+
North_American_Datum_1983: nad83
|
|
360
|
+
};
|
|
361
|
+
resolved = /* @__PURE__ */ new WeakMap();
|
|
362
|
+
datumNameKey = (name) => name.toLowerCase().replace(/[\s_-]/g, "");
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
// dist/projection/experimental/crs/ellipsoid-table.js
|
|
367
|
+
var ellipsoids, ellipsoid_table_default;
|
|
368
|
+
var init_ellipsoid_table = __esm({
|
|
369
|
+
"dist/projection/experimental/crs/ellipsoid-table.js"() {
|
|
370
|
+
ellipsoids = {
|
|
371
|
+
MERIT: {
|
|
372
|
+
a: 6378137,
|
|
373
|
+
rf: 298.257,
|
|
374
|
+
ellipseName: "MERIT 1983"
|
|
375
|
+
},
|
|
376
|
+
SGS85: {
|
|
377
|
+
a: 6378136,
|
|
378
|
+
rf: 298.257,
|
|
379
|
+
ellipseName: "Soviet Geodetic System 85"
|
|
380
|
+
},
|
|
381
|
+
GRS80: {
|
|
382
|
+
a: 6378137,
|
|
383
|
+
rf: 298.257222101,
|
|
384
|
+
ellipseName: "GRS 1980(IUGG, 1980)"
|
|
385
|
+
},
|
|
386
|
+
IAU76: {
|
|
387
|
+
a: 6378140,
|
|
388
|
+
rf: 298.257,
|
|
389
|
+
ellipseName: "IAU 1976"
|
|
390
|
+
},
|
|
391
|
+
airy: {
|
|
392
|
+
a: 6377563396e-3,
|
|
393
|
+
b: 635625691e-2,
|
|
394
|
+
ellipseName: "Airy 1830"
|
|
395
|
+
},
|
|
396
|
+
APL4: {
|
|
397
|
+
a: 6378137,
|
|
398
|
+
rf: 298.25,
|
|
399
|
+
ellipseName: "Appl. Physics. 1965"
|
|
400
|
+
},
|
|
401
|
+
NWL9D: {
|
|
402
|
+
a: 6378145,
|
|
403
|
+
rf: 298.25,
|
|
404
|
+
ellipseName: "Naval Weapons Lab., 1965"
|
|
405
|
+
},
|
|
406
|
+
mod_airy: {
|
|
407
|
+
a: 6377340189e-3,
|
|
408
|
+
b: 6356034446e-3,
|
|
409
|
+
ellipseName: "Modified Airy"
|
|
410
|
+
},
|
|
411
|
+
andrae: {
|
|
412
|
+
a: 637710443e-2,
|
|
413
|
+
rf: 300,
|
|
414
|
+
ellipseName: "Andrae 1876 (Den., Iclnd.)"
|
|
415
|
+
},
|
|
416
|
+
aust_SA: {
|
|
417
|
+
a: 6378160,
|
|
418
|
+
rf: 298.25,
|
|
419
|
+
ellipseName: "Australian Natl & S. Amer. 1969"
|
|
420
|
+
},
|
|
421
|
+
GRS67: {
|
|
422
|
+
a: 6378160,
|
|
423
|
+
rf: 298.247167427,
|
|
424
|
+
ellipseName: "GRS 67(IUGG 1967)"
|
|
425
|
+
},
|
|
426
|
+
bessel: {
|
|
427
|
+
a: 6377397155e-3,
|
|
428
|
+
rf: 299.1528128,
|
|
429
|
+
ellipseName: "Bessel 1841"
|
|
430
|
+
},
|
|
431
|
+
bess_nam: {
|
|
432
|
+
a: 6377483865e-3,
|
|
433
|
+
rf: 299.1528128,
|
|
434
|
+
ellipseName: "Bessel 1841 (Namibia)"
|
|
435
|
+
},
|
|
436
|
+
clrk66: {
|
|
437
|
+
a: 63782064e-1,
|
|
438
|
+
b: 63565838e-1,
|
|
439
|
+
ellipseName: "Clarke 1866"
|
|
440
|
+
},
|
|
441
|
+
clrk80: {
|
|
442
|
+
a: 6378249145e-3,
|
|
443
|
+
rf: 293.4663,
|
|
444
|
+
ellipseName: "Clarke 1880 mod."
|
|
445
|
+
},
|
|
446
|
+
clrk80ign: {
|
|
447
|
+
a: 63782492e-1,
|
|
448
|
+
b: 6356515,
|
|
449
|
+
rf: 293.4660213,
|
|
450
|
+
ellipseName: "Clarke 1880 (IGN)"
|
|
451
|
+
},
|
|
452
|
+
clrk58: {
|
|
453
|
+
a: 6378293645208759e-9,
|
|
454
|
+
rf: 294.2606763692654,
|
|
455
|
+
ellipseName: "Clarke 1858"
|
|
456
|
+
},
|
|
457
|
+
CPM: {
|
|
458
|
+
a: 63757387e-1,
|
|
459
|
+
rf: 334.29,
|
|
460
|
+
ellipseName: "Comm. des Poids et Mesures 1799"
|
|
461
|
+
},
|
|
462
|
+
delmbr: {
|
|
463
|
+
a: 6376428,
|
|
464
|
+
rf: 311.5,
|
|
465
|
+
ellipseName: "Delambre 1810 (Belgium)"
|
|
466
|
+
},
|
|
467
|
+
engelis: {
|
|
468
|
+
a: 637813605e-2,
|
|
469
|
+
rf: 298.2566,
|
|
470
|
+
ellipseName: "Engelis 1985"
|
|
471
|
+
},
|
|
472
|
+
evrst30: {
|
|
473
|
+
a: 6377276345e-3,
|
|
474
|
+
rf: 300.8017,
|
|
475
|
+
ellipseName: "Everest 1830"
|
|
476
|
+
},
|
|
477
|
+
evrst48: {
|
|
478
|
+
a: 6377304063e-3,
|
|
479
|
+
rf: 300.8017,
|
|
480
|
+
ellipseName: "Everest 1948"
|
|
481
|
+
},
|
|
482
|
+
evrst56: {
|
|
483
|
+
a: 6377301243e-3,
|
|
484
|
+
rf: 300.8017,
|
|
485
|
+
ellipseName: "Everest 1956"
|
|
486
|
+
},
|
|
487
|
+
evrst69: {
|
|
488
|
+
a: 6377295664e-3,
|
|
489
|
+
rf: 300.8017,
|
|
490
|
+
ellipseName: "Everest 1969"
|
|
491
|
+
},
|
|
492
|
+
evrstSS: {
|
|
493
|
+
a: 6377298556e-3,
|
|
494
|
+
rf: 300.8017,
|
|
495
|
+
ellipseName: "Everest (Sabah & Sarawak)"
|
|
496
|
+
},
|
|
497
|
+
fschr60: {
|
|
498
|
+
a: 6378166,
|
|
499
|
+
rf: 298.3,
|
|
500
|
+
ellipseName: "Fischer (Mercury Datum) 1960"
|
|
501
|
+
},
|
|
502
|
+
fschr60m: {
|
|
503
|
+
a: 6378155,
|
|
504
|
+
rf: 298.3,
|
|
505
|
+
ellipseName: "Fischer 1960"
|
|
506
|
+
},
|
|
507
|
+
fschr68: {
|
|
508
|
+
a: 6378150,
|
|
509
|
+
rf: 298.3,
|
|
510
|
+
ellipseName: "Fischer 1968"
|
|
511
|
+
},
|
|
512
|
+
helmert: {
|
|
513
|
+
a: 6378200,
|
|
514
|
+
rf: 298.3,
|
|
515
|
+
ellipseName: "Helmert 1906"
|
|
516
|
+
},
|
|
517
|
+
hough: {
|
|
518
|
+
a: 6378270,
|
|
519
|
+
rf: 297,
|
|
520
|
+
ellipseName: "Hough"
|
|
521
|
+
},
|
|
522
|
+
intl: {
|
|
523
|
+
a: 6378388,
|
|
524
|
+
rf: 297,
|
|
525
|
+
ellipseName: "International 1909 (Hayford)"
|
|
526
|
+
},
|
|
527
|
+
kaula: {
|
|
528
|
+
a: 6378163,
|
|
529
|
+
rf: 298.24,
|
|
530
|
+
ellipseName: "Kaula 1961"
|
|
531
|
+
},
|
|
532
|
+
lerch: {
|
|
533
|
+
a: 6378139,
|
|
534
|
+
rf: 298.257,
|
|
535
|
+
ellipseName: "Lerch 1979"
|
|
536
|
+
},
|
|
537
|
+
mprts: {
|
|
538
|
+
a: 6397300,
|
|
539
|
+
rf: 191,
|
|
540
|
+
ellipseName: "Maupertius 1738"
|
|
541
|
+
},
|
|
542
|
+
new_intl: {
|
|
543
|
+
a: 63781575e-1,
|
|
544
|
+
b: 63567722e-1,
|
|
545
|
+
ellipseName: "New International 1967"
|
|
546
|
+
},
|
|
547
|
+
plessis: {
|
|
548
|
+
a: 6376523,
|
|
549
|
+
b: 6355863,
|
|
550
|
+
ellipseName: "Plessis 1817 (France)"
|
|
551
|
+
},
|
|
552
|
+
krass: {
|
|
553
|
+
a: 6378245,
|
|
554
|
+
rf: 298.3,
|
|
555
|
+
ellipseName: "Krassovsky, 1942"
|
|
556
|
+
},
|
|
557
|
+
SEasia: {
|
|
558
|
+
a: 6378155,
|
|
559
|
+
b: 63567733205e-4,
|
|
560
|
+
ellipseName: "Southeast Asia"
|
|
561
|
+
},
|
|
562
|
+
walbeck: {
|
|
563
|
+
a: 6376896,
|
|
564
|
+
b: 63558348467e-4,
|
|
565
|
+
ellipseName: "Walbeck"
|
|
566
|
+
},
|
|
567
|
+
WGS60: {
|
|
568
|
+
a: 6378165,
|
|
569
|
+
rf: 298.3,
|
|
570
|
+
ellipseName: "WGS 60"
|
|
571
|
+
},
|
|
572
|
+
WGS66: {
|
|
573
|
+
a: 6378145,
|
|
574
|
+
rf: 298.25,
|
|
575
|
+
ellipseName: "WGS 66"
|
|
576
|
+
},
|
|
577
|
+
WGS72: {
|
|
578
|
+
a: 6378135,
|
|
579
|
+
rf: 298.26,
|
|
580
|
+
ellipseName: "WGS 72"
|
|
581
|
+
},
|
|
582
|
+
WGS84: {
|
|
583
|
+
a: 6378137,
|
|
584
|
+
rf: 298.257223563,
|
|
585
|
+
ellipseName: "WGS 84"
|
|
586
|
+
},
|
|
587
|
+
sphere: {
|
|
588
|
+
a: 6370997,
|
|
589
|
+
b: 6370997,
|
|
590
|
+
ellipseName: "Normal Sphere (r=6370997)"
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
ellipsoid_table_default = ellipsoids;
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
// dist/projection/experimental/crs/primemeridian-table.js
|
|
598
|
+
var primeMeridian, primemeridian_table_default;
|
|
599
|
+
var init_primemeridian_table = __esm({
|
|
600
|
+
"dist/projection/experimental/crs/primemeridian-table.js"() {
|
|
601
|
+
primeMeridian = {};
|
|
602
|
+
primeMeridian["greenwich"] = 0;
|
|
603
|
+
primeMeridian["lisbon"] = -9.131906111111;
|
|
604
|
+
primeMeridian["paris"] = 2.337229166667;
|
|
605
|
+
primeMeridian["bogota"] = -74.080916666667;
|
|
606
|
+
primeMeridian["madrid"] = -3.687938888889;
|
|
607
|
+
primeMeridian["rome"] = 12.452333333333;
|
|
608
|
+
primeMeridian["bern"] = 7.439583333333;
|
|
609
|
+
primeMeridian["jakarta"] = 106.807719444444;
|
|
610
|
+
primeMeridian["ferro"] = -17.666666666667;
|
|
611
|
+
primeMeridian["brussels"] = 4.367975;
|
|
612
|
+
primeMeridian["stockholm"] = 18.058277777778;
|
|
613
|
+
primeMeridian["athens"] = 23.7163375;
|
|
614
|
+
primeMeridian["oslo"] = 10.722916666667;
|
|
615
|
+
primemeridian_table_default = primeMeridian;
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
|
|
619
|
+
// dist/crs/units-table.js
|
|
620
|
+
var linearUnits;
|
|
621
|
+
var init_units_table = __esm({
|
|
622
|
+
"dist/crs/units-table.js"() {
|
|
623
|
+
linearUnits = {
|
|
624
|
+
m: { name: "meters", metersPerUnit: 1 },
|
|
625
|
+
mm: { name: "millimeters", metersPerUnit: 1e-3 },
|
|
626
|
+
cm: { name: "centimeters", metersPerUnit: 0.01 },
|
|
627
|
+
ft: { name: "feet", metersPerUnit: 0.3048 },
|
|
628
|
+
"us-ft": { name: "us-survey-feet", metersPerUnit: 1200 / 3937 },
|
|
629
|
+
fath: { name: "fathoms", metersPerUnit: 1.8288 },
|
|
630
|
+
kmi: { name: "nautical-miles", metersPerUnit: 1852 },
|
|
631
|
+
"us-ch": { name: "us-survey-chains", metersPerUnit: 20.1168402336805 },
|
|
632
|
+
"us-mi": { name: "us-survey-miles", metersPerUnit: 1609.34721869444 },
|
|
633
|
+
km: { name: "kilometers", metersPerUnit: 1e3 },
|
|
634
|
+
"ind-ft": { name: "indian-feet", metersPerUnit: 0.30479841 },
|
|
635
|
+
"ind-yd": { name: "indian-yards", metersPerUnit: 0.91439523 },
|
|
636
|
+
mi: { name: "miles", metersPerUnit: 1609.344 },
|
|
637
|
+
yd: { name: "yards", metersPerUnit: 0.9144 },
|
|
638
|
+
ch: { name: "chains", metersPerUnit: 20.1168 },
|
|
639
|
+
link: { name: "links", metersPerUnit: 0.201168 },
|
|
640
|
+
dm: { name: "decimeters", metersPerUnit: 0.1 },
|
|
641
|
+
in: { name: "inches", metersPerUnit: 0.0254 },
|
|
642
|
+
"ind-ch": { name: "indian-chains", metersPerUnit: 20.11669506 },
|
|
643
|
+
"us-in": { name: "us-survey-inches", metersPerUnit: 0.025400050800101 },
|
|
644
|
+
"us-yd": { name: "us-survey-yards", metersPerUnit: 0.914401828803658 }
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
|
|
649
|
+
// dist/crs/crs-metadata.js
|
|
650
|
+
function getCRSSignature(crs) {
|
|
651
|
+
return JSON.stringify([
|
|
652
|
+
crs.coordinateFrame,
|
|
653
|
+
crs.projection,
|
|
654
|
+
Object.keys(crs.parameters).sort().map((key2) => [key2, crs.parameters[key2]]),
|
|
655
|
+
[crs.ellipsoid.semiMajorAxis, crs.ellipsoid.semiMinorAxis],
|
|
656
|
+
crs.axis,
|
|
657
|
+
[crs.xUnit.name, crs.xUnit.metersPerUnit, crs.xUnit.degreesPerUnit],
|
|
658
|
+
[crs.yUnit.name, crs.yUnit.metersPerUnit, crs.yUnit.degreesPerUnit],
|
|
659
|
+
[crs.zUnit.name, crs.zUnit.metersPerUnit, crs.zUnit.degreesPerUnit],
|
|
660
|
+
crs.lossy,
|
|
661
|
+
crs.areaOfUse
|
|
662
|
+
]);
|
|
663
|
+
}
|
|
664
|
+
var init_crs_metadata = __esm({
|
|
665
|
+
"dist/crs/crs-metadata.js"() {
|
|
666
|
+
init_units_table();
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
// dist/projection/experimental/crs/normalize.js
|
|
671
|
+
function lookup(table, name) {
|
|
672
|
+
const key2 = Object.keys(table).find((key3) => keyOf(key3) === keyOf(name));
|
|
673
|
+
return key2 === void 0 ? void 0 : table[key2];
|
|
674
|
+
}
|
|
675
|
+
function parseAngle(text) {
|
|
676
|
+
if (/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i.test(text)) {
|
|
677
|
+
const value = Number(text);
|
|
678
|
+
if (Number.isFinite(value))
|
|
679
|
+
return value;
|
|
680
|
+
}
|
|
681
|
+
if (/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?r$/i.test(text)) {
|
|
682
|
+
const value = Number(text.slice(0, -1)) / DEGREES_TO_RADIANS;
|
|
683
|
+
if (Number.isFinite(value))
|
|
684
|
+
return value;
|
|
685
|
+
}
|
|
686
|
+
const dms = /^([+-]?)(\d+(?:\.\d*)?)(?:d(?:(\d+(?:\.\d*)?)'(?:(\d+(?:\.\d*)?)")?)?)?([NSEW])?$/i.exec(text);
|
|
687
|
+
if (dms && (/d/i.test(text) || dms[5])) {
|
|
688
|
+
const minutes = Number(dms[3] || 0), seconds = Number(dms[4] || 0);
|
|
689
|
+
if (minutes < 60 && seconds < 60) {
|
|
690
|
+
const sign = dms[1] === "-" ? -1 : 1;
|
|
691
|
+
const direction = /[SW]/i.test(dms[5] || "") ? -1 : 1;
|
|
692
|
+
const value = sign * direction * (Number(dms[2]) + minutes / 60 + seconds / 3600);
|
|
693
|
+
if (Number.isFinite(value))
|
|
694
|
+
return value;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
throw new Error("Invalid angular parameter: " + text);
|
|
698
|
+
}
|
|
699
|
+
function resolveLocalCRSDefinition(input, options = {}) {
|
|
700
|
+
let definition = input;
|
|
701
|
+
const aliases = options.aliases || {};
|
|
702
|
+
const visited = /* @__PURE__ */ new Set();
|
|
703
|
+
while (typeof definition === "string" && (own(aliases, definition) || own(ALIASES, definition))) {
|
|
704
|
+
if (visited.has(definition))
|
|
705
|
+
throw new Error("Circular CRS alias: " + definition);
|
|
706
|
+
visited.add(definition);
|
|
707
|
+
definition = own(aliases, definition) ? aliases[definition] : ALIASES[definition];
|
|
708
|
+
}
|
|
709
|
+
if (typeof definition === "string") {
|
|
710
|
+
const utm = /^EPSG:(326|327)(\d{2})$/.exec(definition);
|
|
711
|
+
if (utm && Number(utm[2]) >= 1 && Number(utm[2]) <= 60) {
|
|
712
|
+
definition = "+proj=utm +datum=WGS84 +zone=" + Number(utm[2]) + (utm[1] === "327" ? " +south" : "");
|
|
713
|
+
}
|
|
714
|
+
if (definition === "EPSG:5041" || definition === "EPSG:5042") {
|
|
715
|
+
definition = "+proj=stere +datum=WGS84 +lat_0=" + (definition === "EPSG:5041" ? 90 : -90) + " +k_0=0.994 +x_0=2000000 +y_0=2000000";
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
return definition;
|
|
719
|
+
}
|
|
720
|
+
function normalizeCRS(input, options = {}) {
|
|
721
|
+
var _a2;
|
|
722
|
+
const datums = getDatumDefinitions(options);
|
|
723
|
+
const resolved2 = resolveCRSInput(input, options);
|
|
724
|
+
const definition = resolveLocalCRSDefinition(resolved2.definition, options);
|
|
725
|
+
let parsed;
|
|
726
|
+
if (inferCRSRepresentation(definition) === "proj-string" && typeof definition === "string") {
|
|
727
|
+
const parameters2 = /* @__PURE__ */ Object.create(null);
|
|
728
|
+
for (const parameter of parsePROJString(definition).parameters) {
|
|
729
|
+
if (own(parameters2, parameter.name))
|
|
730
|
+
throw new Error("Duplicate PROJ parameter: +" + parameter.name);
|
|
731
|
+
parameters2[parameter.name] = parameter.value;
|
|
732
|
+
}
|
|
733
|
+
parsed = { parameters: parameters2 };
|
|
734
|
+
} else {
|
|
735
|
+
const parser = (_a2 = options.parsers) == null ? void 0 : _a2.find((candidate) => candidate.canParse(definition));
|
|
736
|
+
if (!parser) {
|
|
737
|
+
const serialized = ["wkt", "projjson"].includes(inferCRSRepresentation(definition));
|
|
738
|
+
throw new 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");
|
|
739
|
+
}
|
|
740
|
+
parsed = parser.parse(definition, options);
|
|
741
|
+
}
|
|
742
|
+
const parameters = { ...parsed.parameters };
|
|
743
|
+
for (const name2 of [
|
|
744
|
+
"lon_0",
|
|
745
|
+
"lat_0",
|
|
746
|
+
"lat_1",
|
|
747
|
+
"lat_2",
|
|
748
|
+
"lat_ts",
|
|
749
|
+
"lon_wrap",
|
|
750
|
+
"lon_1",
|
|
751
|
+
"lon_2",
|
|
752
|
+
"lonc",
|
|
753
|
+
"alpha",
|
|
754
|
+
"gamma",
|
|
755
|
+
"tilt",
|
|
756
|
+
"azi",
|
|
757
|
+
"o_alpha",
|
|
758
|
+
"o_lon_c",
|
|
759
|
+
"o_lat_c",
|
|
760
|
+
"o_lon_p",
|
|
761
|
+
"o_lat_p",
|
|
762
|
+
"o_lon_1",
|
|
763
|
+
"o_lat_1",
|
|
764
|
+
"o_lon_2",
|
|
765
|
+
"o_lat_2"
|
|
766
|
+
]) {
|
|
767
|
+
if (parameters[name2] !== void 0)
|
|
768
|
+
parameters[name2] = String(parseAngle(parameters[name2]));
|
|
769
|
+
}
|
|
770
|
+
const suppliedName = parameters["proj"];
|
|
771
|
+
const lowerName = suppliedName == null ? void 0 : suppliedName.toLowerCase();
|
|
772
|
+
const name = lowerName === "geocentric" ? "geocent" : ["longlat", "latlong", "latlon", "lonlat", "identity", "geocent"].includes(lowerName) ? lowerName : suppliedName;
|
|
773
|
+
if (!name)
|
|
774
|
+
throw new Error("CRS requires +proj");
|
|
775
|
+
const kind = ["longlat", "latlong", "latlon", "lonlat"].includes(name) ? "geographic" : name === "geocent" ? "geocentric" : name === "identity" ? "identity" : "projected";
|
|
776
|
+
const datumName = parameters["datum"];
|
|
777
|
+
const datum = datumName && datumName !== "none" ? lookup(datums, datumName) : void 0;
|
|
778
|
+
if (datumName && datumName !== "none" && !datum)
|
|
779
|
+
unsupportedStage("Unknown datum: " + datumName + "; register a datumCatalogs plugin");
|
|
780
|
+
const ellipsoid = getEllipsoid(parameters, datum == null ? void 0 : datum.ellipse);
|
|
781
|
+
const grids = parameters["nadgrids"] ?? (datum == null ? void 0 : datum.nadgrids);
|
|
782
|
+
const gridReferences = grids === void 0 ? void 0 : grids.split(",").map((entry) => {
|
|
783
|
+
const optional = entry.startsWith("@");
|
|
784
|
+
const name2 = optional ? entry.slice(1) : entry;
|
|
785
|
+
if (!name2 || /\s/.test(name2))
|
|
786
|
+
throw new Error("Invalid datum grid name");
|
|
787
|
+
return Object.freeze({ name: name2, optional });
|
|
788
|
+
});
|
|
789
|
+
const rawShift = parameters["towgs84"] ?? (datum == null ? void 0 : datum.towgs84);
|
|
790
|
+
let shift;
|
|
791
|
+
if (rawShift !== void 0) {
|
|
792
|
+
shift = rawShift.split(",").map((value) => numberParameter({ value }, "value", NaN));
|
|
793
|
+
if (![3, 7].includes(shift.length) || shift.some((value) => !Number.isFinite(value)) || shift.length === 7 && shift[6] <= -1e6) {
|
|
794
|
+
throw new Error("+towgs84 requires three or seven finite values and positive scale");
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
if (datumName === "none")
|
|
798
|
+
shift = void 0;
|
|
799
|
+
if (gridReferences && datumName !== "none")
|
|
800
|
+
shift = [0, 0, 0];
|
|
801
|
+
const datumEllipsoid = grids === "@null" || grids === "null" ? getEllipsoid({ ellps: "WGS84" }) : ellipsoid;
|
|
802
|
+
const axis = parameters["axis"] || "enu";
|
|
803
|
+
if (axis.length !== 3 || !/[ew]/.test(axis) || !/[ns]/.test(axis) || !/[ud]/.test(axis))
|
|
804
|
+
throw new Error("Invalid axis: " + axis);
|
|
805
|
+
const angularUnit = parsed.angularUnit ?? DEGREES_TO_RADIANS;
|
|
806
|
+
if (kind === "geographic" && (parameters["units"] && parameters["units"] !== "degrees" || own(parameters, "to_meter")))
|
|
807
|
+
throw new Error("Geographic coordinates must use angular units");
|
|
808
|
+
if (kind !== "geographic" && parameters["units"] === "degrees")
|
|
809
|
+
throw new Error("Linear coordinates require linear units");
|
|
810
|
+
const toMeter = unitFactor(parameters, "units", "to_meter");
|
|
811
|
+
const verticalUnit = parsed.verticalUnit ?? unitFactor(parameters, "vunits", "vto_meter");
|
|
812
|
+
if (!(verticalUnit > 0) || !Number.isFinite(verticalUnit))
|
|
813
|
+
throw new Error("Invalid vertical unit");
|
|
814
|
+
if (!(angularUnit > 0) || !Number.isFinite(angularUnit))
|
|
815
|
+
throw new Error("Invalid angular unit");
|
|
816
|
+
const pm = parameters["pm"];
|
|
817
|
+
const primeMeridian2 = pm === void 0 ? 0 : (lookup(primemeridian_table_default, pm) ?? parseAngle(pm)) * DEGREES_TO_RADIANS;
|
|
818
|
+
return applySpatialReference(Object.freeze({
|
|
819
|
+
kind,
|
|
820
|
+
projection: name,
|
|
821
|
+
parameters: Object.freeze(parameters),
|
|
822
|
+
ellipsoid,
|
|
823
|
+
datum: Object.freeze({
|
|
824
|
+
ellipsoid: datumEllipsoid,
|
|
825
|
+
towgs84: shift && Object.freeze(shift),
|
|
826
|
+
grids: datumName === "none" || grids === "@null" || grids === "null" ? void 0 : gridReferences && Object.freeze(gridReferences)
|
|
827
|
+
}),
|
|
828
|
+
areaOfUse: parsed.areaOfUse,
|
|
829
|
+
angularUnit,
|
|
830
|
+
toMeter,
|
|
831
|
+
verticalUnit,
|
|
832
|
+
primeMeridian: primeMeridian2,
|
|
833
|
+
axis,
|
|
834
|
+
longitudeWrap: parameters["lon_wrap"] === void 0 ? void 0 : Number(parameters["lon_wrap"]) * DEGREES_TO_RADIANS,
|
|
835
|
+
lossy: Boolean(parsed.lossy || resolved2.lossy)
|
|
836
|
+
}), resolved2.spatialReference);
|
|
837
|
+
}
|
|
838
|
+
function unitFactor(parameters, unitKey, factorKey) {
|
|
839
|
+
const unit = parameters[unitKey];
|
|
840
|
+
const table = linearUnits;
|
|
841
|
+
if (unitKey === "vunits" && unit === "degrees")
|
|
842
|
+
throw new Error("Height requires linear units");
|
|
843
|
+
if (unit && !["m", "degrees"].includes(unit) && !own(table, unit))
|
|
844
|
+
throw new Error("Unsupported units: " + unit);
|
|
845
|
+
const factor = numberParameter(parameters, factorKey, unit && table[unit] ? table[unit].metersPerUnit : 1);
|
|
846
|
+
if (!(factor > 0))
|
|
847
|
+
throw new Error("+" + factorKey + " must be positive");
|
|
848
|
+
return factor;
|
|
849
|
+
}
|
|
850
|
+
function getEllipsoid(parameters, datumEllipsoid) {
|
|
851
|
+
const name = datumEllipsoid || parameters["ellps"] || "WGS84";
|
|
852
|
+
const definition = lookup(ellipsoid_table_default, name);
|
|
853
|
+
if (!definition)
|
|
854
|
+
throw new Error("Unsupported ellipsoid: " + name);
|
|
855
|
+
const a = numberParameter(parameters, "a", definition.a);
|
|
856
|
+
const f = numberParameter(parameters, "f", NaN);
|
|
857
|
+
const rf = numberParameter(parameters, "rf", Number.isNaN(f) ? definition.rf || 0 : f === 0 ? 0 : 1 / f);
|
|
858
|
+
const b = numberParameter(parameters, "b", rf ? a * (1 - 1 / rf) : own(parameters, "f") || own(parameters, "rf") || own(parameters, "a") ? a : definition.b || a);
|
|
859
|
+
const radius = numberParameter(parameters, "R", 0);
|
|
860
|
+
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))
|
|
861
|
+
throw new Error("Invalid ellipsoid dimensions");
|
|
862
|
+
return Object.freeze({
|
|
863
|
+
semiMajorAxis: radius || a,
|
|
864
|
+
semiMinorAxis: radius || b,
|
|
865
|
+
eccentricitySquared: radius ? 0 : 1 - (b / a) ** 2
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
var ALIASES, CORE_PARAMETERS, CORE_FLAGS, own, keyOf;
|
|
869
|
+
var init_normalize = __esm({
|
|
870
|
+
"dist/projection/experimental/crs/normalize.js"() {
|
|
871
|
+
init_spatial_reference();
|
|
872
|
+
init_proj_string();
|
|
873
|
+
init_spatial_reference2();
|
|
874
|
+
init_parameters();
|
|
875
|
+
init_datum_catalog();
|
|
876
|
+
init_ellipsoid_table();
|
|
877
|
+
init_primemeridian_table();
|
|
878
|
+
init_crs_metadata();
|
|
879
|
+
init_types();
|
|
880
|
+
ALIASES = {
|
|
881
|
+
WGS84: "+proj=longlat +datum=WGS84",
|
|
882
|
+
"EPSG:4326": "+proj=longlat +datum=WGS84",
|
|
883
|
+
"EPSG:4269": "+proj=longlat +datum=NAD83",
|
|
884
|
+
"EPSG:4978": "+proj=geocent +datum=WGS84",
|
|
885
|
+
"EPSG:4979": "+proj=longlat +datum=WGS84",
|
|
886
|
+
"EPSG:3857": "+proj=merc +a=6378137 +b=6378137 +nadgrids=@null +units=m",
|
|
887
|
+
"EPSG:3785": "EPSG:3857",
|
|
888
|
+
GOOGLE: "EPSG:3857",
|
|
889
|
+
"EPSG:900913": "EPSG:3857",
|
|
890
|
+
"EPSG:102113": "EPSG:3857"
|
|
891
|
+
};
|
|
892
|
+
CORE_PARAMETERS = [
|
|
893
|
+
"proj",
|
|
894
|
+
"datum",
|
|
895
|
+
"ellps",
|
|
896
|
+
"a",
|
|
897
|
+
"b",
|
|
898
|
+
"rf",
|
|
899
|
+
"f",
|
|
900
|
+
"R",
|
|
901
|
+
"units",
|
|
902
|
+
"to_meter",
|
|
903
|
+
"vunits",
|
|
904
|
+
"vto_meter",
|
|
905
|
+
"no_defs",
|
|
906
|
+
"type",
|
|
907
|
+
"title",
|
|
908
|
+
"towgs84",
|
|
909
|
+
"nadgrids",
|
|
910
|
+
"geoidgrids",
|
|
911
|
+
"axis",
|
|
912
|
+
"pm",
|
|
913
|
+
"over",
|
|
914
|
+
"lon_wrap"
|
|
915
|
+
];
|
|
916
|
+
CORE_FLAGS = ["no_defs", "over"];
|
|
917
|
+
own = (object, key2) => Object.prototype.hasOwnProperty.call(object, key2);
|
|
918
|
+
keyOf = (value) => value.toLowerCase().replace(/[\s_-]/g, "");
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
// dist/projection/experimental/crs/resolve.js
|
|
923
|
+
var resolve_exports = {};
|
|
924
|
+
__export(resolve_exports, {
|
|
925
|
+
prepareCRSInput: () => prepareCRSInput,
|
|
926
|
+
prepareEngineOptions: () => prepareEngineOptions
|
|
927
|
+
});
|
|
928
|
+
async function prepareEngineOptions(options) {
|
|
929
|
+
const captured = {
|
|
930
|
+
...options,
|
|
931
|
+
from: capture(options.from ?? "WGS84"),
|
|
932
|
+
to: capture(options.to ?? "WGS84")
|
|
933
|
+
};
|
|
934
|
+
const [from, to] = await Promise.all([
|
|
935
|
+
prepareCRSInput(captured.from, captured),
|
|
936
|
+
prepareCRSInput(captured.to, captured)
|
|
937
|
+
]);
|
|
938
|
+
return { ...captured, from, to };
|
|
939
|
+
}
|
|
940
|
+
async function prepareCRSInput(captured, options) {
|
|
941
|
+
var _a2;
|
|
942
|
+
const source = resolveCRSInput(captured, options);
|
|
943
|
+
const local = resolveLocalCRSDefinition(source.definition, options);
|
|
944
|
+
const reference = typeof captured === "string" || "type" in captured ? void 0 : "crs" in captured ? captured.crs : captured;
|
|
945
|
+
const representation = local === source.definition && reference ? reference.representation : inferCRSRepresentation(local);
|
|
946
|
+
if (representation !== "identifier" || ((_a2 = options.parsers) == null ? void 0 : _a2.some((p) => p.canParse(local)))) {
|
|
947
|
+
return captured;
|
|
948
|
+
}
|
|
949
|
+
const result = await options.resolver.resolve({
|
|
950
|
+
state: "explicit",
|
|
951
|
+
provenance: (reference == null ? void 0 : reference.provenance) ?? "unknown",
|
|
952
|
+
definition: local,
|
|
953
|
+
representation
|
|
954
|
+
});
|
|
955
|
+
const definition = resolveCRSInput(result.input, options).definition;
|
|
956
|
+
if (!reference)
|
|
957
|
+
return definition;
|
|
958
|
+
const metadata = captured;
|
|
959
|
+
const resolved2 = {
|
|
960
|
+
...reference,
|
|
961
|
+
definition,
|
|
962
|
+
representation: inferCRSRepresentation(definition),
|
|
963
|
+
alternatives: [
|
|
964
|
+
{ definition: reference.definition, representation: reference.representation },
|
|
965
|
+
...reference.alternatives ?? []
|
|
966
|
+
]
|
|
967
|
+
};
|
|
968
|
+
return "crs" in metadata ? { ...metadata, crs: resolved2 } : resolved2;
|
|
969
|
+
}
|
|
970
|
+
function capture(input) {
|
|
971
|
+
return typeof input === "string" ? input : JSON.parse(JSON.stringify(input));
|
|
972
|
+
}
|
|
973
|
+
var init_resolve = __esm({
|
|
974
|
+
"dist/projection/experimental/crs/resolve.js"() {
|
|
975
|
+
init_spatial_reference();
|
|
976
|
+
init_normalize();
|
|
977
|
+
init_spatial_reference2();
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
|
|
981
|
+
// dist/projection/experimental/lazy-projections/index.js
|
|
982
|
+
var index_exports = {};
|
|
983
|
+
__export(index_exports, {
|
|
984
|
+
LazyProjectionEngine: () => LazyProjectionEngine,
|
|
985
|
+
lazyAlbersEqualArea: () => lazyAlbersEqualArea,
|
|
986
|
+
lazyAzimuthalEquidistant: () => lazyAzimuthalEquidistant,
|
|
987
|
+
lazyBonne: () => lazyBonne,
|
|
988
|
+
lazyCassiniSoldner: () => lazyCassiniSoldner,
|
|
989
|
+
lazyCylindricalEqualArea: () => lazyCylindricalEqualArea,
|
|
990
|
+
lazyEckertVI: () => lazyEckertVI,
|
|
991
|
+
lazyEqualEarth: () => lazyEqualEarth,
|
|
992
|
+
lazyEquidistantConic: () => lazyEquidistantConic,
|
|
993
|
+
lazyEquidistantCylindrical: () => lazyEquidistantCylindrical,
|
|
994
|
+
lazyEquirectangular: () => lazyEquirectangular,
|
|
995
|
+
lazyExtendedTransverseMercator: () => lazyExtendedTransverseMercator,
|
|
996
|
+
lazyGaussSchreiberTransverseMercator: () => lazyGaussSchreiberTransverseMercator,
|
|
997
|
+
lazyGeocentric: () => lazyGeocentric,
|
|
998
|
+
lazyGeostationary: () => lazyGeostationary,
|
|
999
|
+
lazyGnomonic: () => lazyGnomonic,
|
|
1000
|
+
lazyKrovak: () => lazyKrovak,
|
|
1001
|
+
lazyLambertAzimuthalEqualArea: () => lazyLambertAzimuthalEqualArea,
|
|
1002
|
+
lazyLambertConformalConic: () => lazyLambertConformalConic,
|
|
1003
|
+
lazyMercator: () => lazyMercator,
|
|
1004
|
+
lazyMillerCylindrical: () => lazyMillerCylindrical,
|
|
1005
|
+
lazyMollweide: () => lazyMollweide,
|
|
1006
|
+
lazyNewZealandMapGrid: () => lazyNewZealandMapGrid,
|
|
1007
|
+
lazyObliqueMercator: () => lazyObliqueMercator,
|
|
1008
|
+
lazyObliqueStereographic: () => lazyObliqueStereographic,
|
|
1009
|
+
lazyObliqueTransformation: () => lazyObliqueTransformation,
|
|
1010
|
+
lazyOrthographic: () => lazyOrthographic,
|
|
1011
|
+
lazyPolyconic: () => lazyPolyconic,
|
|
1012
|
+
lazyProjectionEngine: () => lazyProjectionEngine,
|
|
1013
|
+
lazyQuadrilateralizedSphericalCube: () => lazyQuadrilateralizedSphericalCube,
|
|
1014
|
+
lazyRobinson: () => lazyRobinson,
|
|
1015
|
+
lazySinusoidal: () => lazySinusoidal,
|
|
1016
|
+
lazyStereographic: () => lazyStereographic,
|
|
1017
|
+
lazySwissObliqueMercator: () => lazySwissObliqueMercator,
|
|
1018
|
+
lazyTiltedPerspective: () => lazyTiltedPerspective,
|
|
1019
|
+
lazyTransverseMercator: () => lazyTransverseMercator,
|
|
1020
|
+
lazyUniversalTransverseMercator: () => lazyUniversalTransverseMercator,
|
|
1021
|
+
lazyVanDerGrinten: () => lazyVanDerGrinten
|
|
1022
|
+
});
|
|
1023
|
+
module.exports = __toCommonJS(index_exports);
|
|
1024
|
+
|
|
1025
|
+
// dist/projection/experimental/projection-descriptor.js
|
|
1026
|
+
var CACHE_KEY = /* @__PURE__ */ Symbol.for("@math.gl/projection/projection-implementations");
|
|
1027
|
+
function cache() {
|
|
1028
|
+
const scope = globalThis;
|
|
1029
|
+
scope[CACHE_KEY] || (scope[CACHE_KEY] = /* @__PURE__ */ new WeakMap());
|
|
1030
|
+
return scope[CACHE_KEY];
|
|
1031
|
+
}
|
|
1032
|
+
function getLoadedProjection(projection) {
|
|
1033
|
+
var _a2;
|
|
1034
|
+
return "create" in projection ? projection : (_a2 = cache().get(projection)) == null ? void 0 : _a2.implementation;
|
|
1035
|
+
}
|
|
1036
|
+
function preloadProjection(projection) {
|
|
1037
|
+
if ("create" in projection)
|
|
1038
|
+
return Promise.resolve(projection);
|
|
1039
|
+
let state = cache().get(projection);
|
|
1040
|
+
if (!state) {
|
|
1041
|
+
state = { load: () => projection.preload() };
|
|
1042
|
+
cache().set(projection, state);
|
|
1043
|
+
}
|
|
1044
|
+
if (state.implementation)
|
|
1045
|
+
return Promise.resolve(state.implementation);
|
|
1046
|
+
const entry = state;
|
|
1047
|
+
entry.pending || (entry.pending = Promise.resolve().then(entry.load).then((plugin) => {
|
|
1048
|
+
const key2 = (value) => value.toLowerCase().replace(/[\s_-]/g, "");
|
|
1049
|
+
const supported = new Set([plugin.name, ...plugin.aliases || []].map(key2));
|
|
1050
|
+
if (typeof plugin.create !== "function" || ![projection.name, ...projection.aliases || []].every((name) => supported.has(key2(name))))
|
|
1051
|
+
throw new Error("Loaded projection does not match descriptor: " + projection.name);
|
|
1052
|
+
entry.implementation = plugin;
|
|
1053
|
+
return plugin;
|
|
1054
|
+
}).catch((error) => {
|
|
1055
|
+
entry.pending = void 0;
|
|
1056
|
+
throw error;
|
|
1057
|
+
}));
|
|
1058
|
+
return entry.pending;
|
|
1059
|
+
}
|
|
1060
|
+
function createProjectionDescriptor(metadata, load) {
|
|
1061
|
+
const descriptor = Object.freeze({
|
|
1062
|
+
name: metadata.name,
|
|
1063
|
+
aliases: metadata.aliases && Object.freeze([...metadata.aliases]),
|
|
1064
|
+
preload: () => preloadProjection(descriptor)
|
|
1065
|
+
});
|
|
1066
|
+
cache().set(descriptor, { load });
|
|
1067
|
+
return descriptor;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
// dist/projection/experimental/lazy-projections/merc.js
|
|
1071
|
+
var lazyMercator = /* @__PURE__ */ createProjectionDescriptor({
|
|
1072
|
+
name: "merc",
|
|
1073
|
+
aliases: [
|
|
1074
|
+
"Mercator",
|
|
1075
|
+
"Popular Visualisation Pseudo Mercator",
|
|
1076
|
+
"Mercator_1SP",
|
|
1077
|
+
"Mercator_Auxiliary_Sphere",
|
|
1078
|
+
"Mercator_Variant_A"
|
|
1079
|
+
]
|
|
1080
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/merc")).mercator);
|
|
1081
|
+
|
|
1082
|
+
// dist/projection/experimental/lazy-projections/eqc.js
|
|
1083
|
+
var lazyEquidistantCylindrical = /* @__PURE__ */ createProjectionDescriptor({
|
|
1084
|
+
name: "eqc",
|
|
1085
|
+
aliases: ["Equirectangular", "Equidistant_Cylindrical", "Equidistant_Cylindrical_Spherical"]
|
|
1086
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/eqc")).equidistantCylindrical);
|
|
1087
|
+
|
|
1088
|
+
// dist/projection/experimental/lazy-projections/lcc.js
|
|
1089
|
+
var lazyLambertConformalConic = /* @__PURE__ */ createProjectionDescriptor({
|
|
1090
|
+
name: "lcc",
|
|
1091
|
+
aliases: [
|
|
1092
|
+
"Lambert Tangential Conformal Conic Projection",
|
|
1093
|
+
"Lambert_Conformal_Conic",
|
|
1094
|
+
"Lambert_Conformal_Conic_1SP",
|
|
1095
|
+
"Lambert_Conformal_Conic_2SP",
|
|
1096
|
+
"Lambert Conic Conformal (1SP)",
|
|
1097
|
+
"Lambert Conic Conformal (2SP)"
|
|
1098
|
+
]
|
|
1099
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/lcc")).lambertConformalConic);
|
|
1100
|
+
|
|
1101
|
+
// dist/projection/experimental/lazy-projections/aea.js
|
|
1102
|
+
var lazyAlbersEqualArea = /* @__PURE__ */ createProjectionDescriptor({ name: "aea", aliases: ["Albers_Conic_Equal_Area", "Albers_Equal_Area", "Albers"] }, async () => (await import("@math.gl/geospatial/projection/projections/aea")).albersEqualArea);
|
|
1103
|
+
|
|
1104
|
+
// dist/projection/experimental/lazy-projections/eqdc.js
|
|
1105
|
+
var lazyEquidistantConic = /* @__PURE__ */ createProjectionDescriptor({ name: "eqdc", aliases: ["Equidistant_Conic"] }, async () => (await import("@math.gl/geospatial/projection/projections/eqdc")).equidistantConic);
|
|
1106
|
+
|
|
1107
|
+
// dist/projection/experimental/lazy-projections/laea.js
|
|
1108
|
+
var lazyLambertAzimuthalEqualArea = /* @__PURE__ */ createProjectionDescriptor({ name: "laea", aliases: ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area"] }, async () => (await import("@math.gl/geospatial/projection/projections/laea")).lambertAzimuthalEqualArea);
|
|
1109
|
+
|
|
1110
|
+
// dist/projection/experimental/lazy-projections/stere.js
|
|
1111
|
+
var lazyStereographic = /* @__PURE__ */ createProjectionDescriptor({
|
|
1112
|
+
name: "stere",
|
|
1113
|
+
aliases: [
|
|
1114
|
+
"Stereographic_South_Pole",
|
|
1115
|
+
"Polar_Stereographic_variant_A",
|
|
1116
|
+
"Polar_Stereographic_variant_B",
|
|
1117
|
+
"Polar_Stereographic"
|
|
1118
|
+
]
|
|
1119
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/stere")).stereographic);
|
|
1120
|
+
|
|
1121
|
+
// dist/projection/experimental/lazy-projections/sterea.js
|
|
1122
|
+
var lazyObliqueStereographic = /* @__PURE__ */ createProjectionDescriptor({
|
|
1123
|
+
name: "sterea",
|
|
1124
|
+
aliases: [
|
|
1125
|
+
"Stereographic_North_Pole",
|
|
1126
|
+
"Oblique_Stereographic",
|
|
1127
|
+
"Oblique Stereographic Alternative",
|
|
1128
|
+
"Double_Stereographic"
|
|
1129
|
+
]
|
|
1130
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/sterea")).obliqueStereographic);
|
|
1131
|
+
|
|
1132
|
+
// dist/projection/experimental/lazy-projections/aeqd.js
|
|
1133
|
+
var lazyAzimuthalEquidistant = /* @__PURE__ */ createProjectionDescriptor({ name: "aeqd", aliases: ["Azimuthal_Equidistant"] }, async () => (await import("@math.gl/geospatial/projection/projections/aeqd")).azimuthalEquidistant);
|
|
1134
|
+
|
|
1135
|
+
// dist/projection/experimental/lazy-projections/tmerc.js
|
|
1136
|
+
var lazyTransverseMercator = /* @__PURE__ */ createProjectionDescriptor({
|
|
1137
|
+
name: "tmerc",
|
|
1138
|
+
aliases: [
|
|
1139
|
+
"Fast_Transverse_Mercator",
|
|
1140
|
+
"Fast Transverse Mercator",
|
|
1141
|
+
"Transverse_Mercator",
|
|
1142
|
+
"Transverse Mercator",
|
|
1143
|
+
"Gauss Kruger",
|
|
1144
|
+
"Gauss_Kruger"
|
|
1145
|
+
]
|
|
1146
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/tmerc")).transverseMercator);
|
|
1147
|
+
|
|
1148
|
+
// dist/projection/experimental/lazy-projections/etmerc.js
|
|
1149
|
+
var lazyExtendedTransverseMercator = /* @__PURE__ */ createProjectionDescriptor({ name: "etmerc", aliases: ["Extended_Transverse_Mercator", "Extended Transverse Mercator"] }, async () => (await import("@math.gl/geospatial/projection/projections/etmerc")).extendedTransverseMercator);
|
|
1150
|
+
|
|
1151
|
+
// dist/projection/experimental/lazy-projections/utm.js
|
|
1152
|
+
var lazyUniversalTransverseMercator = /* @__PURE__ */ createProjectionDescriptor({ name: "utm", aliases: ["Universal Transverse Mercator System"] }, async () => (await import("@math.gl/geospatial/projection/projections/utm")).universalTransverseMercator);
|
|
1153
|
+
|
|
1154
|
+
// dist/projection/experimental/lazy-projections/geocent.js
|
|
1155
|
+
var lazyGeocentric = /* @__PURE__ */ createProjectionDescriptor({ name: "geocent", aliases: ["Geocentric", "geocentric", "Geocent"] }, async () => (await import("@math.gl/geospatial/projection/projections/geocent")).geocentric);
|
|
1156
|
+
|
|
1157
|
+
// dist/projection/experimental/lazy-projections/bonne.js
|
|
1158
|
+
var lazyBonne = /* @__PURE__ */ createProjectionDescriptor({ name: "bonne", aliases: ["Bonne (Werner lat_1=90)"] }, async () => (await import("@math.gl/geospatial/projection/projections/bonne")).bonne);
|
|
1159
|
+
|
|
1160
|
+
// dist/projection/experimental/lazy-projections/cass.js
|
|
1161
|
+
var lazyCassiniSoldner = /* @__PURE__ */ createProjectionDescriptor({ name: "cass", aliases: ["Cassini", "Cassini_Soldner"] }, async () => (await import("@math.gl/geospatial/projection/projections/cass")).cassiniSoldner);
|
|
1162
|
+
|
|
1163
|
+
// dist/projection/experimental/lazy-projections/cea.js
|
|
1164
|
+
var lazyCylindricalEqualArea = /* @__PURE__ */ createProjectionDescriptor({ name: "cea", aliases: [] }, async () => (await import("@math.gl/geospatial/projection/projections/cea")).cylindricalEqualArea);
|
|
1165
|
+
|
|
1166
|
+
// dist/projection/experimental/lazy-projections/eck6.js
|
|
1167
|
+
var lazyEckertVI = /* @__PURE__ */ createProjectionDescriptor({ name: "eck6", aliases: ["Eckert_VI"] }, async () => (await import("@math.gl/geospatial/projection/projections/eck6")).eckertVI);
|
|
1168
|
+
|
|
1169
|
+
// dist/projection/experimental/lazy-projections/eqearth.js
|
|
1170
|
+
var lazyEqualEarth = /* @__PURE__ */ createProjectionDescriptor({ name: "eqearth", aliases: ["Equal Earth", "Equal_Earth"] }, async () => (await import("@math.gl/geospatial/projection/projections/eqearth")).equalEarth);
|
|
1171
|
+
|
|
1172
|
+
// dist/projection/experimental/lazy-projections/equi.js
|
|
1173
|
+
var lazyEquirectangular = /* @__PURE__ */ createProjectionDescriptor({ name: "equi", aliases: [] }, async () => (await import("@math.gl/geospatial/projection/projections/equi")).equirectangular);
|
|
1174
|
+
|
|
1175
|
+
// dist/projection/experimental/lazy-projections/geos.js
|
|
1176
|
+
var lazyGeostationary = /* @__PURE__ */ createProjectionDescriptor({ name: "geos", aliases: ["Geostationary Satellite View", "Geostationary_Satellite"] }, async () => (await import("@math.gl/geospatial/projection/projections/geos")).geostationary);
|
|
1177
|
+
|
|
1178
|
+
// dist/projection/experimental/lazy-projections/gnom.js
|
|
1179
|
+
var lazyGnomonic = /* @__PURE__ */ createProjectionDescriptor({ name: "gnom", aliases: [] }, async () => (await import("@math.gl/geospatial/projection/projections/gnom")).gnomonic);
|
|
1180
|
+
|
|
1181
|
+
// dist/projection/experimental/lazy-projections/gstmerc.js
|
|
1182
|
+
var lazyGaussSchreiberTransverseMercator = /* @__PURE__ */ createProjectionDescriptor({ name: "gstmerc", aliases: ["gstmerg"] }, async () => (await import("@math.gl/geospatial/projection/projections/gstmerc")).gaussSchreiberTransverseMercator);
|
|
1183
|
+
|
|
1184
|
+
// dist/projection/experimental/lazy-projections/krovak.js
|
|
1185
|
+
var lazyKrovak = /* @__PURE__ */ createProjectionDescriptor({
|
|
1186
|
+
name: "krovak",
|
|
1187
|
+
aliases: [
|
|
1188
|
+
"Krovak",
|
|
1189
|
+
"Krovak Modified",
|
|
1190
|
+
"Krovak (North Orientated)",
|
|
1191
|
+
"Krovak Modified (North Orientated)"
|
|
1192
|
+
]
|
|
1193
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/krovak")).krovak);
|
|
1194
|
+
|
|
1195
|
+
// dist/projection/experimental/lazy-projections/mill.js
|
|
1196
|
+
var lazyMillerCylindrical = /* @__PURE__ */ createProjectionDescriptor({ name: "mill", aliases: ["Miller_Cylindrical"] }, async () => (await import("@math.gl/geospatial/projection/projections/mill")).millerCylindrical);
|
|
1197
|
+
|
|
1198
|
+
// dist/projection/experimental/lazy-projections/moll.js
|
|
1199
|
+
var lazyMollweide = /* @__PURE__ */ createProjectionDescriptor({ name: "moll", aliases: ["Mollweide"] }, async () => (await import("@math.gl/geospatial/projection/projections/moll")).mollweide);
|
|
1200
|
+
|
|
1201
|
+
// dist/projection/experimental/lazy-projections/nzmg.js
|
|
1202
|
+
var lazyNewZealandMapGrid = /* @__PURE__ */ createProjectionDescriptor({ name: "nzmg", aliases: ["New_Zealand_Map_Grid"] }, async () => (await import("@math.gl/geospatial/projection/projections/nzmg")).newZealandMapGrid);
|
|
1203
|
+
|
|
1204
|
+
// dist/projection/experimental/lazy-projections/omerc.js
|
|
1205
|
+
var lazyObliqueMercator = /* @__PURE__ */ createProjectionDescriptor({
|
|
1206
|
+
name: "omerc",
|
|
1207
|
+
aliases: [
|
|
1208
|
+
"Hotine_Oblique_Mercator",
|
|
1209
|
+
"Hotine Oblique Mercator",
|
|
1210
|
+
"Hotine_Oblique_Mercator_variant_A",
|
|
1211
|
+
"Hotine_Oblique_Mercator_Variant_B",
|
|
1212
|
+
"Hotine_Oblique_Mercator_Azimuth_Natural_Origin",
|
|
1213
|
+
"Hotine_Oblique_Mercator_Two_Point_Natural_Origin",
|
|
1214
|
+
"Hotine_Oblique_Mercator_Azimuth_Center",
|
|
1215
|
+
"Oblique_Mercator"
|
|
1216
|
+
]
|
|
1217
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/omerc")).obliqueMercator);
|
|
1218
|
+
|
|
1219
|
+
// dist/projection/experimental/lazy-projections/ortho.js
|
|
1220
|
+
var lazyOrthographic = /* @__PURE__ */ createProjectionDescriptor({ name: "ortho", aliases: [] }, async () => (await import("@math.gl/geospatial/projection/projections/ortho")).orthographic);
|
|
1221
|
+
|
|
1222
|
+
// dist/projection/experimental/lazy-projections/poly.js
|
|
1223
|
+
var lazyPolyconic = /* @__PURE__ */ createProjectionDescriptor({ name: "poly", aliases: ["Polyconic", "American_Polyconic"] }, async () => (await import("@math.gl/geospatial/projection/projections/poly")).polyconic);
|
|
1224
|
+
|
|
1225
|
+
// dist/projection/experimental/lazy-projections/qsc.js
|
|
1226
|
+
var lazyQuadrilateralizedSphericalCube = /* @__PURE__ */ createProjectionDescriptor({
|
|
1227
|
+
name: "qsc",
|
|
1228
|
+
aliases: ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube"]
|
|
1229
|
+
}, async () => (await import("@math.gl/geospatial/projection/projections/qsc")).quadrilateralizedSphericalCube);
|
|
1230
|
+
|
|
1231
|
+
// dist/projection/experimental/lazy-projections/robin.js
|
|
1232
|
+
var lazyRobinson = /* @__PURE__ */ createProjectionDescriptor({ name: "robin", aliases: ["Robinson"] }, async () => (await import("@math.gl/geospatial/projection/projections/robin")).robinson);
|
|
1233
|
+
|
|
1234
|
+
// dist/projection/experimental/lazy-projections/sinu.js
|
|
1235
|
+
var lazySinusoidal = /* @__PURE__ */ createProjectionDescriptor({ name: "sinu", aliases: ["Sinusoidal"] }, async () => (await import("@math.gl/geospatial/projection/projections/sinu")).sinusoidal);
|
|
1236
|
+
|
|
1237
|
+
// dist/projection/experimental/lazy-projections/somerc.js
|
|
1238
|
+
var lazySwissObliqueMercator = /* @__PURE__ */ createProjectionDescriptor({ name: "somerc", aliases: [] }, async () => (await import("@math.gl/geospatial/projection/projections/somerc")).swissObliqueMercator);
|
|
1239
|
+
|
|
1240
|
+
// dist/projection/experimental/lazy-projections/tpers.js
|
|
1241
|
+
var lazyTiltedPerspective = /* @__PURE__ */ createProjectionDescriptor({ name: "tpers", aliases: ["Tilted_Perspective"] }, async () => (await import("@math.gl/geospatial/projection/projections/tpers")).tiltedPerspective);
|
|
1242
|
+
|
|
1243
|
+
// dist/projection/experimental/lazy-projections/vandg.js
|
|
1244
|
+
var lazyVanDerGrinten = /* @__PURE__ */ createProjectionDescriptor({ name: "vandg", aliases: ["Van_der_Grinten_I", "VanDerGrinten", "Van_der_Grinten"] }, async () => (await import("@math.gl/geospatial/projection/projections/vandg")).vanDerGrinten);
|
|
1245
|
+
|
|
1246
|
+
// dist/projection/experimental/lazy-projections/ob_tran.js
|
|
1247
|
+
function lazyObliqueTransformation(wrapped) {
|
|
1248
|
+
return createProjectionDescriptor({
|
|
1249
|
+
name: "ob_tran",
|
|
1250
|
+
aliases: ["General Oblique Transformation", "General_Oblique_Transformation"]
|
|
1251
|
+
}, async () => {
|
|
1252
|
+
const [{ obliqueTransformation }, child] = await Promise.all([
|
|
1253
|
+
import("@math.gl/geospatial/projection/projections/ob_tran"),
|
|
1254
|
+
typeof wrapped === "string" || "create" in wrapped ? wrapped : wrapped.preload()
|
|
1255
|
+
]);
|
|
1256
|
+
return obliqueTransformation(child);
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
// dist/projection/experimental/crs-descriptor.js
|
|
1261
|
+
init_normalize();
|
|
1262
|
+
|
|
1263
|
+
// dist/projection/numerical-derivative.js
|
|
1264
|
+
var NumericalDerivative = class {
|
|
1265
|
+
constructor(sample) {
|
|
1266
|
+
this.sample = sample;
|
|
1267
|
+
this.result = [0, 0, 0];
|
|
1268
|
+
this.samples = Array.from({ length: 4 }, () => [0, 0, 0]);
|
|
1269
|
+
this.coarse = [0, 0, 0];
|
|
1270
|
+
this.fine = [0, 0, 0];
|
|
1271
|
+
}
|
|
1272
|
+
evaluate(step, referenceScale, tolerance = 1e-6) {
|
|
1273
|
+
if (!this.difference(step, this.coarse) || !this.difference(step / 2, this.fine))
|
|
1274
|
+
return false;
|
|
1275
|
+
const bound = tolerance * Math.max(referenceScale, Math.abs(this.fine[0]), Math.abs(this.fine[1]), Math.abs(this.fine[2]));
|
|
1276
|
+
for (let i = 0; i < 3; i++) {
|
|
1277
|
+
if (Math.abs(this.coarse[i] - this.fine[i]) > bound)
|
|
1278
|
+
return false;
|
|
1279
|
+
this.fine[i] += (this.fine[i] - this.coarse[i]) / 15;
|
|
1280
|
+
if (!Number.isFinite(this.fine[i]))
|
|
1281
|
+
return false;
|
|
1282
|
+
}
|
|
1283
|
+
for (let i = 0; i < 3; i++)
|
|
1284
|
+
this.result[i] = this.fine[i];
|
|
1285
|
+
return true;
|
|
1286
|
+
}
|
|
1287
|
+
difference(step, output) {
|
|
1288
|
+
const [a, b, c, d] = this.samples;
|
|
1289
|
+
if (!this.sample(-2 * step, a) || !this.sample(-step, b) || !this.sample(step, c) || !this.sample(2 * step, d))
|
|
1290
|
+
return false;
|
|
1291
|
+
for (let i = 0; i < 3; i++) {
|
|
1292
|
+
output[i] = (a[i] - d[i] + 8 * (c[i] - b[i])) / (12 * step);
|
|
1293
|
+
if (!Number.isFinite(output[i]))
|
|
1294
|
+
return false;
|
|
1295
|
+
}
|
|
1296
|
+
return true;
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
// dist/projection/experimental/crs-rendering-scale.js
|
|
1301
|
+
init_normalize();
|
|
1302
|
+
var RADIANS = Math.PI / 180;
|
|
1303
|
+
var WGS84 = normalizeCRS("WGS84").ellipsoid;
|
|
1304
|
+
function validateScale(scale) {
|
|
1305
|
+
if (scale.length !== 3 || scale.some((value) => !Number.isFinite(value) || value <= 0))
|
|
1306
|
+
throw new Error("Invalid CRS rendering scale");
|
|
1307
|
+
return scale;
|
|
1308
|
+
}
|
|
1309
|
+
function createRenderingScale(crs, projection, axis, center) {
|
|
1310
|
+
if (crs.kind === "geocentric")
|
|
1311
|
+
return validateScale([crs.toMeter, crs.toMeter, crs.toMeter]);
|
|
1312
|
+
if (crs.kind === "identity") {
|
|
1313
|
+
return validateScale([...axis].map((direction) => /[ud]/.test(direction) ? crs.verticalUnit : crs.toMeter));
|
|
1314
|
+
}
|
|
1315
|
+
const anchor = [0, 0, 0], input = [0, 0, 0], geographic = [0, 0, 0], sample = [0, 0, 0];
|
|
1316
|
+
const derivatives = Array.from({ length: 3 }, () => [0, 0, 0]);
|
|
1317
|
+
let component = 0, longitudeMeters = 0, latitudeMeters = 0, busy = false;
|
|
1318
|
+
const numerical = new NumericalDerivative((offset, output) => {
|
|
1319
|
+
for (let i = 0; i < 3; i++)
|
|
1320
|
+
input[i] = anchor[i];
|
|
1321
|
+
input[component] += offset;
|
|
1322
|
+
projection.unprojectTo(input, sample);
|
|
1323
|
+
const rawDelta = sample[0] - geographic[0];
|
|
1324
|
+
const delta = Math.abs(rawDelta) <= 180 ? rawDelta : ((rawDelta + 180) % 360 + 360) % 360 - 180;
|
|
1325
|
+
if (Math.abs(sample[1]) >= 90)
|
|
1326
|
+
return false;
|
|
1327
|
+
output[0] = delta * longitudeMeters;
|
|
1328
|
+
output[1] = (sample[1] - geographic[1]) * latitudeMeters;
|
|
1329
|
+
output[2] = sample[2] - geographic[2];
|
|
1330
|
+
return output.every(Number.isFinite);
|
|
1331
|
+
});
|
|
1332
|
+
return (coordinate) => {
|
|
1333
|
+
if (busy || coordinate.length < 2)
|
|
1334
|
+
return null;
|
|
1335
|
+
busy = true;
|
|
1336
|
+
let scale;
|
|
1337
|
+
try {
|
|
1338
|
+
anchor[0] = coordinate[0];
|
|
1339
|
+
anchor[1] = coordinate[1];
|
|
1340
|
+
anchor[2] = coordinate[2] ?? 0;
|
|
1341
|
+
if (!anchor.every(Number.isFinite))
|
|
1342
|
+
return null;
|
|
1343
|
+
projection.unprojectTo(anchor, geographic);
|
|
1344
|
+
const latitude = geographic[1] * RADIANS;
|
|
1345
|
+
const a = WGS84.semiMajorAxis, es = WGS84.eccentricitySquared;
|
|
1346
|
+
const denominator = 1 - es * Math.sin(latitude) ** 2;
|
|
1347
|
+
longitudeMeters = a * Math.cos(latitude) / Math.sqrt(denominator) * RADIANS;
|
|
1348
|
+
latitudeMeters = a * (1 - es) / denominator ** 1.5 * RADIANS;
|
|
1349
|
+
if (!(longitudeMeters > a * RADIANS * 1e-8) || !(latitudeMeters > 0))
|
|
1350
|
+
return null;
|
|
1351
|
+
const offset = ((geographic[0] - center + 180) % 360 + 360) % 360 - 180;
|
|
1352
|
+
const hasLongitudeSeam = crs.kind === "geographic" ? crs.longitudeWrap !== void 0 : !Object.prototype.hasOwnProperty.call(crs.parameters, "over");
|
|
1353
|
+
if (hasLongitudeSeam && Math.abs(offset) + 2 / longitudeMeters >= 180 || Math.abs(geographic[1]) + 2 / latitudeMeters >= 90)
|
|
1354
|
+
return null;
|
|
1355
|
+
for (component = 0; component < 3; component++) {
|
|
1356
|
+
const direction = axis[component];
|
|
1357
|
+
const nominalMeters = /[ud]/.test(direction) ? crs.verticalUnit : crs.kind === "geographic" ? (/[ew]/.test(direction) ? longitudeMeters : latitudeMeters) * crs.angularUnit / RADIANS : crs.toMeter;
|
|
1358
|
+
if (!numerical.evaluate(1 / nominalMeters, nominalMeters))
|
|
1359
|
+
return null;
|
|
1360
|
+
for (let i = 0; i < 3; i++)
|
|
1361
|
+
derivatives[component][i] = numerical.result[i];
|
|
1362
|
+
}
|
|
1363
|
+
scale = derivatives.map((derivative) => Math.hypot(...derivative));
|
|
1364
|
+
if (crs.kind === "projected") {
|
|
1365
|
+
const east = derivatives[axis.search(/[ew]/)];
|
|
1366
|
+
const north = derivatives[axis.search(/[ns]/)];
|
|
1367
|
+
const inverseArea = Math.abs(east[0] * north[1] - east[1] * north[0]) / crs.toMeter ** 2;
|
|
1368
|
+
scale[axis.search(/[ud]/)] = crs.verticalUnit * Math.sqrt(inverseArea);
|
|
1369
|
+
}
|
|
1370
|
+
} catch {
|
|
1371
|
+
return null;
|
|
1372
|
+
} finally {
|
|
1373
|
+
busy = false;
|
|
1374
|
+
}
|
|
1375
|
+
return validateScale(scale);
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
// dist/projection/experimental/scalar-output.js
|
|
1380
|
+
var FLOAT32_MAX = 34028234663852886e22;
|
|
1381
|
+
function validateScalarOutput(coordinate, output, length) {
|
|
1382
|
+
if (!(Array.isArray(coordinate) || coordinate instanceof Float32Array || coordinate instanceof Float64Array))
|
|
1383
|
+
throw new Error("Scalar input requires a number array, Float32Array or Float64Array");
|
|
1384
|
+
if (!(Array.isArray(output) || output instanceof Float32Array || output instanceof Float64Array) || output.length < length)
|
|
1385
|
+
throw new Error("Scalar output requires a preallocated number array, Float32Array or Float64Array with sufficient capacity");
|
|
1386
|
+
if (coordinate === output || Array.isArray(coordinate) || Array.isArray(output))
|
|
1387
|
+
return;
|
|
1388
|
+
const input = coordinate;
|
|
1389
|
+
const result = output;
|
|
1390
|
+
const shared = typeof SharedArrayBuffer !== "undefined" && input.buffer instanceof SharedArrayBuffer && result.buffer instanceof SharedArrayBuffer;
|
|
1391
|
+
if ((input.buffer === result.buffer || shared) && input.byteOffset < result.byteOffset + length * result.BYTES_PER_ELEMENT && result.byteOffset < input.byteOffset + input.byteLength)
|
|
1392
|
+
throw new Error("Scalar input/output views overlap; use the same view for in-place projection");
|
|
1393
|
+
}
|
|
1394
|
+
function writeScalarOutput(coordinate, output, point, length) {
|
|
1395
|
+
if (output instanceof Float32Array) {
|
|
1396
|
+
if (Math.abs(point.x) > FLOAT32_MAX || Math.abs(point.y) > FLOAT32_MAX || length >= 3 && Math.abs(point.z) > FLOAT32_MAX)
|
|
1397
|
+
throw new Error("Projected coordinate exceeds Float32 range");
|
|
1398
|
+
for (let i = 3; i < coordinate.length; i++) {
|
|
1399
|
+
const value = coordinate[i];
|
|
1400
|
+
if (Number.isFinite(value) && Math.abs(value) > FLOAT32_MAX)
|
|
1401
|
+
throw new Error("Trailing ordinate exceeds Float32 range");
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
for (let i = 3; i < coordinate.length; i++)
|
|
1405
|
+
output[i] = coordinate[i];
|
|
1406
|
+
output[0] = point.x;
|
|
1407
|
+
output[1] = point.y;
|
|
1408
|
+
if (length >= 3)
|
|
1409
|
+
output[2] = point.z;
|
|
1410
|
+
return output;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
// dist/projection/experimental/crs-descriptor.js
|
|
1414
|
+
init_crs_metadata();
|
|
1415
|
+
var ANGULAR_UNITS = {
|
|
1416
|
+
degrees: Math.PI / 180,
|
|
1417
|
+
radians: 1,
|
|
1418
|
+
gradians: Math.PI / 200
|
|
1419
|
+
};
|
|
1420
|
+
var LINEAR_UNITS = {
|
|
1421
|
+
...Object.fromEntries(Object.values(linearUnits).map((unit) => [unit.name, unit.metersPerUnit]))
|
|
1422
|
+
};
|
|
1423
|
+
async function resolveCRSDescriptor(engine, definition, normalization, options = {}, useDefinitionSignature = false, prepareInput) {
|
|
1424
|
+
const captured = typeof definition === "string" ? definition : JSON.parse(JSON.stringify(definition));
|
|
1425
|
+
const conventions = {
|
|
1426
|
+
enforceAxis: normalization.enforceAxis,
|
|
1427
|
+
mode: normalization.mode,
|
|
1428
|
+
...options,
|
|
1429
|
+
converters: options.converters && [...options.converters]
|
|
1430
|
+
};
|
|
1431
|
+
const input = prepareInput ? await prepareInput(captured, { ...normalization, ...conventions }) : captured;
|
|
1432
|
+
const crs = normalizeCRS(input, { ...normalization, ...conventions });
|
|
1433
|
+
const projection = await engine.createProjectionAsync({
|
|
1434
|
+
...conventions,
|
|
1435
|
+
from: "WGS84",
|
|
1436
|
+
to: input
|
|
1437
|
+
});
|
|
1438
|
+
const axis = crs.storedAxis || (conventions.enforceAxis ? crs.axis : "enu");
|
|
1439
|
+
const horizontalUnit = getUnit(crs.kind === "geographic" ? crs.angularUnit : crs.toMeter, crs.kind === "geographic");
|
|
1440
|
+
const heightUnit = getUnit(crs.verticalUnit, false);
|
|
1441
|
+
const units = [...axis].map((direction) => crs.kind !== "geocentric" && /[ud]/.test(direction) ? heightUnit : horizontalUnit);
|
|
1442
|
+
const profile = projection.targetProfile;
|
|
1443
|
+
if (!profile)
|
|
1444
|
+
throw new Error("Projection must define a rendering profile for CRS retrieval");
|
|
1445
|
+
const center = (projection.targetLongitudeOrigin + crs.primeMeridian) * 180 / Math.PI;
|
|
1446
|
+
const bounds = adaptBounds(profile, crs, axis);
|
|
1447
|
+
const normalizeWGS84 = createNormalization(profile.normalize);
|
|
1448
|
+
const renderingScale = createRenderingScale(crs, projection, axis, center);
|
|
1449
|
+
const sources = [.../* @__PURE__ */ new Set(["WGS84", ...conventions.converters || []])];
|
|
1450
|
+
if (sources.some((source) => typeof source !== "string" || !source.trim()))
|
|
1451
|
+
throw new Error("Converter source CRS must be a nonempty string");
|
|
1452
|
+
const entries = await Promise.all(sources.map(async (source) => {
|
|
1453
|
+
if (source === "WGS84")
|
|
1454
|
+
return [source, createConverter(projection, normalizeWGS84)];
|
|
1455
|
+
const [pair, geographic] = await Promise.all([
|
|
1456
|
+
engine.createProjectionAsync({ ...conventions, from: source, to: input }),
|
|
1457
|
+
engine.createProjectionAsync({ ...conventions, from: "WGS84", to: source })
|
|
1458
|
+
]);
|
|
1459
|
+
return [
|
|
1460
|
+
source,
|
|
1461
|
+
createConverter(pair, createSourceNormalization(geographic, normalizeWGS84))
|
|
1462
|
+
];
|
|
1463
|
+
}));
|
|
1464
|
+
const converter = Object.assign(/* @__PURE__ */ Object.create(null), Object.fromEntries(entries));
|
|
1465
|
+
const metadata = {
|
|
1466
|
+
coordinateFrame: crs.kind,
|
|
1467
|
+
projection: crs.projection,
|
|
1468
|
+
parameters: crs.parameters,
|
|
1469
|
+
ellipsoid: {
|
|
1470
|
+
semiMajorAxis: crs.ellipsoid.semiMajorAxis,
|
|
1471
|
+
semiMinorAxis: crs.ellipsoid.semiMinorAxis
|
|
1472
|
+
},
|
|
1473
|
+
axis,
|
|
1474
|
+
xUnit: units[0],
|
|
1475
|
+
yUnit: units[1],
|
|
1476
|
+
zUnit: units[2],
|
|
1477
|
+
areaOfUse: crs.areaOfUse,
|
|
1478
|
+
lossy: crs.lossy
|
|
1479
|
+
};
|
|
1480
|
+
return {
|
|
1481
|
+
...metadata,
|
|
1482
|
+
// Exact caller identity is sufficient under default execution conventions.
|
|
1483
|
+
// Additional source converters do not change the target CRS.
|
|
1484
|
+
signature: useDefinitionSignature && typeof input === "string" && !conventions.enforceAxis && !crs.lossy ? input : getCRSSignature(metadata),
|
|
1485
|
+
renderingBounds: bounds,
|
|
1486
|
+
renderingScale,
|
|
1487
|
+
getRenderingScale: (coordinate) => typeof renderingScale === "function" ? renderingScale(coordinate) : renderingScale,
|
|
1488
|
+
converter
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
function createConverter(projection, normalize) {
|
|
1492
|
+
return {
|
|
1493
|
+
from: createConversion(projection.project.bind(projection), projection.projectTo.bind(projection)),
|
|
1494
|
+
to: createConversion(projection.unproject.bind(projection), projection.unprojectTo.bind(projection)),
|
|
1495
|
+
normalize
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
function createSourceNormalization(geographic, normalizeWGS84) {
|
|
1499
|
+
function normalize(coordinate, output) {
|
|
1500
|
+
if (output !== void 0)
|
|
1501
|
+
validateScalarOutput(coordinate, output, coordinate.length);
|
|
1502
|
+
const wgs842 = geographic.unproject(Array.from(coordinate));
|
|
1503
|
+
const [longitude, latitude, altitude] = wgs842;
|
|
1504
|
+
normalizeWGS84(wgs842, wgs842);
|
|
1505
|
+
if (wgs842[0] === longitude && wgs842[1] === latitude && wgs842[2] === altitude) {
|
|
1506
|
+
return output === void 0 ? Array.from(coordinate) : writeScalarOutput(coordinate, output, { x: coordinate[0], y: coordinate[1], z: coordinate[2] ?? 0 }, coordinate.length);
|
|
1507
|
+
}
|
|
1508
|
+
return output === void 0 ? geographic.project(wgs842) : geographic.projectTo(wgs842, output);
|
|
1509
|
+
}
|
|
1510
|
+
return normalize;
|
|
1511
|
+
}
|
|
1512
|
+
function createConversion(allocate, write) {
|
|
1513
|
+
function convert(coordinate, output) {
|
|
1514
|
+
return output === void 0 ? allocate(Array.isArray(coordinate) ? coordinate : Array.from(coordinate)) : write(coordinate, output);
|
|
1515
|
+
}
|
|
1516
|
+
return convert;
|
|
1517
|
+
}
|
|
1518
|
+
function createNormalization(normalizeDomain) {
|
|
1519
|
+
function normalize(coordinate, output) {
|
|
1520
|
+
const result = output ?? new Array(coordinate.length);
|
|
1521
|
+
validateScalarOutput(coordinate, result, coordinate.length);
|
|
1522
|
+
const longitude = coordinate[0], latitude = coordinate[1], altitude = coordinate[2] ?? 0;
|
|
1523
|
+
if (coordinate.length < 2 || !Number.isFinite(longitude) || !Number.isFinite(latitude) || !Number.isFinite(altitude))
|
|
1524
|
+
throw new Error("Normalization requires finite longitude, latitude and altitude");
|
|
1525
|
+
const point = { x: longitude, y: latitude, z: altitude };
|
|
1526
|
+
normalizeDomain == null ? void 0 : normalizeDomain(point);
|
|
1527
|
+
return writeScalarOutput(coordinate, result, point, coordinate.length);
|
|
1528
|
+
}
|
|
1529
|
+
return normalize;
|
|
1530
|
+
}
|
|
1531
|
+
function adaptBounds(profile, crs, axis) {
|
|
1532
|
+
const horizontalUnit = crs.kind === "geographic" ? crs.angularUnit : crs.toMeter;
|
|
1533
|
+
const units = [
|
|
1534
|
+
horizontalUnit,
|
|
1535
|
+
horizontalUnit,
|
|
1536
|
+
crs.kind === "geocentric" ? crs.toMeter : crs.verticalUnit
|
|
1537
|
+
];
|
|
1538
|
+
const bounds = profile.bounds;
|
|
1539
|
+
const limits = [...axis].map((direction) => {
|
|
1540
|
+
const index = /[ew]/.test(direction) ? 0 : /[ns]/.test(direction) ? 1 : 2;
|
|
1541
|
+
const minimum = bounds[0][index] / units[index];
|
|
1542
|
+
const maximum = bounds[1][index] / units[index];
|
|
1543
|
+
return /[wsd]/.test(direction) ? [-maximum, -minimum] : [minimum, maximum];
|
|
1544
|
+
});
|
|
1545
|
+
return [
|
|
1546
|
+
[limits[0][0], limits[1][0], limits[2][0]],
|
|
1547
|
+
[limits[0][1], limits[1][1], limits[2][1]]
|
|
1548
|
+
];
|
|
1549
|
+
}
|
|
1550
|
+
function getUnit(factor, angular) {
|
|
1551
|
+
const units = angular ? ANGULAR_UNITS : LINEAR_UNITS;
|
|
1552
|
+
const name = Object.keys(units).find((candidate) => units[candidate] === factor) || "custom";
|
|
1553
|
+
return angular ? { name, degreesPerUnit: factor / ANGULAR_UNITS["degrees"] } : { name, metersPerUnit: factor };
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
// dist/projection/experimental/rendering-profile/geographic-bounds.js
|
|
1557
|
+
var RADIANS2 = Math.PI / 180;
|
|
1558
|
+
function createAngularRanges(west, south, east, north) {
|
|
1559
|
+
return [
|
|
1560
|
+
[west, south],
|
|
1561
|
+
[east, north]
|
|
1562
|
+
];
|
|
1563
|
+
}
|
|
1564
|
+
function normalizeLongitude(longitude) {
|
|
1565
|
+
return longitude >= -180 && longitude < 180 ? longitude : ((longitude + 180) % 360 + 360) % 360 - 180;
|
|
1566
|
+
}
|
|
1567
|
+
function getLongitudeSpan(bounds) {
|
|
1568
|
+
const span = bounds[2] - bounds[0];
|
|
1569
|
+
return span < 0 ? span + 360 : span;
|
|
1570
|
+
}
|
|
1571
|
+
function containsGeographicPoint(bounds, point) {
|
|
1572
|
+
const [west, south, east, north] = bounds;
|
|
1573
|
+
const longitude = normalizeLongitude(point[0]);
|
|
1574
|
+
return point[1] >= south && point[1] <= north && (west <= east ? longitude >= west && longitude <= east || longitude === -180 && east === 180 : longitude >= west || longitude <= east);
|
|
1575
|
+
}
|
|
1576
|
+
function clampGeographicPoint(bounds, point) {
|
|
1577
|
+
let longitude = normalizeLongitude(point[0]);
|
|
1578
|
+
const latitude = Math.max(bounds[1], Math.min(bounds[3], point[1]));
|
|
1579
|
+
if (!containsGeographicPoint(bounds, [longitude, latitude])) {
|
|
1580
|
+
const westDistance = Math.abs(normalizeLongitude(longitude - bounds[0]));
|
|
1581
|
+
const eastDistance = Math.abs(normalizeLongitude(longitude - bounds[2]));
|
|
1582
|
+
longitude = westDistance <= eastDistance ? bounds[0] : bounds[2];
|
|
1583
|
+
}
|
|
1584
|
+
return [longitude, latitude];
|
|
1585
|
+
}
|
|
1586
|
+
function getAngularRanges(bounds, primeMeridian2 = 0, origin = 0) {
|
|
1587
|
+
const width = getLongitudeSpan(bounds);
|
|
1588
|
+
const west = bounds[0] * RADIANS2 - primeMeridian2;
|
|
1589
|
+
const middle = west + width * RADIANS2 / 2;
|
|
1590
|
+
const shift = Math.round((origin - middle) / (2 * Math.PI)) * 2 * Math.PI;
|
|
1591
|
+
return createAngularRanges(width === 360 ? origin - Math.PI : west + shift, bounds[1] * RADIANS2, width === 360 ? origin + Math.PI : west + shift + width * RADIANS2, bounds[3] * RADIANS2);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
// dist/projection/experimental/rendering-profile/rendering-profile.js
|
|
1595
|
+
function resolveRenderingProfile(getRenderingProfile, coverage) {
|
|
1596
|
+
if (coverage) {
|
|
1597
|
+
try {
|
|
1598
|
+
const profile2 = getRenderingProfile(coverage);
|
|
1599
|
+
return resolveBounds(profile2);
|
|
1600
|
+
} catch {
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
const profile = getRenderingProfile();
|
|
1604
|
+
return resolveBounds(profile);
|
|
1605
|
+
}
|
|
1606
|
+
function resolveBounds(profile) {
|
|
1607
|
+
var _a2;
|
|
1608
|
+
const bounds = profile.bounds;
|
|
1609
|
+
if (bounds.some((corner) => corner.some((value) => !Number.isFinite(value))))
|
|
1610
|
+
throw new Error("Projection rendering bounds must be finite");
|
|
1611
|
+
return { bounds, normalize: (_a2 = profile.normalize) == null ? void 0 : _a2.bind(profile) };
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
// dist/projection/experimental/rendering-profile/identity-rendering-profile.js
|
|
1615
|
+
function getIdentityRenderingProfile() {
|
|
1616
|
+
return {
|
|
1617
|
+
bounds: [
|
|
1618
|
+
[-1, -1, 0],
|
|
1619
|
+
[1, 1, 0]
|
|
1620
|
+
]
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
// dist/projection/experimental/projection-scratch.js
|
|
1625
|
+
function createPoint() {
|
|
1626
|
+
return { x: 0, y: 0, z: 0 };
|
|
1627
|
+
}
|
|
1628
|
+
var ProjectionScratch = class {
|
|
1629
|
+
constructor() {
|
|
1630
|
+
this.point = createPoint();
|
|
1631
|
+
this.points = [this.point];
|
|
1632
|
+
this.active = 0;
|
|
1633
|
+
}
|
|
1634
|
+
get depth() {
|
|
1635
|
+
return this.active;
|
|
1636
|
+
}
|
|
1637
|
+
acquire() {
|
|
1638
|
+
var _a2;
|
|
1639
|
+
const index = this.active++;
|
|
1640
|
+
(_a2 = this.points)[index] || (_a2[index] = createPoint());
|
|
1641
|
+
return this.points[index];
|
|
1642
|
+
}
|
|
1643
|
+
release(point) {
|
|
1644
|
+
if (this.active > 0 && this.points[this.active - 1] === point)
|
|
1645
|
+
this.active--;
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
// dist/projection/experimental/mutable-projection.js
|
|
1650
|
+
function projectionOperation(implementation, inverse, geocentric = false) {
|
|
1651
|
+
const mutable = inverse ? implementation.inverseInPlace : implementation.forwardInPlace;
|
|
1652
|
+
if (mutable)
|
|
1653
|
+
return mutable.bind(implementation);
|
|
1654
|
+
if (geocentric) {
|
|
1655
|
+
const operation2 = inverse ? implementation.inverse3D : implementation.forward3D;
|
|
1656
|
+
return (point) => {
|
|
1657
|
+
const output = operation2.call(implementation, [point.x, point.y, point.z]);
|
|
1658
|
+
point.x = output[0];
|
|
1659
|
+
point.y = output[1];
|
|
1660
|
+
point.z = output[2];
|
|
1661
|
+
};
|
|
1662
|
+
}
|
|
1663
|
+
const operation = inverse ? implementation.inverse : implementation.forward;
|
|
1664
|
+
return (point) => {
|
|
1665
|
+
const output = operation.call(implementation, point.x, point.y);
|
|
1666
|
+
point.x = output[0];
|
|
1667
|
+
point.y = output[1];
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
// dist/projection/experimental/typescript-projection.js
|
|
1672
|
+
init_normalize();
|
|
1673
|
+
init_types();
|
|
1674
|
+
|
|
1675
|
+
// dist/projection/experimental/datum.js
|
|
1676
|
+
var import_core = require("@math.gl/core");
|
|
1677
|
+
var ARC_SECOND = Math.PI / (180 * 3600);
|
|
1678
|
+
var WGS842 = {
|
|
1679
|
+
ellipsoid: {
|
|
1680
|
+
semiMajorAxis: 6378137,
|
|
1681
|
+
semiMinorAxis: 6356752314245179e-9,
|
|
1682
|
+
eccentricitySquared: 0.0066943799901413165
|
|
1683
|
+
},
|
|
1684
|
+
towgs84: [0, 0, 0]
|
|
1685
|
+
};
|
|
1686
|
+
function geodeticToGeocentricInPlace(point, ellipsoid) {
|
|
1687
|
+
if (Math.abs(point.y) > Math.PI / 2)
|
|
1688
|
+
throw new Error("Latitude outside geocentric domain");
|
|
1689
|
+
if (!(0, import_core.spheroidToCartesian)(point, ellipsoid))
|
|
1690
|
+
throw new Error("Geocentric coordinate must be finite");
|
|
1691
|
+
}
|
|
1692
|
+
function geocentricToGeodeticInPlace(point, ellipsoid) {
|
|
1693
|
+
const x = point.x, y = point.y, z = point.z;
|
|
1694
|
+
const { semiMajorAxis: a, semiMinorAxis: b, eccentricitySquared: es } = ellipsoid;
|
|
1695
|
+
if (x === 0 && y === 0 && z === 0)
|
|
1696
|
+
throw new Error("Geodetic coordinates are undefined at the Earth center");
|
|
1697
|
+
if (es !== 0 && Math.abs(x) < 1e-12 * a && Math.abs(y) < 1e-12 * a && Math.hypot(x, y) < 1e-12 * a) {
|
|
1698
|
+
if (!Number.isFinite(Math.hypot(x, y, z)))
|
|
1699
|
+
throw new Error("Geocentric radius must be finite");
|
|
1700
|
+
point.x = 0;
|
|
1701
|
+
point.y = Math.sign(z) * Math.PI / 2;
|
|
1702
|
+
point.z = Math.abs(z) - b;
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
if (!(0, import_core.cartesianToSpheroid)(point, ellipsoid)) {
|
|
1706
|
+
if (!Number.isFinite(Math.hypot(x, y, z)))
|
|
1707
|
+
throw new Error("Geocentric radius must be finite");
|
|
1708
|
+
throw new Error("Geocentric inverse did not converge");
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
function createHelmert(values, inverse) {
|
|
1712
|
+
const dx = values[0], dy = values[1], dz = values[2];
|
|
1713
|
+
const rx = (values[3] || 0) * ARC_SECOND, ry = (values[4] || 0) * ARC_SECOND, rz = (values[5] || 0) * ARC_SECOND;
|
|
1714
|
+
const scale = 1 + (values[6] || 0) / 1e6;
|
|
1715
|
+
return inverse ? (point) => {
|
|
1716
|
+
const x = (point.x - dx) / scale, y = (point.y - dy) / scale, z = (point.z - dz) / scale;
|
|
1717
|
+
point.x = x + rz * y - ry * z;
|
|
1718
|
+
point.y = -rz * x + y + rx * z;
|
|
1719
|
+
point.z = ry * x - rx * y + z;
|
|
1720
|
+
} : (point) => {
|
|
1721
|
+
const x = point.x, y = point.y, z = point.z;
|
|
1722
|
+
point.x = scale * (x - rz * y + ry * z) + dx;
|
|
1723
|
+
point.y = scale * (rz * x + y - rx * z) + dy;
|
|
1724
|
+
point.z = scale * (-ry * x + rx * y + z) + dz;
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
function shifted(datum) {
|
|
1728
|
+
var _a2;
|
|
1729
|
+
return Boolean((_a2 = datum.towgs84) == null ? void 0 : _a2.some((value) => value !== 0));
|
|
1730
|
+
}
|
|
1731
|
+
function createDatumTransform(source, destination) {
|
|
1732
|
+
if (!source.towgs84 || !destination.towgs84)
|
|
1733
|
+
return void 0;
|
|
1734
|
+
if (source.grids || destination.grids) {
|
|
1735
|
+
if (source.grids && destination.grids && source.ellipsoid.semiMajorAxis === destination.ellipsoid.semiMajorAxis && source.ellipsoid.eccentricitySquared === destination.ellipsoid.eccentricitySquared && source.grids.length === destination.grids.length && source.grids.every((entry, i) => entry.name === destination.grids[i].name && entry.optional === destination.grids[i].optional && entry.grid === destination.grids[i].grid))
|
|
1736
|
+
return void 0;
|
|
1737
|
+
const middle = createDatumTransform(source.grids ? WGS842 : source, destination.grids ? WGS842 : destination);
|
|
1738
|
+
return (point) => {
|
|
1739
|
+
if (source.grids)
|
|
1740
|
+
applyDatumGrids(point, source, false);
|
|
1741
|
+
middle == null ? void 0 : middle(point);
|
|
1742
|
+
if (destination.grids)
|
|
1743
|
+
applyDatumGrids(point, destination, true);
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
if (shifted(source) || shifted(destination)) {
|
|
1747
|
+
const first = convertDatum(source, WGS842), second = convertDatum(WGS842, destination);
|
|
1748
|
+
return (point) => {
|
|
1749
|
+
first == null ? void 0 : first(point);
|
|
1750
|
+
second == null ? void 0 : second(point);
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
return convertDatum(source, destination);
|
|
1754
|
+
}
|
|
1755
|
+
function convertDatum(from, to) {
|
|
1756
|
+
if (!from.towgs84 || !to.towgs84)
|
|
1757
|
+
return void 0;
|
|
1758
|
+
const a = from.ellipsoid, b = to.ellipsoid;
|
|
1759
|
+
let sameParameters = true;
|
|
1760
|
+
for (let i = 0; i < 7; i++)
|
|
1761
|
+
if ((from.towgs84[i] || 0) !== (to.towgs84[i] || 0))
|
|
1762
|
+
sameParameters = false;
|
|
1763
|
+
if (a.semiMajorAxis === b.semiMajorAxis && Math.abs(a.eccentricitySquared - b.eccentricitySquared) <= 5e-11 && sameParameters)
|
|
1764
|
+
return void 0;
|
|
1765
|
+
const sourceShift = shifted(from) ? createHelmert(from.towgs84, false) : void 0, targetShift = shifted(to) ? createHelmert(to.towgs84, true) : void 0;
|
|
1766
|
+
return (point) => {
|
|
1767
|
+
geodeticToGeocentricInPlace(point, a);
|
|
1768
|
+
sourceShift == null ? void 0 : sourceShift(point);
|
|
1769
|
+
targetShift == null ? void 0 : targetShift(point);
|
|
1770
|
+
geocentricToGeodeticInPlace(point, b);
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
function applyDatumGrids(point, datum, inverse) {
|
|
1774
|
+
for (const reference of datum.grids) {
|
|
1775
|
+
if (reference.name === "null")
|
|
1776
|
+
return;
|
|
1777
|
+
if (!reference.grid) {
|
|
1778
|
+
if (reference.optional)
|
|
1779
|
+
continue;
|
|
1780
|
+
throw new Error("Required datum grid is not registered: " + reference.name);
|
|
1781
|
+
}
|
|
1782
|
+
let found = false;
|
|
1783
|
+
if (reference.grid.shiftInPlace)
|
|
1784
|
+
found = reference.grid.shiftInPlace(point, inverse);
|
|
1785
|
+
else {
|
|
1786
|
+
const output = reference.grid.shift(point.x, point.y, inverse);
|
|
1787
|
+
if (output) {
|
|
1788
|
+
point.x = output[0];
|
|
1789
|
+
point.y = output[1];
|
|
1790
|
+
found = true;
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
if (found) {
|
|
1794
|
+
if (!Number.isFinite(point.x) || !Number.isFinite(point.y) || Math.abs(point.y) > Math.PI / 2)
|
|
1795
|
+
throw new Error("Datum grid produced a coordinate outside the geographic domain");
|
|
1796
|
+
return;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
throw new Error("No datum grid covers coordinate: " + datum.grids.map((grid) => grid.name).join(","));
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
// dist/projection/experimental/typescript-projection.js
|
|
1803
|
+
init_parameters();
|
|
1804
|
+
|
|
1805
|
+
// dist/projection/experimental/rendering-profile/geographic-rendering-profile.js
|
|
1806
|
+
init_parameters();
|
|
1807
|
+
|
|
1808
|
+
// dist/projection/experimental/rendering-profile/rectangular-rendering-profile.js
|
|
1809
|
+
function normalizeCoverage(point, coverage, center = 0, over = false) {
|
|
1810
|
+
const span = getLongitudeSpan(coverage);
|
|
1811
|
+
const west = span === 360 ? center - 180 : coverage[0] + Math.round((center - coverage[0] - span / 2) / 360) * 360;
|
|
1812
|
+
const east = west + span;
|
|
1813
|
+
if (over) {
|
|
1814
|
+
point.x = Math.max(west, Math.min(east, point.x));
|
|
1815
|
+
point.y = Math.max(coverage[1], Math.min(coverage[3], point.y));
|
|
1816
|
+
return;
|
|
1817
|
+
}
|
|
1818
|
+
const best = clampGeographicPoint(coverage, [point.x, point.y]);
|
|
1819
|
+
let longitude = best[0];
|
|
1820
|
+
if (best[0] === normalizeLongitude(point.x) && point.x >= west && point.x <= east)
|
|
1821
|
+
longitude = point.x;
|
|
1822
|
+
else if (longitude < west || longitude > east)
|
|
1823
|
+
longitude += Math.round(((west + east) / 2 - longitude) / 360) * 360;
|
|
1824
|
+
const offset = longitude - center;
|
|
1825
|
+
point.x = Math.abs(offset) <= 180 ? longitude : center + normalizeLongitude(offset);
|
|
1826
|
+
point.y = best[1];
|
|
1827
|
+
}
|
|
1828
|
+
function createRectangleRenderingProfile(resolveBounds2, coverage, origin = 0, primeMeridian2 = 0, over = false) {
|
|
1829
|
+
const center = (origin + primeMeridian2) * 180 / Math.PI;
|
|
1830
|
+
return {
|
|
1831
|
+
get bounds() {
|
|
1832
|
+
return resolveBounds2(getAngularRanges(coverage, primeMeridian2, origin));
|
|
1833
|
+
},
|
|
1834
|
+
normalize(point) {
|
|
1835
|
+
normalizeCoverage(point, coverage, center, over);
|
|
1836
|
+
}
|
|
1837
|
+
};
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
// dist/projection/experimental/rendering-profile/rendering-bounds.js
|
|
1841
|
+
init_parameters();
|
|
1842
|
+
function longitudeRange(parameters, origin, over = false) {
|
|
1843
|
+
const low = parameters[0][0] - origin, high = parameters[1][0] - origin;
|
|
1844
|
+
if (over)
|
|
1845
|
+
return [low, high];
|
|
1846
|
+
const span = high - low;
|
|
1847
|
+
if (span >= 2 * Math.PI - 1e-12)
|
|
1848
|
+
return [-Math.PI, Math.PI];
|
|
1849
|
+
let west = wrapLongitude(low);
|
|
1850
|
+
if (span > 0 && Math.abs(west - Math.PI) < 1e-12)
|
|
1851
|
+
west = -Math.PI;
|
|
1852
|
+
const east = west + span;
|
|
1853
|
+
return east > Math.PI + 1e-12 ? [-Math.PI, Math.PI] : [west, Math.min(east, Math.PI)];
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
// dist/projection/experimental/rendering-profile/geographic-rendering-profile.js
|
|
1857
|
+
function createGeographicProfile(parameters, primeMeridian2 = 0) {
|
|
1858
|
+
const center = numberParameter(parameters, "lon_wrap", 0) * DEGREES_TO_RADIANS;
|
|
1859
|
+
return (coverage) => createRectangleRenderingProfile((ranges) => {
|
|
1860
|
+
const longitude = longitudeRange(ranges, center);
|
|
1861
|
+
return [
|
|
1862
|
+
[center + longitude[0], ranges[0][1], 0],
|
|
1863
|
+
[center + longitude[1], ranges[1][1], 0]
|
|
1864
|
+
];
|
|
1865
|
+
}, coverage ?? [-180, -90, 180, 90], center, primeMeridian2);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
// dist/projection/experimental/vertical-datum.js
|
|
1869
|
+
init_types();
|
|
1870
|
+
function compileVerticalGrid(names, grids = {}) {
|
|
1871
|
+
if (names === void 0)
|
|
1872
|
+
return void 0;
|
|
1873
|
+
const entries = [];
|
|
1874
|
+
for (const entry of names.split(",")) {
|
|
1875
|
+
const optional = entry.startsWith("@");
|
|
1876
|
+
const name = optional ? entry.slice(1) : entry;
|
|
1877
|
+
if (!name || /\s/.test(name))
|
|
1878
|
+
throw new Error("Invalid vertical grid name");
|
|
1879
|
+
if (name === "null") {
|
|
1880
|
+
entries.push(null);
|
|
1881
|
+
break;
|
|
1882
|
+
}
|
|
1883
|
+
const grid = Object.prototype.hasOwnProperty.call(grids, name) ? grids[name] : void 0;
|
|
1884
|
+
if (grid) {
|
|
1885
|
+
if (typeof grid.getOffset !== "function")
|
|
1886
|
+
throw new Error("Invalid vertical grid: " + name);
|
|
1887
|
+
entries.push(grid.getOffset.bind(grid));
|
|
1888
|
+
} else if (!optional)
|
|
1889
|
+
unsupportedStage("Required vertical grid is not registered: " + name);
|
|
1890
|
+
}
|
|
1891
|
+
return (longitude, latitude) => {
|
|
1892
|
+
for (const sample of entries) {
|
|
1893
|
+
if (!sample)
|
|
1894
|
+
return 0;
|
|
1895
|
+
const offset = sample(longitude, latitude);
|
|
1896
|
+
if (offset === void 0)
|
|
1897
|
+
continue;
|
|
1898
|
+
if (!Number.isFinite(offset))
|
|
1899
|
+
throw new Error("Vertical grid returned a non-finite offset");
|
|
1900
|
+
return offset;
|
|
1901
|
+
}
|
|
1902
|
+
throw new Error("No vertical grid covers this coordinate");
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
// dist/projection/experimental/typescript-projection.js
|
|
1907
|
+
var ProjectionTransform = class _ProjectionTransform {
|
|
1908
|
+
/** Resolve required descriptors once, then return an ordinary synchronous instance. */
|
|
1909
|
+
static async create(options = {}) {
|
|
1910
|
+
const projections = await Promise.all(requiredProjections(options).map(preloadProjection));
|
|
1911
|
+
return new _ProjectionTransform({ ...options, projections });
|
|
1912
|
+
}
|
|
1913
|
+
get targetProfile() {
|
|
1914
|
+
return this.getTargetRenderingProfile(this.targetCoverage);
|
|
1915
|
+
}
|
|
1916
|
+
/** Resolve target rendering policy independently from coordinate conversion. @internal */
|
|
1917
|
+
getTargetRenderingProfile(coverage) {
|
|
1918
|
+
return this.targetRenderingProfile && resolveRenderingProfile(this.targetRenderingProfile, coverage);
|
|
1919
|
+
}
|
|
1920
|
+
constructor(options = {}) {
|
|
1921
|
+
var _a2, _b, _c;
|
|
1922
|
+
this.coordinateScratch = new ProjectionScratch();
|
|
1923
|
+
this.targetLongitudeOrigin = 0;
|
|
1924
|
+
const registrations = options.projections || [];
|
|
1925
|
+
const plugins = registry(registrations);
|
|
1926
|
+
if (registrations.some((projection) => !("create" in projection))) {
|
|
1927
|
+
const from = normalizeCRS(options.from ?? "WGS84", options);
|
|
1928
|
+
const to = normalizeCRS(options.to ?? "WGS84", options);
|
|
1929
|
+
this.lossy = from.lossy || to.lossy;
|
|
1930
|
+
this.deferred = { options: { ...options, projections: [...registrations] } };
|
|
1931
|
+
} else {
|
|
1932
|
+
const eager = options;
|
|
1933
|
+
const eagerPlugins = plugins;
|
|
1934
|
+
const from = compileCRS(eager.from ?? "WGS84", eagerPlugins, eager);
|
|
1935
|
+
const to = compileCRS(eager.to ?? "WGS84", eagerPlugins, eager);
|
|
1936
|
+
this.targetRenderingProfile = ((_b = (_a2 = to.implementation) == null ? void 0 : _a2.getRenderingProfile) == null ? void 0 : _b.bind(to.implementation)) ?? (to.kind === "geographic" ? createGeographicProfile(to.parameters, to.primeMeridian) : to.kind === "identity" ? getIdentityRenderingProfile : void 0);
|
|
1937
|
+
this.targetCoverage = to.areaOfUse;
|
|
1938
|
+
this.targetLongitudeOrigin = ((_c = to.implementation) == null ? void 0 : _c.longitudeOrigin) ?? (to.kind === "geographic" ? to.longitudeWrap ?? 0 : 0);
|
|
1939
|
+
this.lossy = from.lossy || to.lossy;
|
|
1940
|
+
if (this.lossy && (from.kind === "geocentric" || to.kind === "geocentric"))
|
|
1941
|
+
unsupportedStage("Horizontal extraction cannot supply ellipsoidal height for geocentric coordinates");
|
|
1942
|
+
if (this.lossy && (from.verticalGrid || to.verticalGrid))
|
|
1943
|
+
unsupportedStage("Horizontal extraction cannot be combined with vertical grids");
|
|
1944
|
+
this.forwardTransform = compileTransform(from, to, Boolean(options.enforceAxis));
|
|
1945
|
+
this.inverseTransform = compileTransform(to, from, Boolean(options.enforceAxis));
|
|
1946
|
+
}
|
|
1947
|
+
this.project = this.project.bind(this);
|
|
1948
|
+
this.unproject = this.unproject.bind(this);
|
|
1949
|
+
this.projectTo = this.projectTo.bind(this);
|
|
1950
|
+
this.unprojectTo = this.unprojectTo.bind(this);
|
|
1951
|
+
this.projectToSync = this.projectToSync.bind(this);
|
|
1952
|
+
this.unprojectToSync = this.unprojectToSync.bind(this);
|
|
1953
|
+
this.projectFlat = this.projectFlat.bind(this);
|
|
1954
|
+
this.unprojectFlat = this.unprojectFlat.bind(this);
|
|
1955
|
+
this.projectSync = this.projectSync.bind(this);
|
|
1956
|
+
this.unprojectSync = this.unprojectSync.bind(this);
|
|
1957
|
+
this.projectFlatSync = this.projectFlatSync.bind(this);
|
|
1958
|
+
this.unprojectFlatSync = this.unprojectFlatSync.bind(this);
|
|
1959
|
+
}
|
|
1960
|
+
load() {
|
|
1961
|
+
const state = this.deferred;
|
|
1962
|
+
if (!state)
|
|
1963
|
+
return Promise.resolve(this);
|
|
1964
|
+
if (state.implementation)
|
|
1965
|
+
return Promise.resolve(state.implementation);
|
|
1966
|
+
state.pending || (state.pending = _ProjectionTransform.create(state.options).then((projection) => {
|
|
1967
|
+
state.implementation = projection;
|
|
1968
|
+
return projection;
|
|
1969
|
+
}).catch((error) => {
|
|
1970
|
+
state.pending = void 0;
|
|
1971
|
+
throw error;
|
|
1972
|
+
}));
|
|
1973
|
+
return state.pending;
|
|
1974
|
+
}
|
|
1975
|
+
loadSync() {
|
|
1976
|
+
const state = this.deferred;
|
|
1977
|
+
if (!state)
|
|
1978
|
+
return this;
|
|
1979
|
+
if (!state.implementation) {
|
|
1980
|
+
const projections = requiredProjections(state.options).map((descriptor) => {
|
|
1981
|
+
const plugin = getLoadedProjection(descriptor);
|
|
1982
|
+
if (!plugin)
|
|
1983
|
+
throw new Error("Projection is not preloaded: " + descriptor.name + ". Call preload() first.");
|
|
1984
|
+
return plugin;
|
|
1985
|
+
});
|
|
1986
|
+
state.implementation = new _ProjectionTransform({ ...state.options, projections });
|
|
1987
|
+
}
|
|
1988
|
+
return state.implementation;
|
|
1989
|
+
}
|
|
1990
|
+
/** Synchronous variants never import algorithms; descriptors must be preloaded. */
|
|
1991
|
+
projectSync(coordinate) {
|
|
1992
|
+
return this.deferred ? this.loadSync().project(coordinate) : transformScalar(coordinate, this.forwardTransform, this.coordinateScratch);
|
|
1993
|
+
}
|
|
1994
|
+
unprojectSync(coordinate) {
|
|
1995
|
+
return this.deferred ? this.loadSync().unproject(coordinate) : transformScalar(coordinate, this.inverseTransform, this.coordinateScratch);
|
|
1996
|
+
}
|
|
1997
|
+
projectFlatSync(coordinates, dimension = 2) {
|
|
1998
|
+
return this.deferred ? this.loadSync().projectFlat(coordinates, dimension) : transformInPlace(coordinates, dimension, this.forwardTransform, this.coordinateScratch);
|
|
1999
|
+
}
|
|
2000
|
+
unprojectFlatSync(coordinates, dimension = 2) {
|
|
2001
|
+
return this.deferred ? this.loadSync().unprojectFlat(coordinates, dimension) : transformInPlace(coordinates, dimension, this.inverseTransform, this.coordinateScratch);
|
|
2002
|
+
}
|
|
2003
|
+
/** Optional warm-up. Coordinate methods also load automatically on first use. */
|
|
2004
|
+
async preload() {
|
|
2005
|
+
await this.load();
|
|
2006
|
+
}
|
|
2007
|
+
/** Eager plugins return arrays; descriptor-backed instances return promises. */
|
|
2008
|
+
project(coordinate) {
|
|
2009
|
+
const result = this.deferred ? this.projectLoaded(coordinate, false) : transformScalar(coordinate, this.forwardTransform, this.coordinateScratch);
|
|
2010
|
+
return result;
|
|
2011
|
+
}
|
|
2012
|
+
unproject(coordinate) {
|
|
2013
|
+
const result = this.deferred ? this.projectLoaded(coordinate, true) : transformScalar(coordinate, this.inverseTransform, this.coordinateScratch);
|
|
2014
|
+
return result;
|
|
2015
|
+
}
|
|
2016
|
+
/** Write one coordinate into caller-owned storage; return that same output. */
|
|
2017
|
+
projectTo(coordinate, output) {
|
|
2018
|
+
return this.deferred ? this.projectToLoaded(coordinate, output, false) : this.projectToSync(coordinate, output);
|
|
2019
|
+
}
|
|
2020
|
+
unprojectTo(coordinate, output) {
|
|
2021
|
+
return this.deferred ? this.projectToLoaded(coordinate, output, true) : this.unprojectToSync(coordinate, output);
|
|
2022
|
+
}
|
|
2023
|
+
projectToSync(coordinate, output) {
|
|
2024
|
+
if (this.deferred)
|
|
2025
|
+
return this.loadSync().projectTo(coordinate, output);
|
|
2026
|
+
validateScalarOutput(coordinate, output, Math.max(coordinate.length, this.forwardTransform.geocentricOutput ? 3 : 2));
|
|
2027
|
+
return transformScalar(coordinate, this.forwardTransform, this.coordinateScratch, output);
|
|
2028
|
+
}
|
|
2029
|
+
unprojectToSync(coordinate, output) {
|
|
2030
|
+
if (this.deferred)
|
|
2031
|
+
return this.loadSync().unprojectTo(coordinate, output);
|
|
2032
|
+
validateScalarOutput(coordinate, output, Math.max(coordinate.length, this.inverseTransform.geocentricOutput ? 3 : 2));
|
|
2033
|
+
return transformScalar(coordinate, this.inverseTransform, this.coordinateScratch, output);
|
|
2034
|
+
}
|
|
2035
|
+
projectToLoaded(coordinate, output, inverse) {
|
|
2036
|
+
validateScalarOutput(coordinate, output, coordinate.length);
|
|
2037
|
+
const input = coordinate.slice();
|
|
2038
|
+
return this.load().then((projection) => inverse ? projection.unprojectTo(input, output) : projection.projectTo(input, output));
|
|
2039
|
+
}
|
|
2040
|
+
projectLoaded(coordinate, inverse) {
|
|
2041
|
+
const input = coordinate.slice();
|
|
2042
|
+
return this.load().then((projection) => inverse ? projection.unproject(input) : projection.project(input));
|
|
2043
|
+
}
|
|
2044
|
+
/** In-place; descriptor callers must await completion before reusing the buffer. */
|
|
2045
|
+
projectFlat(coordinates, dimension = 2) {
|
|
2046
|
+
const result = this.deferred ? this.load().then((projection) => projection.projectFlat(coordinates, dimension)) : transformInPlace(coordinates, dimension, this.forwardTransform, this.coordinateScratch);
|
|
2047
|
+
return result;
|
|
2048
|
+
}
|
|
2049
|
+
unprojectFlat(coordinates, dimension = 2) {
|
|
2050
|
+
const result = this.deferred ? this.load().then((projection) => projection.unprojectFlat(coordinates, dimension)) : transformInPlace(coordinates, dimension, this.inverseTransform, this.coordinateScratch);
|
|
2051
|
+
return result;
|
|
2052
|
+
}
|
|
2053
|
+
};
|
|
2054
|
+
function requiredProjections(options) {
|
|
2055
|
+
const available = registry(options.projections || []);
|
|
2056
|
+
const required = /* @__PURE__ */ new Set();
|
|
2057
|
+
for (const definition of [options.from ?? "WGS84", options.to ?? "WGS84"]) {
|
|
2058
|
+
const crs = normalizeCRS(definition, options);
|
|
2059
|
+
if (["geographic", "identity"].includes(crs.kind))
|
|
2060
|
+
continue;
|
|
2061
|
+
const projection = available.get(pluginKey(crs.projection));
|
|
2062
|
+
if (!projection)
|
|
2063
|
+
throw new TypeScriptCRSError("missing-plugin", "Projection plugin is not registered: " + crs.projection);
|
|
2064
|
+
required.add(projection);
|
|
2065
|
+
}
|
|
2066
|
+
return [...required];
|
|
2067
|
+
}
|
|
2068
|
+
var pluginKey = (name) => name.toLowerCase().replace(/[\s_-]/g, "");
|
|
2069
|
+
function registry(projections) {
|
|
2070
|
+
const plugins = /* @__PURE__ */ new Map();
|
|
2071
|
+
for (const plugin of projections) {
|
|
2072
|
+
for (const name of new Set([plugin.name, ...plugin.aliases || []].map(pluginKey))) {
|
|
2073
|
+
if (!name || ["longlat", "latlong", "latlon", "lonlat", "identity"].includes(name) || plugins.has(name))
|
|
2074
|
+
throw new Error("Duplicate or reserved projection plugin: " + name);
|
|
2075
|
+
plugins.set(name, plugin);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
return plugins;
|
|
2079
|
+
}
|
|
2080
|
+
function compileCRS(definition, plugins, options) {
|
|
2081
|
+
var _a2;
|
|
2082
|
+
const crs = normalizeCRS(definition, options);
|
|
2083
|
+
const plugin = plugins.get(pluginKey(crs.projection));
|
|
2084
|
+
if (!["geographic", "identity"].includes(crs.kind) && !plugin)
|
|
2085
|
+
throw new TypeScriptCRSError("missing-plugin", "Projection plugin is not registered: " + crs.projection);
|
|
2086
|
+
const allowed = /* @__PURE__ */ new Set([...CORE_PARAMETERS, ...(plugin == null ? void 0 : plugin.parameters) || []]);
|
|
2087
|
+
for (const key2 of Object.keys(crs.parameters)) {
|
|
2088
|
+
if (!allowed.has(key2))
|
|
2089
|
+
throw new TypeScriptCRSError("missing-transform-stage", "Unsupported PROJ parameter: +" + key2);
|
|
2090
|
+
const flag = CORE_FLAGS.includes(key2) || ((_a2 = plugin == null ? void 0 : plugin.flags) == null ? void 0 : _a2.includes(key2));
|
|
2091
|
+
if (flag && crs.parameters[key2] !== void 0)
|
|
2092
|
+
throw new Error("Expected a flag without a value: +" + key2);
|
|
2093
|
+
if (!flag && !crs.parameters[key2])
|
|
2094
|
+
throw new Error("PROJ parameter requires a value: +" + key2);
|
|
2095
|
+
}
|
|
2096
|
+
if (crs.parameters["type"] && crs.parameters["type"] !== "crs")
|
|
2097
|
+
throw new Error("Only +type=crs is supported");
|
|
2098
|
+
const parameters = pluginKey(crs.projection) === "fasttransversemercator" ? Object.freeze({ ...crs.parameters, approx: void 0 }) : crs.parameters;
|
|
2099
|
+
const implementation = plugin == null ? void 0 : plugin.create({
|
|
2100
|
+
...crs.ellipsoid,
|
|
2101
|
+
parameters,
|
|
2102
|
+
primeMeridian: crs.primeMeridian
|
|
2103
|
+
});
|
|
2104
|
+
if (crs.kind === "geocentric" && (!(implementation == null ? void 0 : implementation.forward3D) || !(implementation == null ? void 0 : implementation.inverse3D)))
|
|
2105
|
+
throw new Error("Geocentric plugin must implement 3D operations");
|
|
2106
|
+
const references = crs.datum.grids;
|
|
2107
|
+
const nullIndex = (references == null ? void 0 : references.findIndex((reference) => reference.name === "null")) ?? -1;
|
|
2108
|
+
const grids = references == null ? void 0 : references.slice(0, nullIndex < 0 ? void 0 : nullIndex + 1).map((reference) => {
|
|
2109
|
+
const grid = Object.prototype.hasOwnProperty.call(options.datumGrids || {}, reference.name) ? options.datumGrids[reference.name] : void 0;
|
|
2110
|
+
if (grid && typeof grid.shift !== "function")
|
|
2111
|
+
throw new Error("Invalid prepared datum grid: " + reference.name);
|
|
2112
|
+
return Object.freeze({ ...reference, grid });
|
|
2113
|
+
});
|
|
2114
|
+
for (const reference of grids || []) {
|
|
2115
|
+
if (reference.name === "null")
|
|
2116
|
+
break;
|
|
2117
|
+
if (!reference.optional && !reference.grid)
|
|
2118
|
+
unsupportedStage("Required datum grid is not registered: " + reference.name);
|
|
2119
|
+
}
|
|
2120
|
+
const datum = grids ? Object.freeze({ ...crs.datum, grids: Object.freeze(grids) }) : crs.datum;
|
|
2121
|
+
const verticalGrid = compileVerticalGrid(crs.parameters["geoidgrids"], options.verticalGrids);
|
|
2122
|
+
if (verticalGrid && (crs.kind === "geocentric" || crs.kind === "identity" || crs.lossy))
|
|
2123
|
+
unsupportedStage("Vertical grids require a non-lossy geographic or projected CRS");
|
|
2124
|
+
return { ...crs, datum, implementation, verticalGrid };
|
|
2125
|
+
}
|
|
2126
|
+
function finite(point) {
|
|
2127
|
+
return Number.isFinite(point.x) && Number.isFinite(point.y) && Number.isFinite(point.z);
|
|
2128
|
+
}
|
|
2129
|
+
function compileAxis(axis, inverse) {
|
|
2130
|
+
if (axis === "enu")
|
|
2131
|
+
return void 0;
|
|
2132
|
+
const indexes = [0, 0, 0], signs = [0, 0, 0];
|
|
2133
|
+
for (let i = 0; i < 3; i++) {
|
|
2134
|
+
const char = axis[i], component = "ew".includes(char) ? 0 : "ns".includes(char) ? 1 : 2;
|
|
2135
|
+
indexes[inverse ? i : component] = inverse ? component : i;
|
|
2136
|
+
signs[inverse ? i : component] = "wsd".includes(char) ? -1 : 1;
|
|
2137
|
+
}
|
|
2138
|
+
return (point) => {
|
|
2139
|
+
const x = point.x, y = point.y, z = point.z;
|
|
2140
|
+
point.x = signs[0] * (indexes[0] === 0 ? x : indexes[0] === 1 ? y : z);
|
|
2141
|
+
point.y = signs[1] * (indexes[1] === 0 ? x : indexes[1] === 1 ? y : z);
|
|
2142
|
+
point.z = signs[2] * (indexes[2] === 0 ? x : indexes[2] === 1 ? y : z);
|
|
2143
|
+
};
|
|
2144
|
+
}
|
|
2145
|
+
function compileTransform(from, to, enforceAxis) {
|
|
2146
|
+
var _a2, _b, _c, _d;
|
|
2147
|
+
const fromAxis = from.storedAxis || (enforceAxis ? from.axis : "enu");
|
|
2148
|
+
const toAxis = to.storedAxis || (enforceAxis ? to.axis : "enu");
|
|
2149
|
+
const inputAxis = compileAxis(fromAxis, false), outputAxis = compileAxis(toAxis, true);
|
|
2150
|
+
const source = from.implementation && projectionOperation(from.implementation, true, from.kind === "geocentric");
|
|
2151
|
+
const target = to.implementation && projectionOperation(to.implementation, false, to.kind === "geocentric");
|
|
2152
|
+
const datum = createDatumTransform(from.datum, to.datum);
|
|
2153
|
+
const horizontalOnly = from.lossy || to.lossy;
|
|
2154
|
+
const fromGeocentric = from.kind === "geocentric";
|
|
2155
|
+
const inputScale = from.kind === "geographic" ? from.angularUnit : from.toMeter;
|
|
2156
|
+
const outputScale = to.kind === "geographic" ? to.angularUnit : to.toMeter;
|
|
2157
|
+
const inputVerticalScale = fromGeocentric ? 1 : from.verticalUnit, outputVerticalScale = to.kind === "geocentric" ? outputScale : to.verticalUnit;
|
|
2158
|
+
const fromPrime = from.primeMeridian, toPrime = to.primeMeridian;
|
|
2159
|
+
const longitudeWrap = to.kind === "geographic" ? to.longitudeWrap : void 0;
|
|
2160
|
+
let flat;
|
|
2161
|
+
if (!datum && !from.verticalGrid && !to.verticalGrid && !horizontalOnly && !inputAxis && !outputAxis && !fromPrime && !toPrime && from.verticalUnit === 1 && to.verticalUnit === 1 && longitudeWrap === void 0) {
|
|
2162
|
+
const context = Object.freeze({ inputScale, outputScale });
|
|
2163
|
+
if (from.kind === "geographic" && to.kind === "projected")
|
|
2164
|
+
flat = (_b = (_a2 = to.implementation) == null ? void 0 : _a2.createForwardFlat) == null ? void 0 : _b.call(_a2, context);
|
|
2165
|
+
if (from.kind === "projected" && to.kind === "geographic")
|
|
2166
|
+
flat = (_d = (_c = from.implementation) == null ? void 0 : _c.createInverseFlat) == null ? void 0 : _d.call(_c, context);
|
|
2167
|
+
}
|
|
2168
|
+
return {
|
|
2169
|
+
flat,
|
|
2170
|
+
requiresInputZ: Boolean(from.verticalGrid || to.verticalGrid) || from.kind === "geocentric" || /[ud]/.test(fromAxis.slice(0, 2)) || /[ud]/.test(toAxis.slice(0, 2)),
|
|
2171
|
+
geocentricOutput: to.kind === "geocentric",
|
|
2172
|
+
run(point) {
|
|
2173
|
+
if (!finite(point))
|
|
2174
|
+
throw new Error("Coordinates must contain finite x, y and optional z values");
|
|
2175
|
+
inputAxis == null ? void 0 : inputAxis(point);
|
|
2176
|
+
const preservedHeight = point.z;
|
|
2177
|
+
if (horizontalOnly)
|
|
2178
|
+
point.z = 0;
|
|
2179
|
+
if (inputScale !== 1) {
|
|
2180
|
+
point.x *= inputScale;
|
|
2181
|
+
point.y *= inputScale;
|
|
2182
|
+
if (fromGeocentric)
|
|
2183
|
+
point.z *= inputScale;
|
|
2184
|
+
}
|
|
2185
|
+
source == null ? void 0 : source(point);
|
|
2186
|
+
if (inputVerticalScale !== 1)
|
|
2187
|
+
point.z *= inputVerticalScale;
|
|
2188
|
+
if (Math.abs(point.y) > Math.PI / 2 || !finite(point))
|
|
2189
|
+
throw new Error("Coordinate is outside the geographic domain");
|
|
2190
|
+
point.x += fromPrime;
|
|
2191
|
+
if (from.verticalGrid)
|
|
2192
|
+
point.z += from.verticalGrid(point.x, point.y);
|
|
2193
|
+
datum == null ? void 0 : datum(point);
|
|
2194
|
+
if (to.verticalGrid)
|
|
2195
|
+
point.z -= to.verticalGrid(point.x, point.y);
|
|
2196
|
+
point.x -= toPrime;
|
|
2197
|
+
if (longitudeWrap !== void 0)
|
|
2198
|
+
point.x = longitudeWrap + wrapLongitude(point.x - longitudeWrap);
|
|
2199
|
+
target == null ? void 0 : target(point);
|
|
2200
|
+
if (outputScale !== 1) {
|
|
2201
|
+
point.x /= outputScale;
|
|
2202
|
+
point.y /= outputScale;
|
|
2203
|
+
}
|
|
2204
|
+
if (outputVerticalScale !== 1)
|
|
2205
|
+
point.z /= outputVerticalScale;
|
|
2206
|
+
if (horizontalOnly)
|
|
2207
|
+
point.z = preservedHeight;
|
|
2208
|
+
outputAxis == null ? void 0 : outputAxis(point);
|
|
2209
|
+
if (!finite(point))
|
|
2210
|
+
throw new Error("Projection produced non-finite coordinates");
|
|
2211
|
+
}
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
function transformScalar(coordinate, operation, scratch, output) {
|
|
2215
|
+
if (coordinate.length < 2)
|
|
2216
|
+
throw new Error("Coordinates must contain finite x, y and optional z values");
|
|
2217
|
+
if (coordinate.length < 3 && operation.requiresInputZ)
|
|
2218
|
+
throw new Error("This transform requires three ordinates");
|
|
2219
|
+
const length = Math.max(coordinate.length, operation.geocentricOutput ? 3 : 2);
|
|
2220
|
+
const point = scratch.acquire();
|
|
2221
|
+
try {
|
|
2222
|
+
point.x = coordinate[0];
|
|
2223
|
+
point.y = coordinate[1];
|
|
2224
|
+
point.z = coordinate.length >= 3 ? coordinate[2] : 0;
|
|
2225
|
+
operation.run(point);
|
|
2226
|
+
if (output)
|
|
2227
|
+
return writeScalarOutput(coordinate, output, point, length);
|
|
2228
|
+
const result = coordinate.slice();
|
|
2229
|
+
result[0] = point.x;
|
|
2230
|
+
result[1] = point.y;
|
|
2231
|
+
if (coordinate.length >= 3 || operation.geocentricOutput)
|
|
2232
|
+
result[2] = point.z;
|
|
2233
|
+
return result;
|
|
2234
|
+
} finally {
|
|
2235
|
+
scratch.release(point);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
function transformInPlace(coordinates, dimension, operation, scratch) {
|
|
2239
|
+
if (!(coordinates instanceof Float32Array || coordinates instanceof Float64Array))
|
|
2240
|
+
throw new Error("In-place projection requires a Float32Array or Float64Array");
|
|
2241
|
+
if (!Number.isSafeInteger(dimension) || dimension < 2 || coordinates.length % dimension !== 0)
|
|
2242
|
+
throw new Error("Dimension must be an integer >= 2 and divide the typed array length");
|
|
2243
|
+
if (dimension < 3 && (operation.requiresInputZ || operation.geocentricOutput))
|
|
2244
|
+
throw new Error("This transform requires a dimension of at least 3");
|
|
2245
|
+
if (operation.flat) {
|
|
2246
|
+
operation.flat(coordinates, dimension);
|
|
2247
|
+
return coordinates;
|
|
2248
|
+
}
|
|
2249
|
+
const point = scratch.acquire();
|
|
2250
|
+
try {
|
|
2251
|
+
const float32 = coordinates instanceof Float32Array;
|
|
2252
|
+
for (let offset = 0; offset < coordinates.length; offset += dimension) {
|
|
2253
|
+
point.x = coordinates[offset];
|
|
2254
|
+
point.y = coordinates[offset + 1];
|
|
2255
|
+
point.z = dimension >= 3 ? coordinates[offset + 2] : 0;
|
|
2256
|
+
operation.run(point);
|
|
2257
|
+
if (float32 && (Math.abs(point.x) > 34028234663852886e22 || Math.abs(point.y) > 34028234663852886e22 || dimension >= 3 && Math.abs(point.z) > 34028234663852886e22))
|
|
2258
|
+
throw new Error("Projected coordinate exceeds Float32 range");
|
|
2259
|
+
coordinates[offset] = point.x;
|
|
2260
|
+
coordinates[offset + 1] = point.y;
|
|
2261
|
+
if (dimension >= 3)
|
|
2262
|
+
coordinates[offset + 2] = point.z;
|
|
2263
|
+
}
|
|
2264
|
+
return coordinates;
|
|
2265
|
+
} finally {
|
|
2266
|
+
scratch.release(point);
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
// dist/projection/experimental/engine-options.js
|
|
2271
|
+
function snapshotEngineOptions(options) {
|
|
2272
|
+
return {
|
|
2273
|
+
...options,
|
|
2274
|
+
projections: options.projections && [...options.projections],
|
|
2275
|
+
parsers: options.parsers && [...options.parsers],
|
|
2276
|
+
datumCatalogs: options.datumCatalogs && [...options.datumCatalogs],
|
|
2277
|
+
aliases: options.aliases && JSON.parse(JSON.stringify(options.aliases)),
|
|
2278
|
+
datumGrids: options.datumGrids && { ...options.datumGrids },
|
|
2279
|
+
verticalGrids: options.verticalGrids && { ...options.verticalGrids }
|
|
2280
|
+
};
|
|
2281
|
+
}
|
|
2282
|
+
function hasCRSOverrides(options) {
|
|
2283
|
+
return Boolean(options.projections || options.parsers || options.datumCatalogs || options.aliases || options.datumGrids || options.verticalGrids || options.resolver);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
// dist/projection/experimental/lazy-projection.js
|
|
2287
|
+
init_normalize();
|
|
2288
|
+
var catalogue = [
|
|
2289
|
+
lazyAlbersEqualArea,
|
|
2290
|
+
lazyAzimuthalEquidistant,
|
|
2291
|
+
lazyBonne,
|
|
2292
|
+
lazyCassiniSoldner,
|
|
2293
|
+
lazyCylindricalEqualArea,
|
|
2294
|
+
lazyEckertVI,
|
|
2295
|
+
lazyEquidistantCylindrical,
|
|
2296
|
+
lazyEquidistantConic,
|
|
2297
|
+
lazyEqualEarth,
|
|
2298
|
+
lazyEquirectangular,
|
|
2299
|
+
lazyExtendedTransverseMercator,
|
|
2300
|
+
lazyGeocentric,
|
|
2301
|
+
lazyGeostationary,
|
|
2302
|
+
lazyGnomonic,
|
|
2303
|
+
lazyGaussSchreiberTransverseMercator,
|
|
2304
|
+
lazyKrovak,
|
|
2305
|
+
lazyLambertAzimuthalEqualArea,
|
|
2306
|
+
lazyLambertConformalConic,
|
|
2307
|
+
lazyMercator,
|
|
2308
|
+
lazyMillerCylindrical,
|
|
2309
|
+
lazyMollweide,
|
|
2310
|
+
lazyNewZealandMapGrid,
|
|
2311
|
+
lazyObliqueMercator,
|
|
2312
|
+
lazyOrthographic,
|
|
2313
|
+
lazyPolyconic,
|
|
2314
|
+
lazyQuadrilateralizedSphericalCube,
|
|
2315
|
+
lazyRobinson,
|
|
2316
|
+
lazySinusoidal,
|
|
2317
|
+
lazySwissObliqueMercator,
|
|
2318
|
+
lazyStereographic,
|
|
2319
|
+
lazyObliqueStereographic,
|
|
2320
|
+
lazyTransverseMercator,
|
|
2321
|
+
lazyTiltedPerspective,
|
|
2322
|
+
lazyUniversalTransverseMercator,
|
|
2323
|
+
lazyVanDerGrinten
|
|
2324
|
+
];
|
|
2325
|
+
var key = (name) => name.toLowerCase().replace(/[\s_-]/g, "");
|
|
2326
|
+
var LazyProjectionEngine = class {
|
|
2327
|
+
constructor(options = {}) {
|
|
2328
|
+
this.options = snapshotEngineOptions(options);
|
|
2329
|
+
this.useDefinitionSignature = !hasCRSOverrides(options);
|
|
2330
|
+
}
|
|
2331
|
+
/** Resolve a CRS and load only its required algorithms before exposing sync conversions. */
|
|
2332
|
+
getCRS(definition, options = {}) {
|
|
2333
|
+
return resolveCRSDescriptor(this, definition, this.options, options, this.useDefinitionSignature, this.options.resolver ? async (input, config) => (await Promise.resolve().then(() => (init_resolve(), resolve_exports))).prepareCRSInput(input, config) : void 0);
|
|
2334
|
+
}
|
|
2335
|
+
createProjection(options = {}) {
|
|
2336
|
+
const config = { ...this.options, ...options };
|
|
2337
|
+
return new ProjectionTransform({
|
|
2338
|
+
...config,
|
|
2339
|
+
projections: configuredProjections(config)
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
async createProjectionAsync(options = {}) {
|
|
2343
|
+
let config = {
|
|
2344
|
+
...this.options,
|
|
2345
|
+
...JSON.parse(JSON.stringify(options))
|
|
2346
|
+
};
|
|
2347
|
+
if (config.resolver) {
|
|
2348
|
+
config = await (await Promise.resolve().then(() => (init_resolve(), resolve_exports))).prepareEngineOptions(config);
|
|
2349
|
+
}
|
|
2350
|
+
return ProjectionTransform.create({
|
|
2351
|
+
...config,
|
|
2352
|
+
projections: configuredProjections(config)
|
|
2353
|
+
});
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
var lazyProjectionEngine = new LazyProjectionEngine();
|
|
2357
|
+
function configuredProjections(options) {
|
|
2358
|
+
const children = /* @__PURE__ */ new Map();
|
|
2359
|
+
for (const definition of [options.from ?? "WGS84", options.to ?? "WGS84"]) {
|
|
2360
|
+
const crs = normalizeCRS(definition, options);
|
|
2361
|
+
if (key(crs.projection) !== "obtran")
|
|
2362
|
+
continue;
|
|
2363
|
+
const requested = crs.parameters["o_proj"];
|
|
2364
|
+
if (!requested)
|
|
2365
|
+
throw new Error("Oblique transformation requires +o_proj");
|
|
2366
|
+
const name = key(requested);
|
|
2367
|
+
if (children.has(name))
|
|
2368
|
+
continue;
|
|
2369
|
+
const child = ["longlat", "latlong", "latlon", "lonlat", "identity"].includes(name) ? "longlat" : catalogue.find((p) => [p.name, ...p.aliases || []].some((alias) => key(alias) === name));
|
|
2370
|
+
if (!child)
|
|
2371
|
+
throw new Error("Unknown oblique transformation projection: " + requested);
|
|
2372
|
+
children.set(name, lazyObliqueTransformation(child));
|
|
2373
|
+
}
|
|
2374
|
+
const projections = [...catalogue];
|
|
2375
|
+
if (children.size) {
|
|
2376
|
+
projections.push(createProjectionDescriptor({ name: "ob_tran" }, async () => {
|
|
2377
|
+
const plugins = /* @__PURE__ */ new Map();
|
|
2378
|
+
await Promise.all([...children].map(async ([name, descriptor]) => {
|
|
2379
|
+
plugins.set(name, await preloadProjection(descriptor));
|
|
2380
|
+
}));
|
|
2381
|
+
return {
|
|
2382
|
+
name: "ob_tran",
|
|
2383
|
+
parameters: [...new Set([...plugins.values()].flatMap((p) => p.parameters))],
|
|
2384
|
+
flags: [...new Set([...plugins.values()].flatMap((p) => p.flags || []))],
|
|
2385
|
+
create(context) {
|
|
2386
|
+
const plugin = plugins.get(key(context.parameters["o_proj"] || ""));
|
|
2387
|
+
if (!plugin)
|
|
2388
|
+
throw new Error("Unregistered oblique transformation child");
|
|
2389
|
+
const allowed = /* @__PURE__ */ new Set([...CORE_PARAMETERS, ...plugin.parameters]);
|
|
2390
|
+
for (const parameter of Object.keys(context.parameters)) {
|
|
2391
|
+
if (!allowed.has(parameter))
|
|
2392
|
+
throw new Error("Unsupported PROJ parameter: +" + parameter);
|
|
2393
|
+
}
|
|
2394
|
+
return plugin.create(context);
|
|
2395
|
+
}
|
|
2396
|
+
};
|
|
2397
|
+
}));
|
|
2398
|
+
}
|
|
2399
|
+
return projections;
|
|
2400
|
+
}
|
|
2401
|
+
//# sourceMappingURL=index.cjs.map
|