@math.gl/geospatial 5.0.0-alpha.18 → 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,921 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import { formatWKT, inspectWKBHeader, parseWKT, visitWKB } from "../wkb/index.js";
|
|
5
|
+
import { WKBBuilder } from "../wkb/index.js";
|
|
6
|
+
import { getGeoArrowDimensionSize } from "./types.js";
|
|
7
|
+
import { GeoArrowBuilder, makeGeoArrowColumnFromGeometryRows } from "./builder.js";
|
|
8
|
+
import { getGeoArrowOffset, isGeoArrowValueValid, materializeGeometryRow } from "./layout.js";
|
|
9
|
+
const textEncoder = new TextEncoder();
|
|
10
|
+
const textDecoder = new TextDecoder();
|
|
11
|
+
const NULL_FAMILY = 255;
|
|
12
|
+
/** Decodes a GeoArrow WKB column into final native physical geometry buffers. */
|
|
13
|
+
export function decodeGeoArrowWKB(column, options = {}) {
|
|
14
|
+
if (column.encoding !== 'geoarrow.wkb')
|
|
15
|
+
throw new Error('Expected a geoarrow.wkb column');
|
|
16
|
+
const classifications = [];
|
|
17
|
+
const schemaKeys = new Set();
|
|
18
|
+
const collectionSchemas = [];
|
|
19
|
+
const rootFamilies = new Set();
|
|
20
|
+
let hasNulls = false;
|
|
21
|
+
let inferredDimension = 'xy';
|
|
22
|
+
for (const chunk of column.chunks) {
|
|
23
|
+
if (chunk.kind !== 'serialized')
|
|
24
|
+
throw new Error('Serialized column contains native storage');
|
|
25
|
+
const families = new Uint8Array(chunk.length).fill(NULL_FAMILY);
|
|
26
|
+
const dimensions = new Uint8Array(chunk.length);
|
|
27
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
28
|
+
if (!isGeoArrowValueValid(chunk.validity, rowIndex)) {
|
|
29
|
+
hasNulls = true;
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const bytes = getSerializedBytes(chunk, rowIndex);
|
|
33
|
+
const rootHeader = inspectWKBHeader(bytes);
|
|
34
|
+
const rootFamily = getGeometryFamilyIndex(rootHeader.geometryType);
|
|
35
|
+
let rowDimension = rootHeader.dimension;
|
|
36
|
+
if (rootHeader.geometryType === 'GeometryCollection') {
|
|
37
|
+
const collectionStack = [];
|
|
38
|
+
let concreteRootDepth = -1;
|
|
39
|
+
visitWKB(bytes, {
|
|
40
|
+
geometry: (header, _count, depth) => {
|
|
41
|
+
var _a;
|
|
42
|
+
rowDimension = mergeDimensions(rowDimension, header.dimension);
|
|
43
|
+
if (concreteRootDepth >= 0 && depth > concreteRootDepth)
|
|
44
|
+
return;
|
|
45
|
+
concreteRootDepth = -1;
|
|
46
|
+
while (collectionStack.length &&
|
|
47
|
+
depth <= collectionStack[collectionStack.length - 1].depth) {
|
|
48
|
+
collectionStack.pop();
|
|
49
|
+
}
|
|
50
|
+
const parent = collectionStack[collectionStack.length - 1];
|
|
51
|
+
if (parent) {
|
|
52
|
+
collectionSchemas[_a = parent.level] || (collectionSchemas[_a] = new Set());
|
|
53
|
+
collectionSchemas[parent.level].add(getGeometryTypeId(header.geometryType, header.dimension));
|
|
54
|
+
}
|
|
55
|
+
if (header.geometryType === 'GeometryCollection') {
|
|
56
|
+
collectionStack.push({ depth, level: parent ? parent.level + 1 : 0 });
|
|
57
|
+
}
|
|
58
|
+
else if (parent) {
|
|
59
|
+
concreteRootDepth = depth;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, options.traversal);
|
|
63
|
+
}
|
|
64
|
+
families[rowIndex] = rootFamily;
|
|
65
|
+
dimensions[rowIndex] = getDimensionIndex(rowDimension);
|
|
66
|
+
rootFamilies.add(rootFamily);
|
|
67
|
+
schemaKeys.add(getGeometryTypeIdFromIndices(rootFamily, dimensions[rowIndex]));
|
|
68
|
+
inferredDimension = mergeDimensions(inferredDimension, rowDimension);
|
|
69
|
+
}
|
|
70
|
+
classifications.push({ families, dimensions });
|
|
71
|
+
}
|
|
72
|
+
const dimension = resolveDecodeDimension(options.dimension, column.dimension, inferredDimension);
|
|
73
|
+
const forceDimension = Boolean(options.dimension && options.dimension !== 'infer');
|
|
74
|
+
if (forceDimension) {
|
|
75
|
+
schemaKeys.clear();
|
|
76
|
+
for (const classification of classifications) {
|
|
77
|
+
for (let rowIndex = 0; rowIndex < classification.families.length; rowIndex++) {
|
|
78
|
+
const family = classification.families[rowIndex];
|
|
79
|
+
if (family === NULL_FAMILY)
|
|
80
|
+
continue;
|
|
81
|
+
classification.dimensions[rowIndex] = getDimensionIndex(dimension);
|
|
82
|
+
schemaKeys.add(getGeometryTypeIdFromIndices(family, getDimensionIndex(dimension)));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const encoding = resolveDecodeEncoding(options.encoding, rootFamilies);
|
|
87
|
+
validateDecodeEncoding(encoding, rootFamilies);
|
|
88
|
+
const builderOptions = {
|
|
89
|
+
dimension,
|
|
90
|
+
coordinateLayout: options.coordinateLayout || 'interleaved',
|
|
91
|
+
coordinateType: options.coordinateType || 'float64',
|
|
92
|
+
offsetType: options.offsetType || 'int32'
|
|
93
|
+
};
|
|
94
|
+
if (encoding !== 'geoarrow.geometry' && encoding !== 'geoarrow.geometrycollection') {
|
|
95
|
+
const chunks = column.chunks.map((chunk, chunkIndex) => decodeConcreteWKBChunk(chunk, classifications[chunkIndex], encoding, builderOptions, options.traversal));
|
|
96
|
+
return copyMetadata(column, {
|
|
97
|
+
encoding,
|
|
98
|
+
dimension,
|
|
99
|
+
coordinateLayout: builderOptions.coordinateLayout,
|
|
100
|
+
chunks
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
if (encoding === 'geoarrow.geometrycollection') {
|
|
104
|
+
const stableCollectionSchemas = normalizeCollectionSchemas(collectionSchemas, dimension, forceDimension);
|
|
105
|
+
const chunks = column.chunks.map((chunk, chunkIndex) => decodeGeometryCollectionWKBChunk(chunk, classifications[chunkIndex], undefined, stableCollectionSchemas, builderOptions, options.traversal, forceDimension ? dimension : undefined));
|
|
106
|
+
return copyMetadata(column, {
|
|
107
|
+
encoding,
|
|
108
|
+
dimension,
|
|
109
|
+
coordinateLayout: builderOptions.coordinateLayout,
|
|
110
|
+
chunks
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
if (schemaKeys.size === 0)
|
|
114
|
+
schemaKeys.add(getGeometryTypeId('Point', dimension));
|
|
115
|
+
if (hasNulls)
|
|
116
|
+
schemaKeys.add(getGeometryTypeId('Point', dimension));
|
|
117
|
+
const stableSchema = [...schemaKeys].sort((left, right) => left - right);
|
|
118
|
+
const chunks = column.chunks.map((chunk, chunkIndex) => decodeUnionWKBChunk(chunk, classifications[chunkIndex], stableSchema, normalizeCollectionSchemas(collectionSchemas, dimension, forceDimension), builderOptions, options.traversal, forceDimension ? dimension : undefined));
|
|
119
|
+
return copyMetadata(column, {
|
|
120
|
+
encoding: 'geoarrow.geometry',
|
|
121
|
+
dimension,
|
|
122
|
+
coordinateLayout: builderOptions.coordinateLayout,
|
|
123
|
+
chunks
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/** Counts vertices in serialized WKB chunks without decoding ordinates or allocating rows. */
|
|
127
|
+
export function getGeoArrowWKBVertexCount(column, traversal) {
|
|
128
|
+
if (column.encoding !== 'geoarrow.wkb')
|
|
129
|
+
throw new Error('Expected a geoarrow.wkb column');
|
|
130
|
+
let vertexCount = 0;
|
|
131
|
+
for (const chunk of column.chunks) {
|
|
132
|
+
if (chunk.kind !== 'serialized')
|
|
133
|
+
throw new Error('Serialized column contains native storage');
|
|
134
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
135
|
+
if (!isGeoArrowValueValid(chunk.validity, rowIndex))
|
|
136
|
+
continue;
|
|
137
|
+
visitWKB(getSerializedBytes(chunk, rowIndex), {
|
|
138
|
+
geometry: (header, count) => {
|
|
139
|
+
if (header.geometryType === 'Point')
|
|
140
|
+
vertexCount++;
|
|
141
|
+
else if (header.geometryType === 'LineString')
|
|
142
|
+
vertexCount += count || 0;
|
|
143
|
+
},
|
|
144
|
+
ring: pointCount => {
|
|
145
|
+
vertexCount += pointCount;
|
|
146
|
+
}
|
|
147
|
+
}, traversal);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return vertexCount;
|
|
151
|
+
}
|
|
152
|
+
function decodeConcreteWKBChunk(chunk, classification, encoding, options, traversal) {
|
|
153
|
+
const measure = new GeoArrowBuilder({ ...options, encoding, mode: 'measure' });
|
|
154
|
+
replaySerializedChunk(chunk, classification, encoding, measure, traversal);
|
|
155
|
+
const write = new GeoArrowBuilder({
|
|
156
|
+
...options,
|
|
157
|
+
encoding,
|
|
158
|
+
mode: 'write',
|
|
159
|
+
target: measure.allocateTarget()
|
|
160
|
+
});
|
|
161
|
+
replaySerializedChunk(chunk, classification, encoding, write, traversal);
|
|
162
|
+
return write.finish().chunks[0];
|
|
163
|
+
}
|
|
164
|
+
function replaySerializedChunk(chunk, classification, encoding, builder, traversal) {
|
|
165
|
+
const targetType = geometryTypeFromEncoding(encoding);
|
|
166
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
167
|
+
if (classification.families[rowIndex] === NULL_FAMILY)
|
|
168
|
+
builder.append(null);
|
|
169
|
+
else
|
|
170
|
+
visitWKBIntoBuilder(getSerializedBytes(chunk, rowIndex), builder, targetType, traversal);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function decodeUnionWKBChunk(chunk, classification, stableSchema, collectionSchemas, options, traversal, childDimensionOverride) {
|
|
174
|
+
const measureBuilders = new Map();
|
|
175
|
+
for (const key of stableSchema) {
|
|
176
|
+
const type = getGeometryTypeFromId(key);
|
|
177
|
+
if (type !== 'GeometryCollection') {
|
|
178
|
+
const encoding = encodingFromGeometryType(type);
|
|
179
|
+
measureBuilders.set(key, new GeoArrowBuilder({
|
|
180
|
+
...options,
|
|
181
|
+
encoding,
|
|
182
|
+
dimension: getDimensionFromId(key),
|
|
183
|
+
mode: 'measure'
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
const typeIds = new Int8Array(chunk.length);
|
|
188
|
+
const valueOffsets = new Int32Array(chunk.length);
|
|
189
|
+
const childCounts = new Map();
|
|
190
|
+
const nullKey = stableSchema[0];
|
|
191
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
192
|
+
const family = classification.families[rowIndex];
|
|
193
|
+
const key = family === NULL_FAMILY
|
|
194
|
+
? nullKey
|
|
195
|
+
: getGeometryTypeIdFromIndices(family, classification.dimensions[rowIndex]);
|
|
196
|
+
typeIds[rowIndex] = key;
|
|
197
|
+
valueOffsets[rowIndex] = childCounts.get(key) || 0;
|
|
198
|
+
childCounts.set(key, valueOffsets[rowIndex] + 1);
|
|
199
|
+
const builder = measureBuilders.get(key);
|
|
200
|
+
if (builder) {
|
|
201
|
+
if (family === NULL_FAMILY)
|
|
202
|
+
builder.append(null);
|
|
203
|
+
else
|
|
204
|
+
visitWKBIntoBuilder(getSerializedBytes(chunk, rowIndex), builder, getConcreteGeometryTypeFromId(key), traversal);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
const writeBuilders = new Map();
|
|
208
|
+
for (const key of stableSchema) {
|
|
209
|
+
if (getGeometryTypeFromId(key) === 'GeometryCollection')
|
|
210
|
+
continue;
|
|
211
|
+
const measure = measureBuilders.get(key);
|
|
212
|
+
writeBuilders.set(key, new GeoArrowBuilder({
|
|
213
|
+
...options,
|
|
214
|
+
encoding: encodingFromGeometryType(getConcreteGeometryTypeFromId(key)),
|
|
215
|
+
dimension: getDimensionFromId(key),
|
|
216
|
+
mode: 'write',
|
|
217
|
+
target: measure.allocateTarget()
|
|
218
|
+
}));
|
|
219
|
+
}
|
|
220
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
221
|
+
const family = classification.families[rowIndex];
|
|
222
|
+
const key = family === NULL_FAMILY
|
|
223
|
+
? nullKey
|
|
224
|
+
: getGeometryTypeIdFromIndices(family, classification.dimensions[rowIndex]);
|
|
225
|
+
const builder = writeBuilders.get(key);
|
|
226
|
+
if (builder) {
|
|
227
|
+
if (family === NULL_FAMILY)
|
|
228
|
+
builder.append(null);
|
|
229
|
+
else
|
|
230
|
+
visitWKBIntoBuilder(getSerializedBytes(chunk, rowIndex), builder, getConcreteGeometryTypeFromId(key), traversal);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
const children = stableSchema.map(key => {
|
|
234
|
+
const type = getGeometryTypeFromId(key);
|
|
235
|
+
if (type === 'GeometryCollection') {
|
|
236
|
+
return {
|
|
237
|
+
name: type,
|
|
238
|
+
typeId: key,
|
|
239
|
+
encoding: 'geoarrow.geometrycollection',
|
|
240
|
+
dimension: getDimensionFromId(key),
|
|
241
|
+
coordinateLayout: options.coordinateLayout,
|
|
242
|
+
data: decodeGeometryCollectionWKBChunk(chunk, classification, key, collectionSchemas, { ...options, dimension: getDimensionFromId(key) }, traversal, childDimensionOverride)
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
const built = writeBuilders.get(key).finish();
|
|
246
|
+
return {
|
|
247
|
+
name: getGeometryTypeFromId(key),
|
|
248
|
+
typeId: key,
|
|
249
|
+
encoding: built.encoding,
|
|
250
|
+
dimension: built.dimension,
|
|
251
|
+
coordinateLayout: built.coordinateLayout,
|
|
252
|
+
data: built.chunks[0]
|
|
253
|
+
};
|
|
254
|
+
});
|
|
255
|
+
return { kind: 'dense-union', length: chunk.length, typeIds, valueOffsets, children };
|
|
256
|
+
}
|
|
257
|
+
function decodeGeometryCollectionWKBChunk(chunk, classification, selectorKey, schemas, options, traversal, childDimensionOverride) {
|
|
258
|
+
const measureLevels = schemas.map(schema => makeCollectionMeasureLevel(schema, options));
|
|
259
|
+
if (measureLevels.length === 0)
|
|
260
|
+
measureLevels.push(makeCollectionMeasureLevel([], options));
|
|
261
|
+
forEachSelectedCollectionRow(chunk, classification, selectorKey, (bytes, valid) => {
|
|
262
|
+
if (!valid) {
|
|
263
|
+
measureLevels[0].rowCount++;
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
replayWKBCollection(bytes, measureLevels, undefined, options.dimension, traversal, childDimensionOverride);
|
|
267
|
+
});
|
|
268
|
+
const writeLevels = measureLevels.map(level => makeCollectionWriteLevel(level, options));
|
|
269
|
+
forEachSelectedCollectionRow(chunk, classification, selectorKey, (bytes, valid) => {
|
|
270
|
+
if (!valid) {
|
|
271
|
+
writeCollectionRow(writeLevels[0], 0);
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
replayWKBCollection(bytes, measureLevels, writeLevels, options.dimension, traversal, childDimensionOverride);
|
|
275
|
+
});
|
|
276
|
+
const root = makeCollectionLevelArray(0, measureLevels, writeLevels, options);
|
|
277
|
+
if (selectorKey !== undefined)
|
|
278
|
+
return root;
|
|
279
|
+
const validity = new Uint8Array(Math.ceil(root.length / 8));
|
|
280
|
+
for (let rowIndex = 0; rowIndex < classification.families.length; rowIndex++) {
|
|
281
|
+
if (classification.families[rowIndex] === getGeometryFamilyIndex('GeometryCollection')) {
|
|
282
|
+
validity[rowIndex >> 3] |= 1 << (rowIndex & 7);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return { ...root, validity: { values: validity } };
|
|
286
|
+
}
|
|
287
|
+
function forEachSelectedCollectionRow(chunk, classification, selectorKey, visitor) {
|
|
288
|
+
const collectionFamily = getGeometryFamilyIndex('GeometryCollection');
|
|
289
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
290
|
+
const family = classification.families[rowIndex];
|
|
291
|
+
if (selectorKey === undefined) {
|
|
292
|
+
if (family === NULL_FAMILY)
|
|
293
|
+
visitor(undefined, false);
|
|
294
|
+
else if (family === collectionFamily)
|
|
295
|
+
visitor(getSerializedBytes(chunk, rowIndex), true);
|
|
296
|
+
else
|
|
297
|
+
throw new Error('Rows cannot be represented as geoarrow.geometrycollection');
|
|
298
|
+
}
|
|
299
|
+
else if (family === collectionFamily &&
|
|
300
|
+
getGeometryTypeIdFromIndices(family, classification.dimensions[rowIndex]) === selectorKey) {
|
|
301
|
+
visitor(getSerializedBytes(chunk, rowIndex), true);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function makeCollectionMeasureLevel(schema, options) {
|
|
306
|
+
const builders = new Map();
|
|
307
|
+
for (const key of schema) {
|
|
308
|
+
const type = getGeometryTypeFromId(key);
|
|
309
|
+
if (type !== 'GeometryCollection') {
|
|
310
|
+
builders.set(key, new GeoArrowBuilder({
|
|
311
|
+
...options,
|
|
312
|
+
encoding: encodingFromGeometryType(type),
|
|
313
|
+
dimension: getDimensionFromId(key),
|
|
314
|
+
mode: 'measure'
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return { schema, rowCount: 0, childCount: 0, builders };
|
|
319
|
+
}
|
|
320
|
+
function makeCollectionWriteLevel(measure, options) {
|
|
321
|
+
const OffsetArray = options.offsetType === 'int64' ? BigInt64Array : Int32Array;
|
|
322
|
+
const builders = new Map();
|
|
323
|
+
for (const [key, builder] of measure.builders) {
|
|
324
|
+
builders.set(key, new GeoArrowBuilder({
|
|
325
|
+
...options,
|
|
326
|
+
encoding: encodingFromGeometryType(getConcreteGeometryTypeFromId(key)),
|
|
327
|
+
dimension: getDimensionFromId(key),
|
|
328
|
+
mode: 'write',
|
|
329
|
+
target: builder.allocateTarget()
|
|
330
|
+
}));
|
|
331
|
+
}
|
|
332
|
+
return {
|
|
333
|
+
schema: measure.schema,
|
|
334
|
+
rowCursor: 0,
|
|
335
|
+
childCursor: 0,
|
|
336
|
+
offsets: new OffsetArray(measure.rowCount + 1),
|
|
337
|
+
typeIds: new Int8Array(measure.childCount),
|
|
338
|
+
valueOffsets: new Int32Array(measure.childCount),
|
|
339
|
+
childCounts: new Map(),
|
|
340
|
+
builders
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function replayWKBCollection(bytes, measureLevels, writeLevels, collectionDimension, traversal, childDimensionOverride) {
|
|
344
|
+
const collectionStack = [];
|
|
345
|
+
let active;
|
|
346
|
+
const finishActive = () => {
|
|
347
|
+
active?.builder.endGeometry();
|
|
348
|
+
active = undefined;
|
|
349
|
+
};
|
|
350
|
+
visitWKB(bytes, {
|
|
351
|
+
geometry: (header, count, depth) => {
|
|
352
|
+
if (active && depth > active.rootDepth) {
|
|
353
|
+
if (active.rootType === 'MultiLineString' && header.geometryType === 'LineString') {
|
|
354
|
+
active.builder.beginRing(count);
|
|
355
|
+
}
|
|
356
|
+
else if (active.rootType === 'MultiPolygon' && header.geometryType === 'Polygon') {
|
|
357
|
+
active.builder.beginPolygon();
|
|
358
|
+
}
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
finishActive();
|
|
362
|
+
while (collectionStack.length &&
|
|
363
|
+
depth <= collectionStack[collectionStack.length - 1].depth) {
|
|
364
|
+
collectionStack.pop();
|
|
365
|
+
}
|
|
366
|
+
const parent = collectionStack[collectionStack.length - 1];
|
|
367
|
+
if (header.geometryType === 'GeometryCollection') {
|
|
368
|
+
if (parent) {
|
|
369
|
+
addCollectionChild(measureLevels[parent.level], writeLevels?.[parent.level], getGeometryTypeId('GeometryCollection', collectionDimension));
|
|
370
|
+
}
|
|
371
|
+
const level = parent ? parent.level + 1 : 0;
|
|
372
|
+
if (!measureLevels[level]) {
|
|
373
|
+
measureLevels[level] = makeCollectionMeasureLevel([], {
|
|
374
|
+
dimension: collectionDimension,
|
|
375
|
+
coordinateLayout: 'interleaved',
|
|
376
|
+
coordinateType: 'float64',
|
|
377
|
+
offsetType: 'int32'
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
if (writeLevels)
|
|
381
|
+
writeCollectionRow(writeLevels[level], count || 0);
|
|
382
|
+
else
|
|
383
|
+
measureLevels[level].rowCount++;
|
|
384
|
+
collectionStack.push({ depth, level });
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (!parent)
|
|
388
|
+
throw new Error('Expected a GeometryCollection root');
|
|
389
|
+
const key = getGeometryTypeId(header.geometryType, childDimensionOverride || header.dimension);
|
|
390
|
+
addCollectionChild(measureLevels[parent.level], writeLevels?.[parent.level], key);
|
|
391
|
+
const builder = writeLevels
|
|
392
|
+
? writeLevels[parent.level].builders.get(key)
|
|
393
|
+
: measureLevels[parent.level].builders.get(key);
|
|
394
|
+
if (!builder)
|
|
395
|
+
throw new Error(`Missing GeometryCollection child schema for type ID ${key}`);
|
|
396
|
+
builder.beginGeometry(header.geometryType, header.dimension, count);
|
|
397
|
+
active = { builder, rootDepth: depth, rootType: header.geometryType };
|
|
398
|
+
},
|
|
399
|
+
ring: pointCount => active?.builder.beginRing(pointCount),
|
|
400
|
+
coordinate: (x, y, z, m, dimension) => active?.builder.writeCoordinateFromDimension(x, y, z, m, dimension)
|
|
401
|
+
}, traversal);
|
|
402
|
+
finishActive();
|
|
403
|
+
}
|
|
404
|
+
function addCollectionChild(measure, write, key) {
|
|
405
|
+
if (!write) {
|
|
406
|
+
measure.childCount++;
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
const index = write.childCursor++;
|
|
410
|
+
write.typeIds[index] = key;
|
|
411
|
+
write.valueOffsets[index] = write.childCounts.get(key) || 0;
|
|
412
|
+
write.childCounts.set(key, write.valueOffsets[index] + 1);
|
|
413
|
+
}
|
|
414
|
+
function writeCollectionRow(level, childCount) {
|
|
415
|
+
level.rowCursor++;
|
|
416
|
+
setGeoArrowOffset(level.offsets, level.rowCursor, level.childCursor + childCount);
|
|
417
|
+
}
|
|
418
|
+
function makeCollectionLevelArray(levelIndex, measureLevels, writeLevels, options) {
|
|
419
|
+
const measure = measureLevels[levelIndex];
|
|
420
|
+
const write = writeLevels[levelIndex];
|
|
421
|
+
const children = measure.schema.map(key => {
|
|
422
|
+
const type = getGeometryTypeFromId(key);
|
|
423
|
+
if (type === 'GeometryCollection') {
|
|
424
|
+
return {
|
|
425
|
+
name: type,
|
|
426
|
+
typeId: key,
|
|
427
|
+
encoding: 'geoarrow.geometrycollection',
|
|
428
|
+
dimension: getDimensionFromId(key),
|
|
429
|
+
coordinateLayout: options.coordinateLayout,
|
|
430
|
+
data: makeCollectionLevelArray(levelIndex + 1, measureLevels, writeLevels, options)
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
const built = write.builders.get(key).finish();
|
|
434
|
+
return {
|
|
435
|
+
name: type,
|
|
436
|
+
typeId: key,
|
|
437
|
+
encoding: built.encoding,
|
|
438
|
+
dimension: built.dimension,
|
|
439
|
+
coordinateLayout: built.coordinateLayout,
|
|
440
|
+
data: built.chunks[0]
|
|
441
|
+
};
|
|
442
|
+
});
|
|
443
|
+
return {
|
|
444
|
+
kind: 'list',
|
|
445
|
+
length: measure.rowCount,
|
|
446
|
+
offsets: write.offsets,
|
|
447
|
+
child: {
|
|
448
|
+
kind: 'dense-union',
|
|
449
|
+
length: measure.childCount,
|
|
450
|
+
typeIds: write.typeIds,
|
|
451
|
+
valueOffsets: write.valueOffsets,
|
|
452
|
+
children
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function setGeoArrowOffset(offsets, index, value) {
|
|
457
|
+
if (offsets instanceof BigInt64Array)
|
|
458
|
+
offsets[index] = BigInt(value);
|
|
459
|
+
else
|
|
460
|
+
offsets[index] = value;
|
|
461
|
+
}
|
|
462
|
+
function normalizeCollectionSchemas(schemas, dimension, forceDimension) {
|
|
463
|
+
return schemas.map(schema => [...schema]
|
|
464
|
+
.map(key => forceDimension || getGeometryTypeFromId(key) === 'GeometryCollection'
|
|
465
|
+
? getGeometryTypeId(getGeometryTypeFromId(key), dimension)
|
|
466
|
+
: key)
|
|
467
|
+
.filter((key, index, values) => values.indexOf(key) === index)
|
|
468
|
+
.sort((left, right) => left - right));
|
|
469
|
+
}
|
|
470
|
+
/** Replays one serialized geometry directly into a two-pass GeoArrowBuilder. */
|
|
471
|
+
function visitWKBIntoBuilder(bytes, builder, targetType, traversal) {
|
|
472
|
+
let rootType;
|
|
473
|
+
visitWKB(bytes, {
|
|
474
|
+
geometry: (header, _count, depth) => {
|
|
475
|
+
if (depth === 0) {
|
|
476
|
+
rootType = header.geometryType;
|
|
477
|
+
builder.beginGeometry(targetType, header.dimension, _count);
|
|
478
|
+
if (rootType === 'LineString' && targetType === 'MultiLineString')
|
|
479
|
+
builder.beginRing(_count);
|
|
480
|
+
if (rootType === 'Polygon' && targetType === 'MultiPolygon')
|
|
481
|
+
builder.beginPolygon();
|
|
482
|
+
}
|
|
483
|
+
else if (rootType === 'MultiLineString' && header.geometryType === 'LineString') {
|
|
484
|
+
builder.beginRing(_count);
|
|
485
|
+
}
|
|
486
|
+
else if (rootType === 'MultiPolygon' && header.geometryType === 'Polygon') {
|
|
487
|
+
builder.beginPolygon();
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
ring: pointCount => {
|
|
491
|
+
if (rootType === 'Polygon' || rootType === 'MultiPolygon')
|
|
492
|
+
builder.beginRing(pointCount);
|
|
493
|
+
},
|
|
494
|
+
coordinate: (x, y, z, m, dimension) => {
|
|
495
|
+
builder.writeCoordinateFromDimension(x, y, z, m, dimension);
|
|
496
|
+
}
|
|
497
|
+
}, traversal);
|
|
498
|
+
builder.endGeometry();
|
|
499
|
+
}
|
|
500
|
+
function encodingFromGeometryType(type) {
|
|
501
|
+
if (type === 'GeometryCollection')
|
|
502
|
+
throw new Error('GeometryCollection requires collection storage');
|
|
503
|
+
return `geoarrow.${type.toLowerCase()}`;
|
|
504
|
+
}
|
|
505
|
+
function getGeometryTypeId(type, dimension) {
|
|
506
|
+
return getGeometryTypeIdFromIndices(getGeometryFamilyIndex(type), getDimensionIndex(dimension));
|
|
507
|
+
}
|
|
508
|
+
const GEOMETRY_TYPES = [
|
|
509
|
+
'Point',
|
|
510
|
+
'LineString',
|
|
511
|
+
'Polygon',
|
|
512
|
+
'MultiPoint',
|
|
513
|
+
'MultiLineString',
|
|
514
|
+
'MultiPolygon',
|
|
515
|
+
'GeometryCollection'
|
|
516
|
+
];
|
|
517
|
+
const DIMENSIONS = ['xy', 'xyz', 'xym', 'xyzm'];
|
|
518
|
+
function getGeometryFamilyIndex(type) {
|
|
519
|
+
return GEOMETRY_TYPES.indexOf(type);
|
|
520
|
+
}
|
|
521
|
+
function getDimensionIndex(dimension) {
|
|
522
|
+
return DIMENSIONS.indexOf(dimension);
|
|
523
|
+
}
|
|
524
|
+
function getGeometryTypeIdFromIndices(family, dimension) {
|
|
525
|
+
return family * 4 + dimension + 1;
|
|
526
|
+
}
|
|
527
|
+
function getGeometryTypeFromId(typeId) {
|
|
528
|
+
return GEOMETRY_TYPES[Math.floor((typeId - 1) / 4)];
|
|
529
|
+
}
|
|
530
|
+
function getConcreteGeometryTypeFromId(typeId) {
|
|
531
|
+
const type = getGeometryTypeFromId(typeId);
|
|
532
|
+
if (type === 'GeometryCollection')
|
|
533
|
+
throw new Error('GeometryCollection requires collection storage');
|
|
534
|
+
return type;
|
|
535
|
+
}
|
|
536
|
+
function getDimensionFromId(typeId) {
|
|
537
|
+
return DIMENSIONS[(typeId - 1) % 4];
|
|
538
|
+
}
|
|
539
|
+
function mergeDimensions(left, right) {
|
|
540
|
+
const hasZ = left === 'xyz' || left === 'xyzm' || right === 'xyz' || right === 'xyzm';
|
|
541
|
+
const hasM = left === 'xym' || left === 'xyzm' || right === 'xym' || right === 'xyzm';
|
|
542
|
+
return hasZ && hasM ? 'xyzm' : hasZ ? 'xyz' : hasM ? 'xym' : 'xy';
|
|
543
|
+
}
|
|
544
|
+
function resolveDecodeDimension(requested, declared, inferred) {
|
|
545
|
+
if (!requested || requested === 'infer')
|
|
546
|
+
return inferred;
|
|
547
|
+
return requested === 'preserve' ? declared : requested;
|
|
548
|
+
}
|
|
549
|
+
function resolveDecodeEncoding(requested, families) {
|
|
550
|
+
if (requested && requested !== 'native')
|
|
551
|
+
return requested;
|
|
552
|
+
if (families.size !== 1)
|
|
553
|
+
return 'geoarrow.geometry';
|
|
554
|
+
const type = GEOMETRY_TYPES[[...families][0]];
|
|
555
|
+
return type === 'GeometryCollection'
|
|
556
|
+
? 'geoarrow.geometrycollection'
|
|
557
|
+
: encodingFromGeometryType(type);
|
|
558
|
+
}
|
|
559
|
+
function validateDecodeEncoding(encoding, families) {
|
|
560
|
+
if (encoding === 'geoarrow.geometry')
|
|
561
|
+
return;
|
|
562
|
+
if (encoding === 'geoarrow.geometrycollection') {
|
|
563
|
+
const collectionFamily = getGeometryFamilyIndex('GeometryCollection');
|
|
564
|
+
if ([...families].some(family => family !== collectionFamily)) {
|
|
565
|
+
throw new Error('Rows cannot be represented as geoarrow.geometrycollection');
|
|
566
|
+
}
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
const targetType = geometryTypeFromEncoding(encoding);
|
|
570
|
+
for (const family of families) {
|
|
571
|
+
const sourceType = GEOMETRY_TYPES[family];
|
|
572
|
+
const promotable = sourceType === targetType ||
|
|
573
|
+
(sourceType === 'Point' && targetType === 'MultiPoint') ||
|
|
574
|
+
(sourceType === 'LineString' && targetType === 'MultiLineString') ||
|
|
575
|
+
(sourceType === 'Polygon' && targetType === 'MultiPolygon');
|
|
576
|
+
if (!promotable)
|
|
577
|
+
throw new Error(`Rows cannot be represented as ${encoding}`);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
function geometryTypeFromEncoding(encoding) {
|
|
581
|
+
const type = GEOMETRY_TYPES.find(candidate => `geoarrow.${candidate.toLowerCase()}` === encoding);
|
|
582
|
+
if (!type || type === 'GeometryCollection')
|
|
583
|
+
throw new Error(`Unsupported target encoding ${encoding}`);
|
|
584
|
+
return type;
|
|
585
|
+
}
|
|
586
|
+
/** Encodes a native GeoArrow column as variable-width WKB bytes. */
|
|
587
|
+
export function encodeGeoArrowWKB(column) {
|
|
588
|
+
if (column.encoding === 'geoarrow.wkb')
|
|
589
|
+
return column;
|
|
590
|
+
return copyMetadata(column, {
|
|
591
|
+
encoding: 'geoarrow.wkb',
|
|
592
|
+
dimension: column.dimension,
|
|
593
|
+
coordinateLayout: null,
|
|
594
|
+
chunks: column.chunks.map(chunk => encodeWKBChunk(column, chunk))
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
function encodeWKBChunk(column, chunk) {
|
|
598
|
+
const offsets = new Int32Array(chunk.length + 1);
|
|
599
|
+
const validity = new Uint8Array(Math.ceil(chunk.length / 8));
|
|
600
|
+
let nullCount = 0;
|
|
601
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
602
|
+
let byteLength = 0;
|
|
603
|
+
if (isPhysicalGeometryRowValid(chunk, rowIndex, column.encoding)) {
|
|
604
|
+
const dimension = getPhysicalGeometryDimension(chunk, rowIndex, column.encoding, column.dimension);
|
|
605
|
+
const builder = new WKBBuilder({ mode: 'measure', dimension });
|
|
606
|
+
writePhysicalGeometry(builder, chunk, rowIndex, column.encoding, dimension);
|
|
607
|
+
byteLength = builder.finishGeometry();
|
|
608
|
+
validity[rowIndex >> 3] |= 1 << (rowIndex & 7);
|
|
609
|
+
}
|
|
610
|
+
else {
|
|
611
|
+
nullCount++;
|
|
612
|
+
}
|
|
613
|
+
const nextOffset = offsets[rowIndex] + byteLength;
|
|
614
|
+
if (nextOffset > 0x7fffffff)
|
|
615
|
+
throw new Error('WKB geometry chunk exceeds Int32 offsets');
|
|
616
|
+
offsets[rowIndex + 1] = nextOffset;
|
|
617
|
+
}
|
|
618
|
+
const values = new Uint8Array(offsets[offsets.length - 1]);
|
|
619
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
620
|
+
if (!isPhysicalGeometryRowValid(chunk, rowIndex, column.encoding))
|
|
621
|
+
continue;
|
|
622
|
+
const dimension = getPhysicalGeometryDimension(chunk, rowIndex, column.encoding, column.dimension);
|
|
623
|
+
const builder = new WKBBuilder({
|
|
624
|
+
mode: 'write',
|
|
625
|
+
target: values,
|
|
626
|
+
byteOffset: offsets[rowIndex],
|
|
627
|
+
dimension
|
|
628
|
+
});
|
|
629
|
+
writePhysicalGeometry(builder, chunk, rowIndex, column.encoding, dimension);
|
|
630
|
+
if (offsets[rowIndex] + builder.finishGeometry() !== offsets[rowIndex + 1]) {
|
|
631
|
+
throw new Error('WKB measure and write passes produced different byte lengths');
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return {
|
|
635
|
+
kind: 'serialized',
|
|
636
|
+
encoding: 'binary',
|
|
637
|
+
length: chunk.length,
|
|
638
|
+
offsets,
|
|
639
|
+
values,
|
|
640
|
+
...(nullCount ? { validity: { values: validity } } : {})
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
function isPhysicalGeometryRowValid(array, rowIndex, encoding) {
|
|
644
|
+
if (!isGeoArrowValueValid(array.validity, rowIndex))
|
|
645
|
+
return false;
|
|
646
|
+
if (encoding !== 'geoarrow.geometry' || array.kind !== 'dense-union')
|
|
647
|
+
return true;
|
|
648
|
+
const physical = (array.offset || 0) + rowIndex;
|
|
649
|
+
const child = array.children.find(candidate => candidate.typeId === array.typeIds[physical]);
|
|
650
|
+
const childIndex = array.valueOffsets[physical];
|
|
651
|
+
return Boolean(child &&
|
|
652
|
+
childIndex >= 0 &&
|
|
653
|
+
childIndex < child.data.length &&
|
|
654
|
+
isGeoArrowValueValid(child.data.validity, childIndex));
|
|
655
|
+
}
|
|
656
|
+
/** Decodes a GeoArrow WKT column into native physical geometry buffers. */
|
|
657
|
+
export function decodeGeoArrowWKT(column) {
|
|
658
|
+
if (column.encoding !== 'geoarrow.wkt')
|
|
659
|
+
throw new Error('Expected a geoarrow.wkt column');
|
|
660
|
+
const rows = normalizeRowsToDimension(decodeSerializedRows(column, bytes => parseWKT(textDecoder.decode(bytes))), column.dimension);
|
|
661
|
+
return copyMetadata(column, makeGeoArrowColumnFromGeometryRows(rows, { dimension: column.dimension }));
|
|
662
|
+
}
|
|
663
|
+
/** Encodes a native GeoArrow column as variable-width UTF-8 WKT. */
|
|
664
|
+
export function encodeGeoArrowWKT(column) {
|
|
665
|
+
if (column.encoding === 'geoarrow.wkt')
|
|
666
|
+
return column;
|
|
667
|
+
const values = [];
|
|
668
|
+
for (const chunk of column.chunks) {
|
|
669
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
670
|
+
const row = isGeoArrowValueValid(chunk.validity, rowIndex)
|
|
671
|
+
? materializeGeometryRow(chunk, rowIndex, column.encoding)
|
|
672
|
+
: null;
|
|
673
|
+
values.push(row ? textEncoder.encode(formatWKT(row, column.dimension)) : null);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return copyMetadata(column, makeSerializedColumn(values, 'geoarrow.wkt', column.dimension));
|
|
677
|
+
}
|
|
678
|
+
function writePhysicalGeometry(builder, array, rowIndex, encoding, dimension) {
|
|
679
|
+
const depth = getEncodingDepth(encoding);
|
|
680
|
+
if (encoding === 'geoarrow.geometry' && array.kind === 'dense-union') {
|
|
681
|
+
const physical = (array.offset || 0) + rowIndex;
|
|
682
|
+
const typeId = array.typeIds[physical];
|
|
683
|
+
const child = array.children.find(candidate => candidate.typeId === typeId);
|
|
684
|
+
if (!child)
|
|
685
|
+
throw new Error('Dense-union row references an unknown child');
|
|
686
|
+
const childDimension = child.dimension || dimension;
|
|
687
|
+
builder.withDimension(childDimension, () => writePhysicalGeometry(builder, child.data, array.valueOffsets[physical], child.encoding || encodingFromName(child.name), childDimension));
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
if (encoding === 'geoarrow.geometrycollection' && array.kind === 'list') {
|
|
691
|
+
const [first, last] = getListRange(array, rowIndex);
|
|
692
|
+
builder.beginGeometry('GeometryCollection', last - first);
|
|
693
|
+
if (array.child.kind !== 'dense-union')
|
|
694
|
+
throw new Error('GeometryCollection requires dense union child');
|
|
695
|
+
const union = array.child;
|
|
696
|
+
for (let index = first; index < last; index++) {
|
|
697
|
+
const physical = (union.offset || 0) + index;
|
|
698
|
+
const child = union.children.find(candidate => candidate.typeId === union.typeIds[physical]);
|
|
699
|
+
if (child) {
|
|
700
|
+
const childDimension = child.dimension || dimension;
|
|
701
|
+
builder.withDimension(childDimension, () => writePhysicalGeometry(builder, child.data, union.valueOffsets[physical], child.encoding || encodingFromName(child.name), childDimension));
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
if (array.kind !== 'list' && depth > 0)
|
|
707
|
+
throw new Error(`Invalid ${encoding} storage`);
|
|
708
|
+
const writeCoordinate = (leaf, index) => {
|
|
709
|
+
const coordinate = readPhysicalCoordinate(leaf, index);
|
|
710
|
+
if (!coordinate)
|
|
711
|
+
throw new Error('Invalid GeoArrow coordinate storage');
|
|
712
|
+
if (dimension === 'xym')
|
|
713
|
+
builder.writeCoordinate(coordinate[0], coordinate[1], undefined, coordinate[2]);
|
|
714
|
+
else if (dimension === 'xyzm')
|
|
715
|
+
builder.writeCoordinate(coordinate[0], coordinate[1], coordinate[2], coordinate[3]);
|
|
716
|
+
else
|
|
717
|
+
builder.writeCoordinate(coordinate[0], coordinate[1], coordinate[2]);
|
|
718
|
+
};
|
|
719
|
+
const writeSequence = (leaf, first, last) => {
|
|
720
|
+
for (let index = first; index < last; index++)
|
|
721
|
+
writeCoordinate(leaf, index);
|
|
722
|
+
};
|
|
723
|
+
if (encoding === 'geoarrow.point') {
|
|
724
|
+
builder.beginPoint();
|
|
725
|
+
writeCoordinate(array, rowIndex);
|
|
726
|
+
}
|
|
727
|
+
else if (encoding === 'geoarrow.linestring' || encoding === 'geoarrow.multipoint') {
|
|
728
|
+
const [first, last] = getListRange(array, rowIndex);
|
|
729
|
+
if (encoding === 'geoarrow.linestring') {
|
|
730
|
+
builder.beginLineString(last - first);
|
|
731
|
+
writeSequence(array.child, first, last);
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
builder.beginMultiPoint(last - first);
|
|
735
|
+
const leaf = array.child;
|
|
736
|
+
for (let index = first; index < last; index++) {
|
|
737
|
+
builder.beginPoint();
|
|
738
|
+
writeCoordinate(leaf, index);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
else if (encoding === 'geoarrow.polygon' || encoding === 'geoarrow.multilinestring') {
|
|
743
|
+
const [first, last] = getListRange(array, rowIndex);
|
|
744
|
+
const parts = array.child;
|
|
745
|
+
if (encoding === 'geoarrow.polygon')
|
|
746
|
+
builder.beginPolygon(last - first);
|
|
747
|
+
else
|
|
748
|
+
builder.beginMultiLineString(last - first);
|
|
749
|
+
for (let partIndex = first; partIndex < last; partIndex++) {
|
|
750
|
+
const [ringFirst, ringLast] = getListRange(parts, partIndex);
|
|
751
|
+
const leaf = parts.child;
|
|
752
|
+
if (encoding === 'geoarrow.polygon')
|
|
753
|
+
builder.beginLinearRing(ringLast - ringFirst);
|
|
754
|
+
else
|
|
755
|
+
builder.beginLineString(ringLast - ringFirst);
|
|
756
|
+
writeSequence(leaf, ringFirst, ringLast);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
else if (encoding === 'geoarrow.multipolygon') {
|
|
760
|
+
const [first, last] = getListRange(array, rowIndex);
|
|
761
|
+
const polygons = array.child;
|
|
762
|
+
builder.beginMultiPolygon(last - first);
|
|
763
|
+
for (let polygonIndex = first; polygonIndex < last; polygonIndex++) {
|
|
764
|
+
const [partFirst, partLast] = getListRange(polygons, polygonIndex);
|
|
765
|
+
const parts = polygons.child;
|
|
766
|
+
builder.beginPolygon(partLast - partFirst);
|
|
767
|
+
for (let partIndex = partFirst; partIndex < partLast; partIndex++) {
|
|
768
|
+
const [ringFirst, ringLast] = getListRange(parts, partIndex);
|
|
769
|
+
builder.beginLinearRing(ringLast - ringFirst);
|
|
770
|
+
writeSequence(parts.child, ringFirst, ringLast);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
function getPhysicalGeometryDimension(array, rowIndex, encoding, dimension) {
|
|
776
|
+
if (encoding !== 'geoarrow.geometry' || array.kind !== 'dense-union')
|
|
777
|
+
return dimension;
|
|
778
|
+
const physical = (array.offset || 0) + rowIndex;
|
|
779
|
+
const child = array.children.find(candidate => candidate.typeId === array.typeIds[physical]);
|
|
780
|
+
return child?.dimension || dimension;
|
|
781
|
+
}
|
|
782
|
+
function readPhysicalCoordinate(array, index) {
|
|
783
|
+
if (array.kind === 'fixed-size-list' && array.child.kind === 'primitive') {
|
|
784
|
+
const logical = (array.offset || 0) + index;
|
|
785
|
+
const values = [];
|
|
786
|
+
for (let component = 0; component < array.size; component++)
|
|
787
|
+
values.push(Number(array.child.values[(array.child.offset || 0) +
|
|
788
|
+
(logical * array.size + component) * (array.child.stride || 1)]));
|
|
789
|
+
return values;
|
|
790
|
+
}
|
|
791
|
+
if (array.kind === 'struct') {
|
|
792
|
+
const logical = (array.offset || 0) + index;
|
|
793
|
+
return ['x', 'y', 'z', 'm'].flatMap(name => {
|
|
794
|
+
const child = array.children[name];
|
|
795
|
+
return child?.kind === 'primitive'
|
|
796
|
+
? [Number(child.values[(child.offset || 0) + logical * (child.stride || 1)])]
|
|
797
|
+
: [];
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
return null;
|
|
801
|
+
}
|
|
802
|
+
function getListRange(list, index) {
|
|
803
|
+
const offset = (list.offset || 0) + index;
|
|
804
|
+
const base = typeof (list.offsetBase ?? 0) === 'bigint'
|
|
805
|
+
? Number(list.offsetBase)
|
|
806
|
+
: Number(list.offsetBase ?? 0);
|
|
807
|
+
return [
|
|
808
|
+
getGeoArrowOffset(list.offsets, offset) - base,
|
|
809
|
+
getGeoArrowOffset(list.offsets, offset + 1) - base
|
|
810
|
+
];
|
|
811
|
+
}
|
|
812
|
+
function getEncodingDepth(encoding) {
|
|
813
|
+
return encoding === 'geoarrow.point'
|
|
814
|
+
? 0
|
|
815
|
+
: encoding === 'geoarrow.linestring' || encoding === 'geoarrow.multipoint'
|
|
816
|
+
? 1
|
|
817
|
+
: encoding === 'geoarrow.polygon' || encoding === 'geoarrow.multilinestring'
|
|
818
|
+
? 2
|
|
819
|
+
: 3;
|
|
820
|
+
}
|
|
821
|
+
function encodingFromName(name) {
|
|
822
|
+
return `geoarrow.${name.toLowerCase()}`;
|
|
823
|
+
}
|
|
824
|
+
function normalizeRowsToDimension(rows, dimension) {
|
|
825
|
+
const size = getGeoArrowDimensionSize(dimension);
|
|
826
|
+
const normalizeGeometry = (geometry) => {
|
|
827
|
+
if (geometry.type === 'GeometryCollection') {
|
|
828
|
+
return { ...geometry, geometries: geometry.geometries.map(normalizeGeometry) };
|
|
829
|
+
}
|
|
830
|
+
return {
|
|
831
|
+
...geometry,
|
|
832
|
+
coordinates: normalizeCoordinateNesting(geometry.coordinates, size)
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
return rows.map(row => (row ? normalizeGeometry(row) : null));
|
|
836
|
+
}
|
|
837
|
+
function normalizeCoordinateNesting(value, size) {
|
|
838
|
+
if (value.length === 0)
|
|
839
|
+
return [];
|
|
840
|
+
if (typeof value[0] === 'number') {
|
|
841
|
+
const coordinate = value.slice(0, size);
|
|
842
|
+
while (coordinate.length < size)
|
|
843
|
+
coordinate.push(0);
|
|
844
|
+
return coordinate;
|
|
845
|
+
}
|
|
846
|
+
return value.map(child => normalizeCoordinateNesting(child, size));
|
|
847
|
+
}
|
|
848
|
+
function decodeSerializedRows(column, decoder) {
|
|
849
|
+
const rows = [];
|
|
850
|
+
for (const chunk of column.chunks) {
|
|
851
|
+
if (chunk.kind !== 'serialized')
|
|
852
|
+
throw new Error('Serialized column contains native storage');
|
|
853
|
+
for (let rowIndex = 0; rowIndex < chunk.length; rowIndex++) {
|
|
854
|
+
if (!isGeoArrowValueValid(chunk.validity, rowIndex)) {
|
|
855
|
+
rows.push(null);
|
|
856
|
+
continue;
|
|
857
|
+
}
|
|
858
|
+
rows.push(decoder(getSerializedBytes(chunk, rowIndex)));
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
return rows;
|
|
862
|
+
}
|
|
863
|
+
function getSerializedBytes(array, rowIndex) {
|
|
864
|
+
if (array.views) {
|
|
865
|
+
const viewIndex = ((array.offset || 0) + rowIndex) * 4;
|
|
866
|
+
const length = array.views[viewIndex];
|
|
867
|
+
// Arrow BinaryView stores short values inline in the 16-byte view record.
|
|
868
|
+
if (length <= 12) {
|
|
869
|
+
const byteOffset = array.views.byteOffset + viewIndex * 4 + 4;
|
|
870
|
+
return new Uint8Array(array.views.buffer, byteOffset, length);
|
|
871
|
+
}
|
|
872
|
+
const bufferIndex = array.views[viewIndex + 2];
|
|
873
|
+
const byteOffset = array.views[viewIndex + 3];
|
|
874
|
+
const data = array.dataBuffers?.[bufferIndex];
|
|
875
|
+
if (!data)
|
|
876
|
+
throw new Error(`Serialized view references missing data buffer ${bufferIndex}`);
|
|
877
|
+
return data.subarray(byteOffset, byteOffset + length);
|
|
878
|
+
}
|
|
879
|
+
const offsetIndex = (array.offset || 0) + rowIndex;
|
|
880
|
+
const baseValue = array.offsetBase ?? 0;
|
|
881
|
+
const base = typeof baseValue === 'bigint' ? Number(baseValue) : baseValue;
|
|
882
|
+
const first = getGeoArrowOffset(array.offsets, offsetIndex) - base;
|
|
883
|
+
const last = getGeoArrowOffset(array.offsets, offsetIndex + 1) - base;
|
|
884
|
+
return array.values.subarray(first, last);
|
|
885
|
+
}
|
|
886
|
+
function makeSerializedColumn(rows, encoding, dimension) {
|
|
887
|
+
let byteLength = 0;
|
|
888
|
+
for (const row of rows)
|
|
889
|
+
byteLength += row?.byteLength || 0;
|
|
890
|
+
const values = new Uint8Array(byteLength);
|
|
891
|
+
const offsets = new Int32Array(rows.length + 1);
|
|
892
|
+
const validity = new Uint8Array(Math.ceil(rows.length / 8));
|
|
893
|
+
let byteOffset = 0;
|
|
894
|
+
for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
|
|
895
|
+
const row = rows[rowIndex];
|
|
896
|
+
if (row) {
|
|
897
|
+
values.set(row, byteOffset);
|
|
898
|
+
byteOffset += row.byteLength;
|
|
899
|
+
validity[rowIndex >> 3] |= 1 << (rowIndex & 7);
|
|
900
|
+
}
|
|
901
|
+
offsets[rowIndex + 1] = byteOffset;
|
|
902
|
+
}
|
|
903
|
+
const chunk = {
|
|
904
|
+
kind: 'serialized',
|
|
905
|
+
encoding: encoding === 'geoarrow.wkb' ? 'binary' : 'utf8',
|
|
906
|
+
length: rows.length,
|
|
907
|
+
offsets,
|
|
908
|
+
values,
|
|
909
|
+
validity: { values: validity }
|
|
910
|
+
};
|
|
911
|
+
return { encoding, dimension, coordinateLayout: null, chunks: [chunk] };
|
|
912
|
+
}
|
|
913
|
+
function copyMetadata(source, target) {
|
|
914
|
+
return {
|
|
915
|
+
...target,
|
|
916
|
+
spatialReference: source.spatialReference,
|
|
917
|
+
edges: source.edges,
|
|
918
|
+
metadata: source.metadata
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
//# sourceMappingURL=codecs.js.map
|