@math.gl/geospatial 5.0.0-alpha.17 → 5.0.0-alpha.19
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 +12 -0
- package/crs/README.md +84 -0
- package/crs/schemas/README.md +9 -0
- package/crs/schemas/projjson.schema.json +1174 -0
- package/dist/crs/crs-metadata.cjs +67 -0
- package/dist/crs/crs-metadata.cjs.map +6 -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/index.cjs +916 -0
- package/dist/crs/index.cjs.map +6 -0
- package/dist/crs/index.d.ts +12 -0
- package/dist/crs/index.d.ts.map +1 -0
- package/dist/crs/index.js +10 -0
- package/dist/crs/index.js.map +1 -0
- package/dist/crs/proj-string.cjs +219 -0
- package/dist/crs/proj-string.cjs.map +6 -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/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/spatial-reference.cjs +80 -0
- package/dist/crs/spatial-reference.cjs.map +6 -0
- package/dist/crs/spatial-reference.d.ts +104 -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.cjs +610 -0
- package/dist/crs/wkt-crs.cjs.map +6 -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/ellipsoid-helpers/ellipsoid-transform.d.ts +1 -1
- package/dist/ellipsoid-helpers/ellipsoid-transform.d.ts.map +1 -1
- package/dist/ellipsoid-tangent-plane.d.ts +1 -1
- package/dist/ellipsoid-tangent-plane.d.ts.map +1 -1
- package/dist/ellipsoid-tangent-plane.js +1 -1
- package/dist/ellipsoid-tangent-plane.js.map +1 -1
- package/dist/ellipsoid.d.ts +1 -1
- package/dist/ellipsoid.d.ts.map +1 -1
- package/dist/entries/ellipsoid.cjs +572 -0
- package/dist/entries/ellipsoid.cjs.map +6 -0
- package/dist/entries/ellipsoid.d.ts +5 -0
- package/dist/entries/ellipsoid.d.ts.map +1 -0
- package/dist/entries/ellipsoid.js +7 -0
- package/dist/entries/ellipsoid.js.map +1 -0
- package/dist/expressions.cjs +528 -0
- package/dist/expressions.cjs.map +6 -0
- package/dist/expressions.d.ts +4 -0
- package/dist/expressions.d.ts.map +1 -0
- package/dist/expressions.js +23 -0
- package/dist/expressions.js.map +1 -0
- package/dist/geoarrow/builder-entry.cjs +699 -0
- package/dist/geoarrow/builder-entry.cjs.map +6 -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 +921 -0
- package/dist/geoarrow/codecs.js.map +1 -0
- package/dist/geoarrow/index.cjs +4089 -0
- package/dist/geoarrow/index.cjs.map +6 -0
- package/dist/geoarrow/index.d.ts +15 -0
- package/dist/geoarrow/index.d.ts.map +1 -0
- package/dist/geoarrow/index.js +11 -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 +64 -0
- package/dist/geoarrow/layout.d.ts.map +1 -0
- package/dist/geoarrow/layout.js +722 -0
- package/dist/geoarrow/layout.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.cjs +431 -0
- package/dist/geoarrow/tessellation-entry.cjs.map +6 -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 +147 -0
- package/dist/geoarrow/types.d.ts.map +1 -0
- package/dist/geoarrow/types.js +41 -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.cjs +2467 -0
- package/dist/geoarrow/wkb-entry.cjs.map +6 -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.cjs +77 -0
- package/dist/geoarrow/worker.cjs.map +6 -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/globe.cjs +1002 -0
- package/dist/globe.cjs.map +6 -0
- package/dist/globe.d.ts +10 -0
- package/dist/globe.d.ts.map +1 -0
- package/dist/globe.js +9 -0
- package/dist/globe.js.map +1 -0
- package/dist/index.cjs +154 -261
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +3 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- 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 +1 -1
- 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/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 +1940 -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 +8 -0
- package/dist/projection/experimental/crs/normalize.d.ts.map +1 -0
- package/dist/projection/experimental/crs/normalize.js +279 -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/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 +10 -0
- package/dist/projection/experimental/crs-descriptor.d.ts.map +1 -0
- package/dist/projection/experimental/crs-descriptor.js +171 -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/entries/projections/aea.cjs +642 -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 +559 -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 +451 -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 +475 -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 +571 -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 +761 -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 +642 -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 +510 -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 +852 -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 +573 -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 +588 -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 +714 -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 +583 -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 +582 -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 +684 -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 +623 -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 +10047 -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/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 +136 -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 +103 -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 +41 -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 +12 -0
- package/dist/projection/experimental/kernels/gnom.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/gnom.js +95 -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 +23 -0
- package/dist/projection/experimental/kernels/laea.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/laea.js +278 -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 +131 -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 +89 -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 +9 -0
- package/dist/projection/experimental/kernels/ortho.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/ortho.js +91 -0
- package/dist/projection/experimental/kernels/ortho.js.map +1 -0
- package/dist/projection/experimental/kernels/poly.d.ts +13 -0
- package/dist/projection/experimental/kernels/poly.d.ts.map +1 -0
- package/dist/projection/experimental/kernels/poly.js +141 -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 +379 -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 +104 -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 +81 -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 +195 -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 +65 -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 +156 -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 +2243 -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 +27 -0
- package/dist/projection/experimental/projection-engine.d.ts.map +1 -0
- package/dist/projection/experimental/projection-engine.js +50 -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 +20 -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 +16 -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 +91 -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 +156 -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 +11504 -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 +1961 -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 +1889 -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 +47 -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/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/tile-matrix.cjs +94 -20
- package/dist/tile-matrix.cjs.map +1 -1
- package/dist/tile-matrix.d.ts +30 -8
- package/dist/tile-matrix.d.ts.map +1 -1
- package/dist/tile-matrix.js +125 -25
- package/dist/tile-matrix.js.map +1 -1
- package/dist/tiles.cjs +303 -0
- package/dist/tiles.cjs.map +6 -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/web-mercator.cjs +20 -0
- package/dist/web-mercator.cjs.map +6 -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.cjs +1050 -0
- package/dist/wkb/index.cjs.map +6 -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 +276 -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/package.json +1053 -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 +163 -0
- package/src/crs/crs-metadata.ts +63 -0
- package/src/crs/crs.ts +36 -0
- package/src/crs/index.ts +65 -0
- package/src/crs/proj-string.ts +239 -0
- package/src/crs/projjson-schema-constants.ts +9 -0
- package/src/crs/projjson-types.ts +665 -0
- package/src/crs/spatial-reference.ts +221 -0
- package/src/crs/units-table.ts +51 -0
- package/src/crs/wkt-crs.ts +790 -0
- package/src/ellipsoid-helpers/ellipsoid-transform.ts +1 -1
- package/src/ellipsoid-tangent-plane.ts +1 -1
- package/src/ellipsoid.ts +1 -1
- package/src/entries/ellipsoid.ts +8 -0
- package/src/expressions.ts +34 -0
- package/src/geoarrow/builder-entry.ts +18 -0
- package/src/geoarrow/builder.ts +860 -0
- package/src/geoarrow/codecs.ts +1274 -0
- package/src/geoarrow/index.ts +100 -0
- package/src/geoarrow/kernels.ts +1290 -0
- package/src/geoarrow/layout.ts +899 -0
- package/src/geoarrow/tessellate.ts +133 -0
- package/src/geoarrow/tessellation-entry.ts +7 -0
- package/src/geoarrow/types.ts +219 -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/globe.ts +14 -0
- package/src/index.ts +3 -30
- package/src/make-obb-from-region.ts +1 -1
- 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/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 +13 -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 +306 -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/spatial-reference.ts +115 -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 +250 -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/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/kernel.ts +142 -0
- package/src/projection/experimental/kernels/aea.ts +170 -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 +136 -0
- package/src/projection/experimental/kernels/equi.ts +53 -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 +113 -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 +297 -0
- package/src/projection/experimental/kernels/lcc.ts +147 -0
- package/src/projection/experimental/kernels/mill.ts +60 -0
- package/src/projection/experimental/kernels/moll.ts +105 -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 +106 -0
- package/src/projection/experimental/kernels/poly.ts +156 -0
- package/src/projection/experimental/kernels/qsc.ts +369 -0
- package/src/projection/experimental/kernels/robin.ts +189 -0
- package/src/projection/experimental/kernels/sinu.ts +116 -0
- package/src/projection/experimental/kernels/somerc.ts +112 -0
- package/src/projection/experimental/kernels/stere.ts +221 -0
- package/src/projection/experimental/kernels/sterea.ts +80 -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 +179 -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 +81 -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 +34 -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 +181 -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 +74 -0
- package/src/projection/experimental/spatial-deformation.ts +115 -0
- package/src/projection/experimental/types.ts +181 -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 +79 -0
- package/src/projection/web-mercator.ts +148 -0
- package/src/subdivide-globe-mesh.ts +75 -0
- package/src/tile-matrix.ts +205 -34
- package/src/tiles.ts +28 -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 +386 -0
- package/src/wkb/wkb-reader.ts +401 -0
- package/src/wkb/wkb.ts +255 -0
- package/src/wkb/wkt.ts +375 -0
|
@@ -0,0 +1,982 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import { getGeoArrowDimensionSize, getGeoArrowGeometryType } from "./types.js";
|
|
5
|
+
import { GeoArrowBuilder } from "./builder.js";
|
|
6
|
+
import { getGeoArrowRowCount, getGeoArrowVertexCount, isGeoArrowValueValid, visitGeoArrowCoordinates, getListRange } from "./layout.js";
|
|
7
|
+
/** Returns XY bounds, or null when the column contains no finite coordinates. */
|
|
8
|
+
export function getGeoArrowBounds(column) {
|
|
9
|
+
if (column.encoding === 'geoarrow.box')
|
|
10
|
+
return getGeoArrowBoxBounds(column);
|
|
11
|
+
let minimumX = Number.POSITIVE_INFINITY;
|
|
12
|
+
let minimumY = Number.POSITIVE_INFINITY;
|
|
13
|
+
let maximumX = Number.NEGATIVE_INFINITY;
|
|
14
|
+
let maximumY = Number.NEGATIVE_INFINITY;
|
|
15
|
+
visitGeoArrowCoordinates(column, coordinate => {
|
|
16
|
+
const x = coordinate[0];
|
|
17
|
+
const y = coordinate[1];
|
|
18
|
+
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
19
|
+
minimumX = Math.min(minimumX, x);
|
|
20
|
+
minimumY = Math.min(minimumY, y);
|
|
21
|
+
maximumX = Math.max(maximumX, x);
|
|
22
|
+
maximumY = Math.max(maximumY, y);
|
|
23
|
+
}
|
|
24
|
+
return coordinate;
|
|
25
|
+
});
|
|
26
|
+
return Number.isFinite(minimumX) ? [minimumX, minimumY, maximumX, maximumY] : null;
|
|
27
|
+
}
|
|
28
|
+
/** Computes exact XY bounds for each logical row without materializing geometry values. */
|
|
29
|
+
export function getGeoArrowRowBounds(column) {
|
|
30
|
+
const rowCount = getGeoArrowRowCount(column);
|
|
31
|
+
if (column.encoding === 'geoarrow.box') {
|
|
32
|
+
const result = [];
|
|
33
|
+
for (const chunk of column.chunks) {
|
|
34
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
35
|
+
if (chunk.kind !== 'struct' || !isGeoArrowValueValid(chunk.validity, rowIndex)) {
|
|
36
|
+
result.push(null);
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const index = (chunk.offset || 0) + rowIndex;
|
|
40
|
+
const xmin = readPrimitiveNumber(chunk.children['xmin'], index);
|
|
41
|
+
const ymin = readPrimitiveNumber(chunk.children['ymin'], index);
|
|
42
|
+
const xmax = readPrimitiveNumber(chunk.children['xmax'], index);
|
|
43
|
+
const ymax = readPrimitiveNumber(chunk.children['ymax'], index);
|
|
44
|
+
result.push([xmin, ymin, xmax, ymax].every(Number.isFinite) ? [xmin, ymin, xmax, ymax] : null);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
const minimumX = new Float64Array(rowCount).fill(Number.POSITIVE_INFINITY);
|
|
50
|
+
const minimumY = new Float64Array(rowCount).fill(Number.POSITIVE_INFINITY);
|
|
51
|
+
const maximumX = new Float64Array(rowCount).fill(Number.NEGATIVE_INFINITY);
|
|
52
|
+
const maximumY = new Float64Array(rowCount).fill(Number.NEGATIVE_INFINITY);
|
|
53
|
+
visitGeoArrowCoordinates(column, (coordinate, sourceRowIndex) => {
|
|
54
|
+
const [x, y] = coordinate;
|
|
55
|
+
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
56
|
+
minimumX[sourceRowIndex] = Math.min(minimumX[sourceRowIndex], x);
|
|
57
|
+
minimumY[sourceRowIndex] = Math.min(minimumY[sourceRowIndex], y);
|
|
58
|
+
maximumX[sourceRowIndex] = Math.max(maximumX[sourceRowIndex], x);
|
|
59
|
+
maximumY[sourceRowIndex] = Math.max(maximumY[sourceRowIndex], y);
|
|
60
|
+
}
|
|
61
|
+
return coordinate;
|
|
62
|
+
});
|
|
63
|
+
const bounds = [];
|
|
64
|
+
for (let rowIndex = 0; rowIndex < rowCount; rowIndex++) {
|
|
65
|
+
bounds.push(Number.isFinite(minimumX[rowIndex])
|
|
66
|
+
? [minimumX[rowIndex], minimumY[rowIndex], maximumX[rowIndex], maximumY[rowIndex]]
|
|
67
|
+
: null);
|
|
68
|
+
}
|
|
69
|
+
return bounds;
|
|
70
|
+
}
|
|
71
|
+
function getGeoArrowBoxBounds(column) {
|
|
72
|
+
let minimumX = Number.POSITIVE_INFINITY;
|
|
73
|
+
let minimumY = Number.POSITIVE_INFINITY;
|
|
74
|
+
let maximumX = Number.NEGATIVE_INFINITY;
|
|
75
|
+
let maximumY = Number.NEGATIVE_INFINITY;
|
|
76
|
+
for (const chunk of column.chunks) {
|
|
77
|
+
if (chunk.kind !== 'struct')
|
|
78
|
+
continue;
|
|
79
|
+
const xmin = chunk.children['xmin'];
|
|
80
|
+
const ymin = chunk.children['ymin'];
|
|
81
|
+
const xmax = chunk.children['xmax'];
|
|
82
|
+
const ymax = chunk.children['ymax'];
|
|
83
|
+
if (!xmin || !ymin || !xmax || !ymax)
|
|
84
|
+
continue;
|
|
85
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
86
|
+
if (!isGeoArrowValueValid(chunk.validity, rowIndex))
|
|
87
|
+
continue;
|
|
88
|
+
const structIndex = (chunk.offset || 0) + rowIndex;
|
|
89
|
+
const bounds = [
|
|
90
|
+
readPrimitiveNumber(xmin, structIndex),
|
|
91
|
+
readPrimitiveNumber(ymin, structIndex),
|
|
92
|
+
readPrimitiveNumber(xmax, structIndex),
|
|
93
|
+
readPrimitiveNumber(ymax, structIndex)
|
|
94
|
+
];
|
|
95
|
+
if (bounds.every(Number.isFinite)) {
|
|
96
|
+
minimumX = Math.min(minimumX, bounds[0]);
|
|
97
|
+
minimumY = Math.min(minimumY, bounds[1]);
|
|
98
|
+
maximumX = Math.max(maximumX, bounds[2]);
|
|
99
|
+
maximumY = Math.max(maximumY, bounds[3]);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return Number.isFinite(minimumX) ? [minimumX, minimumY, maximumX, maximumY] : null;
|
|
104
|
+
}
|
|
105
|
+
function readPrimitiveNumber(array, index) {
|
|
106
|
+
if (array.kind !== 'primitive' || !isGeoArrowValueValid(array.validity, index))
|
|
107
|
+
return Number.NaN;
|
|
108
|
+
const valueIndex = (array.offset || 0) + index * (array.stride || 1);
|
|
109
|
+
return Number(array.values[valueIndex]);
|
|
110
|
+
}
|
|
111
|
+
/** Maps every coordinate into newly allocated physical buffers while preserving column semantics. */
|
|
112
|
+
export function mapGeoArrowCoordinates(column, mapper, options = {}, sourceDimension) {
|
|
113
|
+
assertGeoArrowResourceLimits(column, options.limits);
|
|
114
|
+
if (column.encoding === 'geoarrow.wkb' || column.encoding === 'geoarrow.wkt') {
|
|
115
|
+
throw new Error('Coordinate mapping requires native GeoArrow storage');
|
|
116
|
+
}
|
|
117
|
+
const dimension = options.dimension || column.dimension;
|
|
118
|
+
const layout = options.coordinateLayout || column.coordinateLayout || 'interleaved';
|
|
119
|
+
let rowOffset = 0;
|
|
120
|
+
const chunks = column.chunks.map(chunk => {
|
|
121
|
+
const mapped = mapArrayCoordinates(chunk, column.encoding, rowOffset, dimension, layout, mapper, options.coordinateType || 'preserve', options.dimension !== undefined, options.coordinateLayout !== undefined, sourceDimension);
|
|
122
|
+
rowOffset += chunk.length;
|
|
123
|
+
return mapped;
|
|
124
|
+
});
|
|
125
|
+
return { ...column, dimension, coordinateLayout: layout, chunks };
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Maps coordinates and copies the result into caller-provided destination buffers.
|
|
129
|
+
*
|
|
130
|
+
* The destination must have the same physical topology as the mapped result. Topology, validity,
|
|
131
|
+
* offsets, and metadata in the destination are never replaced.
|
|
132
|
+
*/
|
|
133
|
+
export function mapGeoArrowCoordinatesInto(target, source, mapper, options = {}) {
|
|
134
|
+
const mapped = mapGeoArrowCoordinates(source, mapper, {
|
|
135
|
+
...options,
|
|
136
|
+
coordinateLayout: target.coordinateLayout || undefined
|
|
137
|
+
});
|
|
138
|
+
const sourceLeaves = collectCoordinateLeaves(mapped);
|
|
139
|
+
const targetLeaves = collectCoordinateLeaves(target);
|
|
140
|
+
if (sourceLeaves.length !== targetLeaves.length) {
|
|
141
|
+
throw new Error('GeoArrow destination has different coordinate topology');
|
|
142
|
+
}
|
|
143
|
+
for (let index = 0; index < sourceLeaves.length; index++) {
|
|
144
|
+
const sourceLeaf = sourceLeaves[index];
|
|
145
|
+
const targetLeaf = targetLeaves[index];
|
|
146
|
+
if (sourceLeaf.length !== targetLeaf.length) {
|
|
147
|
+
throw new Error('GeoArrow destination coordinate buffer has a different length');
|
|
148
|
+
}
|
|
149
|
+
targetLeaf.set(sourceLeaf);
|
|
150
|
+
}
|
|
151
|
+
return target;
|
|
152
|
+
}
|
|
153
|
+
/** Converts separated native coordinates to interleaved tuples. Identity is returned unchanged. */
|
|
154
|
+
export function interleaveGeoArrowCoordinates(column) {
|
|
155
|
+
if (column.coordinateLayout === 'interleaved')
|
|
156
|
+
return column;
|
|
157
|
+
if (!column.coordinateLayout)
|
|
158
|
+
return column;
|
|
159
|
+
return mapGeoArrowCoordinates(column, coordinate => coordinate, {
|
|
160
|
+
coordinateLayout: 'interleaved'
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/** Normalizes dense-union children by ascending type ID without changing dispatch buffers. */
|
|
164
|
+
export function normalizeGeoArrowUnion(column) {
|
|
165
|
+
if (column.encoding !== 'geoarrow.geometry')
|
|
166
|
+
return column;
|
|
167
|
+
let changed = false;
|
|
168
|
+
const chunks = column.chunks.map(chunk => {
|
|
169
|
+
if (chunk.kind !== 'dense-union')
|
|
170
|
+
return chunk;
|
|
171
|
+
const children = [...chunk.children].sort((left, right) => left.typeId - right.typeId);
|
|
172
|
+
changed || (changed = children.some((child, index) => child !== chunk.children[index]));
|
|
173
|
+
return children.every((child, index) => child === chunk.children[index])
|
|
174
|
+
? chunk
|
|
175
|
+
: { ...chunk, children };
|
|
176
|
+
});
|
|
177
|
+
return changed ? { ...column, chunks } : column;
|
|
178
|
+
}
|
|
179
|
+
/** Converts between concrete/mixed encodings, dimensions, and coordinate layouts. */
|
|
180
|
+
export function convertGeoArrowColumn(column, options = {}) {
|
|
181
|
+
const encoding = options.encoding === 'native' || !options.encoding ? column.encoding : options.encoding;
|
|
182
|
+
const dimension = options.dimension || column.dimension;
|
|
183
|
+
const coordinateLayout = options.coordinateLayout === 'preserve' || !options.coordinateLayout
|
|
184
|
+
? column.coordinateLayout
|
|
185
|
+
: options.coordinateLayout;
|
|
186
|
+
const requestedOffsetType = options.offsetType || 'preserve';
|
|
187
|
+
const currentOffsetType = getColumnOffsetType(column);
|
|
188
|
+
if (encoding === column.encoding &&
|
|
189
|
+
dimension === column.dimension &&
|
|
190
|
+
coordinateLayout === column.coordinateLayout &&
|
|
191
|
+
(requestedOffsetType === 'preserve' || requestedOffsetType === currentOffsetType) &&
|
|
192
|
+
(!options.coordinateType || options.coordinateType === 'preserve')) {
|
|
193
|
+
return column;
|
|
194
|
+
}
|
|
195
|
+
if (encoding === 'geoarrow.wkb' || encoding === 'geoarrow.wkt') {
|
|
196
|
+
throw new Error('Use encodeGeoArrowWKB or encodeGeoArrowWKT for serialized output');
|
|
197
|
+
}
|
|
198
|
+
assertGeoArrowResourceLimits(column, options.limits);
|
|
199
|
+
const needsCoordinateMap = dimension !== column.dimension ||
|
|
200
|
+
coordinateLayout !== column.coordinateLayout ||
|
|
201
|
+
(options.coordinateType && options.coordinateType !== 'preserve');
|
|
202
|
+
const mapped = needsCoordinateMap
|
|
203
|
+
? mapGeoArrowCoordinates(column, coordinate => coordinate, {
|
|
204
|
+
dimension,
|
|
205
|
+
coordinateLayout: coordinateLayout || undefined,
|
|
206
|
+
coordinateType: options.coordinateType,
|
|
207
|
+
limits: options.limits
|
|
208
|
+
}, column.dimension)
|
|
209
|
+
: column;
|
|
210
|
+
const offsetConverted = requestedOffsetType === 'preserve'
|
|
211
|
+
? mapped
|
|
212
|
+
: {
|
|
213
|
+
...mapped,
|
|
214
|
+
chunks: mapped.chunks.map(chunk => convertArrayOffsets(chunk, requestedOffsetType))
|
|
215
|
+
};
|
|
216
|
+
if (encoding === column.encoding)
|
|
217
|
+
return offsetConverted;
|
|
218
|
+
if (encoding === 'geoarrow.geometry')
|
|
219
|
+
return promoteToDenseUnion(offsetConverted);
|
|
220
|
+
const promoted = promoteSingleFamily(offsetConverted, encoding, requestedOffsetType);
|
|
221
|
+
if (promoted)
|
|
222
|
+
return promoted;
|
|
223
|
+
if (column.encoding === 'geoarrow.geometry')
|
|
224
|
+
return demoteDenseUnion(offsetConverted, encoding);
|
|
225
|
+
throw new Error(`Rows cannot be represented as ${encoding}`);
|
|
226
|
+
}
|
|
227
|
+
/** Wraps a concrete family in one list level without copying its coordinate/topology buffers. */
|
|
228
|
+
function promoteSingleFamily(column, encoding, offsetType) {
|
|
229
|
+
const sourceEncoding = column.encoding;
|
|
230
|
+
const validPair = (sourceEncoding === 'geoarrow.point' && encoding === 'geoarrow.multipoint') ||
|
|
231
|
+
(sourceEncoding === 'geoarrow.linestring' && encoding === 'geoarrow.multilinestring') ||
|
|
232
|
+
(sourceEncoding === 'geoarrow.polygon' && encoding === 'geoarrow.multipolygon');
|
|
233
|
+
if (!validPair)
|
|
234
|
+
return null;
|
|
235
|
+
const chunks = column.chunks.map(chunk => {
|
|
236
|
+
const OffsetArray = offsetType === 'int64' || (offsetType === 'preserve' && findOffsetType(chunk) === 'int64')
|
|
237
|
+
? BigInt64Array
|
|
238
|
+
: Int32Array;
|
|
239
|
+
const offsets = new OffsetArray(chunk.length + 1);
|
|
240
|
+
for (let index = 0; index <= chunk.length; index++) {
|
|
241
|
+
if (offsets instanceof BigInt64Array)
|
|
242
|
+
offsets[index] = BigInt(index);
|
|
243
|
+
else
|
|
244
|
+
offsets[index] = index;
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
kind: 'list',
|
|
248
|
+
length: chunk.length,
|
|
249
|
+
offsets,
|
|
250
|
+
child: chunk,
|
|
251
|
+
validity: chunk.validity
|
|
252
|
+
};
|
|
253
|
+
});
|
|
254
|
+
return { ...column, encoding, chunks };
|
|
255
|
+
}
|
|
256
|
+
function resizeCoordinate(coordinate, sourceDimension, targetDimension) {
|
|
257
|
+
const sourceNames = getDimensionNames(sourceDimension);
|
|
258
|
+
return getDimensionNames(targetDimension).map(name => {
|
|
259
|
+
const sourceIndex = sourceNames.indexOf(name);
|
|
260
|
+
return sourceIndex >= 0 ? (coordinate[sourceIndex] ?? 0) : 0;
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/** Rewinds polygon rings without changing non-polygon rows. */
|
|
264
|
+
export function rewindGeoArrow(column, options = {}) {
|
|
265
|
+
assertGeoArrowResourceLimits(column, options.limits);
|
|
266
|
+
if (column.encoding === 'geoarrow.wkb' || column.encoding === 'geoarrow.wkt') {
|
|
267
|
+
throw new Error('Rewinding requires native GeoArrow storage');
|
|
268
|
+
}
|
|
269
|
+
const outerClockwise = (options.outer || 'counter-clockwise') === 'clockwise';
|
|
270
|
+
let changed = false;
|
|
271
|
+
const chunks = column.chunks.map(chunk => {
|
|
272
|
+
const clone = mapArrayCoordinates(chunk, column.encoding, 0, column.dimension, column.coordinateLayout || 'interleaved', coordinate => coordinate, 'preserve');
|
|
273
|
+
changed || (changed = rewindArrayRings(clone, column.encoding, outerClockwise));
|
|
274
|
+
return clone;
|
|
275
|
+
});
|
|
276
|
+
return changed ? { ...column, chunks } : column;
|
|
277
|
+
}
|
|
278
|
+
/** Throws when a column exceeds configured work or output limits. */
|
|
279
|
+
export function assertGeoArrowResourceLimits(column, options = {}) {
|
|
280
|
+
const rows = getGeoArrowRowCount(column);
|
|
281
|
+
if (rows > (options.maximumRows ?? Number.POSITIVE_INFINITY)) {
|
|
282
|
+
throw new Error(`GeoArrow row count ${rows} exceeds maximumRows`);
|
|
283
|
+
}
|
|
284
|
+
if (column.chunks.length > (options.maximumChunks ?? Number.POSITIVE_INFINITY)) {
|
|
285
|
+
throw new Error(`GeoArrow chunk count ${column.chunks.length} exceeds maximumChunks`);
|
|
286
|
+
}
|
|
287
|
+
const coordinates = getGeoArrowVertexCount(column);
|
|
288
|
+
if (coordinates > (options.maximumCoordinates ?? Number.POSITIVE_INFINITY)) {
|
|
289
|
+
throw new Error(`GeoArrow coordinate count ${coordinates} exceeds maximumCoordinates`);
|
|
290
|
+
}
|
|
291
|
+
if (options.maximumNestingDepth !== undefined) {
|
|
292
|
+
const depth = Math.max(0, ...column.chunks.map(getArrayDepth));
|
|
293
|
+
if (depth > options.maximumNestingDepth) {
|
|
294
|
+
throw new Error(`GeoArrow nesting depth ${depth} exceeds maximumNestingDepth`);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (options.maximumOutputBytes !== undefined) {
|
|
298
|
+
const estimatedBytes = coordinates * getGeoArrowDimensionSize(column.dimension) * 8;
|
|
299
|
+
if (estimatedBytes > options.maximumOutputBytes) {
|
|
300
|
+
throw new Error(`GeoArrow estimated output ${estimatedBytes} exceeds maximumOutputBytes`);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
/** Directly clones a physical array while rewriting only coordinate leaves. */
|
|
305
|
+
function mapArrayCoordinates(array, encoding, rowOffset, targetDimension, targetLayout, mapper, coordinateType, forceDimension = false, forceLayout = false, sourceDimension, rowIndicesOverride) {
|
|
306
|
+
if (encoding === 'geoarrow.geometry' && array.kind === 'dense-union') {
|
|
307
|
+
const childRowIndices = collectUnionRowIndices(array, rowOffset);
|
|
308
|
+
return {
|
|
309
|
+
...array,
|
|
310
|
+
children: array.children.map((child, childIndex) => {
|
|
311
|
+
const childEncoding = child.encoding || getEncodingFromChildName(child.name);
|
|
312
|
+
const childDimension = forceDimension
|
|
313
|
+
? targetDimension
|
|
314
|
+
: child.dimension || targetDimension;
|
|
315
|
+
const childLayout = forceLayout ? targetLayout : child.coordinateLayout || targetLayout;
|
|
316
|
+
return {
|
|
317
|
+
...child,
|
|
318
|
+
data: mapArrayCoordinates(child.data, childEncoding, rowOffset, childDimension, childLayout, mapper, coordinateType, forceDimension, forceLayout, childDimension, childRowIndices[childIndex]),
|
|
319
|
+
dimension: childDimension,
|
|
320
|
+
coordinateLayout: childLayout,
|
|
321
|
+
encoding: childEncoding
|
|
322
|
+
};
|
|
323
|
+
})
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
if (encoding === 'geoarrow.geometrycollection' && array.kind === 'list') {
|
|
327
|
+
return {
|
|
328
|
+
...array,
|
|
329
|
+
child: mapArrayCoordinates(array.child, 'geoarrow.geometry', rowOffset, targetDimension, targetLayout, mapper, coordinateType, forceDimension, forceLayout, sourceDimension, rowIndicesOverride)
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
const depth = getEncodingDepth(encoding);
|
|
333
|
+
const rowIndices = rowIndicesOverride || collectLeafRowIndices(array, depth, rowOffset);
|
|
334
|
+
return mapNestedArray(array, depth, rowOffset, targetDimension, targetLayout, mapper, coordinateType, rowIndices, sourceDimension);
|
|
335
|
+
}
|
|
336
|
+
function mapNestedArray(array, depth, rowOffset, targetDimension, targetLayout, mapper, coordinateType, rowIndices, sourceDimension) {
|
|
337
|
+
if (depth === 0) {
|
|
338
|
+
return mapCoordinateLeaf(array, rowOffset, targetDimension, targetLayout, mapper, coordinateType, rowIndices, sourceDimension);
|
|
339
|
+
}
|
|
340
|
+
if (array.kind !== 'list')
|
|
341
|
+
return array;
|
|
342
|
+
return {
|
|
343
|
+
...array,
|
|
344
|
+
child: mapNestedArray(array.child, depth - 1, rowOffset, targetDimension, targetLayout, mapper, coordinateType, rowIndices, sourceDimension)
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function mapCoordinateLeaf(array, rowOffset, targetDimension, targetLayout, mapper, coordinateType, rowIndices, sourceDimension) {
|
|
348
|
+
const count = array.length;
|
|
349
|
+
const targetSize = getGeoArrowDimensionSize(targetDimension);
|
|
350
|
+
const sourceValues = new Array(count);
|
|
351
|
+
for (let index = 0; index < count; index++) {
|
|
352
|
+
const coordinate = readCoordinateAt(array, index);
|
|
353
|
+
const mapped = coordinate
|
|
354
|
+
? mapper(sourceDimension
|
|
355
|
+
? resizeCoordinate(coordinate, sourceDimension, targetDimension)
|
|
356
|
+
: coordinate, rowIndices?.[index] ?? rowOffset)
|
|
357
|
+
: new Array(targetSize).fill(0);
|
|
358
|
+
if (mapped.length !== targetSize) {
|
|
359
|
+
throw new Error(`Coordinate mapper returned ${mapped.length} values; expected ${targetSize}`);
|
|
360
|
+
}
|
|
361
|
+
sourceValues[index] = [...mapped];
|
|
362
|
+
}
|
|
363
|
+
const FloatArray = resolveCoordinateConstructor(array, coordinateType);
|
|
364
|
+
return makeCoordinateLeaf(sourceValues, targetDimension, targetLayout, FloatArray, array.validity);
|
|
365
|
+
}
|
|
366
|
+
/** Fills one row-index entry per coordinate in a concrete nested array. */
|
|
367
|
+
function collectLeafRowIndices(array, depth, rowOffset) {
|
|
368
|
+
const output = new Array(getLeafLength(array, depth)).fill(rowOffset);
|
|
369
|
+
for (let rowIndex = 0; rowIndex < array.length; rowIndex++) {
|
|
370
|
+
if (isGeoArrowValueValid(array.validity, rowIndex)) {
|
|
371
|
+
assignNestedRowIndices(array, rowIndex, depth, rowOffset + rowIndex, output);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return output;
|
|
375
|
+
}
|
|
376
|
+
function assignNestedRowIndices(array, index, depth, rowIndex, output) {
|
|
377
|
+
if (depth === 0) {
|
|
378
|
+
if (index >= 0 && index < output.length)
|
|
379
|
+
output[index] = rowIndex;
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
if (array.kind !== 'list')
|
|
383
|
+
return;
|
|
384
|
+
const [first, last] = getListRange(array, index);
|
|
385
|
+
for (let childIndex = first; childIndex < last; childIndex++) {
|
|
386
|
+
assignNestedRowIndices(array.child, childIndex, depth - 1, rowIndex, output);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function collectUnionRowIndices(union, rowOffset) {
|
|
390
|
+
if (union.kind !== 'dense-union')
|
|
391
|
+
return [];
|
|
392
|
+
const output = union.children.map(child => {
|
|
393
|
+
const encoding = child.encoding || getEncodingFromChildName(child.name);
|
|
394
|
+
return new Array(getLeafLength(child.data, getEncodingDepth(encoding))).fill(rowOffset);
|
|
395
|
+
});
|
|
396
|
+
for (let rowIndex = 0; rowIndex < union.length; rowIndex++) {
|
|
397
|
+
if (!isGeoArrowValueValid(union.validity, rowIndex))
|
|
398
|
+
continue;
|
|
399
|
+
const physical = (union.offset || 0) + rowIndex;
|
|
400
|
+
const childIndex = union.children.findIndex(child => child.typeId === union.typeIds[physical]);
|
|
401
|
+
if (childIndex < 0)
|
|
402
|
+
continue;
|
|
403
|
+
const child = union.children[childIndex];
|
|
404
|
+
assignUnionRowIndices(child.data, child.encoding || getEncodingFromChildName(child.name), union.valueOffsets[physical], rowOffset + rowIndex, output[childIndex]);
|
|
405
|
+
}
|
|
406
|
+
return output;
|
|
407
|
+
}
|
|
408
|
+
function assignUnionRowIndices(array, encoding, index, rowIndex, output) {
|
|
409
|
+
if (encoding === 'geoarrow.geometry' && array.kind === 'dense-union') {
|
|
410
|
+
const physical = (array.offset || 0) + index;
|
|
411
|
+
const childIndex = array.children.findIndex(child => child.typeId === array.typeIds[physical]);
|
|
412
|
+
if (childIndex >= 0) {
|
|
413
|
+
const child = array.children[childIndex];
|
|
414
|
+
assignUnionRowIndices(child.data, child.encoding || getEncodingFromChildName(child.name), array.valueOffsets[physical], rowIndex, output);
|
|
415
|
+
}
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
if (encoding === 'geoarrow.geometrycollection' && array.kind === 'list') {
|
|
419
|
+
const [first, last] = getListRange(array, index);
|
|
420
|
+
if (array.child.kind === 'dense-union') {
|
|
421
|
+
for (let childIndex = first; childIndex < last; childIndex++) {
|
|
422
|
+
assignUnionRowIndices(array.child, 'geoarrow.geometry', childIndex, rowIndex, output);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
assignNestedRowIndices(array, index, getEncodingDepth(encoding), rowIndex, output);
|
|
428
|
+
}
|
|
429
|
+
function getLeafLength(array, depth) {
|
|
430
|
+
let current = array;
|
|
431
|
+
for (let level = 0; level < depth; level++) {
|
|
432
|
+
if (current.kind !== 'list')
|
|
433
|
+
return 0;
|
|
434
|
+
current = current.child;
|
|
435
|
+
}
|
|
436
|
+
return current.length;
|
|
437
|
+
}
|
|
438
|
+
function resolveCoordinateConstructor(array, coordinateType) {
|
|
439
|
+
if (coordinateType === 'float32')
|
|
440
|
+
return Float32Array;
|
|
441
|
+
if (coordinateType === 'float64')
|
|
442
|
+
return Float64Array;
|
|
443
|
+
if (array.kind === 'fixed-size-list' && array.child.kind === 'primitive') {
|
|
444
|
+
return array.child.values instanceof Float32Array ? Float32Array : Float64Array;
|
|
445
|
+
}
|
|
446
|
+
if (array.kind === 'struct') {
|
|
447
|
+
const child = array.children['x'];
|
|
448
|
+
if (child?.kind === 'primitive' && child.values instanceof Float32Array)
|
|
449
|
+
return Float32Array;
|
|
450
|
+
}
|
|
451
|
+
return Float64Array;
|
|
452
|
+
}
|
|
453
|
+
function makeCoordinateLeaf(coordinates, dimension, layout, FloatArray, validity) {
|
|
454
|
+
const size = getGeoArrowDimensionSize(dimension);
|
|
455
|
+
if (layout === 'interleaved') {
|
|
456
|
+
const values = new FloatArray(coordinates.length * size);
|
|
457
|
+
for (let index = 0; index < coordinates.length; index++) {
|
|
458
|
+
values.set(coordinates[index], index * size);
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
kind: 'fixed-size-list',
|
|
462
|
+
length: coordinates.length,
|
|
463
|
+
size,
|
|
464
|
+
child: { kind: 'primitive', length: values.length, values },
|
|
465
|
+
validity
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
const children = {
|
|
469
|
+
x: { kind: 'primitive', length: coordinates.length, values: new FloatArray(coordinates.length) },
|
|
470
|
+
y: { kind: 'primitive', length: coordinates.length, values: new FloatArray(coordinates.length) }
|
|
471
|
+
};
|
|
472
|
+
const names = getDimensionNames(dimension);
|
|
473
|
+
for (let component = 2; component < names.length; component++) {
|
|
474
|
+
children[names[component]] = {
|
|
475
|
+
kind: 'primitive',
|
|
476
|
+
length: coordinates.length,
|
|
477
|
+
values: new FloatArray(coordinates.length)
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
for (let index = 0; index < coordinates.length; index++) {
|
|
481
|
+
const coordinate = coordinates[index];
|
|
482
|
+
for (let component = 0; component < names.length; component++) {
|
|
483
|
+
const child = children[names[component]];
|
|
484
|
+
if (child.kind === 'primitive')
|
|
485
|
+
child.values[index] = coordinate[component];
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
return { kind: 'struct', length: coordinates.length, children, validity };
|
|
489
|
+
}
|
|
490
|
+
function readCoordinateAt(array, index) {
|
|
491
|
+
if (!isGeoArrowValueValid(array.validity, index))
|
|
492
|
+
return null;
|
|
493
|
+
if (array.kind === 'fixed-size-list') {
|
|
494
|
+
const logicalIndex = (array.offset || 0) + index;
|
|
495
|
+
if (array.child.kind !== 'primitive')
|
|
496
|
+
return null;
|
|
497
|
+
const values = [];
|
|
498
|
+
for (let component = 0; component < array.size; component++) {
|
|
499
|
+
const scalarIndex = logicalIndex * array.size + component;
|
|
500
|
+
values.push(Number(array.child.values[(array.child.offset || 0) + scalarIndex * (array.child.stride || 1)]));
|
|
501
|
+
}
|
|
502
|
+
return values;
|
|
503
|
+
}
|
|
504
|
+
if (array.kind === 'struct') {
|
|
505
|
+
const logicalIndex = (array.offset || 0) + index;
|
|
506
|
+
const values = [];
|
|
507
|
+
for (const name of ['x', 'y', 'z', 'm']) {
|
|
508
|
+
const child = array.children[name];
|
|
509
|
+
if (child?.kind === 'primitive') {
|
|
510
|
+
values.push(Number(child.values[(child.offset || 0) + logicalIndex * (child.stride || 1)]));
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return values.length >= 2 ? values : null;
|
|
514
|
+
}
|
|
515
|
+
return null;
|
|
516
|
+
}
|
|
517
|
+
function getDimensionNames(dimension) {
|
|
518
|
+
switch (dimension) {
|
|
519
|
+
case 'xy':
|
|
520
|
+
return ['x', 'y'];
|
|
521
|
+
case 'xyz':
|
|
522
|
+
return ['x', 'y', 'z'];
|
|
523
|
+
case 'xym':
|
|
524
|
+
return ['x', 'y', 'm'];
|
|
525
|
+
case 'xyzm':
|
|
526
|
+
return ['x', 'y', 'z', 'm'];
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
function getEncodingFromChildName(name) {
|
|
530
|
+
const normalized = name.replace(/[^a-z]/gi, '').toLowerCase();
|
|
531
|
+
const encoding = `geoarrow.${normalized}`;
|
|
532
|
+
if (encoding === 'geoarrow.point' ||
|
|
533
|
+
encoding === 'geoarrow.linestring' ||
|
|
534
|
+
encoding === 'geoarrow.polygon' ||
|
|
535
|
+
encoding === 'geoarrow.multipoint' ||
|
|
536
|
+
encoding === 'geoarrow.multilinestring' ||
|
|
537
|
+
encoding === 'geoarrow.multipolygon' ||
|
|
538
|
+
encoding === 'geoarrow.geometrycollection') {
|
|
539
|
+
return encoding;
|
|
540
|
+
}
|
|
541
|
+
throw new Error(`Unknown GeoArrow dense-union child ${name}`);
|
|
542
|
+
}
|
|
543
|
+
function getEncodingDepth(encoding) {
|
|
544
|
+
switch (encoding) {
|
|
545
|
+
case 'geoarrow.point':
|
|
546
|
+
return 0;
|
|
547
|
+
case 'geoarrow.linestring':
|
|
548
|
+
case 'geoarrow.multipoint':
|
|
549
|
+
return 1;
|
|
550
|
+
case 'geoarrow.polygon':
|
|
551
|
+
case 'geoarrow.multilinestring':
|
|
552
|
+
return 2;
|
|
553
|
+
case 'geoarrow.multipolygon':
|
|
554
|
+
return 3;
|
|
555
|
+
default:
|
|
556
|
+
return 0;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function promoteToDenseUnion(column) {
|
|
560
|
+
if (column.encoding === 'geoarrow.geometry')
|
|
561
|
+
return column;
|
|
562
|
+
const chunks = column.chunks.map(chunk => {
|
|
563
|
+
const typeId = getCanonicalTypeId(column.encoding, column.dimension);
|
|
564
|
+
const typeIds = new Int8Array(chunk.length);
|
|
565
|
+
typeIds.fill(typeId);
|
|
566
|
+
const valueOffsets = new Int32Array(chunk.length);
|
|
567
|
+
for (let index = 0; index < chunk.length; index++)
|
|
568
|
+
valueOffsets[index] = index;
|
|
569
|
+
return {
|
|
570
|
+
kind: 'dense-union',
|
|
571
|
+
length: chunk.length,
|
|
572
|
+
typeIds,
|
|
573
|
+
valueOffsets,
|
|
574
|
+
children: [
|
|
575
|
+
{
|
|
576
|
+
name: getGeoArrowGeometryTypeName(column.encoding),
|
|
577
|
+
typeId,
|
|
578
|
+
encoding: column.encoding,
|
|
579
|
+
dimension: column.dimension,
|
|
580
|
+
coordinateLayout: column.coordinateLayout,
|
|
581
|
+
data: chunk
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
};
|
|
585
|
+
});
|
|
586
|
+
return { ...column, encoding: 'geoarrow.geometry', chunks };
|
|
587
|
+
}
|
|
588
|
+
function demoteDenseUnion(column, encoding) {
|
|
589
|
+
if (encoding === 'geoarrow.geometry' || encoding === 'geoarrow.geometrycollection')
|
|
590
|
+
return column;
|
|
591
|
+
if (!isConcreteEncoding(encoding))
|
|
592
|
+
throw new Error(`Rows cannot be represented as ${encoding}`);
|
|
593
|
+
const builderOptions = {
|
|
594
|
+
encoding,
|
|
595
|
+
dimension: column.dimension,
|
|
596
|
+
coordinateLayout: column.coordinateLayout || 'interleaved',
|
|
597
|
+
offsetType: getColumnOffsetType(column)
|
|
598
|
+
};
|
|
599
|
+
const chunks = column.chunks.map(chunk => {
|
|
600
|
+
if (chunk.kind !== 'dense-union')
|
|
601
|
+
throw new Error('Expected dense-union storage');
|
|
602
|
+
const replay = (builder) => {
|
|
603
|
+
for (let index = 0; index < chunk.length; index++) {
|
|
604
|
+
if (!isGeoArrowValueValid(chunk.validity, index)) {
|
|
605
|
+
builder.append(null);
|
|
606
|
+
continue;
|
|
607
|
+
}
|
|
608
|
+
const physical = (chunk.offset || 0) + index;
|
|
609
|
+
const child = chunk.children.find(candidate => candidate.typeId === chunk.typeIds[physical]);
|
|
610
|
+
const childEncoding = child && (child.encoding || getEncodingFromChildName(child.name));
|
|
611
|
+
const childIndex = chunk.valueOffsets[physical];
|
|
612
|
+
if (!child || !childEncoding || !isGeoArrowValueValid(child.data.validity, childIndex)) {
|
|
613
|
+
builder.append(null);
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
if (!isConcreteEncoding(childEncoding) || !canPromoteEncoding(childEncoding, encoding)) {
|
|
617
|
+
throw new Error(`Rows cannot be represented as ${encoding}`);
|
|
618
|
+
}
|
|
619
|
+
replayPhysicalGeometryIntoBuilder(builder, child.data, childIndex, childEncoding, child.dimension || column.dimension, encoding);
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
const measure = new GeoArrowBuilder({ ...builderOptions, mode: 'measure' });
|
|
623
|
+
replay(measure);
|
|
624
|
+
const write = new GeoArrowBuilder({
|
|
625
|
+
...builderOptions,
|
|
626
|
+
mode: 'write',
|
|
627
|
+
target: measure.allocateTarget()
|
|
628
|
+
});
|
|
629
|
+
replay(write);
|
|
630
|
+
return write.finish().chunks[0];
|
|
631
|
+
});
|
|
632
|
+
return { ...column, encoding, coordinateLayout: builderOptions.coordinateLayout, chunks };
|
|
633
|
+
}
|
|
634
|
+
function replayPhysicalGeometryIntoBuilder(builder, array, rowIndex, sourceEncoding, sourceDimension, targetEncoding) {
|
|
635
|
+
const targetType = getGeoArrowGeometryTypeName(targetEncoding);
|
|
636
|
+
builder.beginGeometry(targetType, sourceDimension);
|
|
637
|
+
if (sourceEncoding === 'geoarrow.point') {
|
|
638
|
+
writePhysicalCoordinateIntoBuilder(builder, array, rowIndex, sourceDimension);
|
|
639
|
+
}
|
|
640
|
+
else if (sourceEncoding === 'geoarrow.linestring' || sourceEncoding === 'geoarrow.multipoint') {
|
|
641
|
+
const [first, last] = requireListRange(array, rowIndex);
|
|
642
|
+
if (targetEncoding === 'geoarrow.multilinestring')
|
|
643
|
+
builder.beginRing(last - first);
|
|
644
|
+
const leaf = array.child;
|
|
645
|
+
for (let index = first; index < last; index++) {
|
|
646
|
+
writePhysicalCoordinateIntoBuilder(builder, leaf, index, sourceDimension);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
else if (sourceEncoding === 'geoarrow.polygon' ||
|
|
650
|
+
sourceEncoding === 'geoarrow.multilinestring') {
|
|
651
|
+
const [first, last] = requireListRange(array, rowIndex);
|
|
652
|
+
if (targetEncoding === 'geoarrow.multipolygon')
|
|
653
|
+
builder.beginPolygon();
|
|
654
|
+
const parts = array.child;
|
|
655
|
+
for (let partIndex = first; partIndex < last; partIndex++) {
|
|
656
|
+
const [partFirst, partLast] = requireListRange(parts, partIndex);
|
|
657
|
+
builder.beginRing(partLast - partFirst);
|
|
658
|
+
const leaf = parts.child;
|
|
659
|
+
for (let index = partFirst; index < partLast; index++) {
|
|
660
|
+
writePhysicalCoordinateIntoBuilder(builder, leaf, index, sourceDimension);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
else {
|
|
665
|
+
const [first, last] = requireListRange(array, rowIndex);
|
|
666
|
+
const polygons = array.child;
|
|
667
|
+
for (let polygonIndex = first; polygonIndex < last; polygonIndex++) {
|
|
668
|
+
builder.beginPolygon();
|
|
669
|
+
const [partFirst, partLast] = requireListRange(polygons, polygonIndex);
|
|
670
|
+
const parts = polygons.child;
|
|
671
|
+
for (let partIndex = partFirst; partIndex < partLast; partIndex++) {
|
|
672
|
+
const [ringFirst, ringLast] = requireListRange(parts, partIndex);
|
|
673
|
+
builder.beginRing(ringLast - ringFirst);
|
|
674
|
+
const leaf = parts.child;
|
|
675
|
+
for (let index = ringFirst; index < ringLast; index++) {
|
|
676
|
+
writePhysicalCoordinateIntoBuilder(builder, leaf, index, sourceDimension);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
builder.endGeometry();
|
|
682
|
+
}
|
|
683
|
+
function writePhysicalCoordinateIntoBuilder(builder, array, index, dimension) {
|
|
684
|
+
if (array.kind === 'fixed-size-list' && array.child.kind === 'primitive') {
|
|
685
|
+
const logical = (array.offset || 0) + index;
|
|
686
|
+
const stride = array.child.stride || 1;
|
|
687
|
+
const scalarOffset = (array.child.offset || 0) + logical * array.size * stride;
|
|
688
|
+
const x = Number(array.child.values[scalarOffset]);
|
|
689
|
+
const y = Number(array.child.values[scalarOffset + stride]);
|
|
690
|
+
const third = array.size > 2 ? Number(array.child.values[scalarOffset + 2 * stride]) : undefined;
|
|
691
|
+
const fourth = array.size > 3 ? Number(array.child.values[scalarOffset + 3 * stride]) : undefined;
|
|
692
|
+
builder.writeCoordinateFromDimension(x, y, dimension === 'xyz' || dimension === 'xyzm' ? third : undefined, dimension === 'xym' ? third : fourth, dimension);
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
if (array.kind === 'struct') {
|
|
696
|
+
const logical = (array.offset || 0) + index;
|
|
697
|
+
const read = (name) => {
|
|
698
|
+
const child = array.children[name];
|
|
699
|
+
return child?.kind === 'primitive'
|
|
700
|
+
? Number(child.values[(child.offset || 0) + logical * (child.stride || 1)])
|
|
701
|
+
: undefined;
|
|
702
|
+
};
|
|
703
|
+
builder.writeCoordinateFromDimension(read('x'), read('y'), read('z'), read('m'), dimension);
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
throw new Error('Invalid GeoArrow coordinate storage');
|
|
707
|
+
}
|
|
708
|
+
function requireListRange(array, index) {
|
|
709
|
+
if (array.kind !== 'list')
|
|
710
|
+
throw new Error('Invalid GeoArrow list storage');
|
|
711
|
+
return getListRange(array, index);
|
|
712
|
+
}
|
|
713
|
+
function canPromoteEncoding(source, target) {
|
|
714
|
+
return (source === target ||
|
|
715
|
+
(source === 'geoarrow.point' && target === 'geoarrow.multipoint') ||
|
|
716
|
+
(source === 'geoarrow.linestring' && target === 'geoarrow.multilinestring') ||
|
|
717
|
+
(source === 'geoarrow.polygon' && target === 'geoarrow.multipolygon'));
|
|
718
|
+
}
|
|
719
|
+
function isConcreteEncoding(encoding) {
|
|
720
|
+
return (encoding === 'geoarrow.point' ||
|
|
721
|
+
encoding === 'geoarrow.linestring' ||
|
|
722
|
+
encoding === 'geoarrow.polygon' ||
|
|
723
|
+
encoding === 'geoarrow.multipoint' ||
|
|
724
|
+
encoding === 'geoarrow.multilinestring' ||
|
|
725
|
+
encoding === 'geoarrow.multipolygon');
|
|
726
|
+
}
|
|
727
|
+
function getCanonicalTypeId(encoding, dimension) {
|
|
728
|
+
const families = [
|
|
729
|
+
'point',
|
|
730
|
+
'linestring',
|
|
731
|
+
'polygon',
|
|
732
|
+
'multipoint',
|
|
733
|
+
'multilinestring',
|
|
734
|
+
'multipolygon',
|
|
735
|
+
'geometrycollection'
|
|
736
|
+
];
|
|
737
|
+
const dimensions = ['xy', 'xyz', 'xym', 'xyzm'];
|
|
738
|
+
const family = encoding.replace('geoarrow.', '');
|
|
739
|
+
const familyIndex = families.indexOf(family);
|
|
740
|
+
const dimensionIndex = dimensions.indexOf(dimension);
|
|
741
|
+
return familyIndex < 0 || dimensionIndex < 0 ? 1 : familyIndex * 4 + dimensionIndex + 1;
|
|
742
|
+
}
|
|
743
|
+
function getColumnOffsetType(column) {
|
|
744
|
+
for (const chunk of column.chunks) {
|
|
745
|
+
const found = findOffsetType(chunk);
|
|
746
|
+
if (found)
|
|
747
|
+
return found;
|
|
748
|
+
}
|
|
749
|
+
return 'int32';
|
|
750
|
+
}
|
|
751
|
+
function findOffsetType(array) {
|
|
752
|
+
switch (array.kind) {
|
|
753
|
+
case 'list':
|
|
754
|
+
case 'serialized':
|
|
755
|
+
return array.offsets instanceof BigInt64Array ? 'int64' : 'int32';
|
|
756
|
+
case 'fixed-size-list':
|
|
757
|
+
return findOffsetType(array.child);
|
|
758
|
+
case 'struct': {
|
|
759
|
+
for (const child of Object.values(array.children)) {
|
|
760
|
+
const found = findOffsetType(child);
|
|
761
|
+
if (found)
|
|
762
|
+
return found;
|
|
763
|
+
}
|
|
764
|
+
return null;
|
|
765
|
+
}
|
|
766
|
+
case 'dense-union':
|
|
767
|
+
for (const child of array.children) {
|
|
768
|
+
const found = findOffsetType(child.data);
|
|
769
|
+
if (found)
|
|
770
|
+
return found;
|
|
771
|
+
}
|
|
772
|
+
return null;
|
|
773
|
+
default:
|
|
774
|
+
return null;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
function convertArrayOffsets(array, offsetType) {
|
|
778
|
+
const toOffsets = (offsets, offsetBase) => {
|
|
779
|
+
if (offsetType === 'int64') {
|
|
780
|
+
const result = new BigInt64Array(offsets.length);
|
|
781
|
+
for (let index = 0; index < offsets.length; index++)
|
|
782
|
+
result[index] = BigInt(offsets[index]);
|
|
783
|
+
return { offsets: result, ...(offsetBase === undefined ? {} : { offsetBase }) };
|
|
784
|
+
}
|
|
785
|
+
const result = new Int32Array(offsets.length);
|
|
786
|
+
const base = BigInt(offsetBase ?? 0);
|
|
787
|
+
for (let index = 0; index < offsets.length; index++) {
|
|
788
|
+
const value = BigInt(offsets[index]) - base;
|
|
789
|
+
if (value < -2147483648n || value > 2147483647n) {
|
|
790
|
+
throw new Error('GeoArrow offset cannot be represented as Int32');
|
|
791
|
+
}
|
|
792
|
+
result[index] = Number(value);
|
|
793
|
+
}
|
|
794
|
+
return { offsets: result, offsetBase: 0 };
|
|
795
|
+
};
|
|
796
|
+
switch (array.kind) {
|
|
797
|
+
case 'list':
|
|
798
|
+
if (array.offsets instanceof (offsetType === 'int64' ? BigInt64Array : Int32Array)) {
|
|
799
|
+
return { ...array, child: convertArrayOffsets(array.child, offsetType) };
|
|
800
|
+
}
|
|
801
|
+
return {
|
|
802
|
+
...array,
|
|
803
|
+
...toOffsets(array.offsets, array.offsetBase),
|
|
804
|
+
child: convertArrayOffsets(array.child, offsetType)
|
|
805
|
+
};
|
|
806
|
+
case 'serialized':
|
|
807
|
+
if (array.offsets instanceof (offsetType === 'int64' ? BigInt64Array : Int32Array))
|
|
808
|
+
return array;
|
|
809
|
+
return { ...array, ...toOffsets(array.offsets, array.offsetBase) };
|
|
810
|
+
case 'fixed-size-list':
|
|
811
|
+
return { ...array, child: convertArrayOffsets(array.child, offsetType) };
|
|
812
|
+
case 'struct':
|
|
813
|
+
return {
|
|
814
|
+
...array,
|
|
815
|
+
children: Object.fromEntries(Object.entries(array.children).map(([name, child]) => [
|
|
816
|
+
name,
|
|
817
|
+
convertArrayOffsets(child, offsetType)
|
|
818
|
+
]))
|
|
819
|
+
};
|
|
820
|
+
case 'dense-union':
|
|
821
|
+
return {
|
|
822
|
+
...array,
|
|
823
|
+
children: array.children.map(child => ({
|
|
824
|
+
...child,
|
|
825
|
+
data: convertArrayOffsets(child.data, offsetType)
|
|
826
|
+
}))
|
|
827
|
+
};
|
|
828
|
+
default:
|
|
829
|
+
return array;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
function getGeoArrowGeometryTypeName(encoding) {
|
|
833
|
+
return getGeoArrowGeometryType(encoding) || encoding.replace('geoarrow.', '');
|
|
834
|
+
}
|
|
835
|
+
function rewindArrayRings(array, encoding, outerClockwise) {
|
|
836
|
+
if (encoding === 'geoarrow.geometry' && array.kind === 'dense-union') {
|
|
837
|
+
let changed = false;
|
|
838
|
+
for (const child of array.children) {
|
|
839
|
+
if (rewindArrayRings(child.data, child.encoding || getEncodingFromChildName(child.name), outerClockwise))
|
|
840
|
+
changed = true;
|
|
841
|
+
}
|
|
842
|
+
return changed;
|
|
843
|
+
}
|
|
844
|
+
if (encoding === 'geoarrow.geometrycollection' && array.kind === 'list') {
|
|
845
|
+
if (array.child.kind !== 'dense-union')
|
|
846
|
+
return false;
|
|
847
|
+
let changed = false;
|
|
848
|
+
for (const child of array.child.children) {
|
|
849
|
+
if (rewindArrayRings(child.data, child.encoding || getEncodingFromChildName(child.name), outerClockwise))
|
|
850
|
+
changed = true;
|
|
851
|
+
}
|
|
852
|
+
return changed;
|
|
853
|
+
}
|
|
854
|
+
if (encoding !== 'geoarrow.polygon' && encoding !== 'geoarrow.multipolygon')
|
|
855
|
+
return false;
|
|
856
|
+
if (array.kind !== 'list' || array.child.kind !== 'list')
|
|
857
|
+
return false;
|
|
858
|
+
let changed = false;
|
|
859
|
+
for (let rowIndex = 0; rowIndex < array.length; rowIndex++) {
|
|
860
|
+
if (!isGeoArrowValueValid(array.validity, rowIndex))
|
|
861
|
+
continue;
|
|
862
|
+
const [, rowEnd] = getListRange(array, rowIndex);
|
|
863
|
+
const rowStart = getListRange(array, rowIndex)[0];
|
|
864
|
+
if (encoding === 'geoarrow.polygon') {
|
|
865
|
+
const rings = array.child;
|
|
866
|
+
if (rewindRingGroup(rings, rowStart, rowEnd, outerClockwise))
|
|
867
|
+
changed = true;
|
|
868
|
+
}
|
|
869
|
+
else {
|
|
870
|
+
const polygons = array.child;
|
|
871
|
+
for (let polygonIndex = rowStart; polygonIndex < rowEnd; polygonIndex++) {
|
|
872
|
+
const [ringStart, ringEnd] = getListRange(polygons, polygonIndex);
|
|
873
|
+
if (rewindRingGroup(polygons.child, ringStart, ringEnd, outerClockwise))
|
|
874
|
+
changed = true;
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
return changed;
|
|
879
|
+
}
|
|
880
|
+
function rewindRingGroup(rings, firstRing, lastRing, outerClockwise) {
|
|
881
|
+
if (rings.kind !== 'list')
|
|
882
|
+
return false;
|
|
883
|
+
const leaf = rings.child;
|
|
884
|
+
if (leaf.kind !== 'fixed-size-list' && leaf.kind !== 'struct')
|
|
885
|
+
return false;
|
|
886
|
+
let changed = false;
|
|
887
|
+
for (let ringIndex = firstRing; ringIndex < lastRing; ringIndex++) {
|
|
888
|
+
const [first, last] = getListRange(rings, ringIndex);
|
|
889
|
+
const area = getRingArea(leaf, first, last);
|
|
890
|
+
if (!Number.isFinite(area) || area === 0)
|
|
891
|
+
continue;
|
|
892
|
+
const shouldClockwise = ringIndex === firstRing ? outerClockwise : !outerClockwise;
|
|
893
|
+
if (area < 0 !== shouldClockwise) {
|
|
894
|
+
reverseCoordinateRange(leaf, first, last);
|
|
895
|
+
changed = true;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
return changed;
|
|
899
|
+
}
|
|
900
|
+
function getRingArea(leaf, first, last) {
|
|
901
|
+
let area = 0;
|
|
902
|
+
for (let index = first; index < last; index++) {
|
|
903
|
+
const current = readCoordinateAt(leaf, index);
|
|
904
|
+
const next = readCoordinateAt(leaf, index + 1 < last ? index + 1 : first);
|
|
905
|
+
if (!current || !next)
|
|
906
|
+
return Number.NaN;
|
|
907
|
+
area += current[0] * next[1] - next[0] * current[1];
|
|
908
|
+
}
|
|
909
|
+
return area / 2;
|
|
910
|
+
}
|
|
911
|
+
function reverseCoordinateRange(leaf, first, last) {
|
|
912
|
+
const values = [];
|
|
913
|
+
for (let index = first; index < last; index++)
|
|
914
|
+
values.push(readCoordinateAt(leaf, index));
|
|
915
|
+
values.reverse();
|
|
916
|
+
for (let index = first; index < last; index++)
|
|
917
|
+
writeCoordinateAt(leaf, index, values[index - first]);
|
|
918
|
+
}
|
|
919
|
+
function writeCoordinateAt(array, index, coordinate) {
|
|
920
|
+
if (array.kind === 'fixed-size-list' && array.child.kind === 'primitive') {
|
|
921
|
+
const logical = (array.offset || 0) + index;
|
|
922
|
+
for (let component = 0; component < array.size; component++) {
|
|
923
|
+
const scalar = (array.child.offset || 0) + logical * array.size + component;
|
|
924
|
+
array.child.values[scalar] = coordinate[component];
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
else if (array.kind === 'struct') {
|
|
928
|
+
const logical = (array.offset || 0) + index;
|
|
929
|
+
const names = ['x', 'y', 'z', 'm'];
|
|
930
|
+
for (let component = 0; component < names.length; component++) {
|
|
931
|
+
const child = array.children[names[component]];
|
|
932
|
+
if (child?.kind === 'primitive')
|
|
933
|
+
child.values[(child.offset || 0) + logical * (child.stride || 1)] = coordinate[component];
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
function collectCoordinateLeaves(column) {
|
|
938
|
+
const leaves = [];
|
|
939
|
+
for (const chunk of column.chunks)
|
|
940
|
+
collectArrayCoordinateLeaves(chunk, leaves);
|
|
941
|
+
return leaves;
|
|
942
|
+
}
|
|
943
|
+
function collectArrayCoordinateLeaves(array, leaves) {
|
|
944
|
+
switch (array.kind) {
|
|
945
|
+
case 'primitive':
|
|
946
|
+
if (array.values instanceof Float32Array || array.values instanceof Float64Array) {
|
|
947
|
+
leaves.push(array.values);
|
|
948
|
+
}
|
|
949
|
+
break;
|
|
950
|
+
case 'fixed-size-list':
|
|
951
|
+
case 'list':
|
|
952
|
+
collectArrayCoordinateLeaves(array.child, leaves);
|
|
953
|
+
break;
|
|
954
|
+
case 'struct':
|
|
955
|
+
for (const name of ['x', 'y', 'z', 'm']) {
|
|
956
|
+
const child = array.children[name];
|
|
957
|
+
if (child)
|
|
958
|
+
collectArrayCoordinateLeaves(child, leaves);
|
|
959
|
+
}
|
|
960
|
+
break;
|
|
961
|
+
case 'dense-union':
|
|
962
|
+
for (const child of array.children)
|
|
963
|
+
collectArrayCoordinateLeaves(child.data, leaves);
|
|
964
|
+
break;
|
|
965
|
+
default:
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
function getArrayDepth(array) {
|
|
970
|
+
switch (array.kind) {
|
|
971
|
+
case 'list':
|
|
972
|
+
case 'fixed-size-list':
|
|
973
|
+
return 1 + getArrayDepth(array.child);
|
|
974
|
+
case 'struct':
|
|
975
|
+
return 1 + Math.max(0, ...Object.values(array.children).map(getArrayDepth));
|
|
976
|
+
case 'dense-union':
|
|
977
|
+
return 1 + Math.max(0, ...array.children.map(child => getArrayDepth(child.data)));
|
|
978
|
+
default:
|
|
979
|
+
return 1;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
//# sourceMappingURL=kernels.js.map
|