@math.gl/geospatial 5.0.0-alpha.9 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-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 +1252 -0
- package/dist/crs/index.cjs.map +6 -0
- package/dist/crs/index.d.ts +21 -0
- package/dist/crs/index.d.ts.map +1 -0
- package/dist/crs/index.js +15 -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 +314 -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 +260 -0
- package/dist/discontinuous/elastic/map.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 +215 -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 +214 -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 +93 -0
- package/dist/discontinuous/map-layout.d.ts.map +1 -0
- package/dist/discontinuous/map-layout.js +490 -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 +283 -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 +134 -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/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 +81 -0
- package/dist/discontinuous/prepare-features.d.ts.map +1 -0
- package/dist/discontinuous/prepare-features.js +149 -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 +31 -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/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 +7310 -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 +17735 -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 +1660 -0
- package/dist/turf.cjs.map +6 -0
- package/dist/turf.d.ts +103 -0
- package/dist/turf.d.ts.map +1 -0
- package/dist/turf.js +1026 -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 +20879 -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 +20036 -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-metadata.ts +63 -0
- package/src/crs/crs.ts +36 -0
- package/src/crs/execution-identity.ts +98 -0
- package/src/crs/index.ts +101 -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 +406 -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 +172 -0
- package/src/discontinuous/elastic/grid.ts +194 -0
- package/src/discontinuous/elastic/map.ts +317 -0
- package/src/discontinuous/global-polygons.ts +273 -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 +605 -0
- package/src/discontinuous/map-transition.ts +339 -0
- package/src/discontinuous/math.ts +67 -0
- package/src/discontinuous/mercator-map.ts +160 -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/polyhedral.ts +138 -0
- package/src/discontinuous/prepare-features.ts +245 -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/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 +392 -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 +1200 -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,2245 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) 2011-2022 Charles Karney
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
5
|
+
// SPDX-FileComment: Original math.gl follow-up evaluates short-edge cosine-series differences without cancellation; qualified by independent Decimal small-area controls. GeographicLib geodesic Math.js, Geodesic.js and GeodesicLine.js, pinned at 9c4036d6242aa997e08e43a20df789e2007fbe6f. Combined into an ESM module; version template fields set to 2.2.0. See ../../../GEOGRAPHICLIB-LICENSE.txt.
|
|
6
|
+
/*
|
|
7
|
+
* Math.js
|
|
8
|
+
* Transcription of Math.hpp, Constants.hpp, and Accumulator.hpp into
|
|
9
|
+
* JavaScript.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Charles Karney (2011-2021) <karney@alum.mit.edu> and licensed
|
|
12
|
+
* under the MIT/X11 License. For more information, see
|
|
13
|
+
* https://geographiclib.sourceforge.io/
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @namespace geodesic
|
|
17
|
+
* @description The parent namespace for the following modules:
|
|
18
|
+
* - {@link module:geodesic/Geodesic geodesic/Geodesic} The main
|
|
19
|
+
* engine for solving geodesic problems via the
|
|
20
|
+
* {@link module:geodesic/Geodesic.Geodesic Geodesic} class.
|
|
21
|
+
* - {@link module:geodesic/GeodesicLine geodesic/GeodesicLine}
|
|
22
|
+
* computes points along a single geodesic line via the
|
|
23
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine GeodesicLine}
|
|
24
|
+
* class.
|
|
25
|
+
* - {@link module:geodesic/PolygonArea geodesic/PolygonArea}
|
|
26
|
+
* computes the area of a geodesic polygon via the
|
|
27
|
+
* {@link module:geodesic/PolygonArea.PolygonArea PolygonArea}
|
|
28
|
+
* class.
|
|
29
|
+
* - {@link module:geodesic/Constants geodesic/Constants} defines
|
|
30
|
+
* constants specifying the version numbers and the parameters for the WGS84
|
|
31
|
+
* ellipsoid.
|
|
32
|
+
*
|
|
33
|
+
* The following modules are used internally by the package:
|
|
34
|
+
* - {@link module:geodesic/Math geodesic/Math} defines various
|
|
35
|
+
* mathematical functions.
|
|
36
|
+
* - {@link module:geodesic/Accumulator geodesic/Accumulator}
|
|
37
|
+
* interally used by
|
|
38
|
+
* {@link module:geodesic/PolygonArea.PolygonArea PolygonArea} (via the
|
|
39
|
+
* {@link module:geodesic/Accumulator.Accumulator Accumulator} class)
|
|
40
|
+
* for summing the contributions to the area of a polygon.
|
|
41
|
+
*/
|
|
42
|
+
// To allow swap via [y, x] = [x, y]
|
|
43
|
+
/* jshint esversion: 6 */
|
|
44
|
+
var geodesic = {};
|
|
45
|
+
geodesic.Constants = {};
|
|
46
|
+
geodesic.Math = {};
|
|
47
|
+
geodesic.Accumulator = {};
|
|
48
|
+
(function (
|
|
49
|
+
/**
|
|
50
|
+
* @exports geodesic/Constants
|
|
51
|
+
* @description Define constants defining the version and WGS84 parameters.
|
|
52
|
+
*/
|
|
53
|
+
c) {
|
|
54
|
+
"use strict";
|
|
55
|
+
/**
|
|
56
|
+
* @constant
|
|
57
|
+
* @summary WGS84 parameters.
|
|
58
|
+
* @property {number} a the equatorial radius (meters).
|
|
59
|
+
* @property {number} f the flattening.
|
|
60
|
+
*/
|
|
61
|
+
c.WGS84 = { a: 6378137, f: 1 / 298.257223563 };
|
|
62
|
+
/**
|
|
63
|
+
* @constant
|
|
64
|
+
* @summary an array of version numbers.
|
|
65
|
+
* @property {number} major the major version number.
|
|
66
|
+
* @property {number} minor the minor version number.
|
|
67
|
+
* @property {number} patch the patch number.
|
|
68
|
+
*/
|
|
69
|
+
c.version = { major: 2,
|
|
70
|
+
minor: 2,
|
|
71
|
+
patch: 0 };
|
|
72
|
+
/**
|
|
73
|
+
* @constant
|
|
74
|
+
* @summary version string
|
|
75
|
+
*/
|
|
76
|
+
c.version_string = "2.2.0";
|
|
77
|
+
})(geodesic.Constants);
|
|
78
|
+
(function (
|
|
79
|
+
/**
|
|
80
|
+
* @exports geodesic/Math
|
|
81
|
+
* @description Some useful mathematical constants and functions (mainly for
|
|
82
|
+
* internal use).
|
|
83
|
+
*/
|
|
84
|
+
m) {
|
|
85
|
+
"use strict";
|
|
86
|
+
/**
|
|
87
|
+
* @summary The number of digits of precision in floating-point numbers.
|
|
88
|
+
* @constant {number}
|
|
89
|
+
*/
|
|
90
|
+
m.digits = 53;
|
|
91
|
+
/**
|
|
92
|
+
* @summary The machine epsilon.
|
|
93
|
+
* @constant {number}
|
|
94
|
+
*/
|
|
95
|
+
m.epsilon = Math.pow(0.5, m.digits - 1);
|
|
96
|
+
/**
|
|
97
|
+
* @summary The factor to convert degrees to radians.
|
|
98
|
+
* @constant {number}
|
|
99
|
+
*/
|
|
100
|
+
m.degree = Math.PI / 180;
|
|
101
|
+
/**
|
|
102
|
+
* @summary Square a number.
|
|
103
|
+
* @param {number} x the number.
|
|
104
|
+
* @return {number} the square.
|
|
105
|
+
*/
|
|
106
|
+
m.sq = function (x) { return x * x; };
|
|
107
|
+
/**
|
|
108
|
+
* @summary The hypotenuse function.
|
|
109
|
+
* @param {number} x the first side.
|
|
110
|
+
* @param {number} y the second side.
|
|
111
|
+
* @return {number} the hypotenuse.
|
|
112
|
+
*/
|
|
113
|
+
m.hypot = function (x, y) {
|
|
114
|
+
// Built in Math.hypot give incorrect results from GeodSolve92.
|
|
115
|
+
return Math.sqrt(x * x + y * y);
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* @summary Cube root function.
|
|
119
|
+
* @param {number} x the argument.
|
|
120
|
+
* @return {number} the real cube root.
|
|
121
|
+
*/
|
|
122
|
+
m.cbrt = Math.cbrt || function (x) {
|
|
123
|
+
var y = Math.pow(Math.abs(x), 1 / 3);
|
|
124
|
+
return x > 0 ? y : (x < 0 ? -y : x);
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @summary The log1p function.
|
|
128
|
+
* @param {number} x the argument.
|
|
129
|
+
* @return {number} log(1 + x).
|
|
130
|
+
*/
|
|
131
|
+
m.log1p = Math.log1p || function (x) {
|
|
132
|
+
var y = 1 + x, z = y - 1;
|
|
133
|
+
// Here's the explanation for this magic: y = 1 + z, exactly, and z
|
|
134
|
+
// approx x, thus log(y)/z (which is nearly constant near z = 0) returns
|
|
135
|
+
// a good approximation to the true log(1 + x)/x. The multiplication x *
|
|
136
|
+
// (log(y)/z) introduces little additional error.
|
|
137
|
+
return z === 0 ? x : x * Math.log(y) / z;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* @summary Inverse hyperbolic tangent.
|
|
141
|
+
* @param {number} x the argument.
|
|
142
|
+
* @return {number} tanh<sup>−1</sup> x.
|
|
143
|
+
*/
|
|
144
|
+
m.atanh = Math.atanh || function (x) {
|
|
145
|
+
var y = Math.abs(x); // Enforce odd parity
|
|
146
|
+
y = m.log1p(2 * y / (1 - y)) / 2;
|
|
147
|
+
return x > 0 ? y : (x < 0 ? -y : x);
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* @summary Copy the sign.
|
|
151
|
+
* @param {number} x gives the magitude of the result.
|
|
152
|
+
* @param {number} y gives the sign of the result.
|
|
153
|
+
* @return {number} value with the magnitude of x and with the sign of y.
|
|
154
|
+
*/
|
|
155
|
+
m.copysign = function (x, y) {
|
|
156
|
+
return Math.abs(x) * (y < 0 || (y === 0 && 1 / y < 0) ? -1 : 1);
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* @summary An error-free sum.
|
|
160
|
+
* @param {number} u
|
|
161
|
+
* @param {number} v
|
|
162
|
+
* @return {object} sum with sum.s = round(u + v) and sum.t is u + v −
|
|
163
|
+
* round(u + v)
|
|
164
|
+
*/
|
|
165
|
+
m.sum = function (u, v) {
|
|
166
|
+
var s = u + v, up = s - v, vpp = s - up, t;
|
|
167
|
+
up -= u;
|
|
168
|
+
vpp -= v;
|
|
169
|
+
// if s = 0, then t = 0 and give t the same sign as s
|
|
170
|
+
t = s ? 0 - (up + vpp) : s;
|
|
171
|
+
// u + v = s + t
|
|
172
|
+
// = round(u + v) + t
|
|
173
|
+
return { s: s, t: t };
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* @summary Evaluate a polynomial.
|
|
177
|
+
* @param {integer} N the order of the polynomial.
|
|
178
|
+
* @param {array} p the coefficient array (of size N + 1) (leading
|
|
179
|
+
* order coefficient first)
|
|
180
|
+
* @param {number} x the variable.
|
|
181
|
+
* @return {number} the value of the polynomial.
|
|
182
|
+
*/
|
|
183
|
+
m.polyval = function (N, p, s, x) {
|
|
184
|
+
var y = N < 0 ? 0 : p[s++];
|
|
185
|
+
while (--N >= 0)
|
|
186
|
+
y = y * x + p[s++];
|
|
187
|
+
return y;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* @summary Coarsen a value close to zero.
|
|
191
|
+
* @param {number} x
|
|
192
|
+
* @return {number} the coarsened value.
|
|
193
|
+
*/
|
|
194
|
+
m.AngRound = function (x) {
|
|
195
|
+
// The makes the smallest gap in x = 1/16 - nextafter(1/16, 0) = 1/2^57 for
|
|
196
|
+
// reals = 0.7 pm on the earth if x is an angle in degrees. (This is about
|
|
197
|
+
// 1000 times more resolution than we get with angles around 90 degrees.)
|
|
198
|
+
// We use this to avoid having to deal with near singular cases when x is
|
|
199
|
+
// non-zero but tiny (e.g., 1.0e-200). This converts -0 to +0; however
|
|
200
|
+
// tiny negative numbers get converted to -0.
|
|
201
|
+
var z = 1 / 16, y = Math.abs(x);
|
|
202
|
+
// The compiler mustn't "simplify" z - (z - y) to y
|
|
203
|
+
y = y < z ? z - (z - y) : y;
|
|
204
|
+
return m.copysign(y, x);
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* @summary The remainder function.
|
|
208
|
+
* @param {number} x the numerator of the division
|
|
209
|
+
* @param {number} y the denominator of the division
|
|
210
|
+
* @return {number} the remainder in the range [−y/2, y/2].
|
|
211
|
+
* <p>
|
|
212
|
+
* The range of x is unrestricted; y must be positive.
|
|
213
|
+
*/
|
|
214
|
+
m.remainder = function (x, y) {
|
|
215
|
+
x %= y;
|
|
216
|
+
return x < -y / 2 ? x + y : (x < y / 2 ? x : x - y);
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* @summary Normalize an angle.
|
|
220
|
+
* @param {number} x the angle in degrees.
|
|
221
|
+
* @return {number} the angle reduced to the range [−180°,
|
|
222
|
+
* 180°].
|
|
223
|
+
*
|
|
224
|
+
* The range of x is unrestricted. If the result is ±0° or
|
|
225
|
+
* ±180° then the sign is the sign of \e x.
|
|
226
|
+
*/
|
|
227
|
+
m.AngNormalize = function (x) {
|
|
228
|
+
// Place angle in [-180, 180].
|
|
229
|
+
var y = m.remainder(x, 360);
|
|
230
|
+
return Math.abs(y) === 180 ? m.copysign(180, x) : y;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* @summary Normalize a latitude.
|
|
234
|
+
* @param {number} x the angle in degrees.
|
|
235
|
+
* @return {number} x if it is in the range [−90°, 90°],
|
|
236
|
+
* otherwise return NaN.
|
|
237
|
+
*/
|
|
238
|
+
m.LatFix = function (x) {
|
|
239
|
+
// Replace angle with NaN if outside [-90, 90].
|
|
240
|
+
return Math.abs(x) > 90 ? NaN : x;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* @summary The exact difference of two angles reduced to [−180°,
|
|
244
|
+
* 180°]
|
|
245
|
+
* @param {number} x the first angle in degrees.
|
|
246
|
+
* @param {number} y the second angle in degrees.
|
|
247
|
+
* @return {object} diff the exact difference, diff.d + diff.e = y − x
|
|
248
|
+
* mod 360°.
|
|
249
|
+
*
|
|
250
|
+
* This computes z = y − x exactly, reduced to
|
|
251
|
+
* [−180°, 180°]; and then sets z = d + e where d
|
|
252
|
+
* is the nearest representable number to z and e is the truncation
|
|
253
|
+
* error. If z = ±0° or ±180°, then the sign of
|
|
254
|
+
* d is given by the sign of y − x. The maximum absolute
|
|
255
|
+
* value of e is 2<sup>−26</sup> (for doubles).
|
|
256
|
+
*/
|
|
257
|
+
m.AngDiff = function (x, y) {
|
|
258
|
+
// Compute y - x and reduce to [-180,180] accurately.
|
|
259
|
+
var r = m.sum(m.remainder(-x, 360), m.remainder(y, 360)), d, e;
|
|
260
|
+
r = m.sum(m.remainder(r.s, 360), r.t);
|
|
261
|
+
d = r.s;
|
|
262
|
+
e = r.t;
|
|
263
|
+
// Fix the sign if d = -180, 0, 180.
|
|
264
|
+
if (d === 0 || Math.abs(d) === 180)
|
|
265
|
+
// If e == 0, take sign from y - x
|
|
266
|
+
// else (e != 0, implies d = +/-180), d and e must have opposite signs
|
|
267
|
+
d = m.copysign(d, e === 0 ? y - x : -e);
|
|
268
|
+
return { d: d, e: e };
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* @summary Evaluate the sine and cosine function with the argument in
|
|
272
|
+
* degrees
|
|
273
|
+
* @param {number} x in degrees.
|
|
274
|
+
* @return {object} r with r.s = sin(x) and r.c = cos(x).
|
|
275
|
+
*/
|
|
276
|
+
m.sincosd = function (x) {
|
|
277
|
+
// In order to minimize round-off errors, this function exactly reduces
|
|
278
|
+
// the argument to the range [-45, 45] before converting it to radians.
|
|
279
|
+
var d, r, q, s, c, sinx, cosx;
|
|
280
|
+
d = x % 360;
|
|
281
|
+
q = Math.round(d / 90); // If d is NaN this returns NaN
|
|
282
|
+
d -= 90 * q;
|
|
283
|
+
// now abs(d) <= 45
|
|
284
|
+
r = d * this.degree;
|
|
285
|
+
// Possibly could call the gnu extension sincos
|
|
286
|
+
s = Math.sin(r);
|
|
287
|
+
c = Math.cos(r);
|
|
288
|
+
if (Math.abs(d) === 45) {
|
|
289
|
+
c = Math.sqrt(0.5);
|
|
290
|
+
s = m.copysign(c, r);
|
|
291
|
+
}
|
|
292
|
+
else if (Math.abs(d) === 30) {
|
|
293
|
+
c = Math.sqrt(0.75);
|
|
294
|
+
s = m.copysign(0.5, r);
|
|
295
|
+
}
|
|
296
|
+
switch (q & 3) {
|
|
297
|
+
case 0:
|
|
298
|
+
sinx = s;
|
|
299
|
+
cosx = c;
|
|
300
|
+
break;
|
|
301
|
+
case 1:
|
|
302
|
+
sinx = c;
|
|
303
|
+
cosx = -s;
|
|
304
|
+
break;
|
|
305
|
+
case 2:
|
|
306
|
+
sinx = -s;
|
|
307
|
+
cosx = -c;
|
|
308
|
+
break;
|
|
309
|
+
default:
|
|
310
|
+
sinx = -c;
|
|
311
|
+
cosx = s;
|
|
312
|
+
break; // case 3
|
|
313
|
+
}
|
|
314
|
+
cosx += 0;
|
|
315
|
+
if (sinx === 0)
|
|
316
|
+
sinx = m.copysign(sinx, x);
|
|
317
|
+
return { s: sinx, c: cosx };
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* @summary Evaluate the sine and cosine with reduced argument plus correction
|
|
321
|
+
*
|
|
322
|
+
* @param {number} x reduced angle in degrees.
|
|
323
|
+
* @param {number} t correction in degrees.
|
|
324
|
+
* @return {object} r with r.s = sin(x + t) and r.c = cos(x + t).
|
|
325
|
+
*/
|
|
326
|
+
m.sincosde = function (x, t) {
|
|
327
|
+
// In order to minimize round-off errors, this function exactly reduces
|
|
328
|
+
// the argument to the range [-45, 45] before converting it to radians.
|
|
329
|
+
var d, r, q, s, c, sinx, cosx;
|
|
330
|
+
d = x % 360;
|
|
331
|
+
q = Math.round(d / 90); // If d is NaN this returns NaN
|
|
332
|
+
d = m.AngRound((d - 90 * q) + t);
|
|
333
|
+
// now abs(d) <= 45
|
|
334
|
+
r = d * this.degree;
|
|
335
|
+
// Possibly could call the gnu extension sincos
|
|
336
|
+
s = Math.sin(r);
|
|
337
|
+
c = Math.cos(r);
|
|
338
|
+
if (Math.abs(d) === 45) {
|
|
339
|
+
c = Math.sqrt(0.5);
|
|
340
|
+
s = m.copysign(c, r);
|
|
341
|
+
}
|
|
342
|
+
else if (Math.abs(d) === 30) {
|
|
343
|
+
c = Math.sqrt(0.75);
|
|
344
|
+
s = m.copysign(0.5, r);
|
|
345
|
+
}
|
|
346
|
+
switch (q & 3) {
|
|
347
|
+
case 0:
|
|
348
|
+
sinx = s;
|
|
349
|
+
cosx = c;
|
|
350
|
+
break;
|
|
351
|
+
case 1:
|
|
352
|
+
sinx = c;
|
|
353
|
+
cosx = -s;
|
|
354
|
+
break;
|
|
355
|
+
case 2:
|
|
356
|
+
sinx = -s;
|
|
357
|
+
cosx = -c;
|
|
358
|
+
break;
|
|
359
|
+
default:
|
|
360
|
+
sinx = -c;
|
|
361
|
+
cosx = s;
|
|
362
|
+
break; // case 3
|
|
363
|
+
}
|
|
364
|
+
cosx += 0;
|
|
365
|
+
if (sinx === 0)
|
|
366
|
+
sinx = m.copysign(sinx, x + t);
|
|
367
|
+
return { s: sinx, c: cosx };
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* @summary Evaluate the atan2 function with the result in degrees
|
|
371
|
+
* @param {number} y
|
|
372
|
+
* @param {number} x
|
|
373
|
+
* @return atan2(y, x) in degrees, in the range [−180°
|
|
374
|
+
* 180°].
|
|
375
|
+
*/
|
|
376
|
+
m.atan2d = function (y, x) {
|
|
377
|
+
// In order to minimize round-off errors, this function rearranges the
|
|
378
|
+
// arguments so that result of atan2 is in the range [-pi/4, pi/4] before
|
|
379
|
+
// converting it to degrees and mapping the result to the correct
|
|
380
|
+
// quadrant.
|
|
381
|
+
var q = 0, ang;
|
|
382
|
+
if (Math.abs(y) > Math.abs(x)) {
|
|
383
|
+
[y, x] = [x, y];
|
|
384
|
+
q = 2;
|
|
385
|
+
} // swap(x, y)
|
|
386
|
+
if (m.copysign(1, x) < 0) {
|
|
387
|
+
x = -x;
|
|
388
|
+
++q;
|
|
389
|
+
}
|
|
390
|
+
// here x >= 0 and x >= abs(y), so angle is in [-pi/4, pi/4]
|
|
391
|
+
ang = Math.atan2(y, x) / this.degree;
|
|
392
|
+
switch (q) {
|
|
393
|
+
// Note that atan2d(-0.0, 1.0) will return -0. However, we expect that
|
|
394
|
+
// atan2d will not be called with y = -0. If need be, include
|
|
395
|
+
//
|
|
396
|
+
// case 0: ang = 0 + ang; break;
|
|
397
|
+
//
|
|
398
|
+
// and handle mpfr as in AngRound.
|
|
399
|
+
case 1:
|
|
400
|
+
ang = m.copysign(180, y) - ang;
|
|
401
|
+
break;
|
|
402
|
+
case 2:
|
|
403
|
+
ang = 90 - ang;
|
|
404
|
+
break;
|
|
405
|
+
case 3:
|
|
406
|
+
ang = -90 + ang;
|
|
407
|
+
break;
|
|
408
|
+
default: break;
|
|
409
|
+
}
|
|
410
|
+
return ang;
|
|
411
|
+
};
|
|
412
|
+
})(geodesic.Math);
|
|
413
|
+
(function (
|
|
414
|
+
/**
|
|
415
|
+
* @exports geodesic/Accumulator
|
|
416
|
+
* @description Accurate summation via the
|
|
417
|
+
* {@link module:geodesic/Accumulator.Accumulator Accumulator} class
|
|
418
|
+
* (mainly for internal use).
|
|
419
|
+
*/
|
|
420
|
+
a, m) {
|
|
421
|
+
"use strict";
|
|
422
|
+
/**
|
|
423
|
+
* @class
|
|
424
|
+
* @summary Accurate summation of many numbers.
|
|
425
|
+
* @classdesc This allows many numbers to be added together with twice the
|
|
426
|
+
* normal precision. In the documentation of the member functions, sum
|
|
427
|
+
* stands for the value currently held in the accumulator.
|
|
428
|
+
* @param {number | Accumulator} [y = 0] set sum = y.
|
|
429
|
+
*/
|
|
430
|
+
a.Accumulator = function (y) {
|
|
431
|
+
this.Set(y);
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* @summary Set the accumulator to a number.
|
|
435
|
+
* @param {number | Accumulator} [y = 0] set sum = y.
|
|
436
|
+
*/
|
|
437
|
+
a.Accumulator.prototype.Set = function (y) {
|
|
438
|
+
if (!y)
|
|
439
|
+
y = 0;
|
|
440
|
+
if (y.constructor === a.Accumulator) {
|
|
441
|
+
this._s = y._s;
|
|
442
|
+
this._t = y._t;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
this._s = y;
|
|
446
|
+
this._t = 0;
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* @summary Add a number to the accumulator.
|
|
451
|
+
* @param {number} [y = 0] set sum += y.
|
|
452
|
+
*/
|
|
453
|
+
a.Accumulator.prototype.Add = function (y) {
|
|
454
|
+
// Here's Shewchuk's solution...
|
|
455
|
+
// Accumulate starting at least significant end
|
|
456
|
+
var u = m.sum(y, this._t), v = m.sum(u.s, this._s);
|
|
457
|
+
u = u.t;
|
|
458
|
+
this._s = v.s;
|
|
459
|
+
this._t = v.t;
|
|
460
|
+
// Start is _s, _t decreasing and non-adjacent. Sum is now (s + t + u)
|
|
461
|
+
// exactly with s, t, u non-adjacent and in decreasing order (except
|
|
462
|
+
// for possible zeros). The following code tries to normalize the
|
|
463
|
+
// result. Ideally, we want _s = round(s+t+u) and _u = round(s+t+u -
|
|
464
|
+
// _s). The follow does an approximate job (and maintains the
|
|
465
|
+
// decreasing non-adjacent property). Here are two "failures" using
|
|
466
|
+
// 3-bit floats:
|
|
467
|
+
//
|
|
468
|
+
// Case 1: _s is not equal to round(s+t+u) -- off by 1 ulp
|
|
469
|
+
// [12, -1] - 8 -> [4, 0, -1] -> [4, -1] = 3 should be [3, 0] = 3
|
|
470
|
+
//
|
|
471
|
+
// Case 2: _s+_t is not as close to s+t+u as it shold be
|
|
472
|
+
// [64, 5] + 4 -> [64, 8, 1] -> [64, 8] = 72 (off by 1)
|
|
473
|
+
// should be [80, -7] = 73 (exact)
|
|
474
|
+
//
|
|
475
|
+
// "Fixing" these problems is probably not worth the expense. The
|
|
476
|
+
// representation inevitably leads to small errors in the accumulated
|
|
477
|
+
// values. The additional errors illustrated here amount to 1 ulp of
|
|
478
|
+
// the less significant word during each addition to the Accumulator
|
|
479
|
+
// and an additional possible error of 1 ulp in the reported sum.
|
|
480
|
+
//
|
|
481
|
+
// Incidentally, the "ideal" representation described above is not
|
|
482
|
+
// canonical, because _s = round(_s + _t) may not be true. For
|
|
483
|
+
// example, with 3-bit floats:
|
|
484
|
+
//
|
|
485
|
+
// [128, 16] + 1 -> [160, -16] -- 160 = round(145).
|
|
486
|
+
// But [160, 0] - 16 -> [128, 16] -- 128 = round(144).
|
|
487
|
+
//
|
|
488
|
+
if (this._s === 0) // This implies t == 0,
|
|
489
|
+
this._s = u; // so result is u
|
|
490
|
+
else
|
|
491
|
+
this._t += u; // otherwise just accumulate u to t.
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* @summary Return the result of adding a number to sum (but
|
|
495
|
+
* don't change sum).
|
|
496
|
+
* @param {number} [y = 0] the number to be added to the sum.
|
|
497
|
+
* @return sum + y.
|
|
498
|
+
*/
|
|
499
|
+
a.Accumulator.prototype.Sum = function (y) {
|
|
500
|
+
var b;
|
|
501
|
+
if (!y)
|
|
502
|
+
return this._s;
|
|
503
|
+
else {
|
|
504
|
+
b = new a.Accumulator(this);
|
|
505
|
+
b.Add(y);
|
|
506
|
+
return b._s;
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* @summary Set sum = −sum.
|
|
511
|
+
*/
|
|
512
|
+
a.Accumulator.prototype.Negate = function () {
|
|
513
|
+
this._s *= -1;
|
|
514
|
+
this._t *= -1;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* @summary Take the remainder
|
|
518
|
+
* @param {number} y the divisor of the remainder operation.
|
|
519
|
+
* @return sum in range [−y/2, y/2].
|
|
520
|
+
*/
|
|
521
|
+
a.Accumulator.prototype.Remainder = function (y) {
|
|
522
|
+
this._s = m.remainder(this._s, y);
|
|
523
|
+
this.Add(0);
|
|
524
|
+
};
|
|
525
|
+
})(geodesic.Accumulator, geodesic.Math);
|
|
526
|
+
/*
|
|
527
|
+
* Geodesic.js
|
|
528
|
+
* Transcription of Geodesic.[ch]pp into JavaScript.
|
|
529
|
+
*
|
|
530
|
+
* See the documentation for the C++ class. The conversion is a literal
|
|
531
|
+
* conversion from C++.
|
|
532
|
+
*
|
|
533
|
+
* The algorithms are derived in
|
|
534
|
+
*
|
|
535
|
+
* Charles F. F. Karney,
|
|
536
|
+
* Algorithms for geodesics, J. Geodesy 87, 43-55 (2013);
|
|
537
|
+
* https://doi.org/10.1007/s00190-012-0578-z
|
|
538
|
+
* Addenda: https://geographiclib.sourceforge.io/geod-addenda.html
|
|
539
|
+
*
|
|
540
|
+
* Copyright (c) Charles Karney (2011-2022) <karney@alum.mit.edu> and licensed
|
|
541
|
+
* under the MIT/X11 License. For more information, see
|
|
542
|
+
* https://geographiclib.sourceforge.io/
|
|
543
|
+
*/
|
|
544
|
+
// Load AFTER Math.js
|
|
545
|
+
// To allow swap via [y, x] = [x, y]
|
|
546
|
+
/* jshint esversion: 6 */
|
|
547
|
+
geodesic.Geodesic = {};
|
|
548
|
+
geodesic.GeodesicLine = {};
|
|
549
|
+
geodesic.PolygonArea = {};
|
|
550
|
+
(function (
|
|
551
|
+
/**
|
|
552
|
+
* @exports geodesic/Geodesic
|
|
553
|
+
* @description Solve geodesic problems via the
|
|
554
|
+
* {@link module:geodesic/Geodesic.Geodesic Geodesic} class.
|
|
555
|
+
*/
|
|
556
|
+
g, l, p, m, c) {
|
|
557
|
+
"use strict";
|
|
558
|
+
var GEOGRAPHICLIB_GEODESIC_ORDER = 6, nA1_ = GEOGRAPHICLIB_GEODESIC_ORDER, nA2_ = GEOGRAPHICLIB_GEODESIC_ORDER, nA3_ = GEOGRAPHICLIB_GEODESIC_ORDER, nA3x_ = nA3_, nC3x_, nC4x_, maxit1_ = 20, maxit2_ = maxit1_ + m.digits + 10, tol0_ = m.epsilon, tol1_ = 200 * tol0_, tol2_ = Math.sqrt(tol0_), tolb_ = tol0_, xthresh_ = 1000 * tol2_, CAP_NONE = 0, CAP_ALL = 0x1F, OUT_ALL = 0x7F80, astroid, A1m1f_coeff, C1f_coeff, C1pf_coeff, A2m1f_coeff, C2f_coeff, A3_coeff, C3_coeff, C4_coeff;
|
|
559
|
+
// N.B. Number.MIN_VALUE is denormalized; divide by Number.EPSILON to get min
|
|
560
|
+
// normalized positive number.
|
|
561
|
+
g.tiny_ = Math.sqrt(Number.MIN_VALUE / Number.EPSILON);
|
|
562
|
+
g.nC1_ = GEOGRAPHICLIB_GEODESIC_ORDER;
|
|
563
|
+
g.nC1p_ = GEOGRAPHICLIB_GEODESIC_ORDER;
|
|
564
|
+
g.nC2_ = GEOGRAPHICLIB_GEODESIC_ORDER;
|
|
565
|
+
g.nC3_ = GEOGRAPHICLIB_GEODESIC_ORDER;
|
|
566
|
+
g.nC4_ = GEOGRAPHICLIB_GEODESIC_ORDER;
|
|
567
|
+
nC3x_ = (g.nC3_ * (g.nC3_ - 1)) / 2;
|
|
568
|
+
nC4x_ = (g.nC4_ * (g.nC4_ + 1)) / 2;
|
|
569
|
+
g.CAP_C1 = 1 << 0;
|
|
570
|
+
g.CAP_C1p = 1 << 1;
|
|
571
|
+
g.CAP_C2 = 1 << 2;
|
|
572
|
+
g.CAP_C3 = 1 << 3;
|
|
573
|
+
g.CAP_C4 = 1 << 4;
|
|
574
|
+
g.NONE = 0;
|
|
575
|
+
g.ARC = 1 << 6;
|
|
576
|
+
g.LATITUDE = 1 << 7 | CAP_NONE;
|
|
577
|
+
g.LONGITUDE = 1 << 8 | g.CAP_C3;
|
|
578
|
+
g.AZIMUTH = 1 << 9 | CAP_NONE;
|
|
579
|
+
g.DISTANCE = 1 << 10 | g.CAP_C1;
|
|
580
|
+
g.STANDARD = g.LATITUDE | g.LONGITUDE | g.AZIMUTH | g.DISTANCE;
|
|
581
|
+
g.DISTANCE_IN = 1 << 11 | g.CAP_C1 | g.CAP_C1p;
|
|
582
|
+
g.REDUCEDLENGTH = 1 << 12 | g.CAP_C1 | g.CAP_C2;
|
|
583
|
+
g.GEODESICSCALE = 1 << 13 | g.CAP_C1 | g.CAP_C2;
|
|
584
|
+
g.AREA = 1 << 14 | g.CAP_C4;
|
|
585
|
+
g.ALL = OUT_ALL | CAP_ALL;
|
|
586
|
+
g.LONG_UNROLL = 1 << 15;
|
|
587
|
+
g.OUT_MASK = OUT_ALL | g.LONG_UNROLL;
|
|
588
|
+
// Original math.gl stable difference: cos(k*(x+d))-cos(k*x)
|
|
589
|
+
// = -2*sin(k*(x+d/2))*sin(k*d/2), k odd. Retain tiny arc bits.
|
|
590
|
+
g.SinCosSeries = function (sinp, sinx, cosx, c, delta) {
|
|
591
|
+
if (delta !== undefined) {
|
|
592
|
+
var h = delta / 2, sh = Math.sin(h), ch = Math.cos(h);
|
|
593
|
+
// sin((2*i+1)*mid) = (-1)^i*cos((2*i+1)*(pi/2-mid)).
|
|
594
|
+
return -2 * g.SinCosSeries(false, cosx * ch - sinx * sh, sinx * ch + cosx * sh, c.map(function (v, i) { return (i % 2 ? -v : v) * Math.sin((2 * i + 1) * h); }));
|
|
595
|
+
}
|
|
596
|
+
// Evaluate
|
|
597
|
+
// y = sinp ? sum(c[i] * sin( 2*i * x), i, 1, n) :
|
|
598
|
+
// sum(c[i] * cos((2*i+1) * x), i, 0, n-1)
|
|
599
|
+
// using Clenshaw summation. N.B. c[0] is unused for sin series
|
|
600
|
+
// Approx operation count = (n + 5) mult and (2 * n + 2) add
|
|
601
|
+
var k = c.length, // Point to one beyond last element
|
|
602
|
+
n = k - (sinp ? 1 : 0), ar = 2 * (cosx - sinx) * (cosx + sinx), // 2 * cos(2 * x)
|
|
603
|
+
y0 = n & 1 ? c[--k] : 0, y1 = 0; // accumulators for sum
|
|
604
|
+
// Now n is even
|
|
605
|
+
n = Math.floor(n / 2);
|
|
606
|
+
while (n--) {
|
|
607
|
+
// Unroll loop x 2, so accumulators return to their original role
|
|
608
|
+
y1 = ar * y0 - y1 + c[--k];
|
|
609
|
+
y0 = ar * y1 - y0 + c[--k];
|
|
610
|
+
}
|
|
611
|
+
return (sinp ? 2 * sinx * cosx * y0 : // sin(2 * x) * y0
|
|
612
|
+
cosx * (y0 - y1)); // cos(x) * (y0 - y1)
|
|
613
|
+
};
|
|
614
|
+
astroid = function (x, y) {
|
|
615
|
+
// Solve k^4+2*k^3-(x^2+y^2-1)*k^2-2*y^2*k-y^2 = 0 for positive
|
|
616
|
+
// root k. This solution is adapted from Geocentric::Reverse.
|
|
617
|
+
var k, p = m.sq(x), q = m.sq(y), r = (p + q - 1) / 6, S, r2, r3, disc, u, T3, T, ang, v, uv, w;
|
|
618
|
+
if (!(q === 0 && r <= 0)) {
|
|
619
|
+
// Avoid possible division by zero when r = 0 by multiplying
|
|
620
|
+
// equations for s and t by r^3 and r, resp.
|
|
621
|
+
S = p * q / 4; // S = r^3 * s
|
|
622
|
+
r2 = m.sq(r);
|
|
623
|
+
r3 = r * r2;
|
|
624
|
+
// The discriminant of the quadratic equation for T3. This is
|
|
625
|
+
// zero on the evolute curve p^(1/3)+q^(1/3) = 1
|
|
626
|
+
disc = S * (S + 2 * r3);
|
|
627
|
+
u = r;
|
|
628
|
+
if (disc >= 0) {
|
|
629
|
+
T3 = S + r3;
|
|
630
|
+
// Pick the sign on the sqrt to maximize abs(T3). This
|
|
631
|
+
// minimizes loss of precision due to cancellation. The
|
|
632
|
+
// result is unchanged because of the way the T is used
|
|
633
|
+
// in definition of u.
|
|
634
|
+
T3 += T3 < 0 ? -Math.sqrt(disc) : Math.sqrt(disc); // T3 = (r * t)^3
|
|
635
|
+
// N.B. cbrt always returns the real root. cbrt(-8) = -2.
|
|
636
|
+
T = m.cbrt(T3); // T = r * t
|
|
637
|
+
// T can be zero; but then r2 / T -> 0.
|
|
638
|
+
u += T + (T !== 0 ? r2 / T : 0);
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
// T is complex, but the way u is defined the result is real.
|
|
642
|
+
ang = Math.atan2(Math.sqrt(-disc), -(S + r3));
|
|
643
|
+
// There are three possible cube roots. We choose the
|
|
644
|
+
// root which avoids cancellation. Note that disc < 0
|
|
645
|
+
// implies that r < 0.
|
|
646
|
+
u += 2 * r * Math.cos(ang / 3);
|
|
647
|
+
}
|
|
648
|
+
v = Math.sqrt(m.sq(u) + q); // guaranteed positive
|
|
649
|
+
// Avoid loss of accuracy when u < 0.
|
|
650
|
+
uv = u < 0 ? q / (v - u) : u + v; // u+v, guaranteed positive
|
|
651
|
+
w = (uv - q) / (2 * v); // positive?
|
|
652
|
+
// Rearrange expression for k to avoid loss of accuracy due to
|
|
653
|
+
// subtraction. Division by 0 not possible because uv > 0, w >= 0.
|
|
654
|
+
k = uv / (Math.sqrt(uv + m.sq(w)) + w); // guaranteed positive
|
|
655
|
+
}
|
|
656
|
+
else { // q == 0 && r <= 0
|
|
657
|
+
// y = 0 with |x| <= 1. Handle this case directly.
|
|
658
|
+
// for y small, positive root is k = abs(y)/sqrt(1-x^2)
|
|
659
|
+
k = 0;
|
|
660
|
+
}
|
|
661
|
+
return k;
|
|
662
|
+
};
|
|
663
|
+
A1m1f_coeff = [
|
|
664
|
+
// (1-eps)*A1-1, polynomial in eps2 of order 3
|
|
665
|
+
+1, 4, 64, 0, 256
|
|
666
|
+
];
|
|
667
|
+
// The scale factor A1-1 = mean value of (d/dsigma)I1 - 1
|
|
668
|
+
g.A1m1f = function (eps) {
|
|
669
|
+
var p = Math.floor(nA1_ / 2), t = m.polyval(p, A1m1f_coeff, 0, m.sq(eps)) / A1m1f_coeff[p + 1];
|
|
670
|
+
return (t + eps) / (1 - eps);
|
|
671
|
+
};
|
|
672
|
+
C1f_coeff = [
|
|
673
|
+
// C1[1]/eps^1, polynomial in eps2 of order 2
|
|
674
|
+
-1, 6, -16, 32,
|
|
675
|
+
// C1[2]/eps^2, polynomial in eps2 of order 2
|
|
676
|
+
-9, 64, -128, 2048,
|
|
677
|
+
// C1[3]/eps^3, polynomial in eps2 of order 1
|
|
678
|
+
+9, -16, 768,
|
|
679
|
+
// C1[4]/eps^4, polynomial in eps2 of order 1
|
|
680
|
+
+3, -5, 512,
|
|
681
|
+
// C1[5]/eps^5, polynomial in eps2 of order 0
|
|
682
|
+
-7, 1280,
|
|
683
|
+
// C1[6]/eps^6, polynomial in eps2 of order 0
|
|
684
|
+
-7, 2048
|
|
685
|
+
];
|
|
686
|
+
// The coefficients C1[l] in the Fourier expansion of B1
|
|
687
|
+
g.C1f = function (eps, c) {
|
|
688
|
+
var eps2 = m.sq(eps), d = eps, o = 0, l, p;
|
|
689
|
+
for (l = 1; l <= g.nC1_; ++l) { // l is index of C1p[l]
|
|
690
|
+
p = Math.floor((g.nC1_ - l) / 2); // order of polynomial in eps^2
|
|
691
|
+
c[l] = d * m.polyval(p, C1f_coeff, o, eps2) / C1f_coeff[o + p + 1];
|
|
692
|
+
o += p + 2;
|
|
693
|
+
d *= eps;
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
C1pf_coeff = [
|
|
697
|
+
// C1p[1]/eps^1, polynomial in eps2 of order 2
|
|
698
|
+
+205, -432, 768, 1536,
|
|
699
|
+
// C1p[2]/eps^2, polynomial in eps2 of order 2
|
|
700
|
+
+4005, -4736, 3840, 12288,
|
|
701
|
+
// C1p[3]/eps^3, polynomial in eps2 of order 1
|
|
702
|
+
-225, 116, 384,
|
|
703
|
+
// C1p[4]/eps^4, polynomial in eps2 of order 1
|
|
704
|
+
-7173, 2695, 7680,
|
|
705
|
+
// C1p[5]/eps^5, polynomial in eps2 of order 0
|
|
706
|
+
+3467, 7680,
|
|
707
|
+
// C1p[6]/eps^6, polynomial in eps2 of order 0
|
|
708
|
+
+38081, 61440
|
|
709
|
+
];
|
|
710
|
+
// The coefficients C1p[l] in the Fourier expansion of B1p
|
|
711
|
+
g.C1pf = function (eps, c) {
|
|
712
|
+
var eps2 = m.sq(eps), d = eps, o = 0, l, p;
|
|
713
|
+
for (l = 1; l <= g.nC1p_; ++l) { // l is index of C1p[l]
|
|
714
|
+
p = Math.floor((g.nC1p_ - l) / 2); // order of polynomial in eps^2
|
|
715
|
+
c[l] = d * m.polyval(p, C1pf_coeff, o, eps2) / C1pf_coeff[o + p + 1];
|
|
716
|
+
o += p + 2;
|
|
717
|
+
d *= eps;
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
A2m1f_coeff = [
|
|
721
|
+
// (eps+1)*A2-1, polynomial in eps2 of order 3
|
|
722
|
+
-11, -28, -192, 0, 256
|
|
723
|
+
];
|
|
724
|
+
// The scale factor A2-1 = mean value of (d/dsigma)I2 - 1
|
|
725
|
+
g.A2m1f = function (eps) {
|
|
726
|
+
var p = Math.floor(nA2_ / 2), t = m.polyval(p, A2m1f_coeff, 0, m.sq(eps)) / A2m1f_coeff[p + 1];
|
|
727
|
+
return (t - eps) / (1 + eps);
|
|
728
|
+
};
|
|
729
|
+
C2f_coeff = [
|
|
730
|
+
// C2[1]/eps^1, polynomial in eps2 of order 2
|
|
731
|
+
+1, 2, 16, 32,
|
|
732
|
+
// C2[2]/eps^2, polynomial in eps2 of order 2
|
|
733
|
+
+35, 64, 384, 2048,
|
|
734
|
+
// C2[3]/eps^3, polynomial in eps2 of order 1
|
|
735
|
+
+15, 80, 768,
|
|
736
|
+
// C2[4]/eps^4, polynomial in eps2 of order 1
|
|
737
|
+
+7, 35, 512,
|
|
738
|
+
// C2[5]/eps^5, polynomial in eps2 of order 0
|
|
739
|
+
+63, 1280,
|
|
740
|
+
// C2[6]/eps^6, polynomial in eps2 of order 0
|
|
741
|
+
+77, 2048
|
|
742
|
+
];
|
|
743
|
+
// The coefficients C2[l] in the Fourier expansion of B2
|
|
744
|
+
g.C2f = function (eps, c) {
|
|
745
|
+
var eps2 = m.sq(eps), d = eps, o = 0, l, p;
|
|
746
|
+
for (l = 1; l <= g.nC2_; ++l) { // l is index of C2[l]
|
|
747
|
+
p = Math.floor((g.nC2_ - l) / 2); // order of polynomial in eps^2
|
|
748
|
+
c[l] = d * m.polyval(p, C2f_coeff, o, eps2) / C2f_coeff[o + p + 1];
|
|
749
|
+
o += p + 2;
|
|
750
|
+
d *= eps;
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* @class
|
|
755
|
+
* @property {number} a the equatorial radius (meters).
|
|
756
|
+
* @property {number} f the flattening.
|
|
757
|
+
* @summary Initialize a Geodesic object for a specific ellipsoid.
|
|
758
|
+
* @classdesc Performs geodesic calculations on an ellipsoid of revolution.
|
|
759
|
+
* The routines for solving the direct and inverse problems return an
|
|
760
|
+
* object with some of the following fields set: lat1, lon1, azi1, lat2,
|
|
761
|
+
* lon2, azi2, s12, a12, m12, M12, M21, S12. See {@tutorial 2-interface},
|
|
762
|
+
* section "The results".
|
|
763
|
+
* @example
|
|
764
|
+
* var geodesic = require("geographiclib-geodesic"),
|
|
765
|
+
* geod = geodesic.Geodesic.WGS84;
|
|
766
|
+
* var inv = geod.Inverse(1,2,3,4);
|
|
767
|
+
* console.log("lat1 = " + inv.lat1 + ", lon1 = " + inv.lon1 +
|
|
768
|
+
* ", lat2 = " + inv.lat2 + ", lon2 = " + inv.lon2 +
|
|
769
|
+
* ",\nazi1 = " + inv.azi1 + ", azi2 = " + inv.azi2 +
|
|
770
|
+
* ", s12 = " + inv.s12);
|
|
771
|
+
* @param {number} a the equatorial radius of the ellipsoid (meters).
|
|
772
|
+
* @param {number} f the flattening of the ellipsoid. Setting f = 0 gives
|
|
773
|
+
* a sphere (on which geodesics are great circles). Negative f gives a
|
|
774
|
+
* prolate ellipsoid.
|
|
775
|
+
* @throws an error if the parameters are illegal.
|
|
776
|
+
*/
|
|
777
|
+
g.Geodesic = function (a, f) {
|
|
778
|
+
this.a = a;
|
|
779
|
+
this.f = f;
|
|
780
|
+
this._f1 = 1 - this.f;
|
|
781
|
+
this._e2 = this.f * (2 - this.f);
|
|
782
|
+
this._ep2 = this._e2 / m.sq(this._f1); // e2 / (1 - e2)
|
|
783
|
+
this._n = this.f / (2 - this.f);
|
|
784
|
+
this._b = this.a * this._f1;
|
|
785
|
+
// authalic radius squared
|
|
786
|
+
this._c2 = (m.sq(this.a) + m.sq(this._b) *
|
|
787
|
+
(this._e2 === 0 ? 1 :
|
|
788
|
+
(this._e2 > 0 ? m.atanh(Math.sqrt(this._e2)) :
|
|
789
|
+
Math.atan(Math.sqrt(-this._e2))) /
|
|
790
|
+
Math.sqrt(Math.abs(this._e2)))) / 2;
|
|
791
|
+
// The sig12 threshold for "really short". Using the auxiliary sphere
|
|
792
|
+
// solution with dnm computed at (bet1 + bet2) / 2, the relative error in
|
|
793
|
+
// the azimuth consistency check is sig12^2 * abs(f) * min(1, 1-f/2) / 2.
|
|
794
|
+
// (Error measured for 1/100 < b/a < 100 and abs(f) >= 1/1000. For a given
|
|
795
|
+
// f and sig12, the max error occurs for lines near the pole. If the old
|
|
796
|
+
// rule for computing dnm = (dn1 + dn2)/2 is used, then the error increases
|
|
797
|
+
// by a factor of 2.) Setting this equal to epsilon gives sig12 = etol2.
|
|
798
|
+
// Here 0.1 is a safety factor (error decreased by 100) and max(0.001,
|
|
799
|
+
// abs(f)) stops etol2 getting too large in the nearly spherical case.
|
|
800
|
+
this._etol2 = 0.1 * tol2_ /
|
|
801
|
+
Math.sqrt(Math.max(0.001, Math.abs(this.f)) *
|
|
802
|
+
Math.min(1, 1 - this.f / 2) / 2);
|
|
803
|
+
if (!(isFinite(this.a) && this.a > 0))
|
|
804
|
+
throw new Error("Equatorial radius is not positive");
|
|
805
|
+
if (!(isFinite(this._b) && this._b > 0))
|
|
806
|
+
throw new Error("Polar semi-axis is not positive");
|
|
807
|
+
this._A3x = new Array(nA3x_);
|
|
808
|
+
this._C3x = new Array(nC3x_);
|
|
809
|
+
this._C4x = new Array(nC4x_);
|
|
810
|
+
this.A3coeff();
|
|
811
|
+
this.C3coeff();
|
|
812
|
+
this.C4coeff();
|
|
813
|
+
};
|
|
814
|
+
A3_coeff = [
|
|
815
|
+
// A3, coeff of eps^5, polynomial in n of order 0
|
|
816
|
+
-3, 128,
|
|
817
|
+
// A3, coeff of eps^4, polynomial in n of order 1
|
|
818
|
+
-2, -3, 64,
|
|
819
|
+
// A3, coeff of eps^3, polynomial in n of order 2
|
|
820
|
+
-1, -3, -1, 16,
|
|
821
|
+
// A3, coeff of eps^2, polynomial in n of order 2
|
|
822
|
+
+3, -1, -2, 8,
|
|
823
|
+
// A3, coeff of eps^1, polynomial in n of order 1
|
|
824
|
+
+1, -1, 2,
|
|
825
|
+
// A3, coeff of eps^0, polynomial in n of order 0
|
|
826
|
+
+1, 1
|
|
827
|
+
];
|
|
828
|
+
// The scale factor A3 = mean value of (d/dsigma)I3
|
|
829
|
+
g.Geodesic.prototype.A3coeff = function () {
|
|
830
|
+
var o = 0, k = 0, j, p;
|
|
831
|
+
for (j = nA3_ - 1; j >= 0; --j) { // coeff of eps^j
|
|
832
|
+
p = Math.min(nA3_ - j - 1, j); // order of polynomial in n
|
|
833
|
+
this._A3x[k++] = m.polyval(p, A3_coeff, o, this._n) /
|
|
834
|
+
A3_coeff[o + p + 1];
|
|
835
|
+
o += p + 2;
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
C3_coeff = [
|
|
839
|
+
// C3[1], coeff of eps^5, polynomial in n of order 0
|
|
840
|
+
+3, 128,
|
|
841
|
+
// C3[1], coeff of eps^4, polynomial in n of order 1
|
|
842
|
+
+2, 5, 128,
|
|
843
|
+
// C3[1], coeff of eps^3, polynomial in n of order 2
|
|
844
|
+
-1, 3, 3, 64,
|
|
845
|
+
// C3[1], coeff of eps^2, polynomial in n of order 2
|
|
846
|
+
-1, 0, 1, 8,
|
|
847
|
+
// C3[1], coeff of eps^1, polynomial in n of order 1
|
|
848
|
+
-1, 1, 4,
|
|
849
|
+
// C3[2], coeff of eps^5, polynomial in n of order 0
|
|
850
|
+
+5, 256,
|
|
851
|
+
// C3[2], coeff of eps^4, polynomial in n of order 1
|
|
852
|
+
+1, 3, 128,
|
|
853
|
+
// C3[2], coeff of eps^3, polynomial in n of order 2
|
|
854
|
+
-3, -2, 3, 64,
|
|
855
|
+
// C3[2], coeff of eps^2, polynomial in n of order 2
|
|
856
|
+
+1, -3, 2, 32,
|
|
857
|
+
// C3[3], coeff of eps^5, polynomial in n of order 0
|
|
858
|
+
+7, 512,
|
|
859
|
+
// C3[3], coeff of eps^4, polynomial in n of order 1
|
|
860
|
+
-10, 9, 384,
|
|
861
|
+
// C3[3], coeff of eps^3, polynomial in n of order 2
|
|
862
|
+
+5, -9, 5, 192,
|
|
863
|
+
// C3[4], coeff of eps^5, polynomial in n of order 0
|
|
864
|
+
+7, 512,
|
|
865
|
+
// C3[4], coeff of eps^4, polynomial in n of order 1
|
|
866
|
+
-14, 7, 512,
|
|
867
|
+
// C3[5], coeff of eps^5, polynomial in n of order 0
|
|
868
|
+
+21, 2560
|
|
869
|
+
];
|
|
870
|
+
// The coefficients C3[l] in the Fourier expansion of B3
|
|
871
|
+
g.Geodesic.prototype.C3coeff = function () {
|
|
872
|
+
var o = 0, k = 0, l, j, p;
|
|
873
|
+
for (l = 1; l < g.nC3_; ++l) { // l is index of C3[l]
|
|
874
|
+
for (j = g.nC3_ - 1; j >= l; --j) { // coeff of eps^j
|
|
875
|
+
p = Math.min(g.nC3_ - j - 1, j); // order of polynomial in n
|
|
876
|
+
this._C3x[k++] = m.polyval(p, C3_coeff, o, this._n) /
|
|
877
|
+
C3_coeff[o + p + 1];
|
|
878
|
+
o += p + 2;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
C4_coeff = [
|
|
883
|
+
// C4[0], coeff of eps^5, polynomial in n of order 0
|
|
884
|
+
+97, 15015,
|
|
885
|
+
// C4[0], coeff of eps^4, polynomial in n of order 1
|
|
886
|
+
+1088, 156, 45045,
|
|
887
|
+
// C4[0], coeff of eps^3, polynomial in n of order 2
|
|
888
|
+
-224, -4784, 1573, 45045,
|
|
889
|
+
// C4[0], coeff of eps^2, polynomial in n of order 3
|
|
890
|
+
-10656, 14144, -4576, -858, 45045,
|
|
891
|
+
// C4[0], coeff of eps^1, polynomial in n of order 4
|
|
892
|
+
+64, 624, -4576, 6864, -3003, 15015,
|
|
893
|
+
// C4[0], coeff of eps^0, polynomial in n of order 5
|
|
894
|
+
+100, 208, 572, 3432, -12012, 30030, 45045,
|
|
895
|
+
// C4[1], coeff of eps^5, polynomial in n of order 0
|
|
896
|
+
+1, 9009,
|
|
897
|
+
// C4[1], coeff of eps^4, polynomial in n of order 1
|
|
898
|
+
-2944, 468, 135135,
|
|
899
|
+
// C4[1], coeff of eps^3, polynomial in n of order 2
|
|
900
|
+
+5792, 1040, -1287, 135135,
|
|
901
|
+
// C4[1], coeff of eps^2, polynomial in n of order 3
|
|
902
|
+
+5952, -11648, 9152, -2574, 135135,
|
|
903
|
+
// C4[1], coeff of eps^1, polynomial in n of order 4
|
|
904
|
+
-64, -624, 4576, -6864, 3003, 135135,
|
|
905
|
+
// C4[2], coeff of eps^5, polynomial in n of order 0
|
|
906
|
+
+8, 10725,
|
|
907
|
+
// C4[2], coeff of eps^4, polynomial in n of order 1
|
|
908
|
+
+1856, -936, 225225,
|
|
909
|
+
// C4[2], coeff of eps^3, polynomial in n of order 2
|
|
910
|
+
-8448, 4992, -1144, 225225,
|
|
911
|
+
// C4[2], coeff of eps^2, polynomial in n of order 3
|
|
912
|
+
-1440, 4160, -4576, 1716, 225225,
|
|
913
|
+
// C4[3], coeff of eps^5, polynomial in n of order 0
|
|
914
|
+
-136, 63063,
|
|
915
|
+
// C4[3], coeff of eps^4, polynomial in n of order 1
|
|
916
|
+
+1024, -208, 105105,
|
|
917
|
+
// C4[3], coeff of eps^3, polynomial in n of order 2
|
|
918
|
+
+3584, -3328, 1144, 315315,
|
|
919
|
+
// C4[4], coeff of eps^5, polynomial in n of order 0
|
|
920
|
+
-128, 135135,
|
|
921
|
+
// C4[4], coeff of eps^4, polynomial in n of order 1
|
|
922
|
+
-2560, 832, 405405,
|
|
923
|
+
// C4[5], coeff of eps^5, polynomial in n of order 0
|
|
924
|
+
+128, 99099
|
|
925
|
+
];
|
|
926
|
+
g.Geodesic.prototype.C4coeff = function () {
|
|
927
|
+
var o = 0, k = 0, l, j, p;
|
|
928
|
+
for (l = 0; l < g.nC4_; ++l) { // l is index of C4[l]
|
|
929
|
+
for (j = g.nC4_ - 1; j >= l; --j) { // coeff of eps^j
|
|
930
|
+
p = g.nC4_ - j - 1; // order of polynomial in n
|
|
931
|
+
this._C4x[k++] = m.polyval(p, C4_coeff, o, this._n) /
|
|
932
|
+
C4_coeff[o + p + 1];
|
|
933
|
+
o += p + 2;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
g.Geodesic.prototype.A3f = function (eps) {
|
|
938
|
+
// Evaluate A3
|
|
939
|
+
return m.polyval(nA3x_ - 1, this._A3x, 0, eps);
|
|
940
|
+
};
|
|
941
|
+
g.Geodesic.prototype.C3f = function (eps, c) {
|
|
942
|
+
// Evaluate C3 coeffs
|
|
943
|
+
// Elements c[1] thru c[nC3_ - 1] are set
|
|
944
|
+
var mult = 1, o = 0, l, p;
|
|
945
|
+
for (l = 1; l < g.nC3_; ++l) { // l is index of C3[l]
|
|
946
|
+
p = g.nC3_ - l - 1; // order of polynomial in eps
|
|
947
|
+
mult *= eps;
|
|
948
|
+
c[l] = mult * m.polyval(p, this._C3x, o, eps);
|
|
949
|
+
o += p + 1;
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
g.Geodesic.prototype.C4f = function (eps, c) {
|
|
953
|
+
// Evaluate C4 coeffs
|
|
954
|
+
// Elements c[0] thru c[g.nC4_ - 1] are set
|
|
955
|
+
var mult = 1, o = 0, l, p;
|
|
956
|
+
for (l = 0; l < g.nC4_; ++l) { // l is index of C4[l]
|
|
957
|
+
p = g.nC4_ - l - 1; // order of polynomial in eps
|
|
958
|
+
c[l] = mult * m.polyval(p, this._C4x, o, eps);
|
|
959
|
+
o += p + 1;
|
|
960
|
+
mult *= eps;
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
// return s12b, m12b, m0, M12, M21
|
|
964
|
+
g.Geodesic.prototype.Lengths = function (eps, sig12, ssig1, csig1, dn1, ssig2, csig2, dn2, cbet1, cbet2, outmask, C1a, C2a) {
|
|
965
|
+
// Return m12b = (reduced length)/_b; also calculate s12b =
|
|
966
|
+
// distance/_b, and m0 = coefficient of secular term in
|
|
967
|
+
// expression for reduced length.
|
|
968
|
+
outmask &= g.OUT_MASK;
|
|
969
|
+
var vals = {}, m0x = 0, J12 = 0, A1 = 0, A2 = 0, B1, B2, l, csig12, t;
|
|
970
|
+
if (outmask & (g.DISTANCE | g.REDUCEDLENGTH | g.GEODESICSCALE)) {
|
|
971
|
+
A1 = g.A1m1f(eps);
|
|
972
|
+
g.C1f(eps, C1a);
|
|
973
|
+
if (outmask & (g.REDUCEDLENGTH | g.GEODESICSCALE)) {
|
|
974
|
+
A2 = g.A2m1f(eps);
|
|
975
|
+
g.C2f(eps, C2a);
|
|
976
|
+
m0x = A1 - A2;
|
|
977
|
+
A2 = 1 + A2;
|
|
978
|
+
}
|
|
979
|
+
A1 = 1 + A1;
|
|
980
|
+
}
|
|
981
|
+
if (outmask & g.DISTANCE) {
|
|
982
|
+
B1 = g.SinCosSeries(true, ssig2, csig2, C1a) -
|
|
983
|
+
g.SinCosSeries(true, ssig1, csig1, C1a);
|
|
984
|
+
// Missing a factor of _b
|
|
985
|
+
vals.s12b = A1 * (sig12 + B1);
|
|
986
|
+
if (outmask & (g.REDUCEDLENGTH | g.GEODESICSCALE)) {
|
|
987
|
+
B2 = g.SinCosSeries(true, ssig2, csig2, C2a) -
|
|
988
|
+
g.SinCosSeries(true, ssig1, csig1, C2a);
|
|
989
|
+
J12 = m0x * sig12 + (A1 * B1 - A2 * B2);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
else if (outmask & (g.REDUCEDLENGTH | g.GEODESICSCALE)) {
|
|
993
|
+
// Assume here that nC1_ >= nC2_
|
|
994
|
+
for (l = 1; l <= g.nC2_; ++l)
|
|
995
|
+
C2a[l] = A1 * C1a[l] - A2 * C2a[l];
|
|
996
|
+
J12 = m0x * sig12 + (g.SinCosSeries(true, ssig2, csig2, C2a) -
|
|
997
|
+
g.SinCosSeries(true, ssig1, csig1, C2a));
|
|
998
|
+
}
|
|
999
|
+
if (outmask & g.REDUCEDLENGTH) {
|
|
1000
|
+
vals.m0 = m0x;
|
|
1001
|
+
// Missing a factor of _b.
|
|
1002
|
+
// Add parens around (csig1 * ssig2) and (ssig1 * csig2) to ensure
|
|
1003
|
+
// accurate cancellation in the case of coincident points.
|
|
1004
|
+
vals.m12b = dn2 * (csig1 * ssig2) - dn1 * (ssig1 * csig2) -
|
|
1005
|
+
csig1 * csig2 * J12;
|
|
1006
|
+
}
|
|
1007
|
+
else
|
|
1008
|
+
vals.m12b = NaN;
|
|
1009
|
+
if (outmask & g.GEODESICSCALE) {
|
|
1010
|
+
csig12 = csig1 * csig2 + ssig1 * ssig2;
|
|
1011
|
+
t = this._ep2 * (cbet1 - cbet2) * (cbet1 + cbet2) / (dn1 + dn2);
|
|
1012
|
+
vals.M12 = csig12 + (t * ssig2 - csig2 * J12) * ssig1 / dn1;
|
|
1013
|
+
vals.M21 = csig12 - (t * ssig1 - csig1 * J12) * ssig2 / dn2;
|
|
1014
|
+
}
|
|
1015
|
+
return vals;
|
|
1016
|
+
};
|
|
1017
|
+
// return sig12, salp1, calp1, salp2, calp2, dnm
|
|
1018
|
+
g.Geodesic.prototype.InverseStart = function (sbet1, cbet1, dn1, sbet2, cbet2, dn2, lam12, slam12, clam12, C1a, C2a) {
|
|
1019
|
+
// Return a starting point for Newton's method in salp1 and calp1
|
|
1020
|
+
// (function value is -1). If Newton's method doesn't need to be
|
|
1021
|
+
// used, return also salp2 and calp2 and function value is sig12.
|
|
1022
|
+
// salp2, calp2 only updated if return val >= 0.
|
|
1023
|
+
var vals = {},
|
|
1024
|
+
// bet12 = bet2 - bet1 in [0, pi); bet12a = bet2 + bet1 in (-pi, 0]
|
|
1025
|
+
sbet12 = sbet2 * cbet1 - cbet2 * sbet1, cbet12 = cbet2 * cbet1 + sbet2 * sbet1, sbet12a, shortline, omg12, sbetm2, somg12, comg12, t, ssig12, csig12, x, y, lamscale, betscale, k2, eps, cbet12a, bet12a, m12b, m0, nvals, k, omg12a, lam12x;
|
|
1026
|
+
vals.sig12 = -1; // Return value
|
|
1027
|
+
// Volatile declaration needed to fix inverse cases
|
|
1028
|
+
// 88.202499451857 0 -88.202499451857 179.981022032992859592
|
|
1029
|
+
// 89.262080389218 0 -89.262080389218 179.992207982775375662
|
|
1030
|
+
// 89.333123580033 0 -89.333123580032997687 179.99295812360148422
|
|
1031
|
+
// which otherwise fail with g++ 4.4.4 x86 -O3
|
|
1032
|
+
sbet12a = sbet2 * cbet1;
|
|
1033
|
+
sbet12a += cbet2 * sbet1;
|
|
1034
|
+
shortline = cbet12 >= 0 && sbet12 < 0.5 && cbet2 * lam12 < 0.5;
|
|
1035
|
+
if (shortline) {
|
|
1036
|
+
sbetm2 = m.sq(sbet1 + sbet2);
|
|
1037
|
+
// sin((bet1+bet2)/2)^2
|
|
1038
|
+
// = (sbet1 + sbet2)^2 / ((sbet1 + sbet2)^2 + (cbet1 + cbet2)^2)
|
|
1039
|
+
sbetm2 /= sbetm2 + m.sq(cbet1 + cbet2);
|
|
1040
|
+
vals.dnm = Math.sqrt(1 + this._ep2 * sbetm2);
|
|
1041
|
+
omg12 = lam12 / (this._f1 * vals.dnm);
|
|
1042
|
+
somg12 = Math.sin(omg12);
|
|
1043
|
+
comg12 = Math.cos(omg12);
|
|
1044
|
+
}
|
|
1045
|
+
else {
|
|
1046
|
+
somg12 = slam12;
|
|
1047
|
+
comg12 = clam12;
|
|
1048
|
+
}
|
|
1049
|
+
vals.salp1 = cbet2 * somg12;
|
|
1050
|
+
vals.calp1 = comg12 >= 0 ?
|
|
1051
|
+
sbet12 + cbet2 * sbet1 * m.sq(somg12) / (1 + comg12) :
|
|
1052
|
+
sbet12a - cbet2 * sbet1 * m.sq(somg12) / (1 - comg12);
|
|
1053
|
+
ssig12 = m.hypot(vals.salp1, vals.calp1);
|
|
1054
|
+
csig12 = sbet1 * sbet2 + cbet1 * cbet2 * comg12;
|
|
1055
|
+
if (shortline && ssig12 < this._etol2) {
|
|
1056
|
+
// really short lines
|
|
1057
|
+
vals.salp2 = cbet1 * somg12;
|
|
1058
|
+
vals.calp2 = sbet12 - cbet1 * sbet2 *
|
|
1059
|
+
(comg12 >= 0 ? m.sq(somg12) / (1 + comg12) : 1 - comg12);
|
|
1060
|
+
// norm(vals.salp2, vals.calp2);
|
|
1061
|
+
t = m.hypot(vals.salp2, vals.calp2);
|
|
1062
|
+
vals.salp2 /= t;
|
|
1063
|
+
vals.calp2 /= t;
|
|
1064
|
+
// Set return value
|
|
1065
|
+
vals.sig12 = Math.atan2(ssig12, csig12);
|
|
1066
|
+
}
|
|
1067
|
+
else if (Math.abs(this._n) > 0.1 || // Skip astroid calc if too eccentric
|
|
1068
|
+
csig12 >= 0 ||
|
|
1069
|
+
ssig12 >= 6 * Math.abs(this._n) * Math.PI * m.sq(cbet1)) {
|
|
1070
|
+
// Nothing to do, zeroth order spherical approximation is OK
|
|
1071
|
+
}
|
|
1072
|
+
else {
|
|
1073
|
+
// Scale lam12 and bet2 to x, y coordinate system where antipodal
|
|
1074
|
+
// point is at origin and singular point is at y = 0, x = -1.
|
|
1075
|
+
lam12x = Math.atan2(-slam12, -clam12); // lam12 - pi
|
|
1076
|
+
if (this.f >= 0) { // In fact f == 0 does not get here
|
|
1077
|
+
// x = dlong, y = dlat
|
|
1078
|
+
k2 = m.sq(sbet1) * this._ep2;
|
|
1079
|
+
eps = k2 / (2 * (1 + Math.sqrt(1 + k2)) + k2);
|
|
1080
|
+
lamscale = this.f * cbet1 * this.A3f(eps) * Math.PI;
|
|
1081
|
+
betscale = lamscale * cbet1;
|
|
1082
|
+
x = lam12x / lamscale;
|
|
1083
|
+
y = sbet12a / betscale;
|
|
1084
|
+
}
|
|
1085
|
+
else { // f < 0
|
|
1086
|
+
// x = dlat, y = dlong
|
|
1087
|
+
cbet12a = cbet2 * cbet1 - sbet2 * sbet1;
|
|
1088
|
+
bet12a = Math.atan2(sbet12a, cbet12a);
|
|
1089
|
+
// In the case of lon12 = 180, this repeats a calculation made
|
|
1090
|
+
// in Inverse.
|
|
1091
|
+
nvals = this.Lengths(this._n, Math.PI + bet12a, sbet1, -cbet1, dn1, sbet2, cbet2, dn2, cbet1, cbet2, g.REDUCEDLENGTH, C1a, C2a);
|
|
1092
|
+
m12b = nvals.m12b;
|
|
1093
|
+
m0 = nvals.m0;
|
|
1094
|
+
x = -1 + m12b / (cbet1 * cbet2 * m0 * Math.PI);
|
|
1095
|
+
betscale = x < -0.01 ? sbet12a / x :
|
|
1096
|
+
-this.f * m.sq(cbet1) * Math.PI;
|
|
1097
|
+
lamscale = betscale / cbet1;
|
|
1098
|
+
y = lam12 / lamscale;
|
|
1099
|
+
}
|
|
1100
|
+
if (y > -tol1_ && x > -1 - xthresh_) {
|
|
1101
|
+
// strip near cut
|
|
1102
|
+
if (this.f >= 0) {
|
|
1103
|
+
vals.salp1 = Math.min(1, -x);
|
|
1104
|
+
vals.calp1 = -Math.sqrt(1 - m.sq(vals.salp1));
|
|
1105
|
+
}
|
|
1106
|
+
else {
|
|
1107
|
+
vals.calp1 = Math.max(x > -tol1_ ? 0 : -1, x);
|
|
1108
|
+
vals.salp1 = Math.sqrt(1 - m.sq(vals.calp1));
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
else {
|
|
1112
|
+
// Estimate alp1, by solving the astroid problem.
|
|
1113
|
+
//
|
|
1114
|
+
// Could estimate alpha1 = theta + pi/2, directly, i.e.,
|
|
1115
|
+
// calp1 = y/k; salp1 = -x/(1+k); for f >= 0
|
|
1116
|
+
// calp1 = x/(1+k); salp1 = -y/k; for f < 0 (need to check)
|
|
1117
|
+
//
|
|
1118
|
+
// However, it's better to estimate omg12 from astroid and use
|
|
1119
|
+
// spherical formula to compute alp1. This reduces the mean number of
|
|
1120
|
+
// Newton iterations for astroid cases from 2.24 (min 0, max 6) to 2.12
|
|
1121
|
+
// (min 0 max 5). The changes in the number of iterations are as
|
|
1122
|
+
// follows:
|
|
1123
|
+
//
|
|
1124
|
+
// change percent
|
|
1125
|
+
// 1 5
|
|
1126
|
+
// 0 78
|
|
1127
|
+
// -1 16
|
|
1128
|
+
// -2 0.6
|
|
1129
|
+
// -3 0.04
|
|
1130
|
+
// -4 0.002
|
|
1131
|
+
//
|
|
1132
|
+
// The histogram of iterations is (m = number of iterations estimating
|
|
1133
|
+
// alp1 directly, n = number of iterations estimating via omg12, total
|
|
1134
|
+
// number of trials = 148605):
|
|
1135
|
+
//
|
|
1136
|
+
// iter m n
|
|
1137
|
+
// 0 148 186
|
|
1138
|
+
// 1 13046 13845
|
|
1139
|
+
// 2 93315 102225
|
|
1140
|
+
// 3 36189 32341
|
|
1141
|
+
// 4 5396 7
|
|
1142
|
+
// 5 455 1
|
|
1143
|
+
// 6 56 0
|
|
1144
|
+
//
|
|
1145
|
+
// Because omg12 is near pi, estimate work with omg12a = pi - omg12
|
|
1146
|
+
k = astroid(x, y);
|
|
1147
|
+
omg12a = lamscale * (this.f >= 0 ? -x * k / (1 + k) : -y * (1 + k) / k);
|
|
1148
|
+
somg12 = Math.sin(omg12a);
|
|
1149
|
+
comg12 = -Math.cos(omg12a);
|
|
1150
|
+
// Update spherical estimate of alp1 using omg12 instead of
|
|
1151
|
+
// lam12
|
|
1152
|
+
vals.salp1 = cbet2 * somg12;
|
|
1153
|
+
vals.calp1 = sbet12a -
|
|
1154
|
+
cbet2 * sbet1 * m.sq(somg12) / (1 - comg12);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
// Sanity check on starting guess. Backwards check allows NaN through.
|
|
1158
|
+
// jshint -W018
|
|
1159
|
+
if (!(vals.salp1 <= 0)) {
|
|
1160
|
+
// norm(vals.salp1, vals.calp1);
|
|
1161
|
+
t = m.hypot(vals.salp1, vals.calp1);
|
|
1162
|
+
vals.salp1 /= t;
|
|
1163
|
+
vals.calp1 /= t;
|
|
1164
|
+
}
|
|
1165
|
+
else {
|
|
1166
|
+
vals.salp1 = 1;
|
|
1167
|
+
vals.calp1 = 0;
|
|
1168
|
+
}
|
|
1169
|
+
return vals;
|
|
1170
|
+
};
|
|
1171
|
+
// return lam12, salp2, calp2, sig12, ssig1, csig1, ssig2, csig2, eps,
|
|
1172
|
+
// domg12, dlam12,
|
|
1173
|
+
g.Geodesic.prototype.Lambda12 = function (sbet1, cbet1, dn1, sbet2, cbet2, dn2, salp1, calp1, slam120, clam120, diffp, C1a, C2a, C3a) {
|
|
1174
|
+
var vals = {}, t, salp0, calp0, somg1, comg1, somg2, comg2, somg12, comg12, B312, eta, k2, nvals;
|
|
1175
|
+
if (sbet1 === 0 && calp1 === 0)
|
|
1176
|
+
// Break degeneracy of equatorial line. This case has already been
|
|
1177
|
+
// handled.
|
|
1178
|
+
calp1 = -g.tiny_;
|
|
1179
|
+
// sin(alp1) * cos(bet1) = sin(alp0)
|
|
1180
|
+
salp0 = salp1 * cbet1;
|
|
1181
|
+
calp0 = m.hypot(calp1, salp1 * sbet1); // calp0 > 0
|
|
1182
|
+
// tan(bet1) = tan(sig1) * cos(alp1)
|
|
1183
|
+
// tan(omg1) = sin(alp0) * tan(sig1) = tan(omg1)=tan(alp1)*sin(bet1)
|
|
1184
|
+
vals.ssig1 = sbet1;
|
|
1185
|
+
somg1 = salp0 * sbet1;
|
|
1186
|
+
vals.csig1 = comg1 = calp1 * cbet1;
|
|
1187
|
+
// norm(vals.ssig1, vals.csig1);
|
|
1188
|
+
t = m.hypot(vals.ssig1, vals.csig1);
|
|
1189
|
+
vals.ssig1 /= t;
|
|
1190
|
+
vals.csig1 /= t;
|
|
1191
|
+
// norm(somg1, comg1); -- don't need to normalize!
|
|
1192
|
+
// Enforce symmetries in the case abs(bet2) = -bet1. Need to be careful
|
|
1193
|
+
// about this case, since this can yield singularities in the Newton
|
|
1194
|
+
// iteration.
|
|
1195
|
+
// sin(alp2) * cos(bet2) = sin(alp0)
|
|
1196
|
+
vals.salp2 = cbet2 !== cbet1 ? salp0 / cbet2 : salp1;
|
|
1197
|
+
// calp2 = sqrt(1 - sq(salp2))
|
|
1198
|
+
// = sqrt(sq(calp0) - sq(sbet2)) / cbet2
|
|
1199
|
+
// and subst for calp0 and rearrange to give (choose positive sqrt
|
|
1200
|
+
// to give alp2 in [0, pi/2]).
|
|
1201
|
+
vals.calp2 = cbet2 !== cbet1 || Math.abs(sbet2) !== -sbet1 ?
|
|
1202
|
+
Math.sqrt(m.sq(calp1 * cbet1) + (cbet1 < -sbet1 ?
|
|
1203
|
+
(cbet2 - cbet1) * (cbet1 + cbet2) :
|
|
1204
|
+
(sbet1 - sbet2) * (sbet1 + sbet2))) /
|
|
1205
|
+
cbet2 : Math.abs(calp1);
|
|
1206
|
+
// tan(bet2) = tan(sig2) * cos(alp2)
|
|
1207
|
+
// tan(omg2) = sin(alp0) * tan(sig2).
|
|
1208
|
+
vals.ssig2 = sbet2;
|
|
1209
|
+
somg2 = salp0 * sbet2;
|
|
1210
|
+
vals.csig2 = comg2 = vals.calp2 * cbet2;
|
|
1211
|
+
// norm(vals.ssig2, vals.csig2);
|
|
1212
|
+
t = m.hypot(vals.ssig2, vals.csig2);
|
|
1213
|
+
vals.ssig2 /= t;
|
|
1214
|
+
vals.csig2 /= t;
|
|
1215
|
+
// norm(somg2, comg2); -- don't need to normalize!
|
|
1216
|
+
// sig12 = sig2 - sig1, limit to [0, pi]
|
|
1217
|
+
vals.sig12 = Math.atan2(Math.max(0, vals.csig1 * vals.ssig2 -
|
|
1218
|
+
vals.ssig1 * vals.csig2), vals.csig1 * vals.csig2 +
|
|
1219
|
+
vals.ssig1 * vals.ssig2);
|
|
1220
|
+
// omg12 = omg2 - omg1, limit to [0, pi]
|
|
1221
|
+
somg12 = Math.max(0, comg1 * somg2 - somg1 * comg2);
|
|
1222
|
+
comg12 = comg1 * comg2 + somg1 * somg2;
|
|
1223
|
+
// eta = omg12 - lam120
|
|
1224
|
+
eta = Math.atan2(somg12 * clam120 - comg12 * slam120, comg12 * clam120 + somg12 * slam120);
|
|
1225
|
+
k2 = m.sq(calp0) * this._ep2;
|
|
1226
|
+
vals.eps = k2 / (2 * (1 + Math.sqrt(1 + k2)) + k2);
|
|
1227
|
+
this.C3f(vals.eps, C3a);
|
|
1228
|
+
B312 = (g.SinCosSeries(true, vals.ssig2, vals.csig2, C3a) -
|
|
1229
|
+
g.SinCosSeries(true, vals.ssig1, vals.csig1, C3a));
|
|
1230
|
+
vals.domg12 = -this.f * this.A3f(vals.eps) * salp0 * (vals.sig12 + B312);
|
|
1231
|
+
vals.lam12 = eta + vals.domg12;
|
|
1232
|
+
if (diffp) {
|
|
1233
|
+
if (vals.calp2 === 0)
|
|
1234
|
+
vals.dlam12 = -2 * this._f1 * dn1 / sbet1;
|
|
1235
|
+
else {
|
|
1236
|
+
nvals = this.Lengths(vals.eps, vals.sig12, vals.ssig1, vals.csig1, dn1, vals.ssig2, vals.csig2, dn2, cbet1, cbet2, g.REDUCEDLENGTH, C1a, C2a);
|
|
1237
|
+
vals.dlam12 = nvals.m12b;
|
|
1238
|
+
vals.dlam12 *= this._f1 / (vals.calp2 * cbet2);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
return vals;
|
|
1242
|
+
};
|
|
1243
|
+
/**
|
|
1244
|
+
* @summary Solve the inverse geodesic problem.
|
|
1245
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1246
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1247
|
+
* @param {number} lat2 the latitude of the second point in degrees.
|
|
1248
|
+
* @param {number} lon2 the longitude of the second point in degrees.
|
|
1249
|
+
* @param {bitmask} [outmask = STANDARD] which results to include.
|
|
1250
|
+
* @return {object} the requested results
|
|
1251
|
+
* @description The lat1, lon1, lat2, lon2, and a12 fields of the result are
|
|
1252
|
+
* always set. For details on the outmask parameter, see {@tutorial
|
|
1253
|
+
* 2-interface}, "The outmask and caps parameters".
|
|
1254
|
+
*/
|
|
1255
|
+
g.Geodesic.prototype.Inverse = function (lat1, lon1, lat2, lon2, outmask) {
|
|
1256
|
+
var r, vals;
|
|
1257
|
+
if (!outmask)
|
|
1258
|
+
outmask = g.STANDARD;
|
|
1259
|
+
if (outmask === g.LONG_UNROLL)
|
|
1260
|
+
outmask |= g.STANDARD;
|
|
1261
|
+
outmask &= g.OUT_MASK;
|
|
1262
|
+
r = this.InverseInt(lat1, lon1, lat2, lon2, outmask);
|
|
1263
|
+
vals = r.vals;
|
|
1264
|
+
if (outmask & g.AZIMUTH) {
|
|
1265
|
+
vals.azi1 = m.atan2d(r.salp1, r.calp1);
|
|
1266
|
+
vals.azi2 = m.atan2d(r.salp2, r.calp2);
|
|
1267
|
+
}
|
|
1268
|
+
return vals;
|
|
1269
|
+
};
|
|
1270
|
+
g.Geodesic.prototype.InverseInt = function (lat1, lon1, lat2, lon2, outmask) {
|
|
1271
|
+
var vals = {}, lon12, lon12s, lonsign, t, swapp, latsign, sbet1, cbet1, sbet2, cbet2, s12x, m12x, dn1, dn2, lam12, slam12, clam12, sig12, calp1, salp1, calp2, salp2, C1a, C2a, C3a, meridian, nvals, ssig1, csig1, ssig2, csig2, eps, omg12, dnm, numit, salp1a, calp1a, salp1b, calp1b, tripn, tripb, v, dv, dalp1, sdalp1, cdalp1, nsalp1, lengthmask, salp0, calp0, alp12, k2, A4, C4a, B41, B42, somg12, comg12, domg12, dbet1, dbet2, salp12, calp12, sdomg12, cdomg12;
|
|
1272
|
+
// Compute longitude difference (AngDiff does this carefully). Result is
|
|
1273
|
+
// in [-180, 180] but -180 is only for west-going geodesics. 180 is for
|
|
1274
|
+
// east-going and meridional geodesics.
|
|
1275
|
+
vals.lat1 = lat1 = m.LatFix(lat1);
|
|
1276
|
+
vals.lat2 = lat2 = m.LatFix(lat2);
|
|
1277
|
+
// If really close to the equator, treat as on equator.
|
|
1278
|
+
lat1 = m.AngRound(lat1);
|
|
1279
|
+
lat2 = m.AngRound(lat2);
|
|
1280
|
+
lon12 = m.AngDiff(lon1, lon2);
|
|
1281
|
+
lon12s = lon12.e;
|
|
1282
|
+
lon12 = lon12.d;
|
|
1283
|
+
if (outmask & g.LONG_UNROLL) {
|
|
1284
|
+
vals.lon1 = lon1;
|
|
1285
|
+
vals.lon2 = (lon1 + lon12) + lon12s;
|
|
1286
|
+
}
|
|
1287
|
+
else {
|
|
1288
|
+
vals.lon1 = m.AngNormalize(lon1);
|
|
1289
|
+
vals.lon2 = m.AngNormalize(lon2);
|
|
1290
|
+
}
|
|
1291
|
+
// Make longitude difference positive.
|
|
1292
|
+
lonsign = m.copysign(1, lon12);
|
|
1293
|
+
lon12 *= lonsign;
|
|
1294
|
+
lon12s *= lonsign;
|
|
1295
|
+
lam12 = lon12 * m.degree;
|
|
1296
|
+
// Calculate sincos of lon12 + error (this applies AngRound internally).
|
|
1297
|
+
t = m.sincosde(lon12, lon12s);
|
|
1298
|
+
slam12 = t.s;
|
|
1299
|
+
clam12 = t.c;
|
|
1300
|
+
lon12s = (180 - lon12) - lon12s; // the supplementary longitude difference
|
|
1301
|
+
// Swap points so that point with higher (abs) latitude is point 1
|
|
1302
|
+
// If one latitude is a nan, then it becomes lat1.
|
|
1303
|
+
swapp = Math.abs(lat1) < Math.abs(lat2) || isNaN(lat2) ? -1 : 1;
|
|
1304
|
+
if (swapp < 0) {
|
|
1305
|
+
lonsign *= -1;
|
|
1306
|
+
[lat2, lat1] = [lat1, lat2]; // swap(lat1, lat2);
|
|
1307
|
+
}
|
|
1308
|
+
// Make lat1 <= 0
|
|
1309
|
+
latsign = m.copysign(1, -lat1);
|
|
1310
|
+
lat1 *= latsign;
|
|
1311
|
+
lat2 *= latsign;
|
|
1312
|
+
// Now we have
|
|
1313
|
+
//
|
|
1314
|
+
// 0 <= lon12 <= 180
|
|
1315
|
+
// -90 <= lat1 <= 0
|
|
1316
|
+
// lat1 <= lat2 <= -lat1
|
|
1317
|
+
//
|
|
1318
|
+
// longsign, swapp, latsign register the transformation to bring the
|
|
1319
|
+
// coordinates to this canonical form. In all cases, 1 means no change was
|
|
1320
|
+
// made. We make these transformations so that there are few cases to
|
|
1321
|
+
// check, e.g., on verifying quadrants in atan2. In addition, this
|
|
1322
|
+
// enforces some symmetries in the results returned.
|
|
1323
|
+
t = m.sincosd(lat1);
|
|
1324
|
+
sbet1 = this._f1 * t.s;
|
|
1325
|
+
cbet1 = t.c;
|
|
1326
|
+
// norm(sbet1, cbet1);
|
|
1327
|
+
t = m.hypot(sbet1, cbet1);
|
|
1328
|
+
sbet1 /= t;
|
|
1329
|
+
cbet1 /= t;
|
|
1330
|
+
// Ensure cbet1 = +epsilon at poles
|
|
1331
|
+
cbet1 = Math.max(g.tiny_, cbet1);
|
|
1332
|
+
t = m.sincosd(lat2);
|
|
1333
|
+
sbet2 = this._f1 * t.s;
|
|
1334
|
+
cbet2 = t.c;
|
|
1335
|
+
// norm(sbet2, cbet2);
|
|
1336
|
+
t = m.hypot(sbet2, cbet2);
|
|
1337
|
+
sbet2 /= t;
|
|
1338
|
+
cbet2 /= t;
|
|
1339
|
+
// Ensure cbet2 = +epsilon at poles
|
|
1340
|
+
cbet2 = Math.max(g.tiny_, cbet2);
|
|
1341
|
+
// If cbet1 < -sbet1, then cbet2 - cbet1 is a sensitive measure of the
|
|
1342
|
+
// |bet1| - |bet2|. Alternatively (cbet1 >= -sbet1), abs(sbet2) + sbet1 is
|
|
1343
|
+
// a better measure. This logic is used in assigning calp2 in Lambda12.
|
|
1344
|
+
// Sometimes these quantities vanish and in that case we force bet2 = +/-
|
|
1345
|
+
// bet1 exactly. An example where is is necessary is the inverse problem
|
|
1346
|
+
// 48.522876735459 0 -48.52287673545898293 179.599720456223079643
|
|
1347
|
+
// which failed with Visual Studio 10 (Release and Debug)
|
|
1348
|
+
if (cbet1 < -sbet1) {
|
|
1349
|
+
if (cbet2 === cbet1)
|
|
1350
|
+
sbet2 = m.copysign(sbet1, sbet2);
|
|
1351
|
+
}
|
|
1352
|
+
else {
|
|
1353
|
+
if (Math.abs(sbet2) === -sbet1)
|
|
1354
|
+
cbet2 = cbet1;
|
|
1355
|
+
}
|
|
1356
|
+
dn1 = Math.sqrt(1 + this._ep2 * m.sq(sbet1));
|
|
1357
|
+
dn2 = Math.sqrt(1 + this._ep2 * m.sq(sbet2));
|
|
1358
|
+
// index zero elements of these arrays are unused
|
|
1359
|
+
C1a = new Array(g.nC1_ + 1);
|
|
1360
|
+
C2a = new Array(g.nC2_ + 1);
|
|
1361
|
+
C3a = new Array(g.nC3_);
|
|
1362
|
+
meridian = lat1 === -90 || slam12 === 0;
|
|
1363
|
+
if (meridian) {
|
|
1364
|
+
// Endpoints are on a single full meridian, so the geodesic might
|
|
1365
|
+
// lie on a meridian.
|
|
1366
|
+
calp1 = clam12;
|
|
1367
|
+
salp1 = slam12; // Head to the target longitude
|
|
1368
|
+
calp2 = 1;
|
|
1369
|
+
salp2 = 0; // At the target we're heading north
|
|
1370
|
+
// tan(bet) = tan(sig) * cos(alp)
|
|
1371
|
+
ssig1 = sbet1;
|
|
1372
|
+
csig1 = calp1 * cbet1;
|
|
1373
|
+
ssig2 = sbet2;
|
|
1374
|
+
csig2 = calp2 * cbet2;
|
|
1375
|
+
// sig12 = sig2 - sig1
|
|
1376
|
+
sig12 = Math.atan2(Math.max(0, csig1 * ssig2 - ssig1 * csig2), csig1 * csig2 + ssig1 * ssig2);
|
|
1377
|
+
nvals = this.Lengths(this._n, sig12, ssig1, csig1, dn1, ssig2, csig2, dn2, cbet1, cbet2, outmask | g.DISTANCE | g.REDUCEDLENGTH, C1a, C2a);
|
|
1378
|
+
s12x = nvals.s12b;
|
|
1379
|
+
m12x = nvals.m12b;
|
|
1380
|
+
// Ignore m0
|
|
1381
|
+
if (outmask & g.GEODESICSCALE) {
|
|
1382
|
+
vals.M12 = nvals.M12;
|
|
1383
|
+
vals.M21 = nvals.M21;
|
|
1384
|
+
}
|
|
1385
|
+
// Add the check for sig12 since zero length geodesics might yield
|
|
1386
|
+
// m12 < 0. Test case was
|
|
1387
|
+
//
|
|
1388
|
+
// echo 20.001 0 20.001 0 | GeodSolve -i
|
|
1389
|
+
if (sig12 < tol2_ || m12x >= 0) {
|
|
1390
|
+
// Need at least 2, to handle 90 0 90 180
|
|
1391
|
+
if (sig12 < 3 * g.tiny_ ||
|
|
1392
|
+
// Prevent negative s12 or m12 for short lines
|
|
1393
|
+
(sig12 < tol0_ && (s12x < 0 || m12x < 0)))
|
|
1394
|
+
sig12 = m12x = s12x = 0;
|
|
1395
|
+
m12x *= this._b;
|
|
1396
|
+
s12x *= this._b;
|
|
1397
|
+
vals.a12 = sig12 / m.degree;
|
|
1398
|
+
}
|
|
1399
|
+
else
|
|
1400
|
+
// m12 < 0, i.e., prolate and too close to anti-podal
|
|
1401
|
+
meridian = false;
|
|
1402
|
+
}
|
|
1403
|
+
somg12 = 2;
|
|
1404
|
+
if (!meridian &&
|
|
1405
|
+
sbet1 === 0 && // and sbet2 == 0
|
|
1406
|
+
(this.f <= 0 || lon12s >= this.f * 180)) {
|
|
1407
|
+
// Geodesic runs along equator
|
|
1408
|
+
calp1 = calp2 = 0;
|
|
1409
|
+
salp1 = salp2 = 1;
|
|
1410
|
+
s12x = this.a * lam12;
|
|
1411
|
+
sig12 = omg12 = lam12 / this._f1;
|
|
1412
|
+
m12x = this._b * Math.sin(sig12);
|
|
1413
|
+
if (outmask & g.GEODESICSCALE)
|
|
1414
|
+
vals.M12 = vals.M21 = Math.cos(sig12);
|
|
1415
|
+
vals.a12 = lon12 / this._f1;
|
|
1416
|
+
}
|
|
1417
|
+
else if (!meridian) {
|
|
1418
|
+
// Now point1 and point2 belong within a hemisphere bounded by a
|
|
1419
|
+
// meridian and geodesic is neither meridional or equatorial.
|
|
1420
|
+
// Figure a starting point for Newton's method
|
|
1421
|
+
nvals = this.InverseStart(sbet1, cbet1, dn1, sbet2, cbet2, dn2, lam12, slam12, clam12, C1a, C2a);
|
|
1422
|
+
sig12 = nvals.sig12;
|
|
1423
|
+
salp1 = nvals.salp1;
|
|
1424
|
+
calp1 = nvals.calp1;
|
|
1425
|
+
if (sig12 >= 0) {
|
|
1426
|
+
salp2 = nvals.salp2;
|
|
1427
|
+
calp2 = nvals.calp2;
|
|
1428
|
+
// Short lines (InverseStart sets salp2, calp2, dnm)
|
|
1429
|
+
dnm = nvals.dnm;
|
|
1430
|
+
s12x = sig12 * this._b * dnm;
|
|
1431
|
+
m12x = m.sq(dnm) * this._b * Math.sin(sig12 / dnm);
|
|
1432
|
+
if (outmask & g.GEODESICSCALE)
|
|
1433
|
+
vals.M12 = vals.M21 = Math.cos(sig12 / dnm);
|
|
1434
|
+
vals.a12 = sig12 / m.degree;
|
|
1435
|
+
omg12 = lam12 / (this._f1 * dnm);
|
|
1436
|
+
}
|
|
1437
|
+
else {
|
|
1438
|
+
// Newton's method. This is a straightforward solution of f(alp1) =
|
|
1439
|
+
// lambda12(alp1) - lam12 = 0 with one wrinkle. f(alp) has exactly one
|
|
1440
|
+
// root in the interval (0, pi) and its derivative is positive at the
|
|
1441
|
+
// root. Thus f(alp) is positive for alp > alp1 and negative for alp <
|
|
1442
|
+
// alp1. During the course of the iteration, a range (alp1a, alp1b) is
|
|
1443
|
+
// maintained which brackets the root and with each evaluation of
|
|
1444
|
+
// f(alp) the range is shrunk if possible. Newton's method is
|
|
1445
|
+
// restarted whenever the derivative of f is negative (because the new
|
|
1446
|
+
// value of alp1 is then further from the solution) or if the new
|
|
1447
|
+
// estimate of alp1 lies outside (0,pi); in this case, the new starting
|
|
1448
|
+
// guess is taken to be (alp1a + alp1b) / 2.
|
|
1449
|
+
numit = 0;
|
|
1450
|
+
// Bracketing range
|
|
1451
|
+
salp1a = g.tiny_;
|
|
1452
|
+
calp1a = 1;
|
|
1453
|
+
salp1b = g.tiny_;
|
|
1454
|
+
calp1b = -1;
|
|
1455
|
+
for (tripn = false, tripb = false;; ++numit) {
|
|
1456
|
+
// the WGS84 test set: mean = 1.47, sd = 1.25, max = 16
|
|
1457
|
+
// WGS84 and random input: mean = 2.85, sd = 0.60
|
|
1458
|
+
nvals = this.Lambda12(sbet1, cbet1, dn1, sbet2, cbet2, dn2, salp1, calp1, slam12, clam12, numit < maxit1_, C1a, C2a, C3a);
|
|
1459
|
+
v = nvals.lam12;
|
|
1460
|
+
salp2 = nvals.salp2;
|
|
1461
|
+
calp2 = nvals.calp2;
|
|
1462
|
+
sig12 = nvals.sig12;
|
|
1463
|
+
ssig1 = nvals.ssig1;
|
|
1464
|
+
csig1 = nvals.csig1;
|
|
1465
|
+
ssig2 = nvals.ssig2;
|
|
1466
|
+
csig2 = nvals.csig2;
|
|
1467
|
+
eps = nvals.eps;
|
|
1468
|
+
domg12 = nvals.domg12;
|
|
1469
|
+
dv = nvals.dlam12;
|
|
1470
|
+
// Reversed test to allow escape with NaNs
|
|
1471
|
+
// jshint -W018
|
|
1472
|
+
if (tripb || !(Math.abs(v) >= (tripn ? 8 : 1) * tol0_) ||
|
|
1473
|
+
numit == maxit2_)
|
|
1474
|
+
break;
|
|
1475
|
+
// Update bracketing values
|
|
1476
|
+
if (v > 0 && (numit < maxit1_ || calp1 / salp1 > calp1b / salp1b)) {
|
|
1477
|
+
salp1b = salp1;
|
|
1478
|
+
calp1b = calp1;
|
|
1479
|
+
}
|
|
1480
|
+
else if (v < 0 &&
|
|
1481
|
+
(numit < maxit1_ || calp1 / salp1 < calp1a / salp1a)) {
|
|
1482
|
+
salp1a = salp1;
|
|
1483
|
+
calp1a = calp1;
|
|
1484
|
+
}
|
|
1485
|
+
if (numit < maxit1_ && dv > 0) {
|
|
1486
|
+
dalp1 = -v / dv;
|
|
1487
|
+
if (Math.abs(dalp1) < Math.PI) {
|
|
1488
|
+
sdalp1 = Math.sin(dalp1);
|
|
1489
|
+
cdalp1 = Math.cos(dalp1);
|
|
1490
|
+
nsalp1 = salp1 * cdalp1 + calp1 * sdalp1;
|
|
1491
|
+
if (nsalp1 > 0) {
|
|
1492
|
+
calp1 = calp1 * cdalp1 - salp1 * sdalp1;
|
|
1493
|
+
salp1 = nsalp1;
|
|
1494
|
+
// norm(salp1, calp1);
|
|
1495
|
+
t = m.hypot(salp1, calp1);
|
|
1496
|
+
salp1 /= t;
|
|
1497
|
+
calp1 /= t;
|
|
1498
|
+
// In some regimes we don't get quadratic convergence because
|
|
1499
|
+
// slope -> 0. So use convergence conditions based on epsilon
|
|
1500
|
+
// instead of sqrt(epsilon).
|
|
1501
|
+
tripn = Math.abs(v) <= 16 * tol0_;
|
|
1502
|
+
continue;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
// Either dv was not positive or updated value was outside legal
|
|
1507
|
+
// range. Use the midpoint of the bracket as the next estimate.
|
|
1508
|
+
// This mechanism is not needed for the WGS84 ellipsoid, but it does
|
|
1509
|
+
// catch problems with more eccentric ellipsoids. Its efficacy is
|
|
1510
|
+
// such for the WGS84 test set with the starting guess set to alp1 =
|
|
1511
|
+
// 90deg:
|
|
1512
|
+
// the WGS84 test set: mean = 5.21, sd = 3.93, max = 24
|
|
1513
|
+
// WGS84 and random input: mean = 4.74, sd = 0.99
|
|
1514
|
+
salp1 = (salp1a + salp1b) / 2;
|
|
1515
|
+
calp1 = (calp1a + calp1b) / 2;
|
|
1516
|
+
// norm(salp1, calp1);
|
|
1517
|
+
t = m.hypot(salp1, calp1);
|
|
1518
|
+
salp1 /= t;
|
|
1519
|
+
calp1 /= t;
|
|
1520
|
+
tripn = false;
|
|
1521
|
+
tripb = (Math.abs(salp1a - salp1) + (calp1a - calp1) < tolb_ ||
|
|
1522
|
+
Math.abs(salp1 - salp1b) + (calp1 - calp1b) < tolb_);
|
|
1523
|
+
}
|
|
1524
|
+
lengthmask = outmask |
|
|
1525
|
+
(outmask & (g.REDUCEDLENGTH | g.GEODESICSCALE) ?
|
|
1526
|
+
g.DISTANCE : g.NONE);
|
|
1527
|
+
nvals = this.Lengths(eps, sig12, ssig1, csig1, dn1, ssig2, csig2, dn2, cbet1, cbet2, lengthmask, C1a, C2a);
|
|
1528
|
+
s12x = nvals.s12b;
|
|
1529
|
+
m12x = nvals.m12b;
|
|
1530
|
+
// Ignore m0
|
|
1531
|
+
if (outmask & g.GEODESICSCALE) {
|
|
1532
|
+
vals.M12 = nvals.M12;
|
|
1533
|
+
vals.M21 = nvals.M21;
|
|
1534
|
+
}
|
|
1535
|
+
m12x *= this._b;
|
|
1536
|
+
s12x *= this._b;
|
|
1537
|
+
vals.a12 = sig12 / m.degree;
|
|
1538
|
+
if (outmask & g.AREA) {
|
|
1539
|
+
// omg12 = lam12 - domg12
|
|
1540
|
+
sdomg12 = Math.sin(domg12);
|
|
1541
|
+
cdomg12 = Math.cos(domg12);
|
|
1542
|
+
somg12 = slam12 * cdomg12 - clam12 * sdomg12;
|
|
1543
|
+
comg12 = clam12 * cdomg12 + slam12 * sdomg12;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
if (outmask & g.DISTANCE)
|
|
1548
|
+
vals.s12 = 0 + s12x; // Convert -0 to 0
|
|
1549
|
+
if (outmask & g.REDUCEDLENGTH)
|
|
1550
|
+
vals.m12 = 0 + m12x; // Convert -0 to 0
|
|
1551
|
+
if (outmask & g.AREA) {
|
|
1552
|
+
// From Lambda12: sin(alp1) * cos(bet1) = sin(alp0)
|
|
1553
|
+
salp0 = salp1 * cbet1;
|
|
1554
|
+
calp0 = m.hypot(calp1, salp1 * sbet1); // calp0 > 0
|
|
1555
|
+
if (calp0 !== 0 && salp0 !== 0) {
|
|
1556
|
+
// From Lambda12: tan(bet) = tan(sig) * cos(alp)
|
|
1557
|
+
ssig1 = sbet1;
|
|
1558
|
+
csig1 = calp1 * cbet1;
|
|
1559
|
+
ssig2 = sbet2;
|
|
1560
|
+
csig2 = calp2 * cbet2;
|
|
1561
|
+
k2 = m.sq(calp0) * this._ep2;
|
|
1562
|
+
eps = k2 / (2 * (1 + Math.sqrt(1 + k2)) + k2);
|
|
1563
|
+
// Multiplier = a^2 * e^2 * cos(alpha0) * sin(alpha0).
|
|
1564
|
+
A4 = m.sq(this.a) * calp0 * salp0 * this._e2;
|
|
1565
|
+
// norm(ssig1, csig1);
|
|
1566
|
+
t = m.hypot(ssig1, csig1);
|
|
1567
|
+
ssig1 /= t;
|
|
1568
|
+
csig1 /= t;
|
|
1569
|
+
// norm(ssig2, csig2);
|
|
1570
|
+
t = m.hypot(ssig2, csig2);
|
|
1571
|
+
ssig2 /= t;
|
|
1572
|
+
csig2 /= t;
|
|
1573
|
+
C4a = new Array(g.nC4_);
|
|
1574
|
+
this.C4f(eps, C4a);
|
|
1575
|
+
B41 = g.SinCosSeries(false, ssig1, csig1, C4a);
|
|
1576
|
+
B42 = g.SinCosSeries(false, ssig2, csig2, C4a);
|
|
1577
|
+
vals.S12 = A4 * (sig12 < 0.01 ?
|
|
1578
|
+
g.SinCosSeries(false, ssig1, csig1, C4a, sig12) : B42 - B41);
|
|
1579
|
+
}
|
|
1580
|
+
else
|
|
1581
|
+
// Avoid problems with indeterminate sig1, sig2 on equator
|
|
1582
|
+
vals.S12 = 0;
|
|
1583
|
+
if (!meridian && somg12 == 2) {
|
|
1584
|
+
somg12 = Math.sin(omg12);
|
|
1585
|
+
comg12 = Math.cos(omg12);
|
|
1586
|
+
}
|
|
1587
|
+
if (!meridian &&
|
|
1588
|
+
comg12 > -0.7071 && // Long difference not too big
|
|
1589
|
+
sbet2 - sbet1 < 1.75) { // Lat difference not too big
|
|
1590
|
+
// Use tan(Gamma/2) = tan(omg12/2)
|
|
1591
|
+
// * (tan(bet1/2)+tan(bet2/2))/(1+tan(bet1/2)*tan(bet2/2))
|
|
1592
|
+
// with tan(x/2) = sin(x)/(1+cos(x))
|
|
1593
|
+
domg12 = 1 + comg12;
|
|
1594
|
+
dbet1 = 1 + cbet1;
|
|
1595
|
+
dbet2 = 1 + cbet2;
|
|
1596
|
+
alp12 = 2 * Math.atan2(somg12 * (sbet1 * dbet2 + sbet2 * dbet1), domg12 * (sbet1 * sbet2 + dbet1 * dbet2));
|
|
1597
|
+
}
|
|
1598
|
+
else {
|
|
1599
|
+
// alp12 = alp2 - alp1, used in atan2 so no need to normalize
|
|
1600
|
+
salp12 = salp2 * calp1 - calp2 * salp1;
|
|
1601
|
+
calp12 = calp2 * calp1 + salp2 * salp1;
|
|
1602
|
+
// The right thing appears to happen if alp1 = +/-180 and alp2 = 0, viz
|
|
1603
|
+
// salp12 = -0 and alp12 = -180. However this depends on the sign
|
|
1604
|
+
// being attached to 0 correctly. The following ensures the correct
|
|
1605
|
+
// behavior.
|
|
1606
|
+
if (salp12 === 0 && calp12 < 0) {
|
|
1607
|
+
salp12 = g.tiny_ * calp1;
|
|
1608
|
+
calp12 = -1;
|
|
1609
|
+
}
|
|
1610
|
+
alp12 = Math.atan2(salp12, calp12);
|
|
1611
|
+
}
|
|
1612
|
+
vals.S12 += this._c2 * alp12;
|
|
1613
|
+
vals.S12 *= swapp * lonsign * latsign;
|
|
1614
|
+
// Convert -0 to 0
|
|
1615
|
+
vals.S12 += 0;
|
|
1616
|
+
}
|
|
1617
|
+
// Convert calp, salp to azimuth accounting for lonsign, swapp, latsign.
|
|
1618
|
+
if (swapp < 0) {
|
|
1619
|
+
[salp2, salp1] = [salp1, salp2]; // swap(salp1, salp2);
|
|
1620
|
+
[calp2, calp1] = [calp1, calp2]; // swap(calp1, calp2);
|
|
1621
|
+
if (outmask & g.GEODESICSCALE) {
|
|
1622
|
+
[vals.M21, vals.M12] = [vals.M12, vals.M21]; //swap(vals.M12, vals.M21);
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
salp1 *= swapp * lonsign;
|
|
1626
|
+
calp1 *= swapp * latsign;
|
|
1627
|
+
salp2 *= swapp * lonsign;
|
|
1628
|
+
calp2 *= swapp * latsign;
|
|
1629
|
+
return { vals: vals,
|
|
1630
|
+
salp1: salp1, calp1: calp1,
|
|
1631
|
+
salp2: salp2, calp2: calp2 };
|
|
1632
|
+
};
|
|
1633
|
+
/**
|
|
1634
|
+
* @summary Solve the general direct geodesic problem.
|
|
1635
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1636
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1637
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1638
|
+
* @param {bool} arcmode is the next parameter an arc length?
|
|
1639
|
+
* @param {number} s12_a12 the (arcmode ? arc length : distance) from the
|
|
1640
|
+
* first point to the second in (arcmode ? degrees : meters).
|
|
1641
|
+
* @param {bitmask} [outmask = STANDARD] which results to include.
|
|
1642
|
+
* @return {object} the requested results.
|
|
1643
|
+
* @description The lat1, lon1, azi1, and a12 fields of the result are always
|
|
1644
|
+
* set; s12 is included if arcmode is false. For details on the outmask
|
|
1645
|
+
* parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
1646
|
+
* parameters".
|
|
1647
|
+
*/
|
|
1648
|
+
g.Geodesic.prototype.GenDirect = function (lat1, lon1, azi1, arcmode, s12_a12, outmask) {
|
|
1649
|
+
var line;
|
|
1650
|
+
if (!outmask)
|
|
1651
|
+
outmask = g.STANDARD;
|
|
1652
|
+
else if (outmask === g.LONG_UNROLL)
|
|
1653
|
+
outmask |= g.STANDARD;
|
|
1654
|
+
// Automatically supply DISTANCE_IN if necessary
|
|
1655
|
+
if (!arcmode)
|
|
1656
|
+
outmask |= g.DISTANCE_IN;
|
|
1657
|
+
line = new l.GeodesicLine(this, lat1, lon1, azi1, outmask);
|
|
1658
|
+
return line.GenPosition(arcmode, s12_a12, outmask);
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* @summary Solve the direct geodesic problem.
|
|
1662
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1663
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1664
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1665
|
+
* @param {number} s12 the distance from the first point to the second in
|
|
1666
|
+
* meters.
|
|
1667
|
+
* @param {bitmask} [outmask = STANDARD] which results to include.
|
|
1668
|
+
* @return {object} the requested results.
|
|
1669
|
+
* @description The lat1, lon1, azi1, s12, and a12 fields of the result are
|
|
1670
|
+
* always set. For details on the outmask parameter, see {@tutorial
|
|
1671
|
+
* 2-interface}, "The outmask and caps parameters".
|
|
1672
|
+
*/
|
|
1673
|
+
g.Geodesic.prototype.Direct = function (lat1, lon1, azi1, s12, outmask) {
|
|
1674
|
+
return this.GenDirect(lat1, lon1, azi1, false, s12, outmask);
|
|
1675
|
+
};
|
|
1676
|
+
/**
|
|
1677
|
+
* @summary Solve the direct geodesic problem with arc length.
|
|
1678
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1679
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1680
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1681
|
+
* @param {number} a12 the arc length from the first point to the second in
|
|
1682
|
+
* degrees.
|
|
1683
|
+
* @param {bitmask} [outmask = STANDARD] which results to include.
|
|
1684
|
+
* @return {object} the requested results.
|
|
1685
|
+
* @description The lat1, lon1, azi1, and a12 fields of the result are
|
|
1686
|
+
* always set. For details on the outmask parameter, see {@tutorial
|
|
1687
|
+
* 2-interface}, "The outmask and caps parameters".
|
|
1688
|
+
*/
|
|
1689
|
+
g.Geodesic.prototype.ArcDirect = function (lat1, lon1, azi1, a12, outmask) {
|
|
1690
|
+
return this.GenDirect(lat1, lon1, azi1, true, a12, outmask);
|
|
1691
|
+
};
|
|
1692
|
+
/**
|
|
1693
|
+
* @summary Create a {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1694
|
+
* GeodesicLine} object.
|
|
1695
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1696
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1697
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1698
|
+
* degrees.
|
|
1699
|
+
* @param {bitmask} [caps = STANDARD | DISTANCE_IN] which capabilities to
|
|
1700
|
+
* include.
|
|
1701
|
+
* @return {object} the
|
|
1702
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1703
|
+
* GeodesicLine} object
|
|
1704
|
+
* @description For details on the caps parameter, see {@tutorial
|
|
1705
|
+
* 2-interface}, "The outmask and caps parameters".
|
|
1706
|
+
*/
|
|
1707
|
+
g.Geodesic.prototype.Line = function (lat1, lon1, azi1, caps) {
|
|
1708
|
+
return new l.GeodesicLine(this, lat1, lon1, azi1, caps);
|
|
1709
|
+
};
|
|
1710
|
+
/**
|
|
1711
|
+
* @summary Define a {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1712
|
+
* GeodesicLine} in terms of the direct geodesic problem specified in terms
|
|
1713
|
+
* of distance.
|
|
1714
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1715
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1716
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1717
|
+
* degrees.
|
|
1718
|
+
* @param {number} s12 the distance between point 1 and point 2 (meters); it
|
|
1719
|
+
* can be negative.
|
|
1720
|
+
* @param {bitmask} [caps = STANDARD | DISTANCE_IN] which capabilities to
|
|
1721
|
+
* include.
|
|
1722
|
+
* @return {object} the
|
|
1723
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1724
|
+
* GeodesicLine} object
|
|
1725
|
+
* @description This function sets point 3 of the GeodesicLine to correspond
|
|
1726
|
+
* to point 2 of the direct geodesic problem. For details on the caps
|
|
1727
|
+
* parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
1728
|
+
* parameters".
|
|
1729
|
+
*/
|
|
1730
|
+
g.Geodesic.prototype.DirectLine = function (lat1, lon1, azi1, s12, caps) {
|
|
1731
|
+
return this.GenDirectLine(lat1, lon1, azi1, false, s12, caps);
|
|
1732
|
+
};
|
|
1733
|
+
/**
|
|
1734
|
+
* @summary Define a {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1735
|
+
* GeodesicLine} in terms of the direct geodesic problem specified in terms
|
|
1736
|
+
* of arc length.
|
|
1737
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1738
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1739
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1740
|
+
* degrees.
|
|
1741
|
+
* @param {number} a12 the arc length between point 1 and point 2 (degrees);
|
|
1742
|
+
* it can be negative.
|
|
1743
|
+
* @param {bitmask} [caps = STANDARD | DISTANCE_IN] which capabilities to
|
|
1744
|
+
* include.
|
|
1745
|
+
* @return {object} the
|
|
1746
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1747
|
+
* GeodesicLine} object
|
|
1748
|
+
* @description This function sets point 3 of the GeodesicLine to correspond
|
|
1749
|
+
* to point 2 of the direct geodesic problem. For details on the caps
|
|
1750
|
+
* parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
1751
|
+
* parameters".
|
|
1752
|
+
*/
|
|
1753
|
+
g.Geodesic.prototype.ArcDirectLine = function (lat1, lon1, azi1, a12, caps) {
|
|
1754
|
+
return this.GenDirectLine(lat1, lon1, azi1, true, a12, caps);
|
|
1755
|
+
};
|
|
1756
|
+
/**
|
|
1757
|
+
* @summary Define a {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1758
|
+
* GeodesicLine} in terms of the direct geodesic problem specified in terms
|
|
1759
|
+
* of either distance or arc length.
|
|
1760
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1761
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1762
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1763
|
+
* degrees.
|
|
1764
|
+
* @param {bool} arcmode boolean flag determining the meaning of the
|
|
1765
|
+
* s12_a12.
|
|
1766
|
+
* @param {number} s12_a12 if arcmode is false, this is the distance between
|
|
1767
|
+
* point 1 and point 2 (meters); otherwise it is the arc length between
|
|
1768
|
+
* point 1 and point 2 (degrees); it can be negative.
|
|
1769
|
+
* @param {bitmask} [caps = STANDARD | DISTANCE_IN] which capabilities to
|
|
1770
|
+
* include.
|
|
1771
|
+
* @return {object} the
|
|
1772
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1773
|
+
* GeodesicLine} object
|
|
1774
|
+
* @description This function sets point 3 of the GeodesicLine to correspond
|
|
1775
|
+
* to point 2 of the direct geodesic problem. For details on the caps
|
|
1776
|
+
* parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
1777
|
+
* parameters".
|
|
1778
|
+
*/
|
|
1779
|
+
g.Geodesic.prototype.GenDirectLine = function (lat1, lon1, azi1, arcmode, s12_a12, caps) {
|
|
1780
|
+
var t;
|
|
1781
|
+
if (!caps)
|
|
1782
|
+
caps = g.STANDARD | g.DISTANCE_IN;
|
|
1783
|
+
// Automatically supply DISTANCE_IN if necessary
|
|
1784
|
+
if (!arcmode)
|
|
1785
|
+
caps |= g.DISTANCE_IN;
|
|
1786
|
+
t = new l.GeodesicLine(this, lat1, lon1, azi1, caps);
|
|
1787
|
+
t.GenSetDistance(arcmode, s12_a12);
|
|
1788
|
+
return t;
|
|
1789
|
+
};
|
|
1790
|
+
/**
|
|
1791
|
+
* @summary Define a {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1792
|
+
* GeodesicLine} in terms of the inverse geodesic problem.
|
|
1793
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1794
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1795
|
+
* @param {number} lat2 the latitude of the second point in degrees.
|
|
1796
|
+
* @param {number} lon2 the longitude of the second point in degrees.
|
|
1797
|
+
* @param {bitmask} [caps = STANDARD | DISTANCE_IN] which capabilities to
|
|
1798
|
+
* include.
|
|
1799
|
+
* @return {object} the
|
|
1800
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine
|
|
1801
|
+
* GeodesicLine} object
|
|
1802
|
+
* @description This function sets point 3 of the GeodesicLine to correspond
|
|
1803
|
+
* to point 2 of the inverse geodesic problem. For details on the caps
|
|
1804
|
+
* parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
1805
|
+
* parameters".
|
|
1806
|
+
*/
|
|
1807
|
+
g.Geodesic.prototype.InverseLine = function (lat1, lon1, lat2, lon2, caps) {
|
|
1808
|
+
var r, t, azi1;
|
|
1809
|
+
if (!caps)
|
|
1810
|
+
caps = g.STANDARD | g.DISTANCE_IN;
|
|
1811
|
+
r = this.InverseInt(lat1, lon1, lat2, lon2, g.ARC);
|
|
1812
|
+
azi1 = m.atan2d(r.salp1, r.calp1);
|
|
1813
|
+
// Ensure that a12 can be converted to a distance
|
|
1814
|
+
if (caps & (g.OUT_MASK & g.DISTANCE_IN))
|
|
1815
|
+
caps |= g.DISTANCE;
|
|
1816
|
+
t = new l.GeodesicLine(this, lat1, lon1, azi1, caps, r.salp1, r.calp1);
|
|
1817
|
+
t.SetArc(r.vals.a12);
|
|
1818
|
+
return t;
|
|
1819
|
+
};
|
|
1820
|
+
/**
|
|
1821
|
+
* @summary Create a {@link module:geodesic/PolygonArea.PolygonArea
|
|
1822
|
+
* PolygonArea} object.
|
|
1823
|
+
* @param {bool} [polyline = false] if true the new PolygonArea object
|
|
1824
|
+
* describes a polyline instead of a polygon.
|
|
1825
|
+
* @return {object} the
|
|
1826
|
+
* {@link module:geodesic/PolygonArea.PolygonArea
|
|
1827
|
+
* PolygonArea} object
|
|
1828
|
+
*/
|
|
1829
|
+
g.Geodesic.prototype.Polygon = function (polyline) {
|
|
1830
|
+
return new p.PolygonArea(this, polyline);
|
|
1831
|
+
};
|
|
1832
|
+
/**
|
|
1833
|
+
* @summary a {@link module:geodesic/Geodesic.Geodesic Geodesic} object
|
|
1834
|
+
* initialized for the WGS84 ellipsoid.
|
|
1835
|
+
* @constant {object}
|
|
1836
|
+
*/
|
|
1837
|
+
g.WGS84 = new g.Geodesic(c.WGS84.a, c.WGS84.f);
|
|
1838
|
+
})(geodesic.Geodesic, geodesic.GeodesicLine, geodesic.PolygonArea, geodesic.Math, geodesic.Constants);
|
|
1839
|
+
/*
|
|
1840
|
+
* GeodesicLine.js
|
|
1841
|
+
* Transcription of GeodesicLine.[ch]pp into JavaScript.
|
|
1842
|
+
*
|
|
1843
|
+
* See the documentation for the C++ class. The conversion is a literal
|
|
1844
|
+
* conversion from C++.
|
|
1845
|
+
*
|
|
1846
|
+
* The algorithms are derived in
|
|
1847
|
+
*
|
|
1848
|
+
* Charles F. F. Karney,
|
|
1849
|
+
* Algorithms for geodesics, J. Geodesy 87, 43-55 (2013);
|
|
1850
|
+
* https://doi.org/10.1007/s00190-012-0578-z
|
|
1851
|
+
* Addenda: https://geographiclib.sourceforge.io/geod-addenda.html
|
|
1852
|
+
*
|
|
1853
|
+
* Copyright (c) Charles Karney (2011-2022) <karney@alum.mit.edu> and licensed
|
|
1854
|
+
* under the MIT/X11 License. For more information, see
|
|
1855
|
+
* https://geographiclib.sourceforge.io/
|
|
1856
|
+
*/
|
|
1857
|
+
// Load AFTER geodesic/Math.js, geodesic/Geodesic.js
|
|
1858
|
+
(function (g,
|
|
1859
|
+
/**
|
|
1860
|
+
* @exports geodesic/GeodesicLine
|
|
1861
|
+
* @description Solve geodesic problems on a single geodesic line via the
|
|
1862
|
+
* {@link module:geodesic/GeodesicLine.GeodesicLine GeodesicLine}
|
|
1863
|
+
* class.
|
|
1864
|
+
*/
|
|
1865
|
+
l, m) {
|
|
1866
|
+
"use strict";
|
|
1867
|
+
/**
|
|
1868
|
+
* @class
|
|
1869
|
+
* @property {number} a the equatorial radius (meters).
|
|
1870
|
+
* @property {number} f the flattening.
|
|
1871
|
+
* @property {number} lat1 the initial latitude (degrees).
|
|
1872
|
+
* @property {number} lon1 the initial longitude (degrees).
|
|
1873
|
+
* @property {number} azi1 the initial azimuth (degrees).
|
|
1874
|
+
* @property {number} salp1 the sine of the azimuth at the first point.
|
|
1875
|
+
* @property {number} calp1 the cosine the azimuth at the first point.
|
|
1876
|
+
* @property {number} s13 the distance to point 3 (meters).
|
|
1877
|
+
* @property {number} a13 the arc length to point 3 (degrees).
|
|
1878
|
+
* @property {bitmask} caps the capabilities of the object.
|
|
1879
|
+
* @summary Initialize a GeodesicLine object. For details on the caps
|
|
1880
|
+
* parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
1881
|
+
* parameters".
|
|
1882
|
+
* @classdesc Performs geodesic calculations along a given geodesic line.
|
|
1883
|
+
* This object is usually instantiated by
|
|
1884
|
+
* {@link module:geodesic/Geodesic.Geodesic#Line Geodesic.Line}.
|
|
1885
|
+
* The methods
|
|
1886
|
+
* {@link module:geodesic/Geodesic.Geodesic#DirectLine
|
|
1887
|
+
* Geodesic.DirectLine} and
|
|
1888
|
+
* {@link module:geodesic/Geodesic.Geodesic#InverseLine
|
|
1889
|
+
* Geodesic.InverseLine} set in addition the position of a reference point
|
|
1890
|
+
* 3.
|
|
1891
|
+
* @param {object} geod a {@link module:geodesic/Geodesic.Geodesic
|
|
1892
|
+
* Geodesic} object.
|
|
1893
|
+
* @param {number} lat1 the latitude of the first point in degrees.
|
|
1894
|
+
* @param {number} lon1 the longitude of the first point in degrees.
|
|
1895
|
+
* @param {number} azi1 the azimuth at the first point in degrees.
|
|
1896
|
+
* @param {bitmask} [caps = STANDARD | DISTANCE_IN] which capabilities to
|
|
1897
|
+
* include; LATITUDE | AZIMUTH are always included.
|
|
1898
|
+
*/
|
|
1899
|
+
l.GeodesicLine = function (geod, lat1, lon1, azi1, caps, salp1, calp1) {
|
|
1900
|
+
var t, cbet1, sbet1, eps, s, c;
|
|
1901
|
+
if (!caps)
|
|
1902
|
+
caps = g.STANDARD | g.DISTANCE_IN;
|
|
1903
|
+
this.a = geod.a;
|
|
1904
|
+
this.f = geod.f;
|
|
1905
|
+
this._b = geod._b;
|
|
1906
|
+
this._c2 = geod._c2;
|
|
1907
|
+
this._f1 = geod._f1;
|
|
1908
|
+
this.caps = caps | g.LATITUDE | g.AZIMUTH | g.LONG_UNROLL;
|
|
1909
|
+
this.lat1 = m.LatFix(lat1);
|
|
1910
|
+
this.lon1 = lon1;
|
|
1911
|
+
if (typeof salp1 === 'undefined' || typeof calp1 === 'undefined') {
|
|
1912
|
+
this.azi1 = m.AngNormalize(azi1);
|
|
1913
|
+
t = m.sincosd(m.AngRound(this.azi1));
|
|
1914
|
+
this.salp1 = t.s;
|
|
1915
|
+
this.calp1 = t.c;
|
|
1916
|
+
}
|
|
1917
|
+
else {
|
|
1918
|
+
this.azi1 = azi1;
|
|
1919
|
+
this.salp1 = salp1;
|
|
1920
|
+
this.calp1 = calp1;
|
|
1921
|
+
}
|
|
1922
|
+
t = m.sincosd(m.AngRound(this.lat1));
|
|
1923
|
+
sbet1 = this._f1 * t.s;
|
|
1924
|
+
cbet1 = t.c;
|
|
1925
|
+
// norm(sbet1, cbet1);
|
|
1926
|
+
t = m.hypot(sbet1, cbet1);
|
|
1927
|
+
sbet1 /= t;
|
|
1928
|
+
cbet1 /= t;
|
|
1929
|
+
// Ensure cbet1 = +epsilon at poles
|
|
1930
|
+
cbet1 = Math.max(g.tiny_, cbet1);
|
|
1931
|
+
this._dn1 = Math.sqrt(1 + geod._ep2 * m.sq(sbet1));
|
|
1932
|
+
// Evaluate alp0 from sin(alp1) * cos(bet1) = sin(alp0),
|
|
1933
|
+
this._salp0 = this.salp1 * cbet1; // alp0 in [0, pi/2 - |bet1|]
|
|
1934
|
+
// Alt: calp0 = hypot(sbet1, calp1 * cbet1). The following
|
|
1935
|
+
// is slightly better (consider the case salp1 = 0).
|
|
1936
|
+
this._calp0 = m.hypot(this.calp1, this.salp1 * sbet1);
|
|
1937
|
+
// Evaluate sig with tan(bet1) = tan(sig1) * cos(alp1).
|
|
1938
|
+
// sig = 0 is nearest northward crossing of equator.
|
|
1939
|
+
// With bet1 = 0, alp1 = pi/2, we have sig1 = 0 (equatorial line).
|
|
1940
|
+
// With bet1 = pi/2, alp1 = -pi, sig1 = pi/2
|
|
1941
|
+
// With bet1 = -pi/2, alp1 = 0 , sig1 = -pi/2
|
|
1942
|
+
// Evaluate omg1 with tan(omg1) = sin(alp0) * tan(sig1).
|
|
1943
|
+
// With alp0 in (0, pi/2], quadrants for sig and omg coincide.
|
|
1944
|
+
// No atan2(0,0) ambiguity at poles since cbet1 = +epsilon.
|
|
1945
|
+
// With alp0 = 0, omg1 = 0 for alp1 = 0, omg1 = pi for alp1 = pi.
|
|
1946
|
+
this._ssig1 = sbet1;
|
|
1947
|
+
this._somg1 = this._salp0 * sbet1;
|
|
1948
|
+
this._csig1 = this._comg1 =
|
|
1949
|
+
sbet1 !== 0 || this.calp1 !== 0 ? cbet1 * this.calp1 : 1;
|
|
1950
|
+
// norm(this._ssig1, this._csig1); // sig1 in (-pi, pi]
|
|
1951
|
+
t = m.hypot(this._ssig1, this._csig1);
|
|
1952
|
+
this._ssig1 /= t;
|
|
1953
|
+
this._csig1 /= t;
|
|
1954
|
+
// norm(this._somg1, this._comg1); -- don't need to normalize!
|
|
1955
|
+
this._k2 = m.sq(this._calp0) * geod._ep2;
|
|
1956
|
+
eps = this._k2 / (2 * (1 + Math.sqrt(1 + this._k2)) + this._k2);
|
|
1957
|
+
if (this.caps & g.CAP_C1) {
|
|
1958
|
+
this._A1m1 = g.A1m1f(eps);
|
|
1959
|
+
this._C1a = new Array(g.nC1_ + 1);
|
|
1960
|
+
g.C1f(eps, this._C1a);
|
|
1961
|
+
this._B11 = g.SinCosSeries(true, this._ssig1, this._csig1, this._C1a);
|
|
1962
|
+
s = Math.sin(this._B11);
|
|
1963
|
+
c = Math.cos(this._B11);
|
|
1964
|
+
// tau1 = sig1 + B11
|
|
1965
|
+
this._stau1 = this._ssig1 * c + this._csig1 * s;
|
|
1966
|
+
this._ctau1 = this._csig1 * c - this._ssig1 * s;
|
|
1967
|
+
// Not necessary because C1pa reverts C1a
|
|
1968
|
+
// _B11 = -SinCosSeries(true, _stau1, _ctau1, _C1pa);
|
|
1969
|
+
}
|
|
1970
|
+
if (this.caps & g.CAP_C1p) {
|
|
1971
|
+
this._C1pa = new Array(g.nC1p_ + 1);
|
|
1972
|
+
g.C1pf(eps, this._C1pa);
|
|
1973
|
+
}
|
|
1974
|
+
if (this.caps & g.CAP_C2) {
|
|
1975
|
+
this._A2m1 = g.A2m1f(eps);
|
|
1976
|
+
this._C2a = new Array(g.nC2_ + 1);
|
|
1977
|
+
g.C2f(eps, this._C2a);
|
|
1978
|
+
this._B21 = g.SinCosSeries(true, this._ssig1, this._csig1, this._C2a);
|
|
1979
|
+
}
|
|
1980
|
+
if (this.caps & g.CAP_C3) {
|
|
1981
|
+
this._C3a = new Array(g.nC3_);
|
|
1982
|
+
geod.C3f(eps, this._C3a);
|
|
1983
|
+
this._A3c = -this.f * this._salp0 * geod.A3f(eps);
|
|
1984
|
+
this._B31 = g.SinCosSeries(true, this._ssig1, this._csig1, this._C3a);
|
|
1985
|
+
}
|
|
1986
|
+
if (this.caps & g.CAP_C4) {
|
|
1987
|
+
this._C4a = new Array(g.nC4_); // all the elements of _C4a are used
|
|
1988
|
+
geod.C4f(eps, this._C4a);
|
|
1989
|
+
// Multiplier = a^2 * e^2 * cos(alpha0) * sin(alpha0)
|
|
1990
|
+
this._A4 = m.sq(this.a) * this._calp0 * this._salp0 * geod._e2;
|
|
1991
|
+
this._B41 = g.SinCosSeries(false, this._ssig1, this._csig1, this._C4a);
|
|
1992
|
+
}
|
|
1993
|
+
this.a13 = this.s13 = NaN;
|
|
1994
|
+
};
|
|
1995
|
+
/**
|
|
1996
|
+
* @summary Find the position on the line (general case).
|
|
1997
|
+
* @param {bool} arcmode is the next parameter an arc length?
|
|
1998
|
+
* @param {number} s12_a12 the (arcmode ? arc length : distance) from the
|
|
1999
|
+
* first point to the second in (arcmode ? degrees : meters).
|
|
2000
|
+
* @param {bitmask} [outmask = STANDARD] which results to include; this is
|
|
2001
|
+
* subject to the capabilities of the object.
|
|
2002
|
+
* @return {object} the requested results.
|
|
2003
|
+
* @description The lat1, lon1, azi1, and a12 fields of the result are
|
|
2004
|
+
* always set; s12 is included if arcmode is false. For details on the
|
|
2005
|
+
* outmask parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
2006
|
+
* parameters".
|
|
2007
|
+
*/
|
|
2008
|
+
l.GeodesicLine.prototype.GenPosition = function (arcmode, s12_a12, outmask, vals = {}) {
|
|
2009
|
+
// math.gl: optional caller-owned result; numerical equations are unchanged.
|
|
2010
|
+
var sig12, ssig12, csig12, B12, AB1, ssig2, csig2, tau12, s, c, serr, omg12, lam12, lon12, E, sbet2, cbet2, somg2, comg2, salp2, calp2, dn2, B22, AB2, J12, t, B42, salp12, calp12;
|
|
2011
|
+
if (!outmask)
|
|
2012
|
+
outmask = g.STANDARD;
|
|
2013
|
+
else if (outmask === g.LONG_UNROLL)
|
|
2014
|
+
outmask |= g.STANDARD;
|
|
2015
|
+
outmask &= this.caps & g.OUT_MASK;
|
|
2016
|
+
vals.lat1 = this.lat1;
|
|
2017
|
+
vals.azi1 = this.azi1;
|
|
2018
|
+
vals.lon1 = outmask & g.LONG_UNROLL ?
|
|
2019
|
+
this.lon1 : m.AngNormalize(this.lon1);
|
|
2020
|
+
if (arcmode)
|
|
2021
|
+
vals.a12 = s12_a12;
|
|
2022
|
+
else
|
|
2023
|
+
vals.s12 = s12_a12;
|
|
2024
|
+
if (!(arcmode || (this.caps & g.DISTANCE_IN & g.OUT_MASK))) {
|
|
2025
|
+
// Uninitialized or impossible distance calculation requested
|
|
2026
|
+
vals.a12 = NaN;
|
|
2027
|
+
return vals;
|
|
2028
|
+
}
|
|
2029
|
+
// Avoid warning about uninitialized B12.
|
|
2030
|
+
B12 = 0;
|
|
2031
|
+
AB1 = 0;
|
|
2032
|
+
if (arcmode) {
|
|
2033
|
+
// Interpret s12_a12 as spherical arc length
|
|
2034
|
+
sig12 = s12_a12 * m.degree;
|
|
2035
|
+
t = m.sincosd(s12_a12);
|
|
2036
|
+
ssig12 = t.s;
|
|
2037
|
+
csig12 = t.c;
|
|
2038
|
+
}
|
|
2039
|
+
else {
|
|
2040
|
+
// Interpret s12_a12 as distance
|
|
2041
|
+
tau12 = s12_a12 / (this._b * (1 + this._A1m1));
|
|
2042
|
+
s = Math.sin(tau12);
|
|
2043
|
+
c = Math.cos(tau12);
|
|
2044
|
+
// tau2 = tau1 + tau12
|
|
2045
|
+
B12 = -g.SinCosSeries(true, this._stau1 * c + this._ctau1 * s, this._ctau1 * c - this._stau1 * s, this._C1pa);
|
|
2046
|
+
sig12 = tau12 - (B12 - this._B11);
|
|
2047
|
+
ssig12 = Math.sin(sig12);
|
|
2048
|
+
csig12 = Math.cos(sig12);
|
|
2049
|
+
if (Math.abs(this.f) > 0.01) {
|
|
2050
|
+
// Reverted distance series is inaccurate for |f| > 1/100, so correct
|
|
2051
|
+
// sig12 with 1 Newton iteration. The following table shows the
|
|
2052
|
+
// approximate maximum error for a = WGS_a() and various f relative to
|
|
2053
|
+
// GeodesicExact.
|
|
2054
|
+
// erri = the error in the inverse solution (nm)
|
|
2055
|
+
// errd = the error in the direct solution (series only) (nm)
|
|
2056
|
+
// errda = the error in the direct solution
|
|
2057
|
+
// (series + 1 Newton) (nm)
|
|
2058
|
+
//
|
|
2059
|
+
// f erri errd errda
|
|
2060
|
+
// -1/5 12e6 1.2e9 69e6
|
|
2061
|
+
// -1/10 123e3 12e6 765e3
|
|
2062
|
+
// -1/20 1110 108e3 7155
|
|
2063
|
+
// -1/50 18.63 200.9 27.12
|
|
2064
|
+
// -1/100 18.63 23.78 23.37
|
|
2065
|
+
// -1/150 18.63 21.05 20.26
|
|
2066
|
+
// 1/150 22.35 24.73 25.83
|
|
2067
|
+
// 1/100 22.35 25.03 25.31
|
|
2068
|
+
// 1/50 29.80 231.9 30.44
|
|
2069
|
+
// 1/20 5376 146e3 10e3
|
|
2070
|
+
// 1/10 829e3 22e6 1.5e6
|
|
2071
|
+
// 1/5 157e6 3.8e9 280e6
|
|
2072
|
+
ssig2 = this._ssig1 * csig12 + this._csig1 * ssig12;
|
|
2073
|
+
csig2 = this._csig1 * csig12 - this._ssig1 * ssig12;
|
|
2074
|
+
B12 = g.SinCosSeries(true, ssig2, csig2, this._C1a);
|
|
2075
|
+
serr = (1 + this._A1m1) * (sig12 + (B12 - this._B11)) -
|
|
2076
|
+
s12_a12 / this._b;
|
|
2077
|
+
sig12 = sig12 - serr / Math.sqrt(1 + this._k2 * m.sq(ssig2));
|
|
2078
|
+
ssig12 = Math.sin(sig12);
|
|
2079
|
+
csig12 = Math.cos(sig12);
|
|
2080
|
+
// Update B12 below
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
// sig2 = sig1 + sig12
|
|
2084
|
+
ssig2 = this._ssig1 * csig12 + this._csig1 * ssig12;
|
|
2085
|
+
csig2 = this._csig1 * csig12 - this._ssig1 * ssig12;
|
|
2086
|
+
dn2 = Math.sqrt(1 + this._k2 * m.sq(ssig2));
|
|
2087
|
+
if (outmask & (g.DISTANCE | g.REDUCEDLENGTH | g.GEODESICSCALE)) {
|
|
2088
|
+
if (arcmode || Math.abs(this.f) > 0.01)
|
|
2089
|
+
B12 = g.SinCosSeries(true, ssig2, csig2, this._C1a);
|
|
2090
|
+
AB1 = (1 + this._A1m1) * (B12 - this._B11);
|
|
2091
|
+
}
|
|
2092
|
+
// sin(bet2) = cos(alp0) * sin(sig2)
|
|
2093
|
+
sbet2 = this._calp0 * ssig2;
|
|
2094
|
+
// Alt: cbet2 = hypot(csig2, salp0 * ssig2);
|
|
2095
|
+
cbet2 = m.hypot(this._salp0, this._calp0 * csig2);
|
|
2096
|
+
if (cbet2 === 0)
|
|
2097
|
+
// I.e., salp0 = 0, csig2 = 0. Break the degeneracy in this case
|
|
2098
|
+
cbet2 = csig2 = g.tiny_;
|
|
2099
|
+
// tan(alp0) = cos(sig2)*tan(alp2)
|
|
2100
|
+
salp2 = this._salp0;
|
|
2101
|
+
calp2 = this._calp0 * csig2; // No need to normalize
|
|
2102
|
+
if (arcmode && (outmask & g.DISTANCE))
|
|
2103
|
+
vals.s12 = this._b * ((1 + this._A1m1) * sig12 + AB1);
|
|
2104
|
+
if (outmask & g.LONGITUDE) {
|
|
2105
|
+
// tan(omg2) = sin(alp0) * tan(sig2)
|
|
2106
|
+
somg2 = this._salp0 * ssig2;
|
|
2107
|
+
comg2 = csig2; // No need to normalize
|
|
2108
|
+
E = m.copysign(1, this._salp0);
|
|
2109
|
+
// omg12 = omg2 - omg1
|
|
2110
|
+
omg12 = outmask & g.LONG_UNROLL ?
|
|
2111
|
+
E * (sig12 -
|
|
2112
|
+
(Math.atan2(ssig2, csig2) -
|
|
2113
|
+
Math.atan2(this._ssig1, this._csig1)) +
|
|
2114
|
+
(Math.atan2(E * somg2, comg2) -
|
|
2115
|
+
Math.atan2(E * this._somg1, this._comg1))) :
|
|
2116
|
+
Math.atan2(somg2 * this._comg1 - comg2 * this._somg1, comg2 * this._comg1 + somg2 * this._somg1);
|
|
2117
|
+
lam12 = omg12 + this._A3c *
|
|
2118
|
+
(sig12 + (g.SinCosSeries(true, ssig2, csig2, this._C3a) -
|
|
2119
|
+
this._B31));
|
|
2120
|
+
lon12 = lam12 / m.degree;
|
|
2121
|
+
vals.lon2 = outmask & g.LONG_UNROLL ? this.lon1 + lon12 :
|
|
2122
|
+
m.AngNormalize(m.AngNormalize(this.lon1) + m.AngNormalize(lon12));
|
|
2123
|
+
}
|
|
2124
|
+
if (outmask & g.LATITUDE)
|
|
2125
|
+
vals.lat2 = m.atan2d(sbet2, this._f1 * cbet2);
|
|
2126
|
+
if (outmask & g.AZIMUTH)
|
|
2127
|
+
vals.azi2 = m.atan2d(salp2, calp2);
|
|
2128
|
+
if (outmask & (g.REDUCEDLENGTH | g.GEODESICSCALE)) {
|
|
2129
|
+
B22 = g.SinCosSeries(true, ssig2, csig2, this._C2a);
|
|
2130
|
+
AB2 = (1 + this._A2m1) * (B22 - this._B21);
|
|
2131
|
+
J12 = (this._A1m1 - this._A2m1) * sig12 + (AB1 - AB2);
|
|
2132
|
+
if (outmask & g.REDUCEDLENGTH)
|
|
2133
|
+
// Add parens around (_csig1 * ssig2) and (_ssig1 * csig2) to ensure
|
|
2134
|
+
// accurate cancellation in the case of coincident points.
|
|
2135
|
+
vals.m12 = this._b * ((dn2 * (this._csig1 * ssig2) -
|
|
2136
|
+
this._dn1 * (this._ssig1 * csig2)) -
|
|
2137
|
+
this._csig1 * csig2 * J12);
|
|
2138
|
+
if (outmask & g.GEODESICSCALE) {
|
|
2139
|
+
t = this._k2 * (ssig2 - this._ssig1) * (ssig2 + this._ssig1) /
|
|
2140
|
+
(this._dn1 + dn2);
|
|
2141
|
+
vals.M12 = csig12 +
|
|
2142
|
+
(t * ssig2 - csig2 * J12) * this._ssig1 / this._dn1;
|
|
2143
|
+
vals.M21 = csig12 -
|
|
2144
|
+
(t * this._ssig1 - this._csig1 * J12) * ssig2 / dn2;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
if (outmask & g.AREA) {
|
|
2148
|
+
B42 = g.SinCosSeries(false, ssig2, csig2, this._C4a);
|
|
2149
|
+
if (this._calp0 === 0 || this._salp0 === 0) {
|
|
2150
|
+
// alp12 = alp2 - alp1, used in atan2 so no need to normalize
|
|
2151
|
+
salp12 = salp2 * this.calp1 - calp2 * this.salp1;
|
|
2152
|
+
calp12 = calp2 * this.calp1 + salp2 * this.salp1;
|
|
2153
|
+
}
|
|
2154
|
+
else {
|
|
2155
|
+
// tan(alp) = tan(alp0) * sec(sig)
|
|
2156
|
+
// tan(alp2-alp1) = (tan(alp2) -tan(alp1)) / (tan(alp2)*tan(alp1)+1)
|
|
2157
|
+
// = calp0 * salp0 * (csig1-csig2) / (salp0^2 + calp0^2 * csig1*csig2)
|
|
2158
|
+
// If csig12 > 0, write
|
|
2159
|
+
// csig1 - csig2 = ssig12 * (csig1 * ssig12 / (1 + csig12) + ssig1)
|
|
2160
|
+
// else
|
|
2161
|
+
// csig1 - csig2 = csig1 * (1 - csig12) + ssig12 * ssig1
|
|
2162
|
+
// No need to normalize
|
|
2163
|
+
salp12 = this._calp0 * this._salp0 *
|
|
2164
|
+
(csig12 <= 0 ? this._csig1 * (1 - csig12) + ssig12 * this._ssig1 :
|
|
2165
|
+
ssig12 * (this._csig1 * ssig12 / (1 + csig12) + this._ssig1));
|
|
2166
|
+
calp12 = m.sq(this._salp0) + m.sq(this._calp0) * this._csig1 * csig2;
|
|
2167
|
+
}
|
|
2168
|
+
vals.S12 = this._c2 * Math.atan2(salp12, calp12) +
|
|
2169
|
+
this._A4 * (Math.abs(sig12) < 0.01 ?
|
|
2170
|
+
g.SinCosSeries(false, this._ssig1, this._csig1, this._C4a, sig12) : B42 - this._B41);
|
|
2171
|
+
}
|
|
2172
|
+
if (!arcmode)
|
|
2173
|
+
vals.a12 = sig12 / m.degree;
|
|
2174
|
+
return vals;
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* @summary Find the position on the line given s12.
|
|
2178
|
+
* @param {number} s12 the distance from the first point to the second in
|
|
2179
|
+
* meters.
|
|
2180
|
+
* @param {bitmask} [outmask = STANDARD] which results to include; this is
|
|
2181
|
+
* subject to the capabilities of the object.
|
|
2182
|
+
* @return {object} the requested results.
|
|
2183
|
+
* @description The lat1, lon1, azi1, s12, and a12 fields of the result are
|
|
2184
|
+
* always set; s12 is included if arcmode is false. For details on the
|
|
2185
|
+
* outmask parameter, see {@tutorial 2-interface}, "The outmask and caps
|
|
2186
|
+
* parameters".
|
|
2187
|
+
*/
|
|
2188
|
+
l.GeodesicLine.prototype.Position = function (s12, outmask) {
|
|
2189
|
+
return this.GenPosition(false, s12, outmask);
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* @summary Find the position on the line given a12.
|
|
2193
|
+
* @param {number} a12 the arc length from the first point to the second in
|
|
2194
|
+
* degrees.
|
|
2195
|
+
* @param {bitmask} [outmask = STANDARD] which results to include; this is
|
|
2196
|
+
* subject to the capabilities of the object.
|
|
2197
|
+
* @return {object} the requested results.
|
|
2198
|
+
* @description The lat1, lon1, azi1, and a12 fields of the result are
|
|
2199
|
+
* always set. For details on the outmask parameter, see {@tutorial
|
|
2200
|
+
* 2-interface}, "The outmask and caps parameters".
|
|
2201
|
+
*/
|
|
2202
|
+
l.GeodesicLine.prototype.ArcPosition = function (a12, outmask) {
|
|
2203
|
+
return this.GenPosition(true, a12, outmask);
|
|
2204
|
+
};
|
|
2205
|
+
/**
|
|
2206
|
+
* @summary Specify position of point 3 in terms of either distance or arc
|
|
2207
|
+
* length.
|
|
2208
|
+
* @param {bool} arcmode boolean flag determining the meaning of the second
|
|
2209
|
+
* parameter; if arcmode is false, then the GeodesicLine object must have
|
|
2210
|
+
* been constructed with caps |= DISTANCE_IN.
|
|
2211
|
+
* @param {number} s13_a13 if arcmode is false, this is the distance from
|
|
2212
|
+
* point 1 to point 3 (meters); otherwise it is the arc length from
|
|
2213
|
+
* point 1 to point 3 (degrees); it can be negative.
|
|
2214
|
+
*/
|
|
2215
|
+
l.GeodesicLine.prototype.GenSetDistance = function (arcmode, s13_a13) {
|
|
2216
|
+
if (arcmode)
|
|
2217
|
+
this.SetArc(s13_a13);
|
|
2218
|
+
else
|
|
2219
|
+
this.SetDistance(s13_a13);
|
|
2220
|
+
};
|
|
2221
|
+
/**
|
|
2222
|
+
* @summary Specify position of point 3 in terms distance.
|
|
2223
|
+
* @param {number} s13 the distance from point 1 to point 3 (meters); it
|
|
2224
|
+
* can be negative.
|
|
2225
|
+
*/
|
|
2226
|
+
l.GeodesicLine.prototype.SetDistance = function (s13) {
|
|
2227
|
+
var r;
|
|
2228
|
+
this.s13 = s13;
|
|
2229
|
+
r = this.GenPosition(false, this.s13, g.ARC);
|
|
2230
|
+
this.a13 = 0 + r.a12; // the 0+ converts undefined into NaN
|
|
2231
|
+
};
|
|
2232
|
+
/**
|
|
2233
|
+
* @summary Specify position of point 3 in terms of arc length.
|
|
2234
|
+
* @param {number} a13 the arc length from point 1 to point 3 (degrees);
|
|
2235
|
+
* it can be negative.
|
|
2236
|
+
*/
|
|
2237
|
+
l.GeodesicLine.prototype.SetArc = function (a13) {
|
|
2238
|
+
var r;
|
|
2239
|
+
this.a13 = a13;
|
|
2240
|
+
r = this.GenPosition(true, this.a13, g.DISTANCE);
|
|
2241
|
+
this.s13 = 0 + r.s12; // the 0+ converts undefined into NaN
|
|
2242
|
+
};
|
|
2243
|
+
})(geodesic.Geodesic, geodesic.GeodesicLine, geodesic.Math);
|
|
2244
|
+
export { geodesic };
|
|
2245
|
+
//# sourceMappingURL=runtime.js.map
|