@math.gl/geospatial 5.0.0-beta.4 → 5.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +192 -2
- package/THIRD-PARTY-NOTICES.md +192 -20
- package/dist/expressions.d.ts +1 -1
- package/dist/expressions.d.ts.map +1 -1
- package/dist/index.cjs +212 -4614
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +2 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/projection/experimental/common/adjust_lat.js +1 -1
- package/dist/projection/experimental/common/adjust_lat.js.map +1 -1
- package/dist/projection/experimental/common/adjust_lon.js +1 -1
- package/dist/projection/experimental/common/adjust_lon.js.map +1 -1
- package/dist/projection/experimental/common/asinhy.js +1 -1
- package/dist/projection/experimental/common/asinhy.js.map +1 -1
- package/dist/projection/experimental/common/asinz.js +1 -1
- package/dist/projection/experimental/common/asinz.js.map +1 -1
- package/dist/projection/experimental/common/authlat.js +1 -1
- package/dist/projection/experimental/common/authlat.js.map +1 -1
- package/dist/projection/experimental/common/authset.js +1 -1
- package/dist/projection/experimental/common/authset.js.map +1 -1
- package/dist/projection/experimental/common/clens.js +1 -1
- package/dist/projection/experimental/common/clens.js.map +1 -1
- package/dist/projection/experimental/common/clens_cmplx.js +1 -1
- package/dist/projection/experimental/common/clens_cmplx.js.map +1 -1
- package/dist/projection/experimental/common/constants.js +1 -1
- package/dist/projection/experimental/common/constants.js.map +1 -1
- package/dist/projection/experimental/common/cosh.js +1 -1
- package/dist/projection/experimental/common/cosh.js.map +1 -1
- package/dist/projection/experimental/common/e0fn.js +1 -1
- package/dist/projection/experimental/common/e0fn.js.map +1 -1
- package/dist/projection/experimental/common/e1fn.js +1 -1
- package/dist/projection/experimental/common/e1fn.js.map +1 -1
- package/dist/projection/experimental/common/e2fn.js +1 -1
- package/dist/projection/experimental/common/e2fn.js.map +1 -1
- package/dist/projection/experimental/common/e3fn.js +1 -1
- package/dist/projection/experimental/common/e3fn.js.map +1 -1
- package/dist/projection/experimental/common/fL.js +1 -1
- package/dist/projection/experimental/common/fL.js.map +1 -1
- package/dist/projection/experimental/common/gN.js +1 -1
- package/dist/projection/experimental/common/gN.js.map +1 -1
- package/dist/projection/experimental/common/gatg.js +1 -1
- package/dist/projection/experimental/common/gatg.js.map +1 -1
- package/dist/projection/experimental/common/hypot.js +1 -1
- package/dist/projection/experimental/common/hypot.js.map +1 -1
- package/dist/projection/experimental/common/imlfn.js +1 -1
- package/dist/projection/experimental/common/imlfn.js.map +1 -1
- package/dist/projection/experimental/common/invlatiso.js +1 -1
- package/dist/projection/experimental/common/invlatiso.js.map +1 -1
- package/dist/projection/experimental/common/iqsfnz.js +1 -1
- package/dist/projection/experimental/common/iqsfnz.js.map +1 -1
- package/dist/projection/experimental/common/latiso.js +1 -1
- package/dist/projection/experimental/common/latiso.js.map +1 -1
- package/dist/projection/experimental/common/log1py.js +1 -1
- package/dist/projection/experimental/common/log1py.js.map +1 -1
- package/dist/projection/experimental/common/mlfn.js +1 -1
- package/dist/projection/experimental/common/mlfn.js.map +1 -1
- package/dist/projection/experimental/common/msfnz.js +1 -1
- package/dist/projection/experimental/common/msfnz.js.map +1 -1
- package/dist/projection/experimental/common/phi2z.js +1 -1
- package/dist/projection/experimental/common/phi2z.js.map +1 -1
- package/dist/projection/experimental/common/pj_enfn.js +1 -1
- package/dist/projection/experimental/common/pj_enfn.js.map +1 -1
- package/dist/projection/experimental/common/pj_inv_mlfn.js +1 -1
- package/dist/projection/experimental/common/pj_inv_mlfn.js.map +1 -1
- package/dist/projection/experimental/common/pj_mlfn.js +1 -1
- package/dist/projection/experimental/common/pj_mlfn.js.map +1 -1
- package/dist/projection/experimental/common/qsfnz.js +1 -1
- package/dist/projection/experimental/common/qsfnz.js.map +1 -1
- package/dist/projection/experimental/common/sign.js +1 -1
- package/dist/projection/experimental/common/sign.js.map +1 -1
- package/dist/projection/experimental/common/sinh.js +1 -1
- package/dist/projection/experimental/common/sinh.js.map +1 -1
- package/dist/projection/experimental/common/srat.js +1 -1
- package/dist/projection/experimental/common/srat.js.map +1 -1
- package/dist/projection/experimental/common/tsfnz.js +1 -1
- package/dist/projection/experimental/common/tsfnz.js.map +1 -1
- package/dist/projection/experimental/common/vincenty.js +1 -1
- package/dist/projection/experimental/common/vincenty.js.map +1 -1
- package/dist/projection/experimental/core.cjs +100 -2
- package/dist/projection/experimental/core.cjs.map +2 -2
- package/dist/projection/experimental/core.d.ts +1 -0
- package/dist/projection/experimental/core.d.ts.map +1 -1
- package/dist/projection/experimental/crs/datum-table.js +1 -1
- package/dist/projection/experimental/crs/datum-table.js.map +1 -1
- package/dist/projection/experimental/crs/ellipsoid-table.js +1 -1
- package/dist/projection/experimental/crs/ellipsoid-table.js.map +1 -1
- package/dist/projection/experimental/crs/primemeridian-table.js +1 -1
- package/dist/projection/experimental/crs/primemeridian-table.js.map +1 -1
- package/dist/projection/experimental/crs/structured.js +1 -1
- package/dist/projection/experimental/crs/structured.js.map +1 -1
- package/dist/projection/experimental/crs/wkt.js +1 -1
- package/dist/projection/experimental/crs/wkt.js.map +1 -1
- package/dist/projection/experimental/datum.js +1 -1
- package/dist/projection/experimental/datum.js.map +1 -1
- package/dist/projection/experimental/ellipsoidal-gnomonic.js +1 -1
- package/dist/projection/experimental/ellipsoidal-gnomonic.js.map +1 -1
- package/dist/projection/experimental/entries/projections/eqc.cjs +1 -0
- package/dist/projection/experimental/entries/projections/eqc.cjs.map +1 -1
- package/dist/projection/experimental/entries/projections/merc.cjs +1 -0
- package/dist/projection/experimental/entries/projections/merc.cjs.map +1 -1
- package/dist/projection/experimental/grids/geotiff.js +1 -1
- package/dist/projection/experimental/grids/geotiff.js.map +1 -1
- package/dist/projection/experimental/grids/ntv2.js +1 -1
- package/dist/projection/experimental/grids/ntv2.js.map +1 -1
- package/dist/projection/experimental/index.cjs +102 -2
- package/dist/projection/experimental/index.cjs.map +3 -3
- package/dist/projection/experimental/kernels/aea.js +1 -1
- package/dist/projection/experimental/kernels/aea.js.map +1 -1
- package/dist/projection/experimental/kernels/aeqd.js +1 -1
- package/dist/projection/experimental/kernels/aeqd.js.map +1 -1
- package/dist/projection/experimental/kernels/bonne.js +1 -1
- package/dist/projection/experimental/kernels/bonne.js.map +1 -1
- package/dist/projection/experimental/kernels/cass.js +1 -1
- package/dist/projection/experimental/kernels/cass.js.map +1 -1
- package/dist/projection/experimental/kernels/cea.js +1 -1
- package/dist/projection/experimental/kernels/cea.js.map +1 -1
- package/dist/projection/experimental/kernels/eck6.js +1 -1
- package/dist/projection/experimental/kernels/eck6.js.map +1 -1
- package/dist/projection/experimental/kernels/eqdc.js +1 -1
- package/dist/projection/experimental/kernels/eqdc.js.map +1 -1
- package/dist/projection/experimental/kernels/eqearth.js +1 -1
- package/dist/projection/experimental/kernels/eqearth.js.map +1 -1
- package/dist/projection/experimental/kernels/equi.js +1 -1
- package/dist/projection/experimental/kernels/equi.js.map +1 -1
- package/dist/projection/experimental/kernels/etmerc.js +1 -1
- package/dist/projection/experimental/kernels/etmerc.js.map +1 -1
- package/dist/projection/experimental/kernels/gauss.js +1 -1
- package/dist/projection/experimental/kernels/gauss.js.map +1 -1
- package/dist/projection/experimental/kernels/geos.js +1 -1
- package/dist/projection/experimental/kernels/geos.js.map +1 -1
- package/dist/projection/experimental/kernels/gnom.js +1 -1
- package/dist/projection/experimental/kernels/gnom.js.map +1 -1
- package/dist/projection/experimental/kernels/gstmerc.js +1 -1
- package/dist/projection/experimental/kernels/gstmerc.js.map +1 -1
- package/dist/projection/experimental/kernels/krovak.js +1 -1
- package/dist/projection/experimental/kernels/krovak.js.map +1 -1
- package/dist/projection/experimental/kernels/laea.js +1 -1
- package/dist/projection/experimental/kernels/laea.js.map +1 -1
- package/dist/projection/experimental/kernels/lcc.js +1 -1
- package/dist/projection/experimental/kernels/lcc.js.map +1 -1
- package/dist/projection/experimental/kernels/mill.js +1 -1
- package/dist/projection/experimental/kernels/mill.js.map +1 -1
- package/dist/projection/experimental/kernels/moll.js +1 -1
- package/dist/projection/experimental/kernels/moll.js.map +1 -1
- package/dist/projection/experimental/kernels/nzmg.js +1 -1
- package/dist/projection/experimental/kernels/nzmg.js.map +1 -1
- package/dist/projection/experimental/kernels/omerc.js +1 -1
- package/dist/projection/experimental/kernels/omerc.js.map +1 -1
- package/dist/projection/experimental/kernels/poly.js +1 -1
- package/dist/projection/experimental/kernels/poly.js.map +1 -1
- package/dist/projection/experimental/kernels/qsc.js +1 -1
- package/dist/projection/experimental/kernels/qsc.js.map +1 -1
- package/dist/projection/experimental/kernels/robin.js +1 -1
- package/dist/projection/experimental/kernels/robin.js.map +1 -1
- package/dist/projection/experimental/kernels/sinu.js +1 -1
- package/dist/projection/experimental/kernels/sinu.js.map +1 -1
- package/dist/projection/experimental/kernels/somerc.js +1 -1
- package/dist/projection/experimental/kernels/somerc.js.map +1 -1
- package/dist/projection/experimental/kernels/stere.js +1 -1
- package/dist/projection/experimental/kernels/stere.js.map +1 -1
- package/dist/projection/experimental/kernels/sterea.js +1 -1
- package/dist/projection/experimental/kernels/sterea.js.map +1 -1
- package/dist/projection/experimental/kernels/tmerc.js +1 -1
- package/dist/projection/experimental/kernels/tmerc.js.map +1 -1
- package/dist/projection/experimental/kernels/tpers.js +1 -1
- package/dist/projection/experimental/kernels/tpers.js.map +1 -1
- package/dist/projection/experimental/kernels/vandg.js +1 -1
- package/dist/projection/experimental/kernels/vandg.js.map +1 -1
- package/dist/projection/experimental/kinematic-helmert.js +1 -1
- package/dist/projection/experimental/kinematic-helmert.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/index.cjs +100 -2
- package/dist/projection/experimental/lazy-projections/index.cjs.map +2 -2
- package/dist/projection/experimental/projections/equidistant-cylindrical.d.ts.map +1 -1
- package/dist/projection/experimental/projections/equidistant-cylindrical.js +1 -0
- package/dist/projection/experimental/projections/equidistant-cylindrical.js.map +1 -1
- package/dist/projection/experimental/projections/mercator.d.ts.map +1 -1
- package/dist/projection/experimental/projections/mercator.js +1 -0
- package/dist/projection/experimental/projections/mercator.js.map +1 -1
- package/dist/projection/experimental/transform-description.d.ts +8 -0
- package/dist/projection/experimental/transform-description.d.ts.map +1 -0
- package/dist/projection/experimental/transform-description.js +57 -0
- package/dist/projection/experimental/transform-description.js.map +1 -0
- package/dist/projection/experimental/types.d.ts +5 -0
- package/dist/projection/experimental/types.d.ts.map +1 -1
- package/dist/projection/experimental/typescript-projection.d.ts +4 -0
- package/dist/projection/experimental/typescript-projection.d.ts.map +1 -1
- package/dist/projection/experimental/typescript-projection.js +54 -5
- package/dist/projection/experimental/typescript-projection.js.map +1 -1
- package/dist/projection/index.cjs +102 -2
- package/dist/projection/index.cjs.map +3 -3
- package/dist/projection/transform-analysis.cjs +100 -2
- package/dist/projection/transform-analysis.cjs.map +2 -2
- package/dist/projection/transform-description.d.ts +44 -0
- package/dist/projection/transform-description.d.ts.map +1 -0
- package/dist/projection/transform-description.js +5 -0
- package/dist/projection/transform-description.js.map +1 -0
- package/dist/projection/types.d.ts +4 -0
- package/dist/projection/types.d.ts.map +1 -1
- package/dist/tasks/definitions.d.ts +3 -3
- package/dist/tasks/index.cjs +107 -2
- package/dist/tasks/index.cjs.map +3 -3
- package/dist/tasks/index.d.ts +1 -1
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/map-worker.js +1 -1
- package/dist/tasks/map-worker.js.map +1 -1
- package/dist/tasks/operations.d.ts +1 -1
- package/dist/tasks/operations.d.ts.map +1 -1
- package/dist/tasks/projection-worker.js +1 -1
- package/dist/tasks/projection-worker.js.map +1 -1
- package/dist/terrain/contour-mixed-weld.d.ts +25 -0
- package/dist/terrain/contour-mixed-weld.d.ts.map +1 -0
- package/dist/terrain/contour-mixed-weld.js +194 -0
- package/dist/terrain/contour-mixed-weld.js.map +1 -0
- package/dist/terrain/height-field.d.ts.map +1 -1
- package/dist/terrain/height-field.js +48 -5
- package/dist/terrain/height-field.js.map +1 -1
- package/dist/terrain/index.cjs +204 -4
- package/dist/terrain/index.cjs.map +3 -3
- package/dist/terrain/index.d.ts +2 -0
- package/dist/terrain/index.d.ts.map +1 -1
- package/dist/terrain/index.js +1 -0
- package/dist/terrain/index.js.map +1 -1
- package/dist/terrain/tiled.d.ts +10 -2
- package/dist/terrain/tiled.d.ts.map +1 -1
- package/dist/terrain/tiled.js +5 -1
- package/dist/terrain/tiled.js.map +1 -1
- package/dist/terrain/types.d.ts +6 -0
- package/dist/terrain/types.d.ts.map +1 -1
- package/dist/turf.cjs +25 -671
- package/dist/turf.cjs.map +3 -3
- package/dist/turf.d.ts +1 -1
- package/dist/turf.d.ts.map +1 -1
- package/dist/turf.js +2 -2
- package/dist/turf.js.map +1 -1
- package/package.json +15 -19
- package/src/expressions.ts +1 -1
- package/src/index.ts +5 -123
- package/src/projection/experimental/common/adjust_lat.ts +1 -1
- package/src/projection/experimental/common/adjust_lon.ts +1 -1
- package/src/projection/experimental/common/asinhy.ts +1 -1
- package/src/projection/experimental/common/asinz.ts +1 -1
- package/src/projection/experimental/common/authlat.ts +1 -1
- package/src/projection/experimental/common/authset.ts +1 -1
- package/src/projection/experimental/common/clens.ts +1 -1
- package/src/projection/experimental/common/clens_cmplx.ts +1 -1
- package/src/projection/experimental/common/constants.ts +1 -1
- package/src/projection/experimental/common/cosh.ts +1 -1
- package/src/projection/experimental/common/e0fn.ts +1 -1
- package/src/projection/experimental/common/e1fn.ts +1 -1
- package/src/projection/experimental/common/e2fn.ts +1 -1
- package/src/projection/experimental/common/e3fn.ts +1 -1
- package/src/projection/experimental/common/fL.ts +1 -1
- package/src/projection/experimental/common/gN.ts +1 -1
- package/src/projection/experimental/common/gatg.ts +1 -1
- package/src/projection/experimental/common/hypot.ts +1 -1
- package/src/projection/experimental/common/imlfn.ts +1 -1
- package/src/projection/experimental/common/invlatiso.ts +1 -1
- package/src/projection/experimental/common/iqsfnz.ts +1 -1
- package/src/projection/experimental/common/latiso.ts +1 -1
- package/src/projection/experimental/common/log1py.ts +1 -1
- package/src/projection/experimental/common/mlfn.ts +1 -1
- package/src/projection/experimental/common/msfnz.ts +1 -1
- package/src/projection/experimental/common/phi2z.ts +1 -1
- package/src/projection/experimental/common/pj_enfn.ts +1 -1
- package/src/projection/experimental/common/pj_inv_mlfn.ts +1 -1
- package/src/projection/experimental/common/pj_mlfn.ts +1 -1
- package/src/projection/experimental/common/qsfnz.ts +1 -1
- package/src/projection/experimental/common/sign.ts +1 -1
- package/src/projection/experimental/common/sinh.ts +1 -1
- package/src/projection/experimental/common/srat.ts +1 -1
- package/src/projection/experimental/common/tsfnz.ts +1 -1
- package/src/projection/experimental/common/vincenty.ts +1 -1
- package/src/projection/experimental/core.ts +8 -0
- package/src/projection/experimental/crs/datum-table.ts +1 -1
- package/src/projection/experimental/crs/ellipsoid-table.ts +1 -1
- package/src/projection/experimental/crs/primemeridian-table.ts +1 -1
- package/src/projection/experimental/crs/structured.ts +1 -1
- package/src/projection/experimental/crs/wkt.ts +1 -1
- package/src/projection/experimental/datum.ts +1 -1
- package/src/projection/experimental/ellipsoidal-gnomonic.ts +1 -1
- package/src/projection/experimental/exact-helmert.ts +1 -1
- package/src/projection/experimental/grids/geotiff.ts +1 -1
- package/src/projection/experimental/grids/grid.ts +1 -1
- package/src/projection/experimental/grids/ntv2.ts +1 -1
- package/src/projection/experimental/helmert-flat.ts +1 -1
- package/src/projection/experimental/kernels/aea.ts +1 -1
- package/src/projection/experimental/kernels/aeqd.ts +1 -1
- package/src/projection/experimental/kernels/bonne.ts +1 -1
- package/src/projection/experimental/kernels/cass.ts +1 -1
- package/src/projection/experimental/kernels/cea.ts +1 -1
- package/src/projection/experimental/kernels/eck6.ts +1 -1
- package/src/projection/experimental/kernels/eqdc.ts +1 -1
- package/src/projection/experimental/kernels/eqearth.ts +1 -1
- package/src/projection/experimental/kernels/equi.ts +1 -1
- package/src/projection/experimental/kernels/etmerc.ts +1 -1
- package/src/projection/experimental/kernels/gauss.ts +1 -1
- package/src/projection/experimental/kernels/geos.ts +1 -1
- package/src/projection/experimental/kernels/gnom.ts +1 -1
- package/src/projection/experimental/kernels/gstmerc.ts +1 -1
- package/src/projection/experimental/kernels/krovak.ts +1 -1
- package/src/projection/experimental/kernels/laea.ts +1 -1
- package/src/projection/experimental/kernels/lcc.ts +1 -1
- package/src/projection/experimental/kernels/mill.ts +1 -1
- package/src/projection/experimental/kernels/moll.ts +1 -1
- package/src/projection/experimental/kernels/nzmg.ts +1 -1
- package/src/projection/experimental/kernels/omerc.ts +1 -1
- package/src/projection/experimental/kernels/ortho.ts +1 -1
- package/src/projection/experimental/kernels/poly.ts +1 -1
- package/src/projection/experimental/kernels/qsc.ts +1 -1
- package/src/projection/experimental/kernels/robin.ts +1 -1
- package/src/projection/experimental/kernels/sinu.ts +1 -1
- package/src/projection/experimental/kernels/somerc.ts +1 -1
- package/src/projection/experimental/kernels/stere.ts +1 -1
- package/src/projection/experimental/kernels/sterea.ts +1 -1
- package/src/projection/experimental/kernels/tmerc.ts +1 -1
- package/src/projection/experimental/kernels/tpers.ts +1 -1
- package/src/projection/experimental/kernels/vandg.ts +1 -1
- package/src/projection/experimental/kinematic-helmert-flat.ts +1 -1
- package/src/projection/experimental/kinematic-helmert.ts +1 -1
- package/src/projection/experimental/projection-pipeline.ts +1 -1
- package/src/projection/experimental/projections/equidistant-cylindrical.ts +1 -0
- package/src/projection/experimental/projections/mercator.ts +1 -0
- package/src/projection/experimental/projections/ob-tran.ts +1 -1
- package/src/projection/experimental/transform-description.ts +82 -0
- package/src/projection/experimental/types.ts +5 -0
- package/src/projection/experimental/typescript-projection.ts +54 -6
- package/src/projection/transform-description.ts +69 -0
- package/src/projection/types.ts +11 -0
- package/src/tasks/definitions.ts +1 -1
- package/src/tasks/index.ts +1 -1
- package/src/tasks/map-worker.ts +1 -1
- package/src/tasks/operations.ts +1 -1
- package/src/tasks/projection-worker.ts +1 -1
- package/src/terrain/contour-mixed-weld.ts +254 -0
- package/src/terrain/height-field.ts +45 -5
- package/src/terrain/index.ts +2 -0
- package/src/terrain/tiled.ts +16 -3
- package/src/terrain/types.ts +9 -1
- package/src/turf.ts +7 -3
- package/crs/README.md +0 -84
- package/crs/schemas/README.md +0 -9
- package/dist/geoarrow/builder-entry.d.ts +0 -4
- package/dist/geoarrow/builder-entry.d.ts.map +0 -1
- package/dist/geoarrow/builder-entry.js +0 -5
- package/dist/geoarrow/builder-entry.js.map +0 -1
- package/dist/geoarrow/builder.d.ts +0 -106
- package/dist/geoarrow/builder.d.ts.map +0 -1
- package/dist/geoarrow/builder.js +0 -668
- package/dist/geoarrow/builder.js.map +0 -1
- package/dist/geoarrow/codecs.d.ts +0 -24
- package/dist/geoarrow/codecs.d.ts.map +0 -1
- package/dist/geoarrow/codecs.js +0 -916
- package/dist/geoarrow/codecs.js.map +0 -1
- package/dist/geoarrow/index.cjs +0 -4352
- package/dist/geoarrow/index.cjs.map +0 -6
- package/dist/geoarrow/index.d.ts +0 -21
- package/dist/geoarrow/index.d.ts.map +0 -1
- package/dist/geoarrow/index.js +0 -15
- package/dist/geoarrow/index.js.map +0 -1
- package/dist/geoarrow/kernels.d.ts +0 -56
- package/dist/geoarrow/kernels.d.ts.map +0 -1
- package/dist/geoarrow/kernels.js +0 -982
- package/dist/geoarrow/kernels.js.map +0 -1
- package/dist/geoarrow/layout.d.ts +0 -66
- package/dist/geoarrow/layout.d.ts.map +0 -1
- package/dist/geoarrow/layout.js +0 -723
- package/dist/geoarrow/layout.js.map +0 -1
- package/dist/geoarrow/stream-tessellate.d.ts +0 -34
- package/dist/geoarrow/stream-tessellate.d.ts.map +0 -1
- package/dist/geoarrow/stream-tessellate.js +0 -171
- package/dist/geoarrow/stream-tessellate.js.map +0 -1
- package/dist/geoarrow/stream.d.ts +0 -29
- package/dist/geoarrow/stream.d.ts.map +0 -1
- package/dist/geoarrow/stream.js +0 -100
- package/dist/geoarrow/stream.js.map +0 -1
- package/dist/geoarrow/tessellate.d.ts +0 -31
- package/dist/geoarrow/tessellate.d.ts.map +0 -1
- package/dist/geoarrow/tessellate.js +0 -102
- package/dist/geoarrow/tessellate.js.map +0 -1
- package/dist/geoarrow/tessellation-entry.d.ts +0 -4
- package/dist/geoarrow/tessellation-entry.d.ts.map +0 -1
- package/dist/geoarrow/tessellation-entry.js +0 -5
- package/dist/geoarrow/tessellation-entry.js.map +0 -1
- package/dist/geoarrow/types.d.ts +0 -155
- package/dist/geoarrow/types.d.ts.map +0 -1
- package/dist/geoarrow/types.js +0 -71
- package/dist/geoarrow/types.js.map +0 -1
- package/dist/geoarrow/views.d.ts +0 -45
- package/dist/geoarrow/views.d.ts.map +0 -1
- package/dist/geoarrow/views.js +0 -114
- package/dist/geoarrow/views.js.map +0 -1
- package/dist/geoarrow/wkb-entry.d.ts +0 -4
- package/dist/geoarrow/wkb-entry.d.ts.map +0 -1
- package/dist/geoarrow/wkb-entry.js +0 -6
- package/dist/geoarrow/wkb-entry.js.map +0 -1
- package/dist/geoarrow/worker.d.ts +0 -11
- package/dist/geoarrow/worker.d.ts.map +0 -1
- package/dist/geoarrow/worker.js +0 -10
- package/dist/geoarrow/worker.js.map +0 -1
- package/dist/wkb/index.d.ts +0 -11
- package/dist/wkb/index.d.ts.map +0 -1
- package/dist/wkb/index.js +0 -9
- package/dist/wkb/index.js.map +0 -1
- package/dist/wkb/types.d.ts +0 -30
- package/dist/wkb/types.d.ts.map +0 -1
- package/dist/wkb/types.js +0 -34
- package/dist/wkb/types.js.map +0 -1
- package/dist/wkb/wkb-builder.d.ts +0 -91
- package/dist/wkb/wkb-builder.d.ts.map +0 -1
- package/dist/wkb/wkb-builder.js +0 -283
- package/dist/wkb/wkb-builder.js.map +0 -1
- package/dist/wkb/wkb-reader.d.ts +0 -74
- package/dist/wkb/wkb-reader.d.ts.map +0 -1
- package/dist/wkb/wkb-reader.js +0 -251
- package/dist/wkb/wkb-reader.js.map +0 -1
- package/dist/wkb/wkb.d.ts +0 -21
- package/dist/wkb/wkb.d.ts.map +0 -1
- package/dist/wkb/wkb.js +0 -204
- package/dist/wkb/wkb.js.map +0 -1
- package/dist/wkb/wkt.d.ts +0 -19
- package/dist/wkb/wkt.d.ts.map +0 -1
- package/dist/wkb/wkt.js +0 -321
- package/dist/wkb/wkt.js.map +0 -1
- package/projection/THIRD-PARTY-NOTICES.md +0 -210
- package/src/discontinuous/elastic/README.md +0 -20
- package/src/discontinuous/spherical-clip/README.md +0 -16
- package/src/discontinuous/world-kernels/README.md +0 -24
- package/src/geoarrow/builder-entry.ts +0 -18
- package/src/geoarrow/builder.ts +0 -860
- package/src/geoarrow/codecs.ts +0 -1268
- package/src/geoarrow/index.ts +0 -111
- package/src/geoarrow/kernels.ts +0 -1290
- package/src/geoarrow/layout.ts +0 -900
- package/src/geoarrow/stream-tessellate.ts +0 -205
- package/src/geoarrow/stream.ts +0 -130
- package/src/geoarrow/tessellate.ts +0 -133
- package/src/geoarrow/tessellation-entry.ts +0 -7
- package/src/geoarrow/types.ts +0 -259
- package/src/geoarrow/views.ts +0 -150
- package/src/geoarrow/wkb-entry.ts +0 -13
- package/src/geoarrow/worker.ts +0 -20
- package/src/terrain/vendor/README.md +0 -20
- package/src/vendor/geographiclib-geodesic/README.md +0 -26
- package/src/wkb/index.ts +0 -38
- package/src/wkb/types.ts +0 -54
- package/src/wkb/wkb-builder.ts +0 -395
- package/src/wkb/wkb-reader.ts +0 -401
- package/src/wkb/wkb.ts +0 -255
- package/src/wkb/wkt.ts +0 -375
- /package/{projection/APACHE-2.0-LICENSE.txt → APACHE-2.0-LICENSE.txt} +0 -0
- /package/{projection/PROJ-LICENSE.txt → PROJ-LICENSE.txt} +0 -0
- /package/{projection/PROJ4-LICENSE.md → PROJ4-LICENSE.md} +0 -0
- /package/{crs/schemas → src/crs}/projjson.schema.json +0 -0
package/dist/wkb/wkt.js
DELETED
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
// math.gl
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
-
import { getWellKnownDimensionSize, inferWellKnownGeometryDimension } from "./types.js";
|
|
5
|
-
/** Parses one WKT geometry, including Z/M/ZM, collections, alternate MultiPoint, and empties. */
|
|
6
|
-
export function parseWKT(text, options) {
|
|
7
|
-
const parser = new WKTParser(text);
|
|
8
|
-
const result = parser.parseGeometry('xy', options ?? {}, false);
|
|
9
|
-
parser.assertComplete();
|
|
10
|
-
return result.geometry;
|
|
11
|
-
}
|
|
12
|
-
/** Parses WKT while preserving each geometry's declared or inferred semantic dimension. */
|
|
13
|
-
export function parseWKTWithMetadata(text, options = {}) {
|
|
14
|
-
const parser = new WKTParser(text);
|
|
15
|
-
const result = parser.parseGeometry('xy', options, true);
|
|
16
|
-
parser.assertComplete();
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
/** Formats one geometry as WKT using an explicit or tuple-inferred semantic dimension. */
|
|
20
|
-
export function formatWKT(geometry, dimension) {
|
|
21
|
-
if (isWKTParseResult(geometry)) {
|
|
22
|
-
return dimension === undefined
|
|
23
|
-
? formatWKTResult(geometry)
|
|
24
|
-
: formatWKTGeometry(geometry.geometry, dimension);
|
|
25
|
-
}
|
|
26
|
-
return formatWKTGeometry(geometry, dimension ?? inferWellKnownGeometryDimension(geometry));
|
|
27
|
-
}
|
|
28
|
-
function formatWKTResult(result) {
|
|
29
|
-
return formatWKTGeometry(result.geometry, result.dimension, result.children);
|
|
30
|
-
}
|
|
31
|
-
function formatWKTGeometry(geometry, dimension, children) {
|
|
32
|
-
const dimensionToken = dimension === 'xy' ? '' : ' ' + dimension.slice(2).toUpperCase();
|
|
33
|
-
if (geometry.type === 'GeometryCollection') {
|
|
34
|
-
if (geometry.geometries.length === 0)
|
|
35
|
-
return 'GEOMETRYCOLLECTION' + dimensionToken + ' EMPTY';
|
|
36
|
-
const formattedChildren = children
|
|
37
|
-
? children.map(formatWKTResult)
|
|
38
|
-
: geometry.geometries.map(child => formatWKTGeometry(child, dimension));
|
|
39
|
-
return 'GEOMETRYCOLLECTION' + dimensionToken + ' (' + formattedChildren.join(', ') + ')';
|
|
40
|
-
}
|
|
41
|
-
const type = geometry.type.toUpperCase();
|
|
42
|
-
const isEmpty = geometry.type === 'MultiPoint'
|
|
43
|
-
? geometry.coordinates.length === 0
|
|
44
|
-
: isEmptyCoordinates(geometry.coordinates);
|
|
45
|
-
if (isEmpty)
|
|
46
|
-
return type + dimensionToken + ' EMPTY';
|
|
47
|
-
return (type +
|
|
48
|
-
dimensionToken +
|
|
49
|
-
' ' +
|
|
50
|
-
formatCoordinateNesting(geometry.coordinates, getGeometryDepth(geometry.type), geometry.type === 'MultiPoint'));
|
|
51
|
-
}
|
|
52
|
-
function isWKTParseResult(value) {
|
|
53
|
-
return 'geometry' in value && 'dimension' in value;
|
|
54
|
-
}
|
|
55
|
-
class WKTParser {
|
|
56
|
-
constructor(text) {
|
|
57
|
-
this.index = 0;
|
|
58
|
-
this.tokens = tokenizeWKT(text);
|
|
59
|
-
}
|
|
60
|
-
parseGeometry(inheritedDimension, options, validateInheritedDimensions) {
|
|
61
|
-
const type = this.takeWord().toUpperCase();
|
|
62
|
-
let dimension = inheritedDimension;
|
|
63
|
-
let hasExplicitDimension = false;
|
|
64
|
-
if (['Z', 'M', 'ZM'].includes(this.peek().toUpperCase())) {
|
|
65
|
-
const token = this.take().toUpperCase();
|
|
66
|
-
dimension = token === 'Z' ? 'xyz' : token === 'M' ? 'xym' : 'xyzm';
|
|
67
|
-
hasExplicitDimension = true;
|
|
68
|
-
}
|
|
69
|
-
const dimensionSize = getWellKnownDimensionSize(dimension);
|
|
70
|
-
if (this.peek().toUpperCase() === 'EMPTY') {
|
|
71
|
-
this.take();
|
|
72
|
-
return { geometry: makeEmptyGeometry(type, dimensionSize), dimension };
|
|
73
|
-
}
|
|
74
|
-
if (type === 'GEOMETRYCOLLECTION') {
|
|
75
|
-
this.expect('(');
|
|
76
|
-
const children = [];
|
|
77
|
-
if (this.peek() !== ')') {
|
|
78
|
-
do
|
|
79
|
-
children.push(this.parseGeometry(dimension, options, validateInheritedDimensions));
|
|
80
|
-
while (this.takeIf(','));
|
|
81
|
-
}
|
|
82
|
-
this.expect(')');
|
|
83
|
-
return {
|
|
84
|
-
geometry: { type: 'GeometryCollection', geometries: children.map(child => child.geometry) },
|
|
85
|
-
dimension,
|
|
86
|
-
children
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
const inferDimension = Boolean(options.inferDimensions && !hasExplicitDimension && inheritedDimension === 'xy');
|
|
90
|
-
const coordinates = this.parseCoordinateNesting(getWKTDepth(type), inferDimension ? null : dimensionSize, type === 'MULTIPOINT');
|
|
91
|
-
const coordinateValues = coordinates;
|
|
92
|
-
if (inferDimension) {
|
|
93
|
-
const inferredSize = inferCoordinateSize(coordinateValues);
|
|
94
|
-
if (inferredSize !== null)
|
|
95
|
-
dimension = getDimensionForSize(inferredSize);
|
|
96
|
-
}
|
|
97
|
-
else if (hasExplicitDimension || validateInheritedDimensions) {
|
|
98
|
-
assertCoordinateSize(coordinateValues, dimensionSize);
|
|
99
|
-
}
|
|
100
|
-
return { geometry: makeGeometry(type, coordinates), dimension };
|
|
101
|
-
}
|
|
102
|
-
assertComplete() {
|
|
103
|
-
if (this.index !== this.tokens.length)
|
|
104
|
-
throw new Error(`Unexpected WKT token ${this.peek()}`);
|
|
105
|
-
}
|
|
106
|
-
parseCoordinateNesting(depth, dimensionSize, allowEmptyPoints = false) {
|
|
107
|
-
this.expect('(');
|
|
108
|
-
if (depth === 0) {
|
|
109
|
-
const coordinate = this.readCoordinate(dimensionSize);
|
|
110
|
-
this.expect(')');
|
|
111
|
-
return coordinate;
|
|
112
|
-
}
|
|
113
|
-
const values = [];
|
|
114
|
-
if (this.peek() !== ')') {
|
|
115
|
-
do {
|
|
116
|
-
if (allowEmptyPoints && depth === 1 && this.peek().toUpperCase() === 'EMPTY') {
|
|
117
|
-
this.take();
|
|
118
|
-
values.push([]);
|
|
119
|
-
}
|
|
120
|
-
else if (depth === 1 && this.peek() !== '(') {
|
|
121
|
-
values.push(this.readCoordinate(dimensionSize));
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
values.push(this.parseCoordinateNesting(depth - 1, dimensionSize));
|
|
125
|
-
}
|
|
126
|
-
} while (this.takeIf(','));
|
|
127
|
-
}
|
|
128
|
-
this.expect(')');
|
|
129
|
-
return values;
|
|
130
|
-
}
|
|
131
|
-
readCoordinate(dimensionSize) {
|
|
132
|
-
const values = [];
|
|
133
|
-
while ((dimensionSize === null || values.length < dimensionSize) &&
|
|
134
|
-
isNumberToken(this.peek())) {
|
|
135
|
-
values.push(Number(this.take()));
|
|
136
|
-
}
|
|
137
|
-
if (values.length < 2)
|
|
138
|
-
throw new Error('WKT coordinate requires at least two numbers');
|
|
139
|
-
if (values.length > 4)
|
|
140
|
-
throw new Error('WKT coordinates cannot contain more than four numbers');
|
|
141
|
-
return values;
|
|
142
|
-
}
|
|
143
|
-
peek() {
|
|
144
|
-
return this.tokens[this.index] || '';
|
|
145
|
-
}
|
|
146
|
-
take() {
|
|
147
|
-
if (this.index >= this.tokens.length)
|
|
148
|
-
throw new Error('Unexpected end of WKT');
|
|
149
|
-
return this.tokens[this.index++];
|
|
150
|
-
}
|
|
151
|
-
takeWord() {
|
|
152
|
-
const token = this.take();
|
|
153
|
-
if (!/^[A-Za-z_]+$/.test(token))
|
|
154
|
-
throw new Error(`Expected WKT geometry type, found ${token}`);
|
|
155
|
-
return token;
|
|
156
|
-
}
|
|
157
|
-
takeIf(token) {
|
|
158
|
-
if (this.peek() !== token)
|
|
159
|
-
return false;
|
|
160
|
-
this.index++;
|
|
161
|
-
return true;
|
|
162
|
-
}
|
|
163
|
-
expect(token) {
|
|
164
|
-
const actual = this.take();
|
|
165
|
-
if (actual !== token)
|
|
166
|
-
throw new Error(`Expected WKT token ${token}, found ${actual}`);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function inferCoordinateSize(value) {
|
|
170
|
-
let coordinateSize = null;
|
|
171
|
-
const visit = (coordinates) => {
|
|
172
|
-
if (coordinates.length === 0)
|
|
173
|
-
return;
|
|
174
|
-
if (typeof coordinates[0] === 'number') {
|
|
175
|
-
if (coordinates.length < 2 || coordinates.length > 4) {
|
|
176
|
-
throw new Error('WKT coordinates must contain between two and four numbers');
|
|
177
|
-
}
|
|
178
|
-
if (coordinateSize !== null && coordinateSize !== coordinates.length) {
|
|
179
|
-
throw new Error('WKT geometry contains inconsistent coordinate dimensions');
|
|
180
|
-
}
|
|
181
|
-
coordinateSize = coordinates.length;
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
for (const child of coordinates)
|
|
185
|
-
visit(child);
|
|
186
|
-
};
|
|
187
|
-
visit(value);
|
|
188
|
-
return coordinateSize;
|
|
189
|
-
}
|
|
190
|
-
function assertCoordinateSize(value, expectedSize) {
|
|
191
|
-
const actualSize = inferCoordinateSize(value);
|
|
192
|
-
if (actualSize !== null && actualSize !== expectedSize) {
|
|
193
|
-
throw new Error('WKT coordinate dimension does not match declared dimension ' + expectedSize);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function getDimensionForSize(size) {
|
|
197
|
-
switch (size) {
|
|
198
|
-
case 2:
|
|
199
|
-
return 'xy';
|
|
200
|
-
case 3:
|
|
201
|
-
return 'xyz';
|
|
202
|
-
case 4:
|
|
203
|
-
return 'xyzm';
|
|
204
|
-
default:
|
|
205
|
-
throw new Error('Unsupported WKT coordinate dimension ' + size);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function tokenizeWKT(text) {
|
|
209
|
-
const tokens = [];
|
|
210
|
-
const tokenPattern = /[A-Za-z_]+|[(),]|[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?/gy;
|
|
211
|
-
let index = 0;
|
|
212
|
-
while (index < text.length) {
|
|
213
|
-
while (index < text.length && /\s/.test(text[index]))
|
|
214
|
-
index++;
|
|
215
|
-
if (index === text.length)
|
|
216
|
-
break;
|
|
217
|
-
tokenPattern.lastIndex = index;
|
|
218
|
-
const match = tokenPattern.exec(text);
|
|
219
|
-
if (!match) {
|
|
220
|
-
throw new Error(`Unexpected WKT character ${JSON.stringify(text[index])} at ${index}`);
|
|
221
|
-
}
|
|
222
|
-
tokens.push(match[0]);
|
|
223
|
-
index = tokenPattern.lastIndex;
|
|
224
|
-
}
|
|
225
|
-
return tokens;
|
|
226
|
-
}
|
|
227
|
-
function formatCoordinateNesting(value, depth, allowEmptyPoints = false) {
|
|
228
|
-
if (depth === 0)
|
|
229
|
-
return `(${value.map(formatNumber).join(' ')})`;
|
|
230
|
-
return `(${value
|
|
231
|
-
.map(child => {
|
|
232
|
-
if (depth === 1) {
|
|
233
|
-
const coordinate = child;
|
|
234
|
-
if (allowEmptyPoints && isEmptyCoordinates(coordinate))
|
|
235
|
-
return 'EMPTY';
|
|
236
|
-
return coordinate.map(formatNumber).join(' ');
|
|
237
|
-
}
|
|
238
|
-
return formatCoordinateNesting(child, depth - 1);
|
|
239
|
-
})
|
|
240
|
-
.join(', ')})`;
|
|
241
|
-
}
|
|
242
|
-
function formatNumber(value) {
|
|
243
|
-
if (!Number.isFinite(value))
|
|
244
|
-
return 'NaN';
|
|
245
|
-
return String(value);
|
|
246
|
-
}
|
|
247
|
-
function getGeometryDepth(type) {
|
|
248
|
-
switch (type) {
|
|
249
|
-
case 'Point':
|
|
250
|
-
return 0;
|
|
251
|
-
case 'LineString':
|
|
252
|
-
case 'MultiPoint':
|
|
253
|
-
return 1;
|
|
254
|
-
case 'Polygon':
|
|
255
|
-
case 'MultiLineString':
|
|
256
|
-
return 2;
|
|
257
|
-
case 'MultiPolygon':
|
|
258
|
-
return 3;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
function getWKTDepth(type) {
|
|
262
|
-
switch (type) {
|
|
263
|
-
case 'POINT':
|
|
264
|
-
return 0;
|
|
265
|
-
case 'LINESTRING':
|
|
266
|
-
return 1;
|
|
267
|
-
case 'POLYGON':
|
|
268
|
-
return 2;
|
|
269
|
-
case 'MULTIPOINT':
|
|
270
|
-
return 1;
|
|
271
|
-
case 'MULTILINESTRING':
|
|
272
|
-
return 2;
|
|
273
|
-
case 'MULTIPOLYGON':
|
|
274
|
-
return 3;
|
|
275
|
-
default:
|
|
276
|
-
throw new Error(`Unsupported WKT geometry type ${type}`);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
function makeGeometry(type, coordinates) {
|
|
280
|
-
const canonical = type[0] + type.slice(1).toLowerCase();
|
|
281
|
-
const names = {
|
|
282
|
-
Point: 'Point',
|
|
283
|
-
Linestring: 'LineString',
|
|
284
|
-
Polygon: 'Polygon',
|
|
285
|
-
Multipoint: 'MultiPoint',
|
|
286
|
-
Multilinestring: 'MultiLineString',
|
|
287
|
-
Multipolygon: 'MultiPolygon'
|
|
288
|
-
};
|
|
289
|
-
const geometryType = names[canonical];
|
|
290
|
-
if (!geometryType)
|
|
291
|
-
throw new Error(`Unsupported WKT geometry type ${type}`);
|
|
292
|
-
return { type: geometryType, coordinates };
|
|
293
|
-
}
|
|
294
|
-
function makeEmptyGeometry(type, dimensionSize) {
|
|
295
|
-
if (type === 'GEOMETRYCOLLECTION')
|
|
296
|
-
return { type: 'GeometryCollection', geometries: [] };
|
|
297
|
-
if (type === 'POINT') {
|
|
298
|
-
return {
|
|
299
|
-
type: 'Point',
|
|
300
|
-
coordinates: new Array(getValidDimensionSize(dimensionSize)).fill(Number.NaN)
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
return makeGeometry(type, []);
|
|
304
|
-
}
|
|
305
|
-
function getValidDimensionSize(size) {
|
|
306
|
-
if (size === 2 || size === 3 || size === 4)
|
|
307
|
-
return size;
|
|
308
|
-
return getWellKnownDimensionSize('xy');
|
|
309
|
-
}
|
|
310
|
-
function isEmptyCoordinates(value) {
|
|
311
|
-
if (value.length === 0)
|
|
312
|
-
return true;
|
|
313
|
-
if (typeof value[0] === 'number') {
|
|
314
|
-
return value.every(component => !Number.isFinite(component));
|
|
315
|
-
}
|
|
316
|
-
return value.every(child => isEmptyCoordinates(child));
|
|
317
|
-
}
|
|
318
|
-
function isNumberToken(token) {
|
|
319
|
-
return token !== '' && Number.isFinite(Number(token));
|
|
320
|
-
}
|
|
321
|
-
//# sourceMappingURL=wkt.js.map
|
package/dist/wkb/wkt.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wkt.js","sourceRoot":"","sources":["../../src/wkb/wkt.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAG5D,OAAO,EAAC,yBAAyB,EAAE,+BAA+B,EAAC,mBAAgB;AAenF,iGAAiG;AACjG,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,OAAyB;IAC9D,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IAChE,MAAM,CAAC,cAAc,EAAE,CAAC;IACxB,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,oBAAoB,CAAC,IAAY,EAAE,UAA2B,EAAE;IAC9E,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,cAAc,EAAE,CAAC;IACxB,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,SAAS,CACvB,QAA4C,EAC5C,SAA8B;IAE9B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,OAAO,SAAS,KAAK,SAAS;YAC5B,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC;YAC3B,CAAC,CAAC,iBAAiB,CAAC,Q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,OAAO;YACL,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,IAAI,KAAK,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;SAC9E,CAAC;IACJ,CAAC;IACD,OAAO,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,qBAAqB,CAAC,IAAY;IACzC,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACxD,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAyB;IACnD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAQ,KAA2B,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,KAA2B,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,KAAK,KAAK,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
# Projection engine attribution and source provenance
|
|
2
|
-
|
|
3
|
-
Paths beginning with `src/` below are relative to the `@math.gl/geospatial` package root.
|
|
4
|
-
License files named without a path are in this `projection/` directory.
|
|
5
|
-
|
|
6
|
-
The math.gl projection engine uses proj4js **2.22.0** as its pinned compatibility
|
|
7
|
-
reference: https://github.com/proj4js/proj4js/tree/v2.22.0.
|
|
8
|
-
|
|
9
|
-
Except for the original ellipsoidal orthographic kernel (`kernels/ortho.ts`) and
|
|
10
|
-
meridian integration helper (`common/meridian-distance.ts`), the numerical kernels under `src/projection/experimental/kernels/`, numerical helpers under
|
|
11
|
-
`src/projection/experimental/common/`, and CRS datum/ellipsoid/unit/prime-meridian tables are
|
|
12
|
-
**direct TypeScript ports** of the corresponding proj4js sources. Source comments
|
|
13
|
-
retain attribution to the proj4js authors, with `SPDX-License-Identifier` license
|
|
14
|
-
expressions, `SPDX-FileCopyrightText` credits naming the upstream copyright holders,
|
|
15
|
-
and `SPDX-FileComment` provenance. They have been modified to use explicit
|
|
16
|
-
state, typed inputs, bounded iterations, strict errors, and the corrections recorded
|
|
17
|
-
in the parity inventory. The MIT license is reproduced in `PROJ4-LICENSE.md`.
|
|
18
|
-
The geocentric/Helmert equations in `datum.ts` and rotation equations in
|
|
19
|
-
`projections/ob-tran.ts` are likewise directly adapted from proj4js, with attribution
|
|
20
|
-
in those files.
|
|
21
|
-
|
|
22
|
-
The NTv2 decoder, GeoTIFF node orientation and interpolation/inverse equations in
|
|
23
|
-
`src/projection/experimental/grids/grid.ts`, `grids/ntv2.ts` and `grids/geotiff.ts` are directly adapted from proj4js 2.22.0
|
|
24
|
-
`lib/nadgrid.js` and `lib/datum_transform.js`. Their headers retain upstream
|
|
25
|
-
MIT attribution. The per-instance grid registration contract is original math.gl
|
|
26
|
-
code informed by upstream grid-list behavior. Synthetic grid fixtures are authored
|
|
27
|
-
for math.gl and include no externally licensed grid datasets.
|
|
28
|
-
|
|
29
|
-
`kernels/eqearth.ts` retains its original **Apache-2.0** notice:
|
|
30
|
-
Copyright 2018 Bernie Jenny, Monash University, Melbourne, Australia.
|
|
31
|
-
The original credits to Bojan Savric, Tom Patterson, Matthew Bloch and Andreas Hocevar
|
|
32
|
-
are retained in that source file. Its full license is included in
|
|
33
|
-
`APACHE-2.0-LICENSE.txt`. The TypeScript state conversion is a modification of that
|
|
34
|
-
source, not a claim of an independently authored algorithm.
|
|
35
|
-
|
|
36
|
-
The plugin adapters, normalization/execution pipeline, and WKT/PROJJSON execution
|
|
37
|
-
adapters are original math.gl code informed by proj4js behavior. The datum alias/
|
|
38
|
-
authority lookup and method/parameter normalization rules in `crs/structured.ts` are directly adapted
|
|
39
|
-
from proj4js 2.22.0 and its MIT-licensed wkt-parser dependency, with attribution
|
|
40
|
-
in the source. Mercator and
|
|
41
|
-
equidistant cylindrical are original equation implementations with proj4js parity
|
|
42
|
-
tests. They are MIT-licensed to the vis.gl contributors. Syntax parsing is provided
|
|
43
|
-
by `@math.gl/geospatial/crs`; the projection runtime does not import proj4js.
|
|
44
|
-
|
|
45
|
-
Authored differential fixtures use the pinned upstream implementation as an oracle.
|
|
46
|
-
Fixtures copied from upstream tests retain their source tag, line numbers, hash and
|
|
47
|
-
MIT attribution in `test/fixtures/upstream-2.22.0.ts` and the complete
|
|
48
|
-
`test/fixtures/upstream-corpus-2.22.0.json`. The latter includes all 242 coordinate
|
|
49
|
-
fixtures and suite-level alias definitions, extracted without executing upstream tests.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Cassini series signs/inverse refinement and Robinson coefficient precision/interval
|
|
53
|
-
selection are adapted from [PROJ 9.5.1](https://github.com/OSGeo/PROJ/tree/9.5.1/src/projections).
|
|
54
|
-
The Cassini Newton solver and Robinson exact-knot handling are original math.gl
|
|
55
|
-
modifications. Both files retain their proj4js port notices and identify the PROJ
|
|
56
|
-
adaptations. PROJ's MIT-style terms and attribution are reproduced in `PROJ-LICENSE.txt`.
|
|
57
|
-
|
|
58
|
-
Independent reference coordinates are generated with pyproj 3.7.2 / PROJ 9.5.1.
|
|
59
|
-
Structured CRS fixtures reproduce selected definitions from the EPSG dataset v11.022
|
|
60
|
-
(2024-11-05), distributed in PROJ's database; see the fixture README for source and
|
|
61
|
-
terms. Licensed real grids are test-only assets with separate redistribution notices
|
|
62
|
-
under `test/fixtures/real-grids`; none are included in the npm package.
|
|
63
|
-
|
|
64
|
-
The explicit height stage (`src/projection/experimental/vertical-datum.ts`), regular-grid
|
|
65
|
-
interpolator/geoid adapter (`grids/vertical.ts`) and GTX reader (`grids/gtx.ts`) are
|
|
66
|
-
original math.gl implementations. Their public registration follows the existing
|
|
67
|
-
proj4-style engine API; geoid-height signs and GTX layout/nodata conventions follow
|
|
68
|
-
PROJ/GDAL documentation. No proj4js or PROJ implementation was copied into these files.
|
|
69
|
-
Independent expectations use PROJ 9.5.1; the tiny GTX model is authored MIT test data.
|
|
70
|
-
The structural geoid adapter does not copy or import GeographicLib or `@math.gl/earth`
|
|
71
|
-
code. Applications providing a geoid model retain that model's own license and data terms.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
`src/projection/experimental/grids/vertical-geotiff.ts` is original math.gl adapter code written
|
|
75
|
-
against the PROJ Geodetic TIFF Grid format, not a direct proj4js or PROJ fork. It does
|
|
76
|
-
not copy or import a TIFF decoder. The optional decoding library is chosen by the
|
|
77
|
-
application. Authored synthetic TIFF fixtures and their standard-library encoder are
|
|
78
|
-
MIT math.gl test data/code; PROJ 9.5.1 supplies independent numeric expectations.
|
|
79
|
-
|
|
80
|
-
## Typed operation pipelines
|
|
81
|
-
|
|
82
|
-
`src/projection/experimental/projection-pipeline.ts` is original math.gl orchestration inspired
|
|
83
|
-
by PROJ's explicit operation/units model, not a direct PROJ fork. It reuses projection
|
|
84
|
-
kernels and the geocentric/static Helmert equations directly adapted from proj4js in
|
|
85
|
-
`datum.ts`, with their existing attribution and `PROJ4-LICENSE.md`. Independent pipeline
|
|
86
|
-
expectations use pyproj 3.7.2 / PROJ 9.5.1. Authored pipeline cases are MIT math.gl test
|
|
87
|
-
data; the reused BETA2007 NTv2 grid retains its attribution in
|
|
88
|
-
`test/fixtures/real-grids/README.md` and is not shipped in the package.
|
|
89
|
-
|
|
90
|
-
`src/projection/experimental/exact-helmert.ts` directly adapts the exact rotation matrix and
|
|
91
|
-
convention transpose from PROJ 9.5.1 `src/transformations/helmert.cpp` (Copyright
|
|
92
|
-
(c) 2016, Thomas Knudsen / SDFE), under the MIT-style terms in `PROJ-LICENSE.txt`.
|
|
93
|
-
It is modified into prepared typed point operations; the existing approximate
|
|
94
|
-
Helmert equations remain the attributed proj4js adaptation in `datum.ts`.
|
|
95
|
-
|
|
96
|
-
`src/projection/experimental/helmert-flat.ts` adds original direct-buffer traversal around
|
|
97
|
-
these existing attributed equations. Its small-angle arithmetic follows the
|
|
98
|
-
proj4js adaptation in `datum.ts`; exact matrix application follows the PROJ
|
|
99
|
-
adaptation in `exact-helmert.ts` and consumes that stage's prepared matrix.
|
|
100
|
-
Its SPDX headers retain both upstream copyright credits and point to the existing
|
|
101
|
-
`PROJ4-LICENSE.md` and `PROJ-LICENSE.txt`. No new third-party model data is added.
|
|
102
|
-
Ordinate-stack and direction-specific orchestration are original math.gl code
|
|
103
|
-
inspired by PROJ pipeline contracts, not direct PROJ or proj4js forks.
|
|
104
|
-
The additional two-by-two GTX is authored MIT test data, not a distributed geoid model.
|
|
105
|
-
|
|
106
|
-
`src/projection/experimental/kinematic-helmert.ts` is original epoch/rate orchestration following
|
|
107
|
-
PROJ's documented parameter propagation contract. Its exact matrix/convention
|
|
108
|
-
transpose directly adapts PROJ 9.5.1 `helmert.cpp`, with the Thomas Knudsen / SDFE
|
|
109
|
-
copyright and `PROJ-LICENSE.txt` terms above; its small-angle equations follow the
|
|
110
|
-
existing attributed proj4js `datum.ts` adaptation. The kinematic fixture parameter
|
|
111
|
-
example is documented by PROJ; authored finite rotations/epochs are MIT test data,
|
|
112
|
-
not an authoritative CRS operation catalogue. Numerical expectations are generated
|
|
113
|
-
independently with pinned pyproj 3.7.2 / PROJ 9.5.1, with observation time separate from M.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
`src/projection/experimental/kinematic-helmert-flat.ts` adds original coordinate-buffer
|
|
117
|
-
traversal using the epoch preparation and owned coefficients in `kinematic-helmert.ts`.
|
|
118
|
-
The exact matrix application follows that file's existing PROJ adaptation; the
|
|
119
|
-
small-angle matrix application follows its attributed proj4js adaptation. Both
|
|
120
|
-
upstream copyrights and license references remain in the source header. This
|
|
121
|
-
optimization introduces no model files, databases or additional third-party code.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
## Prepared velocity models
|
|
125
|
-
|
|
126
|
-
The optional deformation model, velocity-grid preparation and velocity GeoTIFF
|
|
127
|
-
adapter are original math.gl code inspired by PROJ's documented deformation/GTG
|
|
128
|
-
contracts, not direct PROJ or proj4js forks. The model uses an original ENU basis
|
|
129
|
-
rotation and inverse solver, while reusing the existing attributed proj4js geocentric
|
|
130
|
-
conversion in datum.ts. No new upstream code or third-party model data is included.
|
|
131
|
-
The synthetic velocity TIFF and its encoder are original MIT math.gl test assets,
|
|
132
|
-
excluded from the published package. Native PROJ 9.5.1 forward evaluations generate
|
|
133
|
-
independent references; the legacy inverse is retained separately for comparison.
|
|
134
|
-
Application-provided model files and decoders retain their own terms.
|
|
135
|
-
|
|
136
|
-
## Source header convention
|
|
137
|
-
|
|
138
|
-
All projection engine source files declare their license with
|
|
139
|
-
`SPDX-License-Identifier` and ownership with `SPDX-FileCopyrightText`. Files with
|
|
140
|
-
multiple copyright holders use a separate copyright tag for each notice. Years
|
|
141
|
-
are retained when supplied by the original notice; none are invented.
|
|
142
|
-
|
|
143
|
-
`SPDX-FileComment` records direct ports, adaptations, inspiration and modifications,
|
|
144
|
-
with links to retained license files where applicable. Each file comment occupies
|
|
145
|
-
one line so source scanning can extract the complete provenance. Original wrappers
|
|
146
|
-
and adapters retain their own copyright; importing an attributed kernel does not
|
|
147
|
-
make the adapter a port. These tags follow the [SPDX source file tag convention](https://spdx.github.io/spdx-spec/v2.3/file-tags/).
|
|
148
|
-
The original Equal Earth Apache notice and all distributed upstream license texts
|
|
149
|
-
remain intact. CI checks every source header and the proj4js/PROJ credits.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
## Horizontal grid tuple adapter
|
|
153
|
-
|
|
154
|
-
`src/projection/experimental/grids/grid.ts` reuses a private working point in the tuple-returning
|
|
155
|
-
adapter. This original adapter change retains the existing attributed interpolation
|
|
156
|
-
and inverse kernel described above. Successful calls still return an owned tuple.
|
|
157
|
-
No additional third-party code or model data is included.
|
|
158
|
-
|
|
159
|
-
## Shared spheroid arithmetic
|
|
160
|
-
|
|
161
|
-
The existing proj4js-derived geocentric forward equations and Hannover inverse from
|
|
162
|
-
`datum.ts` now live in `@math.gl/core`, used by projection and the qualified
|
|
163
|
-
sphere/oblate geometry paths. The numeric leaf retains the proj4js SPDX copyright,
|
|
164
|
-
MIT identifier and full `PROJ4-LICENSE.md` in the core package. The safeguarded
|
|
165
|
-
surface/exterior fallback and adapters are original math.gl work. No new upstream
|
|
166
|
-
source or model data is introduced. Geospatial retains its existing Cesium-derived
|
|
167
|
-
three-radius/interior kernels and Apache-2.0 attribution.
|
|
168
|
-
|
|
169
|
-
## Modern PROJ corrections and upstream regressions
|
|
170
|
-
|
|
171
|
-
The independently implemented orthographic and pole-boundary corrections
|
|
172
|
-
acknowledge the numerical behavior and bug investigations maintained by
|
|
173
|
-
OSGeo/PROJ. Their SPDX-FileComment tags identify PROJ 9.5.1 source files and,
|
|
174
|
-
where applicable, upstream issues and PRs. The retained `PROJ-LICENSE.txt` supplies
|
|
175
|
-
PROJ's MIT terms. Existing proj4js copyright notices and Equal Earth's Apache-2.0
|
|
176
|
-
notice remain intact; independent math.gl implementations retain their own
|
|
177
|
-
copyright rather than assigning new copyright notices to upstream maintainers.
|
|
178
|
-
|
|
179
|
-
Orthographic behavior was informed by PROJ #2361 and the inverse-convergence
|
|
180
|
-
investigation in #2844/#2855. The parallel-ray/ellipsoid inverse and its rendering
|
|
181
|
-
enclosures are original math.gl code. Equal Earth's ellipsoidal authalic semantics
|
|
182
|
-
are documented in PROJ #1097. Historical regression scenarios from #2844 and
|
|
183
|
-
Mollweide #3082 are acknowledged in their test header; expected coordinates were
|
|
184
|
-
independently generated by pyproj 3.7.2 / PROJ 9.5.1. No PROJ model data is added.
|
|
185
|
-
|
|
186
|
-
## Shared ellipsoid geodesics and gnomonic
|
|
187
|
-
|
|
188
|
-
`src/ellipsoid-geodesic.ts` is an original typed facade over the shared GeographicLib
|
|
189
|
-
geodesic implementation in `src/vendor/geographiclib-geodesic/runtime.js`. That
|
|
190
|
-
source combines Math.js, Geodesic.js and GeodesicLine.js from GeographicLib JS 2.2.0,
|
|
191
|
-
pinned at commit 9c4036d6242aa997e08e43a20df789e2007fbe6f, preserving Charles Karney's
|
|
192
|
-
copyright and MIT terms. The version template is filled and an ESM export added.
|
|
193
|
-
The full MIT license is in `../GEOGRAPHICLIB-LICENSE.txt` and the module `../LICENSE`.
|
|
194
|
-
No package dependency is added.
|
|
195
|
-
|
|
196
|
-
The ellipsoidal gnomonic Newton formulation and Swiss oblique Mercator branch and
|
|
197
|
-
inverse equations follow PROJ 9.5.1. Stable conformal latitude expressions follow
|
|
198
|
-
PROJ's tsfn formulation. Source SPDX comments identify these adaptations; the PROJ
|
|
199
|
-
license is retained in `PROJ-LICENSE.txt` and the module `../LICENSE`.
|
|
200
|
-
|
|
201
|
-
## Original pole-conditioning corrections
|
|
202
|
-
|
|
203
|
-
The follow-up review adds original math.gl authalic pole-complement/inversion and
|
|
204
|
-
Cartesian spherical-inverse helpers. LAEA, stereographic, oblique stereographic,
|
|
205
|
-
spherical AEQD, QSC, Mollweide and polyconic retain their existing attributed ports;
|
|
206
|
-
new half-angle identities, stable complements, polar inverse limits and quadrature
|
|
207
|
-
reuse are original math.gl corrections, not copied upstream implementations.
|
|
208
|
-
Source SPDX comments preserve existing proj4js/PROJ credits and identify the changes.
|
|
209
|
-
Independent multiprecision equations and authored reference fixtures retain MIT
|
|
210
|
-
math.gl provenance; mpmath/pyproj are used only by temporary offline generation tools.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Elastic data provenance
|
|
2
|
-
|
|
3
|
-
Elastic I, II and III are Justin Kunimune's published coordinate tables from
|
|
4
|
-
https://github.com/jkunimune/elastik, pinned at
|
|
5
|
-
`88808a7c0fe92b42d6e5f903549cd7cfcbd26f3b`.
|
|
6
|
-
|
|
7
|
-
The upstream repository dedicates its contents to the public domain under the
|
|
8
|
-
Unlicense; the complete notice is retained in `UNLICENSE.txt`. Generated dataset
|
|
9
|
-
modules retain the published decimal precision, convert latitude/longitude to
|
|
10
|
-
longitude/latitude, replace NaN with JSON-safe null, and record boundary complements.
|
|
11
|
-
The original text files are preserved in the test fixtures. The numerical runtime
|
|
12
|
-
is an independent implementation of the documented bilinear interpolation format.
|
|
13
|
-
|
|
14
|
-
The tables use kilometers. The value 6371 is an explicit normalization convention:
|
|
15
|
-
MapEngine multiplies table coordinates by `MapDescription.radius / data.radius`.
|
|
16
|
-
It is not a claim that the optimization used a sphere of exactly that radius.
|
|
17
|
-
The datasets' original optimization and distortion properties are described by
|
|
18
|
-
Kunimune; this implementation does not run the optimizer or promise exact equal area.
|
|
19
|
-
|
|
20
|
-
Background: https://kunimune.blog/2023/12/29/introducing-the-elastic-projections/
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Spherical cap clipping
|
|
2
|
-
|
|
3
|
-
Adapted from [d3-geo 3.1.1](https://github.com/d3/d3-geo/tree/v3.1.1/src),
|
|
4
|
-
Copyright 2010–2024 Mike Bostock, under the retained [ISC license](./D3-GEO-LICENSE.txt).
|
|
5
|
-
Flattened filenames preserve the source path (`clip/circle.js` → `clip-circle.js`).
|
|
6
|
-
|
|
7
|
-
Changes: only circle clipping and its dependencies retained; unused display circle
|
|
8
|
-
factory removed; precision and interpolation callbacks added; epsilon tightened to
|
|
9
|
-
1e-12 for chart-local geometry; latitude recovered with atan2 rather than asin
|
|
10
|
-
near polar limits. `helpers.js` independently supplies array flattening
|
|
11
|
-
and Neumaier compensated summation, replacing the d3-array dependency. math.gl's
|
|
12
|
-
`cap-map.ts` adds bounded adaptive projected-curve sampling, source-coordinate
|
|
13
|
-
retention, chart trimming, hole grouping and regional coverage outlines.
|
|
14
|
-
|
|
15
|
-
The numeric projection kernels and their separate provenance are in
|
|
16
|
-
[world-kernels](../world-kernels/README.md). No D3 package is needed at runtime.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# World and regional projection kernels
|
|
2
|
-
|
|
3
|
-
Numeric kernels adapted from [d3-geo-projection 4.0.0](https://github.com/d3/d3-geo-projection/tree/v4.0.0/src),
|
|
4
|
-
by Mike Bostock and the D3 contributors, under the adjacent [ISC license](../D3-LICENSE.txt).
|
|
5
|
-
Each JavaScript file matches its upstream source filename except `d3-geo-raw.js`,
|
|
6
|
-
which is an independent spherical Lambert azimuthal equal-area formula used by Hammer.
|
|
7
|
-
|
|
8
|
-
Changes: display factories, D3 imports, and unused imports removed; shared numeric
|
|
9
|
-
epsilon tightened to 1e-12 for chart boundary sampling; Newton finite-difference
|
|
10
|
-
steps retained at 1e-6 independently of convergence tolerance. MapEngine supplies
|
|
11
|
-
chart-local clipping, bounded inverse fallback, source coordinates and layout. Regional factories also retain named coefficient tables.
|
|
12
|
-
Armadillo uses explicit domain clipping in place of the displaced hidden-y sentinel;
|
|
13
|
-
Hammer retroazimuthal adds a center inverse limit and chart-side branch handling.
|
|
14
|
-
No D3 runtime dependency is added. The projection formulas retain their historical
|
|
15
|
-
names; attribution to D3 concerns this implementation, not invention of the maps.
|
|
16
|
-
|
|
17
|
-
`integrate.js` retains the upstream adaptive Simpson integration attribution to
|
|
18
|
-
[scijs/integrate-adaptive-simpson](https://github.com/scijs/integrate-adaptive-simpson),
|
|
19
|
-
Copyright 2015 Ricky Reusser, under the retained [MIT license](./INTEGRATE-LICENSE.txt).
|
|
20
|
-
|
|
21
|
-
Independent numeric fixtures are generated by
|
|
22
|
-
`modules/geospatial/test/discontinuous/generate-world-reference.mjs` from a separate
|
|
23
|
-
installation of the pinned upstream package. Tests compare forward coordinates,
|
|
24
|
-
check chart-local inverse round trips, and exercise seam/pole geometry separately.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// math.gl
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
-
|
|
5
|
-
/** Optional builder subpath. Importing it avoids pulling codec and tessellation helpers. */
|
|
6
|
-
export type {
|
|
7
|
-
GeoArrowBuilderEncoding,
|
|
8
|
-
GeoArrowBuilderMeasurement,
|
|
9
|
-
GeoArrowBuilderModeOptions,
|
|
10
|
-
GeoArrowBuilderOptions,
|
|
11
|
-
GeoArrowColumnFromRowsOptions,
|
|
12
|
-
GeoArrowBuilderTarget
|
|
13
|
-
} from './builder';
|
|
14
|
-
export {
|
|
15
|
-
allocateGeoArrowBuilderTarget,
|
|
16
|
-
GeoArrowBuilder,
|
|
17
|
-
makeGeoArrowColumnFromGeometryRows
|
|
18
|
-
} from './builder';
|