@loaders.gl/core 5.0.0-alpha.9 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GEOARROW-README.md +97 -0
- package/LICENSE +2 -30
- package/README.md +8 -1
- package/SCAN-README.md +224 -0
- package/SCHEMA-README.md +9 -0
- package/SCHEMA-UTILS-README.md +11 -0
- package/THIRD-PARTY-NOTICES.md +39 -0
- package/dist/arrow-geometry/arrow-geoarrow-adapter.cjs +477 -0
- package/dist/arrow-geometry/arrow-geoarrow-adapter.cjs.map +7 -0
- package/dist/arrow-geometry/arrow-geoarrow-adapter.d.ts +29 -0
- package/dist/arrow-geometry/arrow-geoarrow-adapter.d.ts.map +1 -0
- package/dist/arrow-geometry/arrow-geoarrow-adapter.js +434 -0
- package/dist/arrow-geometry/arrow-geoarrow-adapter.js.map +1 -0
- package/dist/arrow-geometry/binary-features.cjs +318 -0
- package/dist/arrow-geometry/binary-features.cjs.map +7 -0
- package/dist/arrow-geometry/binary-features.d.ts +44 -0
- package/dist/arrow-geometry/binary-features.d.ts.map +1 -0
- package/dist/arrow-geometry/binary-features.js +300 -0
- package/dist/arrow-geometry/binary-features.js.map +1 -0
- package/dist/arrow-geometry/binary-geometry-to-wkb.cjs +199 -0
- package/dist/arrow-geometry/binary-geometry-to-wkb.cjs.map +7 -0
- package/dist/arrow-geometry/binary-geometry-to-wkb.d.ts +28 -0
- package/dist/arrow-geometry/binary-geometry-to-wkb.d.ts.map +1 -0
- package/dist/arrow-geometry/binary-geometry-to-wkb.js +170 -0
- package/dist/arrow-geometry/binary-geometry-to-wkb.js.map +1 -0
- package/dist/arrow-geometry/feature-collection-to-arrow.cjs +134 -0
- package/dist/arrow-geometry/feature-collection-to-arrow.cjs.map +7 -0
- package/dist/arrow-geometry/feature-collection-to-arrow.d.ts +23 -0
- package/dist/arrow-geometry/feature-collection-to-arrow.d.ts.map +1 -0
- package/dist/arrow-geometry/feature-collection-to-arrow.js +124 -0
- package/dist/arrow-geometry/feature-collection-to-arrow.js.map +1 -0
- package/dist/arrow-geometry/feature-table.cjs +698 -0
- package/dist/arrow-geometry/feature-table.cjs.map +7 -0
- package/dist/arrow-geometry/feature-table.d.ts +51 -0
- package/dist/arrow-geometry/feature-table.d.ts.map +1 -0
- package/dist/arrow-geometry/feature-table.js +688 -0
- package/dist/arrow-geometry/feature-table.js.map +1 -0
- package/dist/arrow-geometry/geoarrow-builder.cjs +575 -0
- package/dist/arrow-geometry/geoarrow-builder.cjs.map +7 -0
- package/dist/arrow-geometry/geoarrow-builder.d.ts +179 -0
- package/dist/arrow-geometry/geoarrow-builder.d.ts.map +1 -0
- package/dist/arrow-geometry/geoarrow-builder.js +545 -0
- package/dist/arrow-geometry/geoarrow-builder.js.map +1 -0
- package/dist/arrow-geometry/geoarrow-union-kind.cjs +59 -0
- package/dist/arrow-geometry/geoarrow-union-kind.cjs.map +7 -0
- package/dist/arrow-geometry/geoarrow-union-kind.d.ts +5 -0
- package/dist/arrow-geometry/geoarrow-union-kind.d.ts.map +1 -0
- package/dist/arrow-geometry/geoarrow-union-kind.js +42 -0
- package/dist/arrow-geometry/geoarrow-union-kind.js.map +1 -0
- package/dist/arrow-geometry/geojson-table.cjs +135 -0
- package/dist/arrow-geometry/geojson-table.cjs.map +7 -0
- package/dist/arrow-geometry/geojson-table.d.ts +11 -0
- package/dist/arrow-geometry/geojson-table.d.ts.map +1 -0
- package/dist/arrow-geometry/geojson-table.js +122 -0
- package/dist/arrow-geometry/geojson-table.js.map +1 -0
- package/dist/arrow-geometry/geometry-codecs.cjs +139 -0
- package/dist/arrow-geometry/geometry-codecs.cjs.map +7 -0
- package/dist/arrow-geometry/geometry-codecs.d.ts +31 -0
- package/dist/arrow-geometry/geometry-codecs.d.ts.map +1 -0
- package/dist/arrow-geometry/geometry-codecs.js +130 -0
- package/dist/arrow-geometry/geometry-codecs.js.map +1 -0
- package/dist/arrow-geometry/geometry-field.cjs +229 -0
- package/dist/arrow-geometry/geometry-field.cjs.map +7 -0
- package/dist/arrow-geometry/geometry-field.d.ts +116 -0
- package/dist/arrow-geometry/geometry-field.d.ts.map +1 -0
- package/dist/arrow-geometry/geometry-field.js +251 -0
- package/dist/arrow-geometry/geometry-field.js.map +1 -0
- package/dist/arrow-geometry/geometry-to-wkt.cjs +96 -0
- package/dist/arrow-geometry/geometry-to-wkt.cjs.map +7 -0
- package/dist/arrow-geometry/geometry-to-wkt.d.ts +13 -0
- package/dist/arrow-geometry/geometry-to-wkt.d.ts.map +1 -0
- package/dist/arrow-geometry/geometry-to-wkt.js +102 -0
- package/dist/arrow-geometry/geometry-to-wkt.js.map +1 -0
- package/dist/arrow-geometry/geometry-utils.cjs +46 -0
- package/dist/arrow-geometry/geometry-utils.cjs.map +7 -0
- package/dist/arrow-geometry/geometry-utils.d.ts +4 -0
- package/dist/arrow-geometry/geometry-utils.d.ts.map +1 -0
- package/dist/arrow-geometry/geometry-utils.js +25 -0
- package/dist/arrow-geometry/geometry-utils.js.map +1 -0
- package/dist/arrow-geometry/index.cjs +48 -0
- package/dist/arrow-geometry/index.cjs.map +7 -0
- package/dist/arrow-geometry/index.d.ts +5 -0
- package/dist/arrow-geometry/index.d.ts.map +1 -0
- package/dist/arrow-geometry/index.js +8 -0
- package/dist/arrow-geometry/index.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.cjs +319 -0
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.d.ts +38 -0
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.js +382 -0
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.cjs +44 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.d.ts +23 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.js +25 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.cjs +112 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.d.ts +19 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.js +128 -0
- package/dist/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.cjs +19 -0
- package/dist/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.d.ts +58 -0
- package/dist/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.js +5 -0
- package/dist/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary/geometry-info.cjs +113 -0
- package/dist/arrow-geometry/legacy-binary/geometry-info.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary/geometry-info.d.ts +31 -0
- package/dist/arrow-geometry/legacy-binary/geometry-info.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary/geometry-info.js +96 -0
- package/dist/arrow-geometry/legacy-binary/geometry-info.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary/transform-coordinates.cjs +69 -0
- package/dist/arrow-geometry/legacy-binary/transform-coordinates.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary/transform-coordinates.d.ts +18 -0
- package/dist/arrow-geometry/legacy-binary/transform-coordinates.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary/transform-coordinates.js +57 -0
- package/dist/arrow-geometry/legacy-binary/transform-coordinates.js.map +1 -0
- package/dist/arrow-geometry/legacy-binary.cjs +47 -0
- package/dist/arrow-geometry/legacy-binary.cjs.map +7 -0
- package/dist/arrow-geometry/legacy-binary.d.ts +11 -0
- package/dist/arrow-geometry/legacy-binary.d.ts.map +1 -0
- package/dist/arrow-geometry/legacy-binary.js +14 -0
- package/dist/arrow-geometry/legacy-binary.js.map +1 -0
- package/dist/arrow-geometry/native-geometry.cjs +215 -0
- package/dist/arrow-geometry/native-geometry.cjs.map +7 -0
- package/dist/arrow-geometry/native-geometry.d.ts +41 -0
- package/dist/arrow-geometry/native-geometry.d.ts.map +1 -0
- package/dist/arrow-geometry/native-geometry.js +224 -0
- package/dist/arrow-geometry/native-geometry.js.map +1 -0
- package/dist/arrow-geometry/sampled-bounds.cjs +52 -0
- package/dist/arrow-geometry/sampled-bounds.cjs.map +7 -0
- package/dist/arrow-geometry/sampled-bounds.d.ts +11 -0
- package/dist/arrow-geometry/sampled-bounds.d.ts.map +1 -0
- package/dist/arrow-geometry/sampled-bounds.js +35 -0
- package/dist/arrow-geometry/sampled-bounds.js.map +1 -0
- package/dist/arrow-geometry/triangulate-wkb.cjs +722 -0
- package/dist/arrow-geometry/triangulate-wkb.cjs.map +7 -0
- package/dist/arrow-geometry/triangulate-wkb.d.ts +7 -0
- package/dist/arrow-geometry/triangulate-wkb.d.ts.map +1 -0
- package/dist/arrow-geometry/triangulate-wkb.js +938 -0
- package/dist/arrow-geometry/triangulate-wkb.js.map +1 -0
- package/dist/arrow-geometry/wkb-arrow-utils.cjs +142 -0
- package/dist/arrow-geometry/wkb-arrow-utils.cjs.map +7 -0
- package/dist/arrow-geometry/wkb-arrow-utils.d.ts +63 -0
- package/dist/arrow-geometry/wkb-arrow-utils.d.ts.map +1 -0
- package/dist/arrow-geometry/wkb-arrow-utils.js +129 -0
- package/dist/arrow-geometry/wkb-arrow-utils.js.map +1 -0
- package/dist/arrow-geometry/wkb-builder.cjs +167 -0
- package/dist/arrow-geometry/wkb-builder.cjs.map +7 -0
- package/dist/arrow-geometry/wkb-builder.d.ts +81 -0
- package/dist/arrow-geometry/wkb-builder.d.ts.map +1 -0
- package/dist/arrow-geometry/wkb-builder.js +156 -0
- package/dist/arrow-geometry/wkb-builder.js.map +1 -0
- package/dist/arrow-geometry/wkb-statistics.cjs +52 -0
- package/dist/arrow-geometry/wkb-statistics.cjs.map +7 -0
- package/dist/arrow-geometry/wkb-statistics.d.ts +34 -0
- package/dist/arrow-geometry/wkb-statistics.d.ts.map +1 -0
- package/dist/arrow-geometry/wkb-statistics.js +33 -0
- package/dist/arrow-geometry/wkb-statistics.js.map +1 -0
- package/dist/arrow-geometry/wkb-table.cjs +65 -0
- package/dist/arrow-geometry/wkb-table.cjs.map +7 -0
- package/dist/arrow-geometry/wkb-table.d.ts +6 -0
- package/dist/arrow-geometry/wkb-table.d.ts.map +1 -0
- package/dist/arrow-geometry/wkb-table.js +44 -0
- package/dist/arrow-geometry/wkb-table.js.map +1 -0
- package/dist/arrow-geometry/wkb-types.cjs +49 -0
- package/dist/arrow-geometry/wkb-types.cjs.map +7 -0
- package/dist/arrow-geometry/wkb-types.d.ts +17 -0
- package/dist/arrow-geometry/wkb-types.d.ts.map +1 -0
- package/dist/arrow-geometry/wkb-types.js +21 -0
- package/dist/arrow-geometry/wkb-types.js.map +1 -0
- package/dist/cluster-source.cjs +7228 -0
- package/dist/cluster-source.cjs.map +6 -0
- package/dist/cluster-source.d.ts +2 -0
- package/dist/cluster-source.d.ts.map +1 -0
- package/dist/cluster-source.js +2 -0
- package/dist/cluster-source.js.map +1 -0
- package/dist/constants/index.cjs +39 -0
- package/dist/constants/index.cjs.map +6 -0
- package/dist/constants/index.d.ts +17 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +20 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/dist.dev.js +1382 -451
- package/dist/dist.min.js +3 -3
- package/dist/federated-table-scan-source.cjs +2677 -0
- package/dist/federated-table-scan-source.cjs.map +6 -0
- package/dist/federated-table-scan-source.d.ts +2 -0
- package/dist/federated-table-scan-source.d.ts.map +1 -0
- package/dist/federated-table-scan-source.js +2 -0
- package/dist/federated-table-scan-source.js.map +1 -0
- package/dist/geoarrow/binary-polygon-to-geoarrow.cjs +97 -0
- package/dist/geoarrow/binary-polygon-to-geoarrow.cjs.map +7 -0
- package/dist/geoarrow/binary-polygon-to-geoarrow.d.ts +22 -0
- package/dist/geoarrow/binary-polygon-to-geoarrow.d.ts.map +1 -0
- package/dist/geoarrow/binary-polygon-to-geoarrow.js +94 -0
- package/dist/geoarrow/binary-polygon-to-geoarrow.js.map +1 -0
- package/dist/geoarrow/clustering/cluster-index.cjs +365 -0
- package/dist/geoarrow/clustering/cluster-index.cjs.map +7 -0
- package/dist/geoarrow/clustering/cluster-index.d.ts +96 -0
- package/dist/geoarrow/clustering/cluster-index.d.ts.map +1 -0
- package/dist/geoarrow/clustering/cluster-index.js +374 -0
- package/dist/geoarrow/clustering/cluster-index.js.map +1 -0
- package/dist/geoarrow/clustering/cluster-source.cjs +206 -0
- package/dist/geoarrow/clustering/cluster-source.cjs.map +7 -0
- package/dist/geoarrow/clustering/cluster-source.d.ts +64 -0
- package/dist/geoarrow/clustering/cluster-source.d.ts.map +1 -0
- package/dist/geoarrow/clustering/cluster-source.js +200 -0
- package/dist/geoarrow/clustering/cluster-source.js.map +1 -0
- package/dist/geoarrow/clustering/get-representative-point.cjs +176 -0
- package/dist/geoarrow/clustering/get-representative-point.cjs.map +7 -0
- package/dist/geoarrow/clustering/get-representative-point.d.ts +14 -0
- package/dist/geoarrow/clustering/get-representative-point.d.ts.map +1 -0
- package/dist/geoarrow/clustering/get-representative-point.js +172 -0
- package/dist/geoarrow/clustering/get-representative-point.js.map +1 -0
- package/dist/geoarrow/compatibility.cjs +94 -0
- package/dist/geoarrow/compatibility.cjs.map +7 -0
- package/dist/geoarrow/compatibility.d.ts +19 -0
- package/dist/geoarrow/compatibility.d.ts.map +1 -0
- package/dist/geoarrow/compatibility.js +17 -0
- package/dist/geoarrow/compatibility.js.map +1 -0
- package/dist/geoarrow/convert-table-to-geoarrow.cjs +184 -0
- package/dist/geoarrow/convert-table-to-geoarrow.cjs.map +7 -0
- package/dist/geoarrow/convert-table-to-geoarrow.d.ts +36 -0
- package/dist/geoarrow/convert-table-to-geoarrow.d.ts.map +1 -0
- package/dist/geoarrow/convert-table-to-geoarrow.js +177 -0
- package/dist/geoarrow/convert-table-to-geoarrow.js.map +1 -0
- package/dist/geoarrow/deprecated.cjs +68 -0
- package/dist/geoarrow/deprecated.cjs.map +7 -0
- package/dist/geoarrow/deprecated.d.ts +34 -0
- package/dist/geoarrow/deprecated.d.ts.map +1 -0
- package/dist/geoarrow/deprecated.js +37 -0
- package/dist/geoarrow/deprecated.js.map +1 -0
- package/dist/geoarrow/geo-column/geo-column-info.cjs +19 -0
- package/dist/geoarrow/geo-column/geo-column-info.cjs.map +7 -0
- package/dist/geoarrow/geo-column/geo-column-info.d.ts +20 -0
- package/dist/geoarrow/geo-column/geo-column-info.d.ts.map +1 -0
- package/dist/geoarrow/geo-column/geo-column-info.js +75 -0
- package/dist/geoarrow/geo-column/geo-column-info.js.map +1 -0
- package/dist/geoarrow/geo-column/geo-column.cjs +19 -0
- package/dist/geoarrow/geo-column/geo-column.cjs.map +7 -0
- package/dist/geoarrow/geo-column/geo-column.d.ts +61 -0
- package/dist/geoarrow/geo-column/geo-column.d.ts.map +1 -0
- package/dist/geoarrow/geo-column/geo-column.js +5 -0
- package/dist/geoarrow/geo-column/geo-column.js.map +1 -0
- package/dist/geoarrow/geoarrow-bounds.cjs +133 -0
- package/dist/geoarrow/geoarrow-bounds.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-bounds.d.ts +27 -0
- package/dist/geoarrow/geoarrow-bounds.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-bounds.js +136 -0
- package/dist/geoarrow/geoarrow-bounds.js.map +1 -0
- package/dist/geoarrow/geoarrow-builder.cjs +31 -0
- package/dist/geoarrow/geoarrow-builder.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-builder.d.ts +3 -0
- package/dist/geoarrow/geoarrow-builder.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-builder.js +5 -0
- package/dist/geoarrow/geoarrow-builder.js.map +1 -0
- package/dist/geoarrow/geoarrow-capabilities.cjs +443 -0
- package/dist/geoarrow/geoarrow-capabilities.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-capabilities.d.ts +62 -0
- package/dist/geoarrow/geoarrow-capabilities.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-capabilities.js +444 -0
- package/dist/geoarrow/geoarrow-capabilities.js.map +1 -0
- package/dist/geoarrow/geoarrow-conformance.cjs +151 -0
- package/dist/geoarrow/geoarrow-conformance.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-conformance.d.ts +49 -0
- package/dist/geoarrow/geoarrow-conformance.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-conformance.js +129 -0
- package/dist/geoarrow/geoarrow-conformance.js.map +1 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.cjs +1364 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.d.ts +66 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.js +1481 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.js.map +1 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.cjs +56 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.d.ts +17 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.js +38 -0
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.js.map +1 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.cjs +93 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.d.ts +24 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.js +68 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.js.map +1 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-geometry-converter.cjs +71 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-geometry-converter.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-geometry-converter.d.ts +20 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-geometry-converter.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-geometry-converter.js +47 -0
- package/dist/geoarrow/geoarrow-converter/geoarrow-geometry-converter.js.map +1 -0
- package/dist/geoarrow/geoarrow-functions.cjs +148 -0
- package/dist/geoarrow/geoarrow-functions.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-functions.d.ts +127 -0
- package/dist/geoarrow/geoarrow-functions.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-functions.js +240 -0
- package/dist/geoarrow/geoarrow-functions.js.map +1 -0
- package/dist/geoarrow/geoarrow-inspection.cjs +238 -0
- package/dist/geoarrow/geoarrow-inspection.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-inspection.d.ts +28 -0
- package/dist/geoarrow/geoarrow-inspection.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-inspection.js +249 -0
- package/dist/geoarrow/geoarrow-inspection.js.map +1 -0
- package/dist/geoarrow/geoarrow-layout.cjs +558 -0
- package/dist/geoarrow/geoarrow-layout.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-layout.d.ts +95 -0
- package/dist/geoarrow/geoarrow-layout.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-layout.js +605 -0
- package/dist/geoarrow/geoarrow-layout.js.map +1 -0
- package/dist/geoarrow/geoarrow-resource-limits.cjs +78 -0
- package/dist/geoarrow/geoarrow-resource-limits.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-resource-limits.d.ts +23 -0
- package/dist/geoarrow/geoarrow-resource-limits.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-resource-limits.js +70 -0
- package/dist/geoarrow/geoarrow-resource-limits.js.map +1 -0
- package/dist/geoarrow/geoarrow-spatial-index.cjs +199 -0
- package/dist/geoarrow/geoarrow-spatial-index.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-spatial-index.d.ts +51 -0
- package/dist/geoarrow/geoarrow-spatial-index.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-spatial-index.js +194 -0
- package/dist/geoarrow/geoarrow-spatial-index.js.map +1 -0
- package/dist/geoarrow/geoarrow-stream.cjs +274 -0
- package/dist/geoarrow/geoarrow-stream.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-stream.d.ts +22 -0
- package/dist/geoarrow/geoarrow-stream.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-stream.js +259 -0
- package/dist/geoarrow/geoarrow-stream.js.map +1 -0
- package/dist/geoarrow/geoarrow-types.cjs +19 -0
- package/dist/geoarrow/geoarrow-types.cjs.map +7 -0
- package/dist/geoarrow/geoarrow-types.d.ts +50 -0
- package/dist/geoarrow/geoarrow-types.d.ts.map +1 -0
- package/dist/geoarrow/geoarrow-types.js +5 -0
- package/dist/geoarrow/geoarrow-types.js.map +1 -0
- package/dist/geoarrow/get-geoarrow-geometry-info.cjs +110 -0
- package/dist/geoarrow/get-geoarrow-geometry-info.cjs.map +7 -0
- package/dist/geoarrow/get-geoarrow-geometry-info.d.ts +37 -0
- package/dist/geoarrow/get-geoarrow-geometry-info.d.ts.map +1 -0
- package/dist/geoarrow/get-geoarrow-geometry-info.js +114 -0
- package/dist/geoarrow/get-geoarrow-geometry-info.js.map +1 -0
- package/dist/geoarrow/get-geoarrow-native-geometry.cjs +31 -0
- package/dist/geoarrow/get-geoarrow-native-geometry.cjs.map +7 -0
- package/dist/geoarrow/get-geoarrow-native-geometry.d.ts +2 -0
- package/dist/geoarrow/get-geoarrow-native-geometry.d.ts.map +1 -0
- package/dist/geoarrow/get-geoarrow-native-geometry.js +5 -0
- package/dist/geoarrow/get-geoarrow-native-geometry.js.map +1 -0
- package/dist/geoarrow/get-geoarrow-vertex-count.cjs +177 -0
- package/dist/geoarrow/get-geoarrow-vertex-count.cjs.map +7 -0
- package/dist/geoarrow/get-geoarrow-vertex-count.d.ts +18 -0
- package/dist/geoarrow/get-geoarrow-vertex-count.d.ts.map +1 -0
- package/dist/geoarrow/get-geoarrow-vertex-count.js +181 -0
- package/dist/geoarrow/get-geoarrow-vertex-count.js.map +1 -0
- package/dist/geoarrow/index.cjs +252 -0
- package/dist/geoarrow/index.cjs.map +7 -0
- package/dist/geoarrow/index.d.ts +58 -0
- package/dist/geoarrow/index.d.ts.map +1 -0
- package/dist/geoarrow/index.js +40 -0
- package/dist/geoarrow/index.js.map +1 -0
- package/dist/geoarrow/lib/arrow-geoarrow-adapter.cjs +39 -0
- package/dist/geoarrow/lib/arrow-geoarrow-adapter.cjs.map +7 -0
- package/dist/geoarrow/lib/arrow-geoarrow-adapter.d.ts +2 -0
- package/dist/geoarrow/lib/arrow-geoarrow-adapter.d.ts.map +1 -0
- package/dist/geoarrow/lib/arrow-geoarrow-adapter.js +5 -0
- package/dist/geoarrow/lib/arrow-geoarrow-adapter.js.map +1 -0
- package/dist/geoarrow/lib/binary-geometry-api/binary-geometry-info.cjs +67 -0
- package/dist/geoarrow/lib/binary-geometry-api/binary-geometry-info.cjs.map +7 -0
- package/dist/geoarrow/lib/binary-geometry-api/binary-geometry-info.d.ts +21 -0
- package/dist/geoarrow/lib/binary-geometry-api/binary-geometry-info.d.ts.map +1 -0
- package/dist/geoarrow/lib/binary-geometry-api/binary-geometry-info.js +49 -0
- package/dist/geoarrow/lib/binary-geometry-api/binary-geometry-info.js.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.cjs +450 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.cjs.map +7 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.d.ts +21 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.d.ts.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.js +405 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.js.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.cjs +117 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.cjs.map +7 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.d.ts +16 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.d.ts.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.js +116 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.js.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.cjs +1127 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.cjs.map +7 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.d.ts +86 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.d.ts.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.js +882 -0
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.js.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.cjs +156 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.cjs.map +7 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.d.ts +26 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.d.ts.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.js +119 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.js.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.cjs +74 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.cjs.map +7 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.d.ts +32 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.d.ts.map +1 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.js +53 -0
- package/dist/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.js.map +1 -0
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.cjs +31 -0
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.cjs.map +7 -0
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.d.ts +2 -0
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.d.ts.map +1 -0
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.js +2 -0
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.js.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.cjs +115 -0
- package/dist/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.d.ts +4 -0
- package/dist/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.js +102 -0
- package/dist/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.js.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.cjs +158 -0
- package/dist/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.d.ts +7 -0
- package/dist/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.js +139 -0
- package/dist/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.js.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.cjs +126 -0
- package/dist/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.d.ts +10 -0
- package/dist/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.js +123 -0
- package/dist/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.js.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.cjs +94 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.d.ts +8 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.js +82 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.js.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.cjs +109 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.d.ts +37 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.js +103 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.js.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.cjs +67 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.d.ts +64 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.js +47 -0
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.js.map +1 -0
- package/dist/geoarrow/lib/geometry-predicates.cjs +133 -0
- package/dist/geoarrow/lib/geometry-predicates.cjs.map +7 -0
- package/dist/geoarrow/lib/geometry-predicates.d.ts +7 -0
- package/dist/geoarrow/lib/geometry-predicates.d.ts.map +1 -0
- package/dist/geoarrow/lib/geometry-predicates.js +138 -0
- package/dist/geoarrow/lib/geometry-predicates.js.map +1 -0
- package/dist/geoarrow/lib/kernels/decode-wkt-native.cjs +589 -0
- package/dist/geoarrow/lib/kernels/decode-wkt-native.cjs.map +7 -0
- package/dist/geoarrow/lib/kernels/decode-wkt-native.d.ts +48 -0
- package/dist/geoarrow/lib/kernels/decode-wkt-native.d.ts.map +1 -0
- package/dist/geoarrow/lib/kernels/decode-wkt-native.js +618 -0
- package/dist/geoarrow/lib/kernels/decode-wkt-native.js.map +1 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.cjs +255 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.cjs.map +7 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.d.ts +12 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.d.ts.map +1 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.js +257 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.js.map +1 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.cjs +290 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.cjs.map +7 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.d.ts +16 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.d.ts.map +1 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.js +334 -0
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.js.map +1 -0
- package/dist/geoarrow/lib/kernels/geoarrow-union.cjs +102 -0
- package/dist/geoarrow/lib/kernels/geoarrow-union.cjs.map +7 -0
- package/dist/geoarrow/lib/kernels/geoarrow-union.d.ts +8 -0
- package/dist/geoarrow/lib/kernels/geoarrow-union.d.ts.map +1 -0
- package/dist/geoarrow/lib/kernels/geoarrow-union.js +90 -0
- package/dist/geoarrow/lib/kernels/geoarrow-union.js.map +1 -0
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.cjs +98 -0
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.cjs.map +7 -0
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.d.ts +9 -0
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.d.ts.map +1 -0
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.js +76 -0
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.js.map +1 -0
- package/dist/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.cjs +34 -0
- package/dist/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.cjs.map +7 -0
- package/dist/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.d.ts +6 -0
- package/dist/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.d.ts.map +1 -0
- package/dist/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.js +11 -0
- package/dist/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.js.map +1 -0
- package/dist/geoarrow/map-geoarrow-coordinates.cjs +228 -0
- package/dist/geoarrow/map-geoarrow-coordinates.cjs.map +7 -0
- package/dist/geoarrow/map-geoarrow-coordinates.d.ts +16 -0
- package/dist/geoarrow/map-geoarrow-coordinates.d.ts.map +1 -0
- package/dist/geoarrow/map-geoarrow-coordinates.js +182 -0
- package/dist/geoarrow/map-geoarrow-coordinates.js.map +1 -0
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.cjs +87 -0
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.cjs.map +7 -0
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.d.ts +11 -0
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.js +40 -0
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.js.map +1 -0
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.cjs +73 -0
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.cjs.map +7 -0
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.d.ts +11 -0
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.js +32 -0
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.js.map +1 -0
- package/dist/geoarrow/mesharrow/get-bounding-box.cjs +49 -0
- package/dist/geoarrow/mesharrow/get-bounding-box.cjs.map +7 -0
- package/dist/geoarrow/mesharrow/get-bounding-box.d.ts +5 -0
- package/dist/geoarrow/mesharrow/get-bounding-box.d.ts.map +1 -0
- package/dist/geoarrow/mesharrow/get-bounding-box.js +32 -0
- package/dist/geoarrow/mesharrow/get-bounding-box.js.map +1 -0
- package/dist/geoarrow/mesharrow/get-deck-binary-data.cjs +74 -0
- package/dist/geoarrow/mesharrow/get-deck-binary-data.cjs.map +7 -0
- package/dist/geoarrow/mesharrow/get-deck-binary-data.d.ts +13 -0
- package/dist/geoarrow/mesharrow/get-deck-binary-data.d.ts.map +1 -0
- package/dist/geoarrow/mesharrow/get-deck-binary-data.js +49 -0
- package/dist/geoarrow/mesharrow/get-deck-binary-data.js.map +1 -0
- package/dist/geoarrow/mesharrow/mesh-accessors.cjs +47 -0
- package/dist/geoarrow/mesharrow/mesh-accessors.cjs.map +7 -0
- package/dist/geoarrow/mesharrow/mesh-accessors.d.ts +8 -0
- package/dist/geoarrow/mesharrow/mesh-accessors.d.ts.map +1 -0
- package/dist/geoarrow/mesharrow/mesh-accessors.js +19 -0
- package/dist/geoarrow/mesharrow/mesh-accessors.js.map +1 -0
- package/dist/geoarrow/metadata/geoarrow-metadata.cjs +93 -0
- package/dist/geoarrow/metadata/geoarrow-metadata.cjs.map +7 -0
- package/dist/geoarrow/metadata/geoarrow-metadata.d.ts +15 -0
- package/dist/geoarrow/metadata/geoarrow-metadata.d.ts.map +1 -0
- package/dist/geoarrow/metadata/geoarrow-metadata.js +82 -0
- package/dist/geoarrow/metadata/geoarrow-metadata.js.map +1 -0
- package/dist/geoarrow/metadata/geoparquet-metadata-schema.cjs +90 -0
- package/dist/geoarrow/metadata/geoparquet-metadata-schema.cjs.map +7 -0
- package/dist/geoarrow/metadata/geoparquet-metadata-schema.d.ts +79 -0
- package/dist/geoarrow/metadata/geoparquet-metadata-schema.d.ts.map +1 -0
- package/dist/geoarrow/metadata/geoparquet-metadata-schema.js +70 -0
- package/dist/geoarrow/metadata/geoparquet-metadata-schema.js.map +1 -0
- package/dist/geoarrow/metadata/geoparquet-metadata.cjs +39 -0
- package/dist/geoarrow/metadata/geoparquet-metadata.cjs.map +7 -0
- package/dist/geoarrow/metadata/geoparquet-metadata.d.ts +3 -0
- package/dist/geoarrow/metadata/geoparquet-metadata.d.ts.map +1 -0
- package/dist/geoarrow/metadata/geoparquet-metadata.js +5 -0
- package/dist/geoarrow/metadata/geoparquet-metadata.js.map +1 -0
- package/dist/geoarrow/metadata/merge-geoarrow-metadata.cjs +244 -0
- package/dist/geoarrow/metadata/merge-geoarrow-metadata.cjs.map +7 -0
- package/dist/geoarrow/metadata/merge-geoarrow-metadata.d.ts +63 -0
- package/dist/geoarrow/metadata/merge-geoarrow-metadata.d.ts.map +1 -0
- package/dist/geoarrow/metadata/merge-geoarrow-metadata.js +243 -0
- package/dist/geoarrow/metadata/merge-geoarrow-metadata.js.map +1 -0
- package/dist/geoarrow/metadata/metadata-utils.cjs +33 -0
- package/dist/geoarrow/metadata/metadata-utils.cjs.map +7 -0
- package/dist/geoarrow/metadata/metadata-utils.d.ts +3 -0
- package/dist/geoarrow/metadata/metadata-utils.d.ts.map +1 -0
- package/dist/geoarrow/metadata/metadata-utils.js +5 -0
- package/dist/geoarrow/metadata/metadata-utils.js.map +1 -0
- package/dist/geoarrow/rewind-geoarrow.cjs +219 -0
- package/dist/geoarrow/rewind-geoarrow.cjs.map +7 -0
- package/dist/geoarrow/rewind-geoarrow.d.ts +23 -0
- package/dist/geoarrow/rewind-geoarrow.d.ts.map +1 -0
- package/dist/geoarrow/rewind-geoarrow.js +204 -0
- package/dist/geoarrow/rewind-geoarrow.js.map +1 -0
- package/dist/index.cjs +339 -1091
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/iterators/make-iterator/make-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-iterator.js.map +1 -1
- package/dist/iterators/make-iterator/make-stream-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-stream-iterator.js.map +1 -1
- package/dist/iterators/make-iterator/make-string-iterator.js +1 -1
- package/dist/iterators/make-iterator/make-string-iterator.js.map +1 -1
- package/dist/lib/api/core-api.d.ts +1 -1
- package/dist/lib/api/core-api.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.d.ts +1 -1
- package/dist/lib/api/create-data-source.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.js +1 -1
- package/dist/lib/api/create-data-source.js.map +1 -1
- package/dist/lib/api/encode-table.d.ts +2 -2
- package/dist/lib/api/encode-table.d.ts.map +1 -1
- package/dist/lib/api/encode-table.js +1 -1
- package/dist/lib/api/encode-table.js.map +1 -1
- package/dist/lib/api/encode.d.ts +1 -1
- package/dist/lib/api/encode.d.ts.map +1 -1
- package/dist/lib/api/encode.js +2 -2
- package/dist/lib/api/encode.js.map +1 -1
- package/dist/lib/api/load-in-batches.d.ts +1 -1
- package/dist/lib/api/load-in-batches.d.ts.map +1 -1
- package/dist/lib/api/load-in-batches.js +1 -1
- package/dist/lib/api/load-in-batches.js.map +1 -1
- package/dist/lib/api/load-loader.d.ts +3 -1
- package/dist/lib/api/load-loader.d.ts.map +1 -1
- package/dist/lib/api/load-loader.js +112 -0
- package/dist/lib/api/load-loader.js.map +1 -1
- package/dist/lib/api/load.d.ts +1 -1
- package/dist/lib/api/load.d.ts.map +1 -1
- package/dist/lib/api/load.js +1 -1
- package/dist/lib/api/load.js.map +1 -1
- package/dist/lib/api/parse-file.d.ts +1 -1
- package/dist/lib/api/parse-file.d.ts.map +1 -1
- package/dist/lib/api/parse-file.js +4 -2
- package/dist/lib/api/parse-file.js.map +1 -1
- package/dist/lib/api/parse-in-batches.d.ts +1 -1
- package/dist/lib/api/parse-in-batches.d.ts.map +1 -1
- package/dist/lib/api/parse-in-batches.js +44 -7
- package/dist/lib/api/parse-in-batches.js.map +1 -1
- package/dist/lib/api/parse-sync.d.ts +1 -1
- package/dist/lib/api/parse-sync.d.ts.map +1 -1
- package/dist/lib/api/parse-sync.js +1 -1
- package/dist/lib/api/parse-sync.js.map +1 -1
- package/dist/lib/api/parse.d.ts +1 -1
- package/dist/lib/api/parse.d.ts.map +1 -1
- package/dist/lib/api/parse.js +7 -5
- package/dist/lib/api/parse.js.map +1 -1
- package/dist/lib/api/preload.d.ts +6 -3
- package/dist/lib/api/preload.d.ts.map +1 -1
- package/dist/lib/api/preload.js +4 -5
- package/dist/lib/api/preload.js.map +1 -1
- package/dist/lib/api/register-loaders.d.ts +1 -1
- package/dist/lib/api/register-loaders.d.ts.map +1 -1
- package/dist/lib/api/select-loader.d.ts +1 -1
- package/dist/lib/api/select-loader.d.ts.map +1 -1
- package/dist/lib/api/select-loader.js +1 -1
- package/dist/lib/api/select-loader.js.map +1 -1
- package/dist/lib/api/select-source.d.ts +1 -1
- package/dist/lib/api/select-source.d.ts.map +1 -1
- package/dist/lib/common.d.ts +1 -1
- package/dist/lib/common.d.ts.map +1 -1
- package/dist/lib/fetch/fetch-file.js +2 -2
- package/dist/lib/fetch/fetch-file.js.map +1 -1
- package/dist/lib/filesystems/browser-filesystem.d.ts +1 -1
- package/dist/lib/filesystems/browser-filesystem.d.ts.map +1 -1
- package/dist/lib/filesystems/browser-filesystem.js +1 -1
- package/dist/lib/filesystems/browser-filesystem.js.map +1 -1
- package/dist/lib/init.js +2 -2
- package/dist/lib/init.js.map +1 -1
- package/dist/lib/loader-utils/get-data.d.ts +1 -1
- package/dist/lib/loader-utils/get-data.d.ts.map +1 -1
- package/dist/lib/loader-utils/get-data.js +1 -1
- package/dist/lib/loader-utils/get-data.js.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.d.ts +1 -1
- package/dist/lib/loader-utils/get-fetch-function.d.ts.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.js +4 -2
- package/dist/lib/loader-utils/get-fetch-function.js.map +1 -1
- package/dist/lib/loader-utils/loader-context.d.ts +1 -1
- package/dist/lib/loader-utils/loader-context.d.ts.map +1 -1
- package/dist/lib/loader-utils/loader-context.js +7 -1
- package/dist/lib/loader-utils/loader-context.js.map +1 -1
- package/dist/lib/loader-utils/loggers.d.ts +1 -1
- package/dist/lib/loader-utils/loggers.d.ts.map +1 -1
- package/dist/lib/loader-utils/loggers.js +1 -1
- package/dist/lib/loader-utils/loggers.js.map +1 -1
- package/dist/lib/loader-utils/normalize-loader.d.ts +1 -1
- package/dist/lib/loader-utils/normalize-loader.d.ts.map +1 -1
- package/dist/lib/loader-utils/normalize-loader.js +1 -1
- package/dist/lib/loader-utils/normalize-loader.js.map +1 -1
- package/dist/lib/loader-utils/option-defaults.d.ts +1 -1
- package/dist/lib/loader-utils/option-defaults.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-defaults.js +3 -1
- package/dist/lib/loader-utils/option-defaults.js.map +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-utils.js +2 -2
- package/dist/lib/loader-utils/option-utils.js.map +1 -1
- package/dist/lib/utils/resource-utils.js +1 -1
- package/dist/lib/utils/resource-utils.js.map +1 -1
- package/dist/lib/utils/response-utils.js +1 -1
- package/dist/lib/utils/response-utils.js.map +1 -1
- package/dist/loader-utils/format-types.d.ts +32 -0
- package/dist/loader-utils/format-types.d.ts.map +1 -0
- package/dist/loader-utils/format-types.js +5 -0
- package/dist/loader-utils/format-types.js.map +1 -0
- package/dist/loader-utils/index.cjs +11476 -0
- package/dist/loader-utils/index.cjs.map +6 -0
- package/dist/loader-utils/index.d.ts +124 -0
- package/dist/loader-utils/index.d.ts.map +1 -0
- package/dist/loader-utils/index.js +92 -0
- package/dist/loader-utils/index.js.map +1 -0
- package/dist/loader-utils/json-loader.d.ts +27 -0
- package/dist/loader-utils/json-loader.d.ts.map +1 -0
- package/dist/loader-utils/json-loader.js +32 -0
- package/dist/loader-utils/json-loader.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts +32 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js +88 -0
- package/dist/loader-utils/lib/binary-utils/array-buffer-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts +67 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js +245 -0
- package/dist/loader-utils/lib/binary-utils/binary-chunk-reader.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts +43 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js +92 -0
- package/dist/loader-utils/lib/binary-utils/dataview-copy-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts +3 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js +15 -0
- package/dist/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts +17 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.js +43 -0
- package/dist/loader-utils/lib/binary-utils/get-first-characters.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts +15 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.js +51 -0
- package/dist/loader-utils/lib/binary-utils/hex-transcoder.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts +20 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js +82 -0
- package/dist/loader-utils/lib/binary-utils/memory-conversion-utils.js.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts +25 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js +59 -0
- package/dist/loader-utils/lib/binary-utils/memory-copy-utils.js.map +1 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.d.ts +31 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.d.ts.map +1 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.js +20 -0
- package/dist/loader-utils/lib/crs/crs-reprojection.js.map +1 -0
- package/dist/loader-utils/lib/env-utils/assert.d.ts +6 -0
- package/dist/loader-utils/lib/env-utils/assert.d.ts.map +1 -0
- package/dist/loader-utils/lib/env-utils/assert.js +13 -0
- package/dist/loader-utils/lib/env-utils/assert.js.map +1 -0
- package/dist/loader-utils/lib/env-utils/globals.d.ts +15 -0
- package/dist/loader-utils/lib/env-utils/globals.d.ts.map +1 -0
- package/dist/loader-utils/lib/env-utils/globals.js +28 -0
- package/dist/loader-utils/lib/env-utils/globals.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts +40 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.js +68 -0
- package/dist/loader-utils/lib/file-provider/data-view-file.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts +54 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.js +102 -0
- package/dist/loader-utils/lib/file-provider/file-handle-file.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts +45 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js +13 -0
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts +57 -0
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts.map +1 -0
- package/dist/loader-utils/lib/file-provider/file-provider.js +114 -0
- package/dist/loader-utils/lib/file-provider/file-provider.js.map +1 -0
- package/dist/loader-utils/lib/files/array-buffer-file.d.ts +21 -0
- package/dist/loader-utils/lib/files/array-buffer-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/array-buffer-file.js +36 -0
- package/dist/loader-utils/lib/files/array-buffer-file.js.map +1 -0
- package/dist/loader-utils/lib/files/blob-file.d.ts +19 -0
- package/dist/loader-utils/lib/files/blob-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/blob-file.js +39 -0
- package/dist/loader-utils/lib/files/blob-file.js.map +1 -0
- package/dist/loader-utils/lib/files/file.d.ts +33 -0
- package/dist/loader-utils/lib/files/file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/file.js +5 -0
- package/dist/loader-utils/lib/files/file.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file-transport.d.ts +37 -0
- package/dist/loader-utils/lib/files/http-file-transport.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file-transport.js +290 -0
- package/dist/loader-utils/lib/files/http-file-transport.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file-types.d.ts +49 -0
- package/dist/loader-utils/lib/files/http-file-types.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file-types.js +5 -0
- package/dist/loader-utils/lib/files/http-file-types.js.map +1 -0
- package/dist/loader-utils/lib/files/http-file.d.ts +55 -0
- package/dist/loader-utils/lib/files/http-file.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/http-file.js +213 -0
- package/dist/loader-utils/lib/files/http-file.js.map +1 -0
- package/dist/loader-utils/lib/files/node-file-facade.d.ts +22 -0
- package/dist/loader-utils/lib/files/node-file-facade.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/node-file-facade.js +45 -0
- package/dist/loader-utils/lib/files/node-file-facade.js.map +1 -0
- package/dist/loader-utils/lib/files/sources.d.ts +1 -0
- package/dist/loader-utils/lib/files/sources.d.ts.map +1 -0
- package/dist/loader-utils/lib/files/sources.js +155 -0
- package/dist/loader-utils/lib/files/sources.js.map +1 -0
- package/dist/loader-utils/lib/filesystems/filesystem.d.ts +33 -0
- package/dist/loader-utils/lib/filesystems/filesystem.d.ts.map +1 -0
- package/dist/loader-utils/lib/filesystems/filesystem.js +5 -0
- package/dist/loader-utils/lib/filesystems/filesystem.js.map +1 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts +23 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.d.ts.map +1 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js +48 -0
- package/dist/loader-utils/lib/filesystems/node-filesystem-facade.js.map +1 -0
- package/dist/loader-utils/lib/iterators/async-iteration.d.ts +20 -0
- package/dist/loader-utils/lib/iterators/async-iteration.d.ts.map +1 -0
- package/dist/loader-utils/lib/iterators/async-iteration.js +102 -0
- package/dist/loader-utils/lib/iterators/async-iteration.js.map +1 -0
- package/dist/loader-utils/lib/iterators/text-iterators.d.ts +19 -0
- package/dist/loader-utils/lib/iterators/text-iterators.d.ts.map +1 -0
- package/dist/loader-utils/lib/iterators/text-iterators.js +60 -0
- package/dist/loader-utils/lib/iterators/text-iterators.js.map +1 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.d.ts +59 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.js +68 -0
- package/dist/loader-utils/lib/javascript-utils/is-type.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts +118 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js +427 -0
- package/dist/loader-utils/lib/laz/laz-arithmetic-encoder.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts +204 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.js +4226 -0
- package/dist/loader-utils/lib/laz/laz-chunk-decoder.js.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts +40 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.d.ts.map +1 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.js +1518 -0
- package/dist/loader-utils/lib/laz/laz-chunk-encoder.js.map +1 -0
- package/dist/loader-utils/lib/log-utils/log.d.ts +4 -0
- package/dist/loader-utils/lib/log-utils/log.d.ts.map +1 -0
- package/dist/loader-utils/lib/log-utils/log.js +21 -0
- package/dist/loader-utils/lib/log-utils/log.js.map +1 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts +10 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.d.ts.map +1 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js +44 -0
- package/dist/loader-utils/lib/module-utils/initialize-wasm-module.js.map +1 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts +18 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.js +40 -0
- package/dist/loader-utils/lib/module-utils/js-module-utils.js.map +1 -0
- package/dist/loader-utils/lib/node/buffer.browser.d.ts +11 -0
- package/dist/loader-utils/lib/node/buffer.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/buffer.browser.js +20 -0
- package/dist/loader-utils/lib/node/buffer.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/buffer.d.ts +11 -0
- package/dist/loader-utils/lib/node/buffer.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/buffer.js +35 -0
- package/dist/loader-utils/lib/node/buffer.js.map +1 -0
- package/dist/loader-utils/lib/node/fs.browser.d.ts +2 -0
- package/dist/loader-utils/lib/node/fs.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/fs.browser.js +5 -0
- package/dist/loader-utils/lib/node/fs.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/promisify.d.ts +13 -0
- package/dist/loader-utils/lib/node/promisify.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/promisify.js +19 -0
- package/dist/loader-utils/lib/node/promisify.js.map +1 -0
- package/dist/loader-utils/lib/node/stream.browser.d.ts +2 -0
- package/dist/loader-utils/lib/node/stream.browser.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/stream.browser.js +5 -0
- package/dist/loader-utils/lib/node/stream.browser.js.map +1 -0
- package/dist/loader-utils/lib/node/stream.d.ts +6 -0
- package/dist/loader-utils/lib/node/stream.d.ts.map +1 -0
- package/dist/loader-utils/lib/node/stream.js +8 -0
- package/dist/loader-utils/lib/node/stream.js.map +1 -0
- package/dist/loader-utils/lib/option-utils/merge-options.d.ts +12 -0
- package/dist/loader-utils/lib/option-utils/merge-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/option-utils/merge-options.js +34 -0
- package/dist/loader-utils/lib/option-utils/merge-options.js.map +1 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.d.ts +5 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.d.ts.map +1 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.js +16 -0
- package/dist/loader-utils/lib/parser-utils/parse-json.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts +35 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js +64 -0
- package/dist/loader-utils/lib/path-utils/cached-uri-resolver.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.d.ts +17 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.js +44 -0
- package/dist/loader-utils/lib/path-utils/file-aliases.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.d.ts +3 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.js +12 -0
- package/dist/loader-utils/lib/path-utils/get-cwd.js.map +1 -0
- package/dist/loader-utils/lib/path-utils/path.d.ts +24 -0
- package/dist/loader-utils/lib/path-utils/path.d.ts.map +1 -0
- package/dist/loader-utils/lib/path-utils/path.js +173 -0
- package/dist/loader-utils/lib/path-utils/path.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.d.ts +5 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.js +59 -0
- package/dist/loader-utils/lib/request-utils/abort-utils.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/authentication.d.ts +56 -0
- package/dist/loader-utils/lib/request-utils/authentication.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/authentication.js +67 -0
- package/dist/loader-utils/lib/request-utils/authentication.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts +7 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.js +20 -0
- package/dist/loader-utils/lib/request-utils/parse-content-type.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts +70 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.js +203 -0
- package/dist/loader-utils/lib/request-utils/range-request-cache.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts +201 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.js +636 -0
- package/dist/loader-utils/lib/request-utils/range-request-scheduler.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-cache.d.ts +62 -0
- package/dist/loader-utils/lib/request-utils/request-cache.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-cache.js +236 -0
- package/dist/loader-utils/lib/request-utils/request-cache.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.d.ts +139 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js +373 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts +71 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.d.ts.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.js +174 -0
- package/dist/loader-utils/lib/request-utils/request-scheduler.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts +56 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.js +261 -0
- package/dist/loader-utils/lib/scan-utils/columnar-predicate.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts +42 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js +5 -0
- package/dist/loader-utils/lib/scan-utils/experimental-scan-options.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts +56 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.js +86 -0
- package/dist/loader-utils/lib/scan-utils/point-cloud-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.d.ts +36 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.js +49 -0
- package/dist/loader-utils/lib/scan-utils/raster-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.d.ts +75 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.js +107 -0
- package/dist/loader-utils/lib/scan-utils/relational-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts +20 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.js +183 -0
- package/dist/loader-utils/lib/scan-utils/scan-executor.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts +23 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.js +5 -0
- package/dist/loader-utils/lib/scan-utils/scan-fragments.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts +272 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js +97 -0
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts +39 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.js +35 -0
- package/dist/loader-utils/lib/scan-utils/table-query-explain.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts +77 -0
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js +56 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts +30 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts.map +1 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js +161 -0
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js.map +1 -0
- package/dist/loader-utils/lib/sources/catalog-source.d.ts +36 -0
- package/dist/loader-utils/lib/sources/catalog-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/catalog-source.js +5 -0
- package/dist/loader-utils/lib/sources/catalog-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/data-source-manager.d.ts +136 -0
- package/dist/loader-utils/lib/sources/data-source-manager.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/data-source-manager.js +376 -0
- package/dist/loader-utils/lib/sources/data-source-manager.js.map +1 -0
- package/dist/loader-utils/lib/sources/data-source.d.ts +79 -0
- package/dist/loader-utils/lib/sources/data-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/data-source.js +145 -0
- package/dist/loader-utils/lib/sources/data-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/image-source.d.ts +55 -0
- package/dist/loader-utils/lib/sources/image-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/image-source.js +5 -0
- package/dist/loader-utils/lib/sources/image-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/image-tile-source.d.ts +12 -0
- package/dist/loader-utils/lib/sources/image-tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/image-tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/image-tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-coverage.d.ts +17 -0
- package/dist/loader-utils/lib/sources/raster-coverage.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-coverage.js +62 -0
- package/dist/loader-utils/lib/sources/raster-coverage.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-region.d.ts +4 -0
- package/dist/loader-utils/lib/sources/raster-region.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-region.js +22 -0
- package/dist/loader-utils/lib/sources/raster-region.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-sampling.d.ts +35 -0
- package/dist/loader-utils/lib/sources/raster-sampling.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-sampling.js +152 -0
- package/dist/loader-utils/lib/sources/raster-sampling.js.map +1 -0
- package/dist/loader-utils/lib/sources/raster-source.d.ts +302 -0
- package/dist/loader-utils/lib/sources/raster-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/raster-source.js +20 -0
- package/dist/loader-utils/lib/sources/raster-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/service-capabilities.d.ts +36 -0
- package/dist/loader-utils/lib/sources/service-capabilities.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/service-capabilities.js +5 -0
- package/dist/loader-utils/lib/sources/service-capabilities.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-grid.d.ts +89 -0
- package/dist/loader-utils/lib/sources/tile-grid.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-grid.js +306 -0
- package/dist/loader-utils/lib/sources/tile-grid.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts +24 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.js +105 -0
- package/dist/loader-utils/lib/sources/tile-source-adapter.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.d.ts +6 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.js +13 -0
- package/dist/loader-utils/lib/sources/tile-source-utils.js.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source.d.ts +192 -0
- package/dist/loader-utils/lib/sources/tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/utils/image-type.d.ts +10 -0
- package/dist/loader-utils/lib/sources/utils/image-type.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/utils/image-type.js +5 -0
- package/dist/loader-utils/lib/sources/utils/image-type.js.map +1 -0
- package/dist/loader-utils/lib/sources/utils/utils.d.ts +13 -0
- package/dist/loader-utils/lib/sources/utils/utils.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/utils/utils.js +26 -0
- package/dist/loader-utils/lib/sources/utils/utils.js.map +1 -0
- package/dist/loader-utils/lib/sources/vector-source.d.ts +76 -0
- package/dist/loader-utils/lib/sources/vector-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/vector-source.js +5 -0
- package/dist/loader-utils/lib/sources/vector-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts +15 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.js +5 -0
- package/dist/loader-utils/lib/sources/vector-tile-source.js.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid-options.d.ts +20 -0
- package/dist/loader-utils/lib/sources/xyz-grid-options.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid-options.js +65 -0
- package/dist/loader-utils/lib/sources/xyz-grid-options.js.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid.d.ts +9 -0
- package/dist/loader-utils/lib/sources/xyz-grid.d.ts.map +1 -0
- package/dist/loader-utils/lib/sources/xyz-grid.js +67 -0
- package/dist/loader-utils/lib/sources/xyz-grid.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts +25 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js +156 -0
- package/dist/loader-utils/lib/worker-loader-utils/create-loader-worker.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts +8 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js +23 -0
- package/dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts +47 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts.map +1 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js +271 -0
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js.map +1 -0
- package/dist/loader-utils/loader-types.d.ts +332 -0
- package/dist/loader-utils/loader-types.d.ts.map +1 -0
- package/dist/loader-utils/loader-types.js +33 -0
- package/dist/loader-utils/loader-types.js.map +1 -0
- package/dist/loader-utils/source-types.d.ts +42 -0
- package/dist/loader-utils/source-types.d.ts.map +1 -0
- package/dist/loader-utils/source-types.js +8 -0
- package/dist/loader-utils/source-types.js.map +1 -0
- package/dist/loader-utils/tile-grid.cjs +328 -0
- package/dist/loader-utils/tile-grid.cjs.map +6 -0
- package/dist/loader-utils/tile-grid.d.ts +5 -0
- package/dist/loader-utils/tile-grid.d.ts.map +1 -0
- package/dist/loader-utils/tile-grid.js +7 -0
- package/dist/loader-utils/tile-grid.js.map +1 -0
- package/dist/loader-utils/types.d.ts +24 -0
- package/dist/loader-utils/types.d.ts.map +1 -0
- package/dist/loader-utils/types.js +6 -0
- package/dist/loader-utils/types.js.map +1 -0
- package/dist/loader-utils/workers/json-worker.d.ts +2 -0
- package/dist/loader-utils/workers/json-worker.d.ts.map +1 -0
- package/dist/loader-utils/workers/json-worker.js +7 -0
- package/dist/loader-utils/workers/json-worker.js.map +1 -0
- package/dist/loader-utils/writer-types.d.ts +74 -0
- package/dist/loader-utils/writer-types.d.ts.map +1 -0
- package/dist/loader-utils/writer-types.js +5 -0
- package/dist/loader-utils/writer-types.js.map +1 -0
- package/dist/null-loader.d.ts +2 -2
- package/dist/null-loader.d.ts.map +1 -1
- package/dist/null-loader.js +1 -1
- package/dist/null-loader.js.map +1 -1
- package/dist/null-worker-node.js +229 -100
- package/dist/null-worker.js +225 -64
- package/dist/polyfills/buffer/btoa.node.d.ts +3 -0
- package/dist/polyfills/buffer/btoa.node.d.ts.map +1 -0
- package/dist/polyfills/buffer/btoa.node.js +13 -0
- package/dist/polyfills/buffer/btoa.node.js.map +1 -0
- package/dist/polyfills/buffer/to-array-buffer.node.d.ts +2 -0
- package/dist/polyfills/buffer/to-array-buffer.node.d.ts.map +1 -0
- package/dist/polyfills/buffer/to-array-buffer.node.js +12 -0
- package/dist/polyfills/buffer/to-array-buffer.node.js.map +1 -0
- package/dist/polyfills/crypto/node-hash.d.ts +29 -0
- package/dist/polyfills/crypto/node-hash.d.ts.map +1 -0
- package/dist/polyfills/crypto/node-hash.js +63 -0
- package/dist/polyfills/crypto/node-hash.js.map +1 -0
- package/dist/polyfills/file/file-reader.d.ts +24 -0
- package/dist/polyfills/file/file-reader.d.ts.map +1 -0
- package/dist/polyfills/file/file-reader.js +51 -0
- package/dist/polyfills/file/file-reader.js.map +1 -0
- package/dist/polyfills/file/install-file-polyfills.d.ts +2 -0
- package/dist/polyfills/file/install-file-polyfills.d.ts.map +1 -0
- package/dist/polyfills/file/install-file-polyfills.js +12 -0
- package/dist/polyfills/file/install-file-polyfills.js.map +1 -0
- package/dist/polyfills/filesystems/fetch-node.d.ts +8 -0
- package/dist/polyfills/filesystems/fetch-node.d.ts.map +1 -0
- package/dist/polyfills/filesystems/fetch-node.js +88 -0
- package/dist/polyfills/filesystems/fetch-node.js.map +1 -0
- package/dist/polyfills/filesystems/node-file.d.ts +15 -0
- package/dist/polyfills/filesystems/node-file.d.ts.map +1 -0
- package/dist/polyfills/filesystems/node-file.js +138 -0
- package/dist/polyfills/filesystems/node-file.js.map +1 -0
- package/dist/polyfills/filesystems/node-filesystem.d.ts +19 -0
- package/dist/polyfills/filesystems/node-filesystem.d.ts.map +1 -0
- package/dist/polyfills/filesystems/node-filesystem.js +44 -0
- package/dist/polyfills/filesystems/node-filesystem.js.map +1 -0
- package/dist/polyfills/filesystems/stream-utils.node.d.ts +18 -0
- package/dist/polyfills/filesystems/stream-utils.node.d.ts.map +1 -0
- package/dist/polyfills/filesystems/stream-utils.node.js +67 -0
- package/dist/polyfills/filesystems/stream-utils.node.js.map +1 -0
- package/dist/polyfills/images/encode-image-node.d.ts +23 -0
- package/dist/polyfills/images/encode-image-node.d.ts.map +1 -0
- package/dist/polyfills/images/encode-image-node.js +23 -0
- package/dist/polyfills/images/encode-image-node.js.map +1 -0
- package/dist/polyfills/images/image-codecs-node.d.ts +4 -0
- package/dist/polyfills/images/image-codecs-node.d.ts.map +1 -0
- package/dist/polyfills/images/image-codecs-node.js +5 -0
- package/dist/polyfills/images/image-codecs-node.js.map +1 -0
- package/dist/polyfills/images/load-sharp.d.ts +3 -0
- package/dist/polyfills/images/load-sharp.d.ts.map +1 -0
- package/dist/polyfills/images/load-sharp.js +11 -0
- package/dist/polyfills/images/load-sharp.js.map +1 -0
- package/dist/polyfills/images/node-image-bitmap.d.ts +38 -0
- package/dist/polyfills/images/node-image-bitmap.d.ts.map +1 -0
- package/dist/polyfills/images/node-image-bitmap.js +64 -0
- package/dist/polyfills/images/node-image-bitmap.js.map +1 -0
- package/dist/polyfills/images/node-image-formats.d.ts +3 -0
- package/dist/polyfills/images/node-image-formats.d.ts.map +1 -0
- package/dist/polyfills/images/node-image-formats.js +12 -0
- package/dist/polyfills/images/node-image-formats.js.map +1 -0
- package/dist/polyfills/images/parse-image-node.d.ts +19 -0
- package/dist/polyfills/images/parse-image-node.d.ts.map +1 -0
- package/dist/polyfills/images/parse-image-node.js +24 -0
- package/dist/polyfills/images/parse-image-node.js.map +1 -0
- package/dist/polyfills/index.browser.d.ts +8 -0
- package/dist/polyfills/index.browser.d.ts.map +1 -0
- package/dist/polyfills/index.browser.js +18 -0
- package/dist/polyfills/index.browser.js.map +1 -0
- package/dist/polyfills/index.cjs +2219 -0
- package/dist/polyfills/index.cjs.map +6 -0
- package/dist/polyfills/index.d.ts +16 -0
- package/dist/polyfills/index.d.ts.map +1 -0
- package/dist/polyfills/index.js +92 -0
- package/dist/polyfills/index.js.map +1 -0
- package/dist/polyfills/libs/encoding-indexes-asian.d.ts +10 -0
- package/dist/polyfills/libs/encoding-indexes-asian.d.ts.map +1 -0
- package/dist/polyfills/libs/encoding-indexes-asian.js +14 -0
- package/dist/polyfills/libs/encoding-indexes-asian.js.map +1 -0
- package/dist/polyfills/load-library/require-utils.node.d.ts +19 -0
- package/dist/polyfills/load-library/require-utils.node.d.ts.map +1 -0
- package/dist/polyfills/load-library/require-utils.node.js +88 -0
- package/dist/polyfills/load-library/require-utils.node.js.map +1 -0
- package/dist/polyfills/streams/make-node-stream.d.ts +6 -0
- package/dist/polyfills/streams/make-node-stream.d.ts.map +1 -0
- package/dist/polyfills/streams/make-node-stream.js +53 -0
- package/dist/polyfills/streams/make-node-stream.js.map +1 -0
- package/dist/polyfills/text-encoder/encoding-indexes.d.ts +31 -0
- package/dist/polyfills/text-encoder/encoding-indexes.d.ts.map +1 -0
- package/dist/polyfills/text-encoder/encoding-indexes.js +35 -0
- package/dist/polyfills/text-encoder/encoding-indexes.js.map +1 -0
- package/dist/polyfills/text-encoder/text-encoder.d.ts +15 -0
- package/dist/polyfills/text-encoder/text-encoder.d.ts.map +1 -0
- package/dist/polyfills/text-encoder/text-encoder.js +2778 -0
- package/dist/polyfills/text-encoder/text-encoder.js.map +1 -0
- package/dist/polyfills/utils/assert.d.ts +2 -0
- package/dist/polyfills/utils/assert.d.ts.map +1 -0
- package/dist/polyfills/utils/assert.js +9 -0
- package/dist/polyfills/utils/assert.js.map +1 -0
- package/dist/polyfills/utils/buffer-utils.d.ts +5 -0
- package/dist/polyfills/utils/buffer-utils.d.ts.map +1 -0
- package/dist/polyfills/utils/buffer-utils.js +34 -0
- package/dist/polyfills/utils/buffer-utils.js.map +1 -0
- package/dist/polyfills/utils/filesystem-types.d.ts +10 -0
- package/dist/polyfills/utils/filesystem-types.d.ts.map +1 -0
- package/dist/polyfills/utils/filesystem-types.js +5 -0
- package/dist/polyfills/utils/filesystem-types.js.map +1 -0
- package/dist/polyfills/utils/is-browser.d.ts +2 -0
- package/dist/polyfills/utils/is-browser.d.ts.map +1 -0
- package/dist/polyfills/utils/is-browser.js +8 -0
- package/dist/polyfills/utils/is-browser.js.map +1 -0
- package/dist/polyfills/utils/path-utils.d.ts +7 -0
- package/dist/polyfills/utils/path-utils.d.ts.map +1 -0
- package/dist/polyfills/utils/path-utils.js +28 -0
- package/dist/polyfills/utils/path-utils.js.map +1 -0
- package/dist/scan/arrow-query.cjs +38 -0
- package/dist/scan/arrow-query.cjs.map +7 -0
- package/dist/scan/arrow-query.d.ts +5 -0
- package/dist/scan/arrow-query.d.ts.map +1 -0
- package/dist/scan/arrow-query.js +6 -0
- package/dist/scan/arrow-query.js.map +1 -0
- package/dist/scan/bind-sql-predicate.cjs +36 -0
- package/dist/scan/bind-sql-predicate.cjs.map +7 -0
- package/dist/scan/bind-sql-predicate.d.ts +4 -0
- package/dist/scan/bind-sql-predicate.d.ts.map +1 -0
- package/dist/scan/bind-sql-predicate.js +11 -0
- package/dist/scan/bind-sql-predicate.js.map +1 -0
- package/dist/scan/federated-table-scan-source.cjs +719 -0
- package/dist/scan/federated-table-scan-source.cjs.map +7 -0
- package/dist/scan/federated-table-scan-source.d.ts +116 -0
- package/dist/scan/federated-table-scan-source.d.ts.map +1 -0
- package/dist/scan/federated-table-scan-source.js +691 -0
- package/dist/scan/federated-table-scan-source.js.map +1 -0
- package/dist/scan/index.cjs +87 -0
- package/dist/scan/index.cjs.map +7 -0
- package/dist/scan/index.d.ts +20 -0
- package/dist/scan/index.d.ts.map +1 -0
- package/dist/scan/index.js +17 -0
- package/dist/scan/index.js.map +1 -0
- package/dist/scan/parse-sql-predicate.cjs +328 -0
- package/dist/scan/parse-sql-predicate.cjs.map +7 -0
- package/dist/scan/parse-sql-predicate.d.ts +10 -0
- package/dist/scan/parse-sql-predicate.d.ts.map +1 -0
- package/dist/scan/parse-sql-predicate.js +322 -0
- package/dist/scan/parse-sql-predicate.js.map +1 -0
- package/dist/scan/query-arrow-table.cjs +633 -0
- package/dist/scan/query-arrow-table.cjs.map +7 -0
- package/dist/scan/query-arrow-table.d.ts +83 -0
- package/dist/scan/query-arrow-table.d.ts.map +1 -0
- package/dist/scan/query-arrow-table.js +663 -0
- package/dist/scan/query-arrow-table.js.map +1 -0
- package/dist/scan/rows-to-arrow.cjs +71 -0
- package/dist/scan/rows-to-arrow.cjs.map +7 -0
- package/dist/scan/rows-to-arrow.d.ts +4 -0
- package/dist/scan/rows-to-arrow.d.ts.map +1 -0
- package/dist/scan/rows-to-arrow.js +39 -0
- package/dist/scan/rows-to-arrow.js.map +1 -0
- package/dist/scan/scan-engine.cjs +66 -0
- package/dist/scan/scan-engine.cjs.map +7 -0
- package/dist/scan/scan-engine.d.ts +45 -0
- package/dist/scan/scan-engine.d.ts.map +1 -0
- package/dist/scan/scan-engine.js +51 -0
- package/dist/scan/scan-engine.js.map +1 -0
- package/dist/scan/scan-query.cjs +19 -0
- package/dist/scan/scan-query.cjs.map +7 -0
- package/dist/scan/scan-query.d.ts +24 -0
- package/dist/scan/scan-query.d.ts.map +1 -0
- package/dist/scan/scan-query.js +5 -0
- package/dist/scan/scan-query.js.map +1 -0
- package/dist/scan/sql-predicate-schema.cjs +237 -0
- package/dist/scan/sql-predicate-schema.cjs.map +7 -0
- package/dist/scan/sql-predicate-schema.d.ts +156 -0
- package/dist/scan/sql-predicate-schema.d.ts.map +1 -0
- package/dist/scan/sql-predicate-schema.js +226 -0
- package/dist/scan/sql-predicate-schema.js.map +1 -0
- package/dist/scan/sql-predicate-types.cjs +34 -0
- package/dist/scan/sql-predicate-types.cjs.map +7 -0
- package/dist/scan/sql-predicate-types.d.ts +45 -0
- package/dist/scan/sql-predicate-types.d.ts.map +1 -0
- package/dist/scan/sql-predicate-types.js +9 -0
- package/dist/scan/sql-predicate-types.js.map +1 -0
- package/dist/scan/sql-predicate-zod.cjs +61 -0
- package/dist/scan/sql-predicate-zod.cjs.map +7 -0
- package/dist/scan/sql-predicate-zod.d.ts +11 -0
- package/dist/scan/sql-predicate-zod.d.ts.map +1 -0
- package/dist/scan/sql-predicate-zod.js +45 -0
- package/dist/scan/sql-predicate-zod.js.map +1 -0
- package/dist/scan/sql-predicate.cjs +44 -0
- package/dist/scan/sql-predicate.cjs.map +7 -0
- package/dist/scan/sql-predicate.d.ts +6 -0
- package/dist/scan/sql-predicate.d.ts.map +1 -0
- package/dist/scan/sql-predicate.js +8 -0
- package/dist/scan/sql-predicate.js.map +1 -0
- package/dist/scan/table-query-capabilities.cjs +52 -0
- package/dist/scan/table-query-capabilities.cjs.map +7 -0
- package/dist/scan/table-query-capabilities.d.ts +6 -0
- package/dist/scan/table-query-capabilities.d.ts.map +1 -0
- package/dist/scan/table-query-capabilities.js +26 -0
- package/dist/scan/table-query-capabilities.js.map +1 -0
- package/dist/scan/table-query.cjs +56 -0
- package/dist/scan/table-query.cjs.map +7 -0
- package/dist/scan/table-query.d.ts +29 -0
- package/dist/scan/table-query.d.ts.map +1 -0
- package/dist/scan/table-query.js +30 -0
- package/dist/scan/table-query.js.map +1 -0
- package/dist/scan/vector-table-scan-source.cjs +227 -0
- package/dist/scan/vector-table-scan-source.cjs.map +7 -0
- package/dist/scan/vector-table-scan-source.d.ts +93 -0
- package/dist/scan/vector-table-scan-source.d.ts.map +1 -0
- package/dist/scan/vector-table-scan-source.js +221 -0
- package/dist/scan/vector-table-scan-source.js.map +1 -0
- package/dist/schema/categories/category-gis.d.ts +7 -0
- package/dist/schema/categories/category-gis.d.ts.map +1 -0
- package/dist/schema/categories/category-gis.js +5 -0
- package/dist/schema/categories/category-gis.js.map +1 -0
- package/dist/schema/categories/category-image.d.ts +18 -0
- package/dist/schema/categories/category-image.d.ts.map +1 -0
- package/dist/schema/categories/category-image.js +5 -0
- package/dist/schema/categories/category-image.js.map +1 -0
- package/dist/schema/categories/category-mesh.d.ts +99 -0
- package/dist/schema/categories/category-mesh.d.ts.map +1 -0
- package/dist/schema/categories/category-mesh.js +14 -0
- package/dist/schema/categories/category-mesh.js.map +1 -0
- package/dist/schema/categories/category-table.d.ts +106 -0
- package/dist/schema/categories/category-table.d.ts.map +1 -0
- package/dist/schema/categories/category-table.js +5 -0
- package/dist/schema/categories/category-table.js.map +1 -0
- package/dist/schema/categories/category-texture.d.ts +115 -0
- package/dist/schema/categories/category-texture.d.ts.map +1 -0
- package/dist/schema/categories/category-texture.js +5 -0
- package/dist/schema/categories/category-texture.js.map +1 -0
- package/dist/schema/deprecated/mesh-utils.d.ts +12 -0
- package/dist/schema/deprecated/mesh-utils.d.ts.map +1 -0
- package/dist/schema/deprecated/mesh-utils.js +37 -0
- package/dist/schema/deprecated/mesh-utils.js.map +1 -0
- package/dist/schema/float16.d.ts +19 -0
- package/dist/schema/float16.d.ts.map +1 -0
- package/dist/schema/float16.js +90 -0
- package/dist/schema/float16.js.map +1 -0
- package/dist/schema/geoarrow-metadata.schema.json +117 -0
- package/dist/schema/geometry/arrow-binary-features.d.ts +45 -0
- package/dist/schema/geometry/arrow-binary-features.d.ts.map +1 -0
- package/dist/schema/geometry/arrow-binary-features.js +5 -0
- package/dist/schema/geometry/arrow-binary-features.js.map +1 -0
- package/dist/schema/geometry/binary-features.d.ts +30 -0
- package/dist/schema/geometry/binary-features.d.ts.map +1 -0
- package/dist/schema/geometry/binary-features.js +5 -0
- package/dist/schema/geometry/binary-features.js.map +1 -0
- package/dist/schema/geometry/binary-geometries.d.ts +33 -0
- package/dist/schema/geometry/binary-geometries.d.ts.map +1 -0
- package/dist/schema/geometry/binary-geometries.js +5 -0
- package/dist/schema/geometry/binary-geometries.js.map +1 -0
- package/dist/schema/geometry/flat-geometries.d.ts +61 -0
- package/dist/schema/geometry/flat-geometries.d.ts.map +1 -0
- package/dist/schema/geometry/flat-geometries.js +5 -0
- package/dist/schema/geometry/flat-geometries.js.map +1 -0
- package/dist/schema/geometry/geoarrow.d.ts +69 -0
- package/dist/schema/geometry/geoarrow.d.ts.map +1 -0
- package/dist/schema/geometry/geoarrow.js +5 -0
- package/dist/schema/geometry/geoarrow.js.map +1 -0
- package/dist/schema/geoparquet.schema.json +222 -0
- package/dist/schema/geospatial-metadata-zod-schema.cjs +154 -0
- package/dist/schema/geospatial-metadata-zod-schema.cjs.map +6 -0
- package/dist/schema/geospatial-metadata-zod-schema.d.ts +44 -0
- package/dist/schema/geospatial-metadata-zod-schema.d.ts.map +1 -0
- package/dist/schema/geospatial-metadata-zod-schema.js +151 -0
- package/dist/schema/geospatial-metadata-zod-schema.js.map +1 -0
- package/dist/schema/index.cjs +259 -0
- package/dist/schema/index.cjs.map +6 -0
- package/dist/schema/index.d.ts +21 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +9 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/metadata.d.ts +40 -0
- package/dist/schema/metadata.d.ts.map +1 -0
- package/dist/schema/metadata.js +86 -0
- package/dist/schema/metadata.js.map +1 -0
- package/dist/schema/types/batch.d.ts +37 -0
- package/dist/schema/types/batch.d.ts.map +1 -0
- package/dist/schema/types/batch.js +5 -0
- package/dist/schema/types/batch.js.map +1 -0
- package/dist/schema/types/schema.d.ts +70 -0
- package/dist/schema/types/schema.d.ts.map +1 -0
- package/dist/schema/types/schema.js +5 -0
- package/dist/schema/types/schema.js.map +1 -0
- package/dist/schema/types/types.d.ts +16 -0
- package/dist/schema/types/types.d.ts.map +1 -0
- package/dist/schema/types/types.js +6 -0
- package/dist/schema/types/types.js.map +1 -0
- package/dist/schema-utils/arrow-transport.cjs +691 -0
- package/dist/schema-utils/arrow-transport.cjs.map +6 -0
- package/dist/schema-utils/arrow-transport.d.ts +4 -0
- package/dist/schema-utils/arrow-transport.d.ts.map +1 -0
- package/dist/schema-utils/arrow-transport.js +7 -0
- package/dist/schema-utils/arrow-transport.js.map +1 -0
- package/dist/schema-utils/deprecated.d.ts +24 -0
- package/dist/schema-utils/deprecated.d.ts.map +1 -0
- package/dist/schema-utils/deprecated.js +27 -0
- package/dist/schema-utils/deprecated.js.map +1 -0
- package/dist/schema-utils/index.cjs +3422 -0
- package/dist/schema-utils/index.cjs.map +6 -0
- package/dist/schema-utils/index.d.ts +38 -0
- package/dist/schema-utils/index.d.ts.map +1 -0
- package/dist/schema-utils/index.js +77 -0
- package/dist/schema-utils/index.js.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts +76 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.js +182 -0
- package/dist/schema-utils/lib/arrow/arrow-table-transport.js.map +1 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts +33 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.js +134 -0
- package/dist/schema-utils/lib/arrow/split-arrow-buffers.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts +11 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js +45 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts +11 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js +33 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.js.map +1 -0
- package/dist/schema-utils/lib/converters/convert.d.ts +10 -0
- package/dist/schema-utils/lib/converters/convert.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/convert.js +98 -0
- package/dist/schema-utils/lib/converters/convert.js.map +1 -0
- package/dist/schema-utils/lib/converters/converters.d.ts +3 -0
- package/dist/schema-utils/lib/converters/converters.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/converters.js +5 -0
- package/dist/schema-utils/lib/converters/converters.js.map +1 -0
- package/dist/schema-utils/lib/converters/types.d.ts +35 -0
- package/dist/schema-utils/lib/converters/types.d.ts.map +1 -0
- package/dist/schema-utils/lib/converters/types.js +5 -0
- package/dist/schema-utils/lib/converters/types.js.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts +44 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js +187 -0
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts +14 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js +217 -0
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js.map +1 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts +23 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js +72 -0
- package/dist/schema-utils/lib/mesh/deduce-mesh-schema.js.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts +23 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.js +54 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.js.map +1 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts +98 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js +407 -0
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js.map +1 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts +39 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.js +441 -0
- package/dist/schema-utils/lib/schema/convert-arrow-schema.js.map +1 -0
- package/dist/schema-utils/lib/schema/data-type.d.ts +16 -0
- package/dist/schema-utils/lib/schema/data-type.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/data-type.js +102 -0
- package/dist/schema-utils/lib/schema/data-type.js.map +1 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts +14 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.js +101 -0
- package/dist/schema-utils/lib/schema/deduce-table-schema.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts +19 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js +37 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-field.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts +43 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js +5 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-interface.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts +12 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js +82 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-schema.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts +28 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js +64 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts +177 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js +441 -0
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-type.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.d.ts +92 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.js +98 -0
- package/dist/schema-utils/lib/table/arrow-api/enum.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts +13 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.js +28 -0
- package/dist/schema-utils/lib/table/arrow-api/get-type-info.js.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/index.d.ts +6 -0
- package/dist/schema-utils/lib/table/arrow-api/index.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/arrow-api/index.js +8 -0
- package/dist/schema-utils/lib/table/arrow-api/index.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts +10 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js +71 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts +28 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js +104 -0
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts +19 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js +64 -0
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts +20 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js +83 -0
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts +21 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js +86 -0
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts +24 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js +5 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts +52 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js +149 -0
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts +10 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.js +46 -0
- package/dist/schema-utils/lib/table/batches/convert-batches.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts +17 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js +61 -0
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts +15 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js +22 -0
- package/dist/schema-utils/lib/table/batches/make-table-batch-iterator.js.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts +9 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js +63 -0
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js.map +1 -0
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts +23 -0
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/query-arrow-table.js +73 -0
- package/dist/schema-utils/lib/table/query-arrow-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts +24 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js +151 -0
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts +43 -0
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/convert-table.js +122 -0
- package/dist/schema-utils/lib/table/tables/convert-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/make-table.d.ts +67 -0
- package/dist/schema-utils/lib/table/tables/make-table.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/make-table.js +102 -0
- package/dist/schema-utils/lib/table/tables/make-table.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/row-utils.d.ts +15 -0
- package/dist/schema-utils/lib/table/tables/row-utils.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/row-utils.js +50 -0
- package/dist/schema-utils/lib/table/tables/row-utils.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts +68 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.js +352 -0
- package/dist/schema-utils/lib/table/tables/table-accessors.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-column.d.ts +7 -0
- package/dist/schema-utils/lib/table/tables/table-column.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-column.js +40 -0
- package/dist/schema-utils/lib/table/tables/table-column.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts +9 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js +19 -0
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts +16 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js +45 -0
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-types.d.ts +12 -0
- package/dist/schema-utils/lib/table/tables/table-types.d.ts.map +1 -0
- package/dist/schema-utils/lib/table/tables/table-types.js +24 -0
- package/dist/schema-utils/lib/table/tables/table-types.js.map +1 -0
- package/dist/schema-utils/lib/utils/assert.d.ts +2 -0
- package/dist/schema-utils/lib/utils/assert.d.ts.map +1 -0
- package/dist/schema-utils/lib/utils/assert.js +12 -0
- package/dist/schema-utils/lib/utils/assert.js.map +1 -0
- package/dist/schema-utils/lib/utils/async-queue.d.ts +18 -0
- package/dist/schema-utils/lib/utils/async-queue.d.ts.map +1 -0
- package/dist/schema-utils/lib/utils/async-queue.js +96 -0
- package/dist/schema-utils/lib/utils/async-queue.js.map +1 -0
- package/dist/schema-utils/types/types.d.ts +15 -0
- package/dist/schema-utils/types/types.d.ts.map +1 -0
- package/dist/schema-utils/types/types.js +5 -0
- package/dist/schema-utils/types/types.js.map +1 -0
- package/dist/vector-table-scan-source.cjs +1703 -0
- package/dist/vector-table-scan-source.cjs.map +6 -0
- package/dist/vector-table-scan-source.d.ts +2 -0
- package/dist/vector-table-scan-source.d.ts.map +1 -0
- package/dist/vector-table-scan-source.js +2 -0
- package/dist/vector-table-scan-source.js.map +1 -0
- package/dist/wkt/index.cjs +44 -0
- package/dist/wkt/index.cjs.map +7 -0
- package/dist/wkt/index.d.ts +3 -0
- package/dist/wkt/index.d.ts.map +1 -0
- package/dist/wkt/index.js +6 -0
- package/dist/wkt/index.js.map +1 -0
- package/dist/wkt/twkb/convert-geometry-to-twkb.cjs +211 -0
- package/dist/wkt/twkb/convert-geometry-to-twkb.cjs.map +7 -0
- package/dist/wkt/twkb/convert-geometry-to-twkb.d.ts +6 -0
- package/dist/wkt/twkb/convert-geometry-to-twkb.d.ts.map +1 -0
- package/dist/wkt/twkb/convert-geometry-to-twkb.js +204 -0
- package/dist/wkt/twkb/convert-geometry-to-twkb.js.map +1 -0
- package/dist/wkt/twkb/convert-twkb-to-geometry.cjs +251 -0
- package/dist/wkt/twkb/convert-twkb-to-geometry.cjs.map +7 -0
- package/dist/wkt/twkb/convert-twkb-to-geometry.d.ts +10 -0
- package/dist/wkt/twkb/convert-twkb-to-geometry.d.ts.map +1 -0
- package/dist/wkt/twkb/convert-twkb-to-geometry.js +261 -0
- package/dist/wkt/twkb/convert-twkb-to-geometry.js.map +1 -0
- package/dist/wkt/twkb/index.cjs +36 -0
- package/dist/wkt/twkb/index.cjs.map +7 -0
- package/dist/wkt/twkb/index.d.ts +3 -0
- package/dist/wkt/twkb/index.d.ts.map +1 -0
- package/dist/wkt/twkb/index.js +6 -0
- package/dist/wkt/twkb/index.js.map +1 -0
- package/dist/wkt/twkb/twkb-io.cjs +102 -0
- package/dist/wkt/twkb/twkb-io.cjs.map +7 -0
- package/dist/wkt/twkb/twkb-io.d.ts +33 -0
- package/dist/wkt/twkb/twkb-io.d.ts.map +1 -0
- package/dist/wkt/twkb/twkb-io.js +78 -0
- package/dist/wkt/twkb/twkb-io.js.map +1 -0
- package/dist/wkt/twkb/twkb-types.cjs +40 -0
- package/dist/wkt/twkb/twkb-types.cjs.map +7 -0
- package/dist/wkt/twkb/twkb-types.d.ts +11 -0
- package/dist/wkt/twkb/twkb-types.d.ts.map +1 -0
- package/dist/wkt/twkb/twkb-types.js +15 -0
- package/dist/wkt/twkb/twkb-types.js.map +1 -0
- package/dist/worker-utils/index.cjs +413 -0
- package/dist/worker-utils/index.cjs.map +6 -0
- package/dist/worker-utils/index.d.ts +22 -0
- package/dist/worker-utils/index.d.ts.map +1 -0
- package/dist/worker-utils/index.js +40 -0
- package/dist/worker-utils/index.js.map +1 -0
- package/dist/worker-utils/lib/async-queue/async-queue.d.ts +2 -0
- package/dist/worker-utils/lib/async-queue/async-queue.d.ts.map +1 -0
- package/dist/worker-utils/lib/async-queue/async-queue.js +5 -0
- package/dist/worker-utils/lib/async-queue/async-queue.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/assert.d.ts +3 -0
- package/dist/worker-utils/lib/env-utils/assert.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/assert.js +13 -0
- package/dist/worker-utils/lib/env-utils/assert.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/globals.d.ts +22 -0
- package/dist/worker-utils/lib/env-utils/globals.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/globals.js +30 -0
- package/dist/worker-utils/lib/env-utils/globals.js.map +1 -0
- package/dist/worker-utils/lib/env-utils/version.d.ts +3 -0
- package/dist/worker-utils/lib/env-utils/version.d.ts.map +1 -0
- package/dist/worker-utils/lib/env-utils/version.js +14 -0
- package/dist/worker-utils/lib/env-utils/version.js.map +1 -0
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts +42 -0
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts.map +1 -0
- package/dist/worker-utils/lib/library-utils/library-utils.js +248 -0
- package/dist/worker-utils/lib/library-utils/library-utils.js.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.d.ts +14 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.d.ts.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.js +22 -0
- package/dist/worker-utils/lib/node/worker_threads-browser.js.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads.d.ts +15 -0
- package/dist/worker-utils/lib/node/worker_threads.d.ts.map +1 -0
- package/dist/worker-utils/lib/node/worker_threads.js +16 -0
- package/dist/worker-utils/lib/node/worker_threads.js.map +1 -0
- package/dist/worker-utils/lib/npm-tag.d.ts +2 -0
- package/dist/worker-utils/lib/npm-tag.d.ts.map +1 -0
- package/dist/worker-utils/lib/npm-tag.js +5 -0
- package/dist/worker-utils/lib/npm-tag.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts +8 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js +18 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.browser.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts +45 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js +123 -0
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js.map +1 -0
- package/dist/worker-utils/lib/process-utils/process-utils.d.ts +2 -0
- package/dist/worker-utils/lib/process-utils/process-utils.d.ts.map +1 -0
- package/dist/worker-utils/lib/process-utils/process-utils.js +32 -0
- package/dist/worker-utils/lib/process-utils/process-utils.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/create-worker.d.ts +2 -0
- package/dist/worker-utils/lib/worker-api/create-worker.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/create-worker.js +5 -0
- package/dist/worker-utils/lib/worker-api/create-worker.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts +29 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.js +99 -0
- package/dist/worker-utils/lib/worker-api/get-worker-url.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts +3 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.js +5 -0
- package/dist/worker-utils/lib/worker-api/process-on-worker.js.map +1 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts +9 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.js +35 -0
- package/dist/worker-utils/lib/worker-api/validate-worker-version.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.d.ts +2 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.js +5 -0
- package/dist/worker-utils/lib/worker-farm/worker-body.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts +2 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.js +5 -0
- package/dist/worker-utils/lib/worker-farm/worker-farm.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.d.ts +2 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.js +5 -0
- package/dist/worker-utils/lib/worker-farm/worker-job.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts +2 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.js +5 -0
- package/dist/worker-utils/lib/worker-farm/worker-pool.js.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts +2 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.js +5 -0
- package/dist/worker-utils/lib/worker-farm/worker-thread.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts +14 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js +72 -0
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts +15 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.js +86 -0
- package/dist/worker-utils/lib/worker-utils/get-transfer-list.js.map +1 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts +6 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.d.ts.map +1 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js +27 -0
- package/dist/worker-utils/lib/worker-utils/remove-nontransferable-options.js.map +1 -0
- package/dist/worker-utils/null-worker-node.js +473 -0
- package/dist/worker-utils/null-worker-node.js.map +7 -0
- package/dist/worker-utils/null-worker.js +472 -0
- package/dist/worker-utils/null-worker.js.map +7 -0
- package/dist/worker-utils/types.d.ts +2 -0
- package/dist/worker-utils/types.d.ts.map +1 -0
- package/dist/worker-utils/types.js +5 -0
- package/dist/worker-utils/types.js.map +1 -0
- package/dist/worker-utils/workers/null-worker.d.ts +2 -0
- package/dist/worker-utils/workers/null-worker.d.ts.map +1 -0
- package/dist/worker-utils/workers/null-worker.js +17 -0
- package/dist/worker-utils/workers/null-worker.js.map +1 -0
- package/dist/workers/null-worker-node.js +1 -1
- package/dist/workers/null-worker-node.js.map +1 -1
- package/dist/workers/null-worker.js +1 -1
- package/dist/workers/null-worker.js.map +1 -1
- package/package.json +349 -13
- package/src/arrow-geometry/arrow-geoarrow-adapter.ts +568 -0
- package/src/arrow-geometry/binary-features.ts +399 -0
- package/src/arrow-geometry/binary-geometry-to-wkb.ts +245 -0
- package/src/arrow-geometry/feature-collection-to-arrow.ts +158 -0
- package/src/arrow-geometry/feature-table.ts +936 -0
- package/src/arrow-geometry/geoarrow-builder.ts +862 -0
- package/src/arrow-geometry/geoarrow-union-kind.ts +47 -0
- package/src/arrow-geometry/geojson-table.ts +156 -0
- package/src/arrow-geometry/geometry-codecs.ts +186 -0
- package/src/arrow-geometry/geometry-field.ts +349 -0
- package/src/arrow-geometry/geometry-to-wkt.ts +121 -0
- package/src/arrow-geometry/geometry-utils.ts +29 -0
- package/src/arrow-geometry/index.ts +42 -0
- package/src/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.ts +583 -0
- package/src/arrow-geometry/legacy-binary/convert-geojson-to-binary-features.ts +45 -0
- package/src/arrow-geometry/legacy-binary/convert-geojson-to-flat-geojson.ts +177 -0
- package/src/arrow-geometry/legacy-binary/flat-geojson-to-binary-types.ts +62 -0
- package/src/arrow-geometry/legacy-binary/geometry-info.ts +129 -0
- package/src/arrow-geometry/legacy-binary/transform-coordinates.ts +72 -0
- package/src/arrow-geometry/legacy-binary.ts +24 -0
- package/src/arrow-geometry/native-geometry.ts +278 -0
- package/src/arrow-geometry/sampled-bounds.ts +46 -0
- package/src/arrow-geometry/triangulate-wkb.ts +1133 -0
- package/src/arrow-geometry/wkb-arrow-utils.ts +202 -0
- package/src/arrow-geometry/wkb-builder.ts +223 -0
- package/src/arrow-geometry/wkb-statistics.ts +70 -0
- package/src/arrow-geometry/wkb-table.ts +62 -0
- package/src/arrow-geometry/wkb-types.ts +21 -0
- package/src/cluster-source.ts +1 -0
- package/src/constants/index.ts +23 -0
- package/src/federated-table-scan-source.ts +1 -0
- package/src/geoarrow/binary-polygon-to-geoarrow.ts +120 -0
- package/src/geoarrow/clustering/cluster-index.ts +510 -0
- package/src/geoarrow/clustering/cluster-source.ts +281 -0
- package/src/geoarrow/clustering/get-representative-point.ts +192 -0
- package/src/geoarrow/compatibility.ts +65 -0
- package/src/geoarrow/convert-table-to-geoarrow.ts +256 -0
- package/src/geoarrow/deprecated.ts +73 -0
- package/src/geoarrow/geo-column/geo-column-info.ts +114 -0
- package/src/geoarrow/geo-column/geo-column.ts +85 -0
- package/src/geoarrow/geoarrow-bounds.ts +176 -0
- package/src/geoarrow/geoarrow-builder.ts +21 -0
- package/src/geoarrow/geoarrow-capabilities.ts +581 -0
- package/src/geoarrow/geoarrow-conformance.ts +177 -0
- package/src/geoarrow/geoarrow-converter/convert-geoarrow-geometry.ts +2168 -0
- package/src/geoarrow/geoarrow-converter/convert-geoarrow.ts +75 -0
- package/src/geoarrow/geoarrow-converter/geoarrow-converter.ts +105 -0
- package/src/geoarrow/geoarrow-converter/geoarrow-geometry-converter.ts +66 -0
- package/src/geoarrow/geoarrow-functions.ts +293 -0
- package/src/geoarrow/geoarrow-inspection.ts +296 -0
- package/src/geoarrow/geoarrow-layout.ts +844 -0
- package/src/geoarrow/geoarrow-resource-limits.ts +94 -0
- package/src/geoarrow/geoarrow-spatial-index.ts +251 -0
- package/src/geoarrow/geoarrow-stream.ts +377 -0
- package/src/geoarrow/geoarrow-types.ts +91 -0
- package/src/geoarrow/get-geo-column-from-geoarrow.ts.disabled +251 -0
- package/src/geoarrow/get-geoarrow-geometry-info.ts +147 -0
- package/src/geoarrow/get-geoarrow-native-geometry.ts +8 -0
- package/src/geoarrow/get-geoarrow-vertex-count.ts +225 -0
- package/src/geoarrow/index.ts +260 -0
- package/src/geoarrow/lib/arrow-geoarrow-adapter.ts +12 -0
- package/src/geoarrow/lib/binary-geometry-api/binary-geometry-info.ts +75 -0
- package/src/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.ts +576 -0
- package/src/geoarrow/lib/feature-collection-converters/convert-binary-features-to-geojson.ts +152 -0
- package/src/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.ts +1598 -0
- package/src/geoarrow/lib/feature-collection-converters/feature-collection-converter/convert-feature-collection.ts +212 -0
- package/src/geoarrow/lib/feature-collection-converters/feature-collection-converter/feature-collection-converter.ts +96 -0
- package/src/geoarrow/lib/geoarrow/geoarrow-union-kind.ts +4 -0
- package/src/geoarrow/lib/geometry-converters/convert-binary-geometry-to-geojson.ts +154 -0
- package/src/geoarrow/lib/geometry-converters/convert-geoarrow-to-geojson.ts +195 -0
- package/src/geoarrow/lib/geometry-converters/geometry-converter/geometry-converter.ts +143 -0
- package/src/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.ts +86 -0
- package/src/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.ts +116 -0
- package/src/geoarrow/lib/geometry-converters/wkb/helpers/wkb-types.ts +82 -0
- package/src/geoarrow/lib/geometry-predicates.ts +170 -0
- package/src/geoarrow/lib/kernels/decode-wkt-native.ts +752 -0
- package/src/geoarrow/lib/kernels/encode-geoarrow-box.ts +303 -0
- package/src/geoarrow/lib/kernels/encode-geoarrow-wkt.ts +373 -0
- package/src/geoarrow/lib/kernels/geoarrow-union.ts +97 -0
- package/src/geoarrow/lib/table-converters/convert-geoarrow-table.ts +120 -0
- package/src/geoarrow/lib/table-converters/convert-wkb-table-to-geojson.ts +16 -0
- package/src/geoarrow/map-geoarrow-coordinates.ts +282 -0
- package/src/geoarrow/mesharrow/arrow-fixed-size-list-utils.ts +62 -0
- package/src/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.ts +47 -0
- package/src/geoarrow/mesharrow/get-bounding-box.ts +37 -0
- package/src/geoarrow/mesharrow/get-deck-binary-data.ts +70 -0
- package/src/geoarrow/mesharrow/mesh-accessors.ts +27 -0
- package/src/geoarrow/metadata/geoarrow-metadata.ts +91 -0
- package/src/geoarrow/metadata/geoparquet-metadata-schema.ts +71 -0
- package/src/geoarrow/metadata/geoparquet-metadata.ts +16 -0
- package/src/geoarrow/metadata/merge-geoarrow-metadata.ts +357 -0
- package/src/geoarrow/metadata/metadata-utils.ts +6 -0
- package/src/geoarrow/rewind-geoarrow.ts +268 -0
- package/src/index.ts +10 -10
- package/src/iterators/make-iterator/make-iterator.ts +1 -1
- package/src/iterators/make-iterator/make-stream-iterator.ts +1 -1
- package/src/iterators/make-iterator/make-string-iterator.ts +1 -1
- package/src/lib/api/core-api.ts +1 -1
- package/src/lib/api/create-data-source.ts +2 -2
- package/src/lib/api/encode-table.ts +2 -2
- package/src/lib/api/encode.ts +3 -3
- package/src/lib/api/load-in-batches.ts +2 -2
- package/src/lib/api/load-loader.ts +155 -1
- package/src/lib/api/load.ts +2 -2
- package/src/lib/api/parse-file.ts +5 -3
- package/src/lib/api/parse-in-batches.ts +49 -11
- package/src/lib/api/parse-sync.ts +2 -2
- package/src/lib/api/parse.ts +8 -6
- package/src/lib/api/preload.ts +27 -7
- package/src/lib/api/register-loaders.ts +1 -1
- package/src/lib/api/select-loader.ts +3 -3
- package/src/lib/api/select-source.ts +1 -1
- package/src/lib/common.ts +1 -1
- package/src/lib/fetch/fetch-file.ts +2 -2
- package/src/lib/filesystems/browser-filesystem.ts +2 -2
- package/src/lib/init.ts +1 -1
- package/src/lib/loader-utils/get-data.ts +2 -2
- package/src/lib/loader-utils/get-fetch-function.ts +6 -4
- package/src/lib/loader-utils/loader-context.ts +8 -2
- package/src/lib/loader-utils/loggers.ts +1 -1
- package/src/lib/loader-utils/normalize-loader.ts +2 -2
- package/src/lib/loader-utils/option-defaults.ts +4 -2
- package/src/lib/loader-utils/option-utils.ts +2 -2
- package/src/lib/utils/resource-utils.ts +1 -1
- package/src/lib/utils/response-utils.ts +1 -1
- package/src/loader-utils/format-types.ts +49 -0
- package/src/loader-utils/index.ts +534 -0
- package/src/loader-utils/json-loader.ts +39 -0
- package/src/loader-utils/lib/binary-utils/array-buffer-utils.ts +114 -0
- package/src/loader-utils/lib/binary-utils/binary-chunk-reader.ts +297 -0
- package/src/loader-utils/lib/binary-utils/dataview-copy-utils.ts +121 -0
- package/src/loader-utils/lib/binary-utils/encode-array-buffer-to-base64.ts +17 -0
- package/src/loader-utils/lib/binary-utils/get-first-characters.ts +46 -0
- package/src/loader-utils/lib/binary-utils/hex-transcoder.ts +54 -0
- package/src/loader-utils/lib/binary-utils/memory-conversion-utils.ts +105 -0
- package/src/loader-utils/lib/binary-utils/memory-copy-utils.ts +69 -0
- package/src/loader-utils/lib/crs/crs-reprojection.ts +52 -0
- package/src/loader-utils/lib/env-utils/assert.ts +13 -0
- package/src/loader-utils/lib/env-utils/globals.ts +36 -0
- package/src/loader-utils/lib/file-provider/data-view-file.ts +83 -0
- package/src/loader-utils/lib/file-provider/file-handle-file.ts +114 -0
- package/src/loader-utils/lib/file-provider/file-provider-interface.ts +60 -0
- package/src/loader-utils/lib/file-provider/file-provider.ts +130 -0
- package/src/loader-utils/lib/files/array-buffer-file.ts +46 -0
- package/src/loader-utils/lib/files/blob-file.ts +45 -0
- package/src/loader-utils/lib/files/file.ts +39 -0
- package/src/loader-utils/lib/files/http-file-transport.ts +432 -0
- package/src/loader-utils/lib/files/http-file-types.ts +60 -0
- package/src/loader-utils/lib/files/http-file.ts +267 -0
- package/src/loader-utils/lib/files/node-file-facade.ts +57 -0
- package/src/loader-utils/lib/files/sources.ts +154 -0
- package/src/loader-utils/lib/filesystems/filesystem.ts +40 -0
- package/src/loader-utils/lib/filesystems/node-filesystem-facade.ts +65 -0
- package/src/loader-utils/lib/iterators/async-iteration.ts +136 -0
- package/src/loader-utils/lib/iterators/text-iterators.ts +76 -0
- package/src/loader-utils/lib/javascript-utils/is-type.ts +130 -0
- package/src/loader-utils/lib/laz/LASZIP-LICENSE +202 -0
- package/src/loader-utils/lib/laz/LASZIP-NOTICE +6 -0
- package/src/loader-utils/lib/laz/laz-arithmetic-encoder.ts +446 -0
- package/src/loader-utils/lib/laz/laz-chunk-decoder.ts +5251 -0
- package/src/loader-utils/lib/laz/laz-chunk-encoder.ts +1909 -0
- package/src/loader-utils/lib/log-utils/log.ts +28 -0
- package/src/loader-utils/lib/module-utils/initialize-wasm-module.ts +51 -0
- package/src/loader-utils/lib/module-utils/js-module-utils.ts +44 -0
- package/src/loader-utils/lib/node/buffer.browser.ts +22 -0
- package/src/loader-utils/lib/node/buffer.ts +40 -0
- package/src/loader-utils/lib/node/fs.browser.ts +5 -0
- package/src/loader-utils/lib/node/promisify.ts +72 -0
- package/src/loader-utils/lib/node/stream.browser.ts +5 -0
- package/src/loader-utils/lib/node/stream.ts +12 -0
- package/src/loader-utils/lib/option-utils/merge-options.ts +50 -0
- package/src/loader-utils/lib/parser-utils/parse-json.ts +16 -0
- package/src/loader-utils/lib/path-utils/cached-uri-resolver.ts +69 -0
- package/src/loader-utils/lib/path-utils/file-aliases.ts +49 -0
- package/src/loader-utils/lib/path-utils/get-cwd.ts +12 -0
- package/src/loader-utils/lib/path-utils/path.ts +173 -0
- package/src/loader-utils/lib/request-utils/abort-utils.ts +64 -0
- package/src/loader-utils/lib/request-utils/authentication.ts +134 -0
- package/src/loader-utils/lib/request-utils/parse-content-type.ts +22 -0
- package/src/loader-utils/lib/request-utils/range-request-cache.ts +279 -0
- package/src/loader-utils/lib/request-utils/range-request-scheduler.ts +899 -0
- package/src/loader-utils/lib/request-utils/request-cache.ts +296 -0
- package/src/loader-utils/lib/request-utils/request-credentials.ts +574 -0
- package/src/loader-utils/lib/request-utils/request-scheduler.ts +230 -0
- package/src/loader-utils/lib/scan-utils/columnar-predicate.ts +397 -0
- package/src/loader-utils/lib/scan-utils/experimental-scan-options.ts +46 -0
- package/src/loader-utils/lib/scan-utils/point-cloud-query.ts +176 -0
- package/src/loader-utils/lib/scan-utils/raster-query.ts +82 -0
- package/src/loader-utils/lib/scan-utils/relational-query.ts +188 -0
- package/src/loader-utils/lib/scan-utils/scan-executor.ts +208 -0
- package/src/loader-utils/lib/scan-utils/scan-fragments.ts +33 -0
- package/src/loader-utils/lib/scan-utils/scan-query-metadata.ts +439 -0
- package/src/loader-utils/lib/scan-utils/table-query-explain.ts +88 -0
- package/src/loader-utils/lib/scan-utils/table-query.ts +163 -0
- package/src/loader-utils/lib/scan-utils/table-scan-batch.ts +200 -0
- package/src/loader-utils/lib/sources/catalog-source.ts +42 -0
- package/src/loader-utils/lib/sources/data-source-manager.ts +569 -0
- package/src/loader-utils/lib/sources/data-source.ts +236 -0
- package/src/loader-utils/lib/sources/image-source.ts +66 -0
- package/src/loader-utils/lib/sources/image-tile-source.ts +22 -0
- package/src/loader-utils/lib/sources/raster-coverage.ts +92 -0
- package/src/loader-utils/lib/sources/raster-region.ts +35 -0
- package/src/loader-utils/lib/sources/raster-sampling.ts +213 -0
- package/src/loader-utils/lib/sources/raster-source.ts +344 -0
- package/src/loader-utils/lib/sources/service-capabilities.ts +50 -0
- package/src/loader-utils/lib/sources/tile-grid.ts +414 -0
- package/src/loader-utils/lib/sources/tile-source-adapter.ts +117 -0
- package/src/loader-utils/lib/sources/tile-source-utils.ts +19 -0
- package/src/loader-utils/lib/sources/tile-source.ts +200 -0
- package/src/loader-utils/lib/sources/utils/image-type.ts +14 -0
- package/src/loader-utils/lib/sources/utils/utils.ts +31 -0
- package/src/loader-utils/lib/sources/vector-source.ts +89 -0
- package/src/loader-utils/lib/sources/vector-tile-source.ts +29 -0
- package/src/loader-utils/lib/sources/xyz-grid-options.ts +90 -0
- package/src/loader-utils/lib/sources/xyz-grid.ts +88 -0
- package/src/loader-utils/lib/worker-loader-utils/create-loader-worker.ts +256 -0
- package/src/loader-utils/lib/worker-loader-utils/encode-with-worker.ts +28 -0
- package/src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts +392 -0
- package/src/loader-utils/loader-types.ts +545 -0
- package/src/loader-utils/source-types.ts +76 -0
- package/src/loader-utils/tile-grid.ts +8 -0
- package/src/loader-utils/types.ts +83 -0
- package/src/loader-utils/workers/json-worker.ts +8 -0
- package/src/loader-utils/writer-types.ts +107 -0
- package/src/null-loader.ts +2 -2
- package/src/polyfills/README.md +16 -0
- package/src/polyfills/buffer/btoa.node.ts +15 -0
- package/src/polyfills/buffer/to-array-buffer.node.ts +12 -0
- package/src/polyfills/crypto/node-hash.ts +78 -0
- package/src/polyfills/file/file-reader.ts +59 -0
- package/src/polyfills/file/install-file-polyfills.ts +14 -0
- package/src/polyfills/filesystems/fetch-node.ts +98 -0
- package/src/polyfills/filesystems/node-file.ts +169 -0
- package/src/polyfills/filesystems/node-filesystem.ts +54 -0
- package/src/polyfills/filesystems/stream-utils.node.ts +81 -0
- package/src/polyfills/images/encode-image-node.ts +52 -0
- package/src/polyfills/images/image-codecs-node.ts +5 -0
- package/src/polyfills/images/load-sharp.ts +13 -0
- package/src/polyfills/images/node-image-bitmap.ts +81 -0
- package/src/polyfills/images/node-image-formats.ts +12 -0
- package/src/polyfills/images/parse-image-node.ts +45 -0
- package/src/polyfills/index.browser.ts +23 -0
- package/src/polyfills/index.ts +132 -0
- package/src/polyfills/libs/encoding-indexes-asian.js +15 -0
- package/src/polyfills/load-library/require-utils.node.ts +108 -0
- package/src/polyfills/streams/make-node-stream.ts +61 -0
- package/src/polyfills/text-encoder/encoding-indexes.ts +36 -0
- package/src/polyfills/text-encoder/text-encoder.ts +3085 -0
- package/src/polyfills/utils/assert.ts +9 -0
- package/src/polyfills/utils/buffer-utils.ts +40 -0
- package/src/polyfills/utils/filesystem-types.ts +13 -0
- package/src/polyfills/utils/is-browser.ts +8 -0
- package/src/polyfills/utils/path-utils.ts +31 -0
- package/src/polyfills/wip/fetch-browser/fetch-file.browser.d.ts +34 -0
- package/src/scan/arrow-query.ts +17 -0
- package/src/scan/bind-sql-predicate.ts +21 -0
- package/src/scan/federated-table-scan-source.ts +996 -0
- package/src/scan/index.ts +114 -0
- package/src/scan/parse-sql-predicate.ts +381 -0
- package/src/scan/query-arrow-table.ts +846 -0
- package/src/scan/rows-to-arrow.ts +45 -0
- package/src/scan/scan-engine.ts +96 -0
- package/src/scan/scan-query.ts +27 -0
- package/src/scan/sql-predicate-schema.ts +251 -0
- package/src/scan/sql-predicate-types.ts +87 -0
- package/src/scan/sql-predicate-zod.ts +52 -0
- package/src/scan/sql-predicate.ts +28 -0
- package/src/scan/table-query-capabilities.ts +29 -0
- package/src/scan/table-query.ts +79 -0
- package/src/scan/vector-table-scan-source.ts +296 -0
- package/src/schema/categories/category-gis.ts +63 -0
- package/src/schema/categories/category-image.ts +23 -0
- package/src/schema/categories/category-mesh.ts +138 -0
- package/src/schema/categories/category-table.ts +125 -0
- package/src/schema/categories/category-texture.ts +259 -0
- package/src/schema/deprecated/mesh-utils.ts +46 -0
- package/src/schema/float16.ts +111 -0
- package/src/schema/geometry/arrow-binary-features.ts +54 -0
- package/src/schema/geometry/binary-features.ts +43 -0
- package/src/schema/geometry/binary-geometries.ts +45 -0
- package/src/schema/geometry/flat-geometries.ts +72 -0
- package/src/schema/geometry/geoarrow.ts +116 -0
- package/src/schema/geospatial-metadata-zod-schema.ts +163 -0
- package/src/schema/index.ts +169 -0
- package/src/schema/metadata.ts +115 -0
- package/src/schema/types/batch.ts +47 -0
- package/src/schema/types/schema.ts +86 -0
- package/src/schema/types/types.ts +52 -0
- package/src/schema-utils/arrow-transport.ts +7 -0
- package/src/schema-utils/deprecated.ts +53 -0
- package/src/schema-utils/index.ts +165 -0
- package/src/schema-utils/lib/arrow/arrow-table-transport.ts +282 -0
- package/src/schema-utils/lib/arrow/split-arrow-buffers.ts +247 -0
- package/src/schema-utils/lib/arrow-utils/arrow-fixed-size-list-utils.ts +78 -0
- package/src/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.ts +48 -0
- package/src/schema-utils/lib/converters/convert.ts +142 -0
- package/src/schema-utils/lib/converters/converters.ts +6 -0
- package/src/schema-utils/lib/converters/types.ts +44 -0
- package/src/schema-utils/lib/mesh/convert-mesh-to-table.ts +311 -0
- package/src/schema-utils/lib/mesh/convert-table-to-mesh.ts +257 -0
- package/src/schema-utils/lib/mesh/deduce-mesh-schema.ts +85 -0
- package/src/schema-utils/lib/mesh/mesh-utils.ts +73 -0
- package/src/schema-utils/lib/mesh/point-cloud-tiler.ts +485 -0
- package/src/schema-utils/lib/schema/convert-arrow-schema.ts +552 -0
- package/src/schema-utils/lib/schema/data-type.ts +122 -0
- package/src/schema-utils/lib/schema/deduce-table-schema.ts +119 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-field.ts +53 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-interface.ts +84 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-schema.ts +101 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-table.ts +85 -0
- package/src/schema-utils/lib/table/arrow-api/arrow-like-type.ts +500 -0
- package/src/schema-utils/lib/table/arrow-api/enum.ts +99 -0
- package/src/schema-utils/lib/table/arrow-api/get-type-info.ts +38 -0
- package/src/schema-utils/lib/table/arrow-api/index.ts +50 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator-builders.ts.disabled +190 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts +85 -0
- package/src/schema-utils/lib/table/batch-builder/arrow-table-builder.ts +123 -0
- package/src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts +82 -0
- package/src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts +103 -0
- package/src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts +108 -0
- package/src/schema-utils/lib/table/batch-builder/table-batch-aggregator.ts +28 -0
- package/src/schema-utils/lib/table/batch-builder/table-batch-builder.ts +185 -0
- package/src/schema-utils/lib/table/batches/convert-batches.ts +83 -0
- package/src/schema-utils/lib/table/batches/make-arrow-batch-iterator.ts +81 -0
- package/src/schema-utils/lib/table/batches/make-table-batch-iterator.ts +25 -0
- package/src/schema-utils/lib/table/batches/make-table-from-batches.ts +84 -0
- package/src/schema-utils/lib/table/query-arrow-table.ts +130 -0
- package/src/schema-utils/lib/table/tables/convert-arrow-table.ts +198 -0
- package/src/schema-utils/lib/table/tables/convert-table.ts +152 -0
- package/src/schema-utils/lib/table/tables/make-table.ts +127 -0
- package/src/schema-utils/lib/table/tables/row-utils.ts +59 -0
- package/src/schema-utils/lib/table/tables/table-accessors.ts +418 -0
- package/src/schema-utils/lib/table/tables/table-column.ts +49 -0
- package/src/schema-utils/lib/table/tables/table-converter/convert-tables.ts +35 -0
- package/src/schema-utils/lib/table/tables/table-converter/table-converter.ts +57 -0
- package/src/schema-utils/lib/table/tables/table-types.ts +37 -0
- package/src/schema-utils/lib/utils/assert.ts +12 -0
- package/src/schema-utils/lib/utils/async-queue.ts +109 -0
- package/src/schema-utils/types/types.ts +45 -0
- package/src/vector-table-scan-source.ts +1 -0
- package/src/wkt/index.ts +11 -0
- package/src/wkt/twkb/convert-geometry-to-twkb.ts +317 -0
- package/src/wkt/twkb/convert-twkb-to-geometry.ts +373 -0
- package/src/wkt/twkb/index.ts +6 -0
- package/src/wkt/twkb/twkb-io.ts +85 -0
- package/src/wkt/twkb/twkb-types.ts +14 -0
- package/src/worker-utils/index.ts +82 -0
- package/src/worker-utils/lib/async-queue/async-queue.ts +5 -0
- package/src/worker-utils/lib/env-utils/assert.ts +14 -0
- package/src/worker-utils/lib/env-utils/globals.ts +40 -0
- package/src/worker-utils/lib/env-utils/version.ts +18 -0
- package/src/worker-utils/lib/library-utils/library-utils.ts +303 -0
- package/src/worker-utils/lib/node/worker_threads-browser.ts +34 -0
- package/src/worker-utils/lib/node/worker_threads.ts +58 -0
- package/src/worker-utils/lib/npm-tag.ts +5 -0
- package/src/worker-utils/lib/process-utils/child-process-proxy.browser.ts +23 -0
- package/src/worker-utils/lib/process-utils/child-process-proxy.ts +165 -0
- package/src/worker-utils/lib/process-utils/process-utils.ts +34 -0
- package/src/worker-utils/lib/worker-api/create-worker.ts +5 -0
- package/src/worker-utils/lib/worker-api/get-worker-url.ts +128 -0
- package/src/worker-utils/lib/worker-api/process-on-worker.ts +12 -0
- package/src/worker-utils/lib/worker-api/validate-worker-version.ts +44 -0
- package/src/worker-utils/lib/worker-farm/worker-body.ts +5 -0
- package/src/worker-utils/lib/worker-farm/worker-farm.ts +5 -0
- package/src/worker-utils/lib/worker-farm/worker-job.ts +5 -0
- package/src/worker-utils/lib/worker-farm/worker-pool.ts +5 -0
- package/src/worker-utils/lib/worker-farm/worker-thread.ts +5 -0
- package/src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts +81 -0
- package/src/worker-utils/lib/worker-utils/get-transfer-list.ts +93 -0
- package/src/worker-utils/lib/worker-utils/remove-nontransferable-options.ts +27 -0
- package/src/worker-utils/types.ts +18 -0
- package/src/worker-utils/workers/null-worker.ts +20 -0
- package/src/workers/null-worker-node.ts +1 -1
- package/src/workers/null-worker.ts +1 -1
- package/third-party-licenses/Apache-2.0 +73 -0
- package/third-party-licenses/fetch-LICENSE +20 -0
- package/third-party-licenses/fetch-progress-LICENSE +21 -0
- package/third-party-licenses/path-resolve-LICENSE +21 -0
- package/third-party-licenses/retained-MIT-LICENSE +23 -0
- package/third-party-licenses/text-encoding-LICENSE +29 -0
- package/third-party-licenses/wkx-LICENSE +20 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
/**
|
|
5
|
+
* Immutable, columnar point clustering with a deterministic greedy zoom hierarchy.
|
|
6
|
+
*
|
|
7
|
+
* Input is interleaved longitude/latitude. The index snapshots all inputs, wraps longitude,
|
|
8
|
+
* clamps Mercator latitude, and groups across the antimeridian. Grouping is seed-radius based,
|
|
9
|
+
* not transitive connected components; input order can affect membership. Rebuild after edits.
|
|
10
|
+
*/
|
|
11
|
+
export class ClusterIndex {
|
|
12
|
+
/** Number of indexed input points. */
|
|
13
|
+
pointCount;
|
|
14
|
+
/** Lowest available zoom. */
|
|
15
|
+
minZoom;
|
|
16
|
+
/** Last zoom containing clusters; maxZoom + 1 always returns leaves. */
|
|
17
|
+
maxZoom;
|
|
18
|
+
/** Pixel radius used to construct the hierarchy. */
|
|
19
|
+
radiusPixels;
|
|
20
|
+
/** World width in pixels at zoom zero. */
|
|
21
|
+
tileSize;
|
|
22
|
+
/** Minimum descendant count for a new cluster. */
|
|
23
|
+
minPoints;
|
|
24
|
+
/** Original, unprojected leaf positions. */
|
|
25
|
+
coordinates;
|
|
26
|
+
/** Original table row references. */
|
|
27
|
+
rowIndices;
|
|
28
|
+
/** Immutable aggregation operation names. */
|
|
29
|
+
operations;
|
|
30
|
+
/** Zoom-level columns and spatial bins. */
|
|
31
|
+
levels = new Map();
|
|
32
|
+
/** Cluster records; leaves use their input offset as ID. */
|
|
33
|
+
branches = new Map();
|
|
34
|
+
/** Copies coordinates and aggregate columns, then builds every requested zoom level. */
|
|
35
|
+
constructor(coordinates, options = {}) {
|
|
36
|
+
this.pointCount = coordinates.length / 2;
|
|
37
|
+
this.minZoom = options.minZoom ?? 0;
|
|
38
|
+
this.maxZoom = options.maxZoom ?? 16;
|
|
39
|
+
this.radiusPixels = options.radiusPixels ?? 40;
|
|
40
|
+
this.tileSize = options.tileSize ?? 512;
|
|
41
|
+
this.minPoints = options.minPoints ?? 2;
|
|
42
|
+
if (!Number.isSafeInteger(this.pointCount) || this.pointCount < 0) {
|
|
43
|
+
throw new Error('Cluster coordinates must contain longitude/latitude pairs');
|
|
44
|
+
}
|
|
45
|
+
if (!Number.isInteger(this.minZoom) ||
|
|
46
|
+
!Number.isInteger(this.maxZoom) ||
|
|
47
|
+
this.minZoom < 0 ||
|
|
48
|
+
this.maxZoom > 30 ||
|
|
49
|
+
this.minZoom > this.maxZoom) {
|
|
50
|
+
throw new Error('Cluster zoom range must contain integers between 0 and 30');
|
|
51
|
+
}
|
|
52
|
+
if (!Number.isFinite(this.radiusPixels) ||
|
|
53
|
+
this.radiusPixels <= 0 ||
|
|
54
|
+
!Number.isFinite(this.tileSize) ||
|
|
55
|
+
this.tileSize <= 0 ||
|
|
56
|
+
!Number.isSafeInteger(this.minPoints) ||
|
|
57
|
+
this.minPoints < 2 ||
|
|
58
|
+
!Number.isFinite(this.radiusPixels / this.tileSize) ||
|
|
59
|
+
this.radiusPixels / (this.tileSize * 2 ** this.maxZoom) < 2 / Number.MAX_SAFE_INTEGER) {
|
|
60
|
+
throw new Error('Invalid cluster radius, tile size or minimum point count');
|
|
61
|
+
}
|
|
62
|
+
if (options.rowIndices && options.rowIndices.length !== this.pointCount) {
|
|
63
|
+
throw new Error('Cluster row indices must align with positions');
|
|
64
|
+
}
|
|
65
|
+
this.coordinates = Float64Array.from(coordinates);
|
|
66
|
+
this.rowIndices = new Float64Array(this.pointCount);
|
|
67
|
+
const positions = new Float64Array(coordinates.length);
|
|
68
|
+
for (let index = 0; index < this.pointCount; index++) {
|
|
69
|
+
const longitude = this.coordinates[index * 2];
|
|
70
|
+
const latitude = this.coordinates[index * 2 + 1];
|
|
71
|
+
const rowIndex = options.rowIndices?.[index] ?? index;
|
|
72
|
+
if (!Number.isFinite(longitude) ||
|
|
73
|
+
!Number.isFinite(latitude) ||
|
|
74
|
+
Math.abs(latitude) > 90 ||
|
|
75
|
+
!Number.isSafeInteger(rowIndex) ||
|
|
76
|
+
rowIndex < 0) {
|
|
77
|
+
throw new Error('Cluster positions must be finite geographic coordinates and rows nonnegative integers');
|
|
78
|
+
}
|
|
79
|
+
this.rowIndices[index] = rowIndex;
|
|
80
|
+
positions[index * 2] = wrapUnit(longitude / 360 + 0.5);
|
|
81
|
+
positions[index * 2 + 1] = projectLatitude(latitude);
|
|
82
|
+
}
|
|
83
|
+
const aggregates = Object.create(null);
|
|
84
|
+
this.operations = Object.create(null);
|
|
85
|
+
for (const [name, aggregation] of Object.entries(options.aggregations || {})) {
|
|
86
|
+
if (!['sum', 'min', 'max'].includes(aggregation.operation) ||
|
|
87
|
+
aggregation.values.length !== this.pointCount) {
|
|
88
|
+
throw new Error(`Invalid cluster aggregation: ${name}`);
|
|
89
|
+
}
|
|
90
|
+
const values = Float64Array.from(aggregation.values);
|
|
91
|
+
if (!values.every(Number.isFinite))
|
|
92
|
+
throw new Error(`Nonfinite cluster aggregation: ${name}`);
|
|
93
|
+
aggregates[name] = values;
|
|
94
|
+
this.operations[name] = aggregation.operation;
|
|
95
|
+
}
|
|
96
|
+
let level = createLevel(positions, new Float64Array(this.pointCount).fill(1), Float64Array.from({ length: this.pointCount }, (_, index) => index), aggregates, this.getRadius(this.maxZoom));
|
|
97
|
+
this.levels.set(this.maxZoom + 1, level);
|
|
98
|
+
for (let zoom = this.maxZoom; zoom >= this.minZoom; zoom--) {
|
|
99
|
+
level = this.createParentLevel(level, zoom);
|
|
100
|
+
this.levels.set(zoom, level);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/** Queries cluster centers in an inclusive geographic extent at floor(zoom), clamped to the index. */
|
|
104
|
+
getClusters(bounds, zoom) {
|
|
105
|
+
if (!bounds.every(Number.isFinite) || bounds[1] > bounds[3] || !Number.isFinite(zoom)) {
|
|
106
|
+
throw new Error('Cluster query requires finite bounds, ordered latitudes and a finite zoom');
|
|
107
|
+
}
|
|
108
|
+
if (bounds[1] > 90 || bounds[3] < -90)
|
|
109
|
+
return [];
|
|
110
|
+
const level = this.levels.get(Math.max(this.minZoom, Math.min(this.maxZoom + 1, Math.floor(zoom))));
|
|
111
|
+
const minimumY = projectLatitude(bounds[3]);
|
|
112
|
+
const maximumY = projectLatitude(bounds[1]);
|
|
113
|
+
const minimumX = wrapUnit(bounds[0] / 360 + 0.5);
|
|
114
|
+
const maximumX = wrapUnit(bounds[2] / 360 + 0.5);
|
|
115
|
+
const ranges = Math.abs(bounds[2] - bounds[0]) >= 360
|
|
116
|
+
? [[0, 1]]
|
|
117
|
+
: minimumX <= maximumX
|
|
118
|
+
? [[minimumX, maximumX]]
|
|
119
|
+
: [
|
|
120
|
+
[minimumX, 1],
|
|
121
|
+
[0, maximumX]
|
|
122
|
+
];
|
|
123
|
+
const indices = new Set();
|
|
124
|
+
for (const [start, end] of ranges) {
|
|
125
|
+
for (const index of level.grid.query(start, minimumY, end, maximumY))
|
|
126
|
+
indices.add(index);
|
|
127
|
+
}
|
|
128
|
+
return [...indices]
|
|
129
|
+
.sort((first, second) => first - second)
|
|
130
|
+
.map(index => this.readNode(level, index))
|
|
131
|
+
.filter(node => node.position[1] >= bounds[1] && node.position[1] <= bounds[3]);
|
|
132
|
+
}
|
|
133
|
+
/** Returns immediate child nodes; rejects leaf IDs and IDs absent from this index. */
|
|
134
|
+
getChildren(clusterId) {
|
|
135
|
+
return Array.from(this.getBranch(clusterId).children, identifier => this.getNode(identifier));
|
|
136
|
+
}
|
|
137
|
+
/** Returns original rows in depth-first order without materializing skipped subtrees. */
|
|
138
|
+
getLeaves(clusterId, options = {}) {
|
|
139
|
+
const branch = this.getBranch(clusterId);
|
|
140
|
+
const limit = options.limit ?? 100;
|
|
141
|
+
let offset = options.offset ?? 0;
|
|
142
|
+
if ((!Number.isSafeInteger(limit) && limit !== Infinity) ||
|
|
143
|
+
limit < 0 ||
|
|
144
|
+
!Number.isSafeInteger(offset) ||
|
|
145
|
+
offset < 0)
|
|
146
|
+
throw new Error('Invalid cluster leaf pagination');
|
|
147
|
+
const rows = [];
|
|
148
|
+
const pending = Array.from(branch.children).reverse();
|
|
149
|
+
while (pending.length && rows.length < limit) {
|
|
150
|
+
const identifier = pending.pop();
|
|
151
|
+
const child = this.branches.get(identifier);
|
|
152
|
+
const count = child ? child.level.counts[child.index] : 1;
|
|
153
|
+
if (offset >= count) {
|
|
154
|
+
offset -= count;
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
if (child) {
|
|
158
|
+
for (let index = child.children.length - 1; index >= 0; index--)
|
|
159
|
+
pending.push(child.children[index]);
|
|
160
|
+
}
|
|
161
|
+
else
|
|
162
|
+
rows.push(this.rowIndices[identifier]);
|
|
163
|
+
}
|
|
164
|
+
return rows;
|
|
165
|
+
}
|
|
166
|
+
/** First integer zoom where the cluster splits; coincident leaves split at maxZoom + 1. */
|
|
167
|
+
getExpansionZoom(clusterId) {
|
|
168
|
+
return this.getBranch(clusterId).expansionZoom;
|
|
169
|
+
}
|
|
170
|
+
/** Returns an independent node snapshot for a leaf or cluster ID. */
|
|
171
|
+
getNode(identifier) {
|
|
172
|
+
if (Number.isInteger(identifier) && identifier >= 0 && identifier < this.pointCount) {
|
|
173
|
+
return this.readNode(this.levels.get(this.maxZoom + 1), identifier);
|
|
174
|
+
}
|
|
175
|
+
const branch = this.getBranch(identifier);
|
|
176
|
+
return this.readNode(branch.level, branch.index);
|
|
177
|
+
}
|
|
178
|
+
/** Resolves a cluster ID without allowing accidental leaf queries. */
|
|
179
|
+
getBranch(identifier) {
|
|
180
|
+
const branch = this.branches.get(identifier);
|
|
181
|
+
if (!branch)
|
|
182
|
+
throw new Error(`Unknown cluster ID: ${identifier}`);
|
|
183
|
+
return branch;
|
|
184
|
+
}
|
|
185
|
+
/** Converts the pixel radius into normalized world units. */
|
|
186
|
+
getRadius(zoom) {
|
|
187
|
+
return this.radiusPixels / this.tileSize / 2 ** zoom;
|
|
188
|
+
}
|
|
189
|
+
/** Forms disjoint seed-radius groups; stable candidate order makes results reproducible. */
|
|
190
|
+
createParentLevel(previous, zoom) {
|
|
191
|
+
const radius = this.getRadius(zoom);
|
|
192
|
+
const grid = previous.grid.cellSize === radius ? previous.grid : new PointGrid(previous.positions, radius);
|
|
193
|
+
const visited = new Uint8Array(previous.counts.length);
|
|
194
|
+
const positions = [];
|
|
195
|
+
const counts = [];
|
|
196
|
+
const identifiers = [];
|
|
197
|
+
const aggregates = Object.create(null);
|
|
198
|
+
for (const name of Object.keys(this.operations))
|
|
199
|
+
aggregates[name] = [];
|
|
200
|
+
const branches = [];
|
|
201
|
+
for (let seed = 0; seed < visited.length; seed++) {
|
|
202
|
+
if (visited[seed])
|
|
203
|
+
continue;
|
|
204
|
+
const seedX = previous.positions[seed * 2];
|
|
205
|
+
const seedY = previous.positions[seed * 2 + 1];
|
|
206
|
+
const candidates = grid
|
|
207
|
+
.queryRadius(seedX, seedY, radius)
|
|
208
|
+
.filter(index => !visited[index])
|
|
209
|
+
.sort((first, second) => first - second);
|
|
210
|
+
const count = candidates.reduce((total, index) => total + previous.counts[index], 0);
|
|
211
|
+
const group = candidates.length > 1 && count >= this.minPoints ? candidates : [seed];
|
|
212
|
+
let totalCount = 0;
|
|
213
|
+
let centerX = 0;
|
|
214
|
+
let centerY = 0;
|
|
215
|
+
for (const index of group) {
|
|
216
|
+
visited[index] = 1;
|
|
217
|
+
const pointCount = previous.counts[index];
|
|
218
|
+
let deltaX = previous.positions[index * 2] - seedX;
|
|
219
|
+
deltaX -= Math.round(deltaX);
|
|
220
|
+
centerX += (seedX + deltaX) * pointCount;
|
|
221
|
+
centerY += previous.positions[index * 2 + 1] * pointCount;
|
|
222
|
+
totalCount += pointCount;
|
|
223
|
+
}
|
|
224
|
+
const identifier = group.length === 1
|
|
225
|
+
? previous.identifiers[seed]
|
|
226
|
+
: this.pointCount + this.branches.size + branches.length;
|
|
227
|
+
if (group.length > 1)
|
|
228
|
+
branches.push({
|
|
229
|
+
identifier,
|
|
230
|
+
index: counts.length,
|
|
231
|
+
children: Float64Array.from(group, index => previous.identifiers[index])
|
|
232
|
+
});
|
|
233
|
+
positions.push(wrapUnit(centerX / totalCount), centerY / totalCount);
|
|
234
|
+
counts.push(totalCount);
|
|
235
|
+
identifiers.push(identifier);
|
|
236
|
+
for (const [name, operation] of Object.entries(this.operations)) {
|
|
237
|
+
let value = previous.aggregates[name][group[0]];
|
|
238
|
+
for (let index = 1; index < group.length; index++) {
|
|
239
|
+
const next = previous.aggregates[name][group[index]];
|
|
240
|
+
value =
|
|
241
|
+
operation === 'sum'
|
|
242
|
+
? value + next
|
|
243
|
+
: operation === 'min'
|
|
244
|
+
? Math.min(value, next)
|
|
245
|
+
: Math.max(value, next);
|
|
246
|
+
}
|
|
247
|
+
if (!Number.isFinite(value))
|
|
248
|
+
throw new Error(`Cluster aggregation overflow: ${name}`);
|
|
249
|
+
aggregates[name].push(value);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
if (!branches.length)
|
|
253
|
+
return previous;
|
|
254
|
+
const columns = Object.create(null);
|
|
255
|
+
for (const name of Object.keys(aggregates))
|
|
256
|
+
columns[name] = Float64Array.from(aggregates[name]);
|
|
257
|
+
const level = createLevel(Float64Array.from(positions), Float64Array.from(counts), Float64Array.from(identifiers), columns, this.getRadius(zoom - 1));
|
|
258
|
+
for (const branch of branches)
|
|
259
|
+
this.branches.set(branch.identifier, {
|
|
260
|
+
level,
|
|
261
|
+
index: branch.index,
|
|
262
|
+
children: branch.children,
|
|
263
|
+
expansionZoom: zoom + 1
|
|
264
|
+
});
|
|
265
|
+
return level;
|
|
266
|
+
}
|
|
267
|
+
/** Materializes only requested output nodes, preserving exact leaf coordinates. */
|
|
268
|
+
readNode(level, index) {
|
|
269
|
+
const identifier = level.identifiers[index];
|
|
270
|
+
const isCluster = identifier >= this.pointCount;
|
|
271
|
+
const properties = Object.create(null);
|
|
272
|
+
for (const name of Object.keys(this.operations))
|
|
273
|
+
properties[name] = level.aggregates[name][index];
|
|
274
|
+
const projectedY = level.positions[index * 2 + 1];
|
|
275
|
+
return {
|
|
276
|
+
id: identifier,
|
|
277
|
+
isCluster,
|
|
278
|
+
pointCount: level.counts[index],
|
|
279
|
+
rowIndex: isCluster ? null : this.rowIndices[identifier],
|
|
280
|
+
properties,
|
|
281
|
+
position: isCluster
|
|
282
|
+
? [
|
|
283
|
+
level.positions[index * 2] * 360 - 180,
|
|
284
|
+
(Math.atan(Math.sinh(Math.PI * (1 - 2 * projectedY))) * 180) / Math.PI
|
|
285
|
+
]
|
|
286
|
+
: [this.coordinates[identifier * 2], this.coordinates[identifier * 2 + 1]]
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
/** Creates indexed column storage for one level. */
|
|
291
|
+
function createLevel(positions, counts, identifiers, aggregates, cellSize) {
|
|
292
|
+
return { positions, counts, identifiers, aggregates, grid: new PointGrid(positions, cellSize) };
|
|
293
|
+
}
|
|
294
|
+
/** Sparse uniform grid; large queries scan occupied points instead of empty world cells. */
|
|
295
|
+
class PointGrid {
|
|
296
|
+
/** Point offsets per cell. */
|
|
297
|
+
cells = new Map();
|
|
298
|
+
/** Coordinate columns retained without a second copy. */
|
|
299
|
+
positions;
|
|
300
|
+
/** Positive bin width in normalized world units. */
|
|
301
|
+
cellSize;
|
|
302
|
+
/** Assigns each point to exactly one spatial bin. */
|
|
303
|
+
constructor(positions, cellSize) {
|
|
304
|
+
this.positions = positions;
|
|
305
|
+
this.cellSize = cellSize;
|
|
306
|
+
for (let index = 0; index < positions.length / 2; index++) {
|
|
307
|
+
const key = `${Math.floor(positions[index * 2] / cellSize)},${Math.floor(positions[index * 2 + 1] / cellSize)}`;
|
|
308
|
+
const cell = this.cells.get(key);
|
|
309
|
+
if (cell)
|
|
310
|
+
cell.push(index);
|
|
311
|
+
else
|
|
312
|
+
this.cells.set(key, [index]);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/** Returns offsets inside an inclusive rectangle. */
|
|
316
|
+
query(minimumX, minimumY, maximumX, maximumY) {
|
|
317
|
+
const firstColumn = Math.floor(minimumX / this.cellSize);
|
|
318
|
+
const lastColumn = Math.floor(maximumX / this.cellSize);
|
|
319
|
+
const firstRow = Math.floor(minimumY / this.cellSize);
|
|
320
|
+
const lastRow = Math.floor(maximumY / this.cellSize);
|
|
321
|
+
const result = [];
|
|
322
|
+
/** Refines a bin candidate against exact rectangle boundaries. */
|
|
323
|
+
const considerPoint = (index) => {
|
|
324
|
+
const positionX = this.positions[index * 2];
|
|
325
|
+
const positionY = this.positions[index * 2 + 1];
|
|
326
|
+
if (positionX >= minimumX &&
|
|
327
|
+
positionX <= maximumX &&
|
|
328
|
+
positionY >= minimumY &&
|
|
329
|
+
positionY <= maximumY)
|
|
330
|
+
result.push(index);
|
|
331
|
+
};
|
|
332
|
+
if ((lastColumn - firstColumn + 1) * (lastRow - firstRow + 1) > this.cells.size * 4) {
|
|
333
|
+
for (let index = 0; index < this.positions.length / 2; index++)
|
|
334
|
+
considerPoint(index);
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
for (let column = firstColumn; column <= lastColumn; column++) {
|
|
338
|
+
for (let row = firstRow; row <= lastRow; row++) {
|
|
339
|
+
const cell = this.cells.get(`${column},${row}`);
|
|
340
|
+
if (cell)
|
|
341
|
+
for (const index of cell)
|
|
342
|
+
considerPoint(index);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
return result;
|
|
347
|
+
}
|
|
348
|
+
/** Finds neighbors in a wrapped Euclidean Mercator circle. */
|
|
349
|
+
queryRadius(positionX, positionY, radius) {
|
|
350
|
+
const candidates = new Set(this.query(Math.max(0, positionX - radius), positionY - radius, Math.min(1, positionX + radius), positionY + radius));
|
|
351
|
+
if (positionX - radius < 0)
|
|
352
|
+
for (const index of this.query(Math.max(0, 1 + positionX - radius), positionY - radius, 1, positionY + radius))
|
|
353
|
+
candidates.add(index);
|
|
354
|
+
if (positionX + radius >= 1)
|
|
355
|
+
for (const index of this.query(0, positionY - radius, Math.min(1, positionX + radius - 1), positionY + radius))
|
|
356
|
+
candidates.add(index);
|
|
357
|
+
return [...candidates].filter(index => {
|
|
358
|
+
const deltaX = Math.abs(this.positions[index * 2] - positionX);
|
|
359
|
+
return (Math.hypot(Math.min(deltaX, 1 - deltaX), this.positions[index * 2 + 1] - positionY) <=
|
|
360
|
+
radius);
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/** Wraps a normalized world coordinate into [0, 1). */
|
|
365
|
+
function wrapUnit(value) {
|
|
366
|
+
const remainder = value % 1;
|
|
367
|
+
return remainder < 0 ? remainder + 1 : remainder;
|
|
368
|
+
}
|
|
369
|
+
/** Projects latitude with a finite Mercator pole clamp. */
|
|
370
|
+
function projectLatitude(latitude) {
|
|
371
|
+
const clampedLatitude = Math.max(-85.0511287798066, Math.min(85.0511287798066, latitude));
|
|
372
|
+
return Math.max(0, Math.min(1, (1 - Math.asinh(Math.tan((clampedLatitude * Math.PI) / 180)) / Math.PI) / 2));
|
|
373
|
+
}
|
|
374
|
+
//# sourceMappingURL=cluster-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster-index.js","sourceRoot":"","sources":["../../../src/geoarrow/clustering/cluster-index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAyEpC;;;;;;GAMG;AACH,MAAM,OAAO,YAAY;IACvB,sCAAsC;IAC7B,UAAU,CAAS;IAC5B,6BAA6B;IACpB,OAAO,CAAS;IACzB,wEAAwE;IAC/D,OAAO,CAAS;IACzB,oDAAoD;IAC3C,YAAY,CAAS;IAC9B,0CAA0C;IACjC,QAAQ,CAAS;IAC1B,kDAAkD;IACzC,SAAS,CAAS;IAC3B,4CAA4C;IAC3B,WAAW,CAAe;IAC3C,qCAAqC;IACpB,UAAU,CAAe;IAC1C,6CAA6C;IAC5B,UAAU,CAAkD;IAC7E,2CAA2C;IAC1B,MAAM,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC1D,4DAA4D;IAC3C,QAAQ,GAAG,IAAI,GAAG,EAAyB,CAAC;IAE7D,wFAAwF;IACxF,YAAY,WAA8B,EAAE,UAA+B,EAAE;QAC3E,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,EAAE,CAAC;QAC/C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,GAAG,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,OAAO,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SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;YAC/D,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;gBACnF,MAAM,CACP,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,uDAAuD;AACvD,SAAS,QAAQ,CAAC,KAAa;IAC7B,MAAM,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;IAC5B,OAAO,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnD,CAAC;AAED,2DAA2D;AAC3D,SAAS,eAAe,CAAC,QAAgB;IACvC,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,gBAAgB,EAAE,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC1F,OAAO,IAAI,CAAC,GAAG,CACb,CAAC,EACD,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CACzF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/geoarrow/clustering/cluster-source.ts
|
|
21
|
+
var cluster_source_exports = {};
|
|
22
|
+
__export(cluster_source_exports, {
|
|
23
|
+
ClusterSource: () => ClusterSource
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(cluster_source_exports);
|
|
26
|
+
var import_loader_utils = require("@loaders.gl/core/loader-utils");
|
|
27
|
+
var import_geometry_codecs = require("@loaders.gl/core/arrow-geometry/geometry-codecs");
|
|
28
|
+
var import_geometry_field = require("@loaders.gl/core/arrow-geometry/geometry-field");
|
|
29
|
+
var import_legacy_binary = require("@loaders.gl/core/arrow-geometry/legacy-binary");
|
|
30
|
+
var import_schema_utils = require("@loaders.gl/core/schema-utils");
|
|
31
|
+
var import_geoarrow_metadata = require("../metadata/geoarrow-metadata.cjs");
|
|
32
|
+
var import_convert_geoarrow_geometry = require("../geoarrow-converter/convert-geoarrow-geometry.cjs");
|
|
33
|
+
var import_geoarrow_bounds = require("../geoarrow-bounds.cjs");
|
|
34
|
+
var import_cluster_index = require("./cluster-index.cjs");
|
|
35
|
+
var import_get_representative_point = require("./get-representative-point.cjs");
|
|
36
|
+
var ClusterSource = class extends import_loader_utils.DataSource {
|
|
37
|
+
/** Immutable hierarchy exposed for member, expansion and columnar queries. */
|
|
38
|
+
index;
|
|
39
|
+
/** Original rows included in the index; excluded geometries retain their original offsets. */
|
|
40
|
+
indexedRowCount;
|
|
41
|
+
/** Geometry column used to retrieve original Arrow geometries. */
|
|
42
|
+
geometryColumn;
|
|
43
|
+
/** Declared Arrow geometry encoding. */
|
|
44
|
+
geometryEncoding;
|
|
45
|
+
/** Stable output property schema, also used for empty query results. */
|
|
46
|
+
propertySchema;
|
|
47
|
+
/** Extracts positions once, then constructs a reusable hierarchy without fetching data. */
|
|
48
|
+
constructor(data, options = {}) {
|
|
49
|
+
super(data, {});
|
|
50
|
+
const positions = [];
|
|
51
|
+
const rowIndices = [];
|
|
52
|
+
if (data.shape === "arrow-table") {
|
|
53
|
+
const columns = (0, import_geoarrow_metadata.getGeometryColumnsFromSchema)(data.data.schema);
|
|
54
|
+
const columnNames = Object.keys(columns);
|
|
55
|
+
this.geometryColumn = options.geometryColumn ?? (columnNames.length === 1 ? columnNames[0] : void 0);
|
|
56
|
+
this.geometryEncoding = this.geometryColumn ? columns[this.geometryColumn]?.encoding : void 0;
|
|
57
|
+
if (!this.geometryColumn || !this.geometryEncoding || !data.data.getChild(this.geometryColumn)) {
|
|
58
|
+
throw new Error("ClusterSource requires an explicitly identified GeoArrow geometry column");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const geometryVector = data.shape === "arrow-table" ? data.data.getChild(this.geometryColumn) : null;
|
|
62
|
+
const pointBounds = geometryVector && this.geometryEncoding === "geoarrow.point" && !options.getClusterPosition ? (0, import_geoarrow_bounds.getGeoArrowRowBounds)(geometryVector, this.geometryEncoding) : null;
|
|
63
|
+
const rowCount = data.shape === "arrow-table" ? data.data.numRows : data.features.length;
|
|
64
|
+
for (let rowIndex = 0; rowIndex < rowCount; rowIndex++) {
|
|
65
|
+
let position;
|
|
66
|
+
if (pointBounds) {
|
|
67
|
+
const bounds = pointBounds[rowIndex];
|
|
68
|
+
position = bounds ? [bounds[0], bounds[1]] : null;
|
|
69
|
+
} else {
|
|
70
|
+
const geometry = this.getGeometry(rowIndex);
|
|
71
|
+
position = options.getClusterPosition ? options.getClusterPosition(geometry, rowIndex) : (0, import_get_representative_point.getRepresentativePoint)(geometry, options.positionStrategy);
|
|
72
|
+
}
|
|
73
|
+
if (position) {
|
|
74
|
+
positions.push(position[0], position[1]);
|
|
75
|
+
rowIndices.push(rowIndex);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const aggregations = /* @__PURE__ */ Object.create(null);
|
|
79
|
+
for (const [name, aggregation] of Object.entries(options.aggregations || {})) {
|
|
80
|
+
if (["cluster", "clusterId", "pointCount", "rowIndex", "geometry"].includes(name)) {
|
|
81
|
+
throw new Error(`Reserved cluster property: ${name}`);
|
|
82
|
+
}
|
|
83
|
+
const column = data.shape === "arrow-table" ? data.data.getChild(aggregation.column) : null;
|
|
84
|
+
const values = rowIndices.map((rowIndex) => {
|
|
85
|
+
const value = data.shape === "arrow-table" ? column?.get(rowIndex) : data.features[rowIndex].properties?.[aggregation.column];
|
|
86
|
+
if (typeof value !== "number" || !Number.isFinite(value))
|
|
87
|
+
throw new Error(`Cluster aggregation ${name} requires finite numeric values`);
|
|
88
|
+
return value;
|
|
89
|
+
});
|
|
90
|
+
aggregations[name] = { values, operation: aggregation.operation };
|
|
91
|
+
}
|
|
92
|
+
this.index = new import_cluster_index.ClusterIndex(positions, { ...options, rowIndices, aggregations });
|
|
93
|
+
this.indexedRowCount = rowIndices.length;
|
|
94
|
+
this.propertySchema = {
|
|
95
|
+
metadata: {},
|
|
96
|
+
fields: [
|
|
97
|
+
{ name: "cluster", type: "bool", nullable: false },
|
|
98
|
+
{ name: "clusterId", type: "float64", nullable: false },
|
|
99
|
+
{ name: "pointCount", type: "float64", nullable: false },
|
|
100
|
+
{ name: "rowIndex", type: "float64", nullable: true },
|
|
101
|
+
...Object.keys(aggregations).map((name) => ({
|
|
102
|
+
name,
|
|
103
|
+
type: "float64",
|
|
104
|
+
nullable: false
|
|
105
|
+
})),
|
|
106
|
+
(0, import_geometry_field.makeWKBGeometryField)("geometry", false)
|
|
107
|
+
]
|
|
108
|
+
};
|
|
109
|
+
(0, import_geometry_field.setWKBGeometrySchemaMetadata)(this.propertySchema, {
|
|
110
|
+
geometryColumnName: "geometry",
|
|
111
|
+
primaryColumnName: "geometry",
|
|
112
|
+
geometryTypes: ["Point"]
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/** Describes the default WKB Arrow output, including cluster and aggregate properties. */
|
|
116
|
+
async getSchema() {
|
|
117
|
+
return structuredClone(this.propertySchema);
|
|
118
|
+
}
|
|
119
|
+
/** Exposes one geographic vector layer named clusters. */
|
|
120
|
+
async getMetadata() {
|
|
121
|
+
return {
|
|
122
|
+
name: "clusters",
|
|
123
|
+
title: "Clustered features",
|
|
124
|
+
keywords: ["clustering"],
|
|
125
|
+
layers: [{ name: "clusters", crs: ["EPSG:4326"] }]
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
/** Queries markers at an explicit map zoom; supports GeoJSON, binary and GeoArrow output. */
|
|
129
|
+
async getFeatures(parameters) {
|
|
130
|
+
parameters.signal?.throwIfAborted();
|
|
131
|
+
const layers = typeof parameters.layers === "string" ? [parameters.layers] : parameters.layers;
|
|
132
|
+
if (layers.some((layer) => layer !== "clusters"))
|
|
133
|
+
throw new Error("ClusterSource only exposes the clusters layer");
|
|
134
|
+
if (parameters.zoom === void 0)
|
|
135
|
+
throw new Error("ClusterSource requires a zoom in each feature request");
|
|
136
|
+
if (parameters.crs && !["EPSG:4326", "OGC:CRS84", "CRS:84"].includes(parameters.crs)) {
|
|
137
|
+
throw new Error(
|
|
138
|
+
"ClusterSource returns longitude/latitude; reproject input before construction"
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
const [[west, south], [east, north]] = parameters.boundingBox;
|
|
142
|
+
if (parameters.requestCrs && !["EPSG:4326", "OGC:CRS84", "CRS:84"].includes(parameters.requestCrs)) {
|
|
143
|
+
throw new Error("ClusterSource requires longitude/latitude request bounds");
|
|
144
|
+
}
|
|
145
|
+
const nodes = this.index.getClusters([west, south, east, north], parameters.zoom);
|
|
146
|
+
const features = nodes.map(createClusterFeature);
|
|
147
|
+
if (parameters.format === "geojson")
|
|
148
|
+
return { shape: "geojson-table", type: "FeatureCollection", features };
|
|
149
|
+
if (parameters.format === "binary") return (0, import_legacy_binary.convertGeojsonToBinaryFeatureCollection)(features);
|
|
150
|
+
const builder = new import_schema_utils.ArrowTableBuilder(this.propertySchema);
|
|
151
|
+
for (const feature of features)
|
|
152
|
+
builder.addObjectRow({
|
|
153
|
+
...feature.properties,
|
|
154
|
+
geometry: new Uint8Array((0, import_geometry_codecs.convertGeometryToWKB)(feature.geometry))
|
|
155
|
+
});
|
|
156
|
+
const table = builder.finishTable();
|
|
157
|
+
const preference = parameters.geoarrow?.encodingPreference;
|
|
158
|
+
if (preference && preference !== "geoarrow.wkb") {
|
|
159
|
+
return {
|
|
160
|
+
shape: "arrow-table",
|
|
161
|
+
data: (0, import_convert_geoarrow_geometry.convertGeoArrowGeometry)(
|
|
162
|
+
table.data,
|
|
163
|
+
preference === "optimized" ? "geoarrow.point" : "geoarrow.geometry"
|
|
164
|
+
)
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
return table;
|
|
168
|
+
}
|
|
169
|
+
/** Retrieves a member's original geometry and properties; Arrow rows are materialized on demand. */
|
|
170
|
+
getFeature(rowIndex) {
|
|
171
|
+
const rowCount = this.data.shape === "arrow-table" ? this.data.data.numRows : this.data.features.length;
|
|
172
|
+
if (!Number.isInteger(rowIndex) || rowIndex < 0 || rowIndex >= rowCount)
|
|
173
|
+
throw new Error("Invalid cluster source row");
|
|
174
|
+
if (this.data.shape === "geojson-table") return this.data.features[rowIndex];
|
|
175
|
+
const properties = { ...this.data.data.get(rowIndex).toJSON() };
|
|
176
|
+
delete properties[this.geometryColumn];
|
|
177
|
+
return { type: "Feature", geometry: this.getGeometry(rowIndex), properties };
|
|
178
|
+
}
|
|
179
|
+
/** Decodes one geometry only when extraction or member retrieval needs it. */
|
|
180
|
+
getGeometry(rowIndex) {
|
|
181
|
+
return this.data.shape === "geojson-table" ? this.data.features[rowIndex].geometry : (0, import_convert_geoarrow_geometry.convertGeoArrowVectorCellToGeoJSON)(
|
|
182
|
+
this.data.data.getChild(this.geometryColumn),
|
|
183
|
+
rowIndex,
|
|
184
|
+
this.geometryEncoding
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
function createClusterFeature(node) {
|
|
189
|
+
return {
|
|
190
|
+
type: "Feature",
|
|
191
|
+
id: node.id,
|
|
192
|
+
geometry: { type: "Point", coordinates: node.position },
|
|
193
|
+
properties: {
|
|
194
|
+
...node.properties,
|
|
195
|
+
cluster: node.isCluster,
|
|
196
|
+
clusterId: node.id,
|
|
197
|
+
pointCount: node.pointCount,
|
|
198
|
+
rowIndex: node.rowIndex
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
203
|
+
0 && (module.exports = {
|
|
204
|
+
ClusterSource
|
|
205
|
+
});
|
|
206
|
+
//# sourceMappingURL=cluster-source.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/geoarrow/clustering/cluster-source.ts"],
|
|
4
|
+
"sourcesContent": ["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport {DataSource} from '@loaders.gl/core/loader-utils';\nimport type {\n GetFeaturesParameters,\n VectorSource,\n VectorSourceData,\n VectorSourceMetadata\n} from '@loaders.gl/core/loader-utils';\nimport type {\n ArrowTable,\n Feature,\n GeoArrowEncoding,\n GeoJSONTable,\n Geometry,\n Schema\n} from '@loaders.gl/core/schema';\nimport {convertGeometryToWKB} from '@loaders.gl/core/arrow-geometry/geometry-codecs';\nimport {\n makeWKBGeometryField,\n setWKBGeometrySchemaMetadata\n} from '@loaders.gl/core/arrow-geometry/geometry-field';\nimport {convertGeojsonToBinaryFeatureCollection} from '@loaders.gl/core/arrow-geometry/legacy-binary';\nimport {ArrowTableBuilder} from '@loaders.gl/core/schema-utils';\nimport {getGeometryColumnsFromSchema} from '../metadata/geoarrow-metadata';\nimport {\n convertGeoArrowVectorCellToGeoJSON,\n convertGeoArrowGeometry\n} from '../geoarrow-converter/convert-geoarrow-geometry';\nimport {getGeoArrowRowBounds} from '../geoarrow-bounds';\nimport {\n ClusterIndex,\n type ClusterAggregation,\n type ClusterIndexOptions,\n type ClusterNode\n} from './cluster-index';\nimport {getRepresentativePoint, type RepresentativePointStrategy} from './get-representative-point';\n\n/**\n * Complete materialized input; remote viewport subsets must be collected before indexing.\n * @experimental\n */\nexport type ClusterSourceData = GeoJSONTable | ArrowTable;\n\n/**\n * Cluster source construction options; inputs must use longitude/latitude.\n * @experimental\n */\nexport type ClusterSourceOptions = Omit<ClusterIndexOptions, 'rowIndices' | 'aggregations'> & {\n /** Arrow geometry column; inferred only when exactly one is declared. */\n geometryColumn?: string;\n /** Representative policy; defaults to point geometries only. */\n positionStrategy?: RepresentativePointStrategy;\n /** Overrides extraction; null skips the row. Called once per input row during construction. */\n getClusterPosition?: (\n geometry: Geometry | null,\n rowIndex: number\n ) => readonly [number, number] | null;\n /** Numeric aggregations keyed by output name. Null/nonfinite input values are rejected. */\n aggregations?: Readonly<\n Record<\n string,\n {\n /** Input property or Arrow column name. */\n column: string;\n /** Associative operation over included rows. */\n operation: ClusterAggregation['operation'];\n }\n >\n >;\n};\n\n/**\n * Experimental VectorSource adapter for a complete point/geometry table and an immutable\n * ClusterIndex.\n *\n * Input positions and output are longitude/latitude. Query bounds are geographic, as in\n * VectorSourceLayer. Original geometries stay in data; returned features are representative\n * markers. Reconstruct the source after changing input, radius, filters or aggregation policy.\n *\n * @experimental The API may change in future releases.\n */\nexport class ClusterSource extends DataSource<ClusterSourceData, {}> implements VectorSource {\n /** Immutable hierarchy exposed for member, expansion and columnar queries. */\n readonly index: ClusterIndex;\n /** Original rows included in the index; excluded geometries retain their original offsets. */\n readonly indexedRowCount: number;\n /** Geometry column used to retrieve original Arrow geometries. */\n private readonly geometryColumn?: string;\n /** Declared Arrow geometry encoding. */\n private readonly geometryEncoding?: GeoArrowEncoding;\n /** Stable output property schema, also used for empty query results. */\n private readonly propertySchema: Schema;\n\n /** Extracts positions once, then constructs a reusable hierarchy without fetching data. */\n constructor(data: ClusterSourceData, options: ClusterSourceOptions = {}) {\n super(data, {});\n const positions: number[] = [];\n const rowIndices: number[] = [];\n if (data.shape === 'arrow-table') {\n const columns = getGeometryColumnsFromSchema(data.data.schema);\n const columnNames = Object.keys(columns);\n this.geometryColumn =\n options.geometryColumn ?? (columnNames.length === 1 ? columnNames[0] : undefined);\n this.geometryEncoding = this.geometryColumn\n ? columns[this.geometryColumn]?.encoding\n : undefined;\n if (\n !this.geometryColumn ||\n !this.geometryEncoding ||\n !data.data.getChild(this.geometryColumn)\n ) {\n throw new Error('ClusterSource requires an explicitly identified GeoArrow geometry column');\n }\n }\n const geometryVector =\n data.shape === 'arrow-table' ? data.data.getChild(this.geometryColumn!)! : null;\n // Native point bounds read Arrow buffers directly, including chunks, slices and nulls.\n const pointBounds =\n geometryVector && this.geometryEncoding === 'geoarrow.point' && !options.getClusterPosition\n ? getGeoArrowRowBounds(geometryVector, this.geometryEncoding)\n : null;\n const rowCount = data.shape === 'arrow-table' ? data.data.numRows : data.features.length;\n for (let rowIndex = 0; rowIndex < rowCount; rowIndex++) {\n let position: readonly [number, number] | null;\n if (pointBounds) {\n const bounds = pointBounds[rowIndex];\n position = bounds ? [bounds[0], bounds[1]] : null;\n } else {\n const geometry = this.getGeometry(rowIndex);\n position = options.getClusterPosition\n ? options.getClusterPosition(geometry, rowIndex)\n : getRepresentativePoint(geometry, options.positionStrategy);\n }\n if (position) {\n positions.push(position[0], position[1]);\n rowIndices.push(rowIndex);\n }\n }\n const aggregations: Record<string, ClusterAggregation> = Object.create(null);\n for (const [name, aggregation] of Object.entries(options.aggregations || {})) {\n if (['cluster', 'clusterId', 'pointCount', 'rowIndex', 'geometry'].includes(name)) {\n throw new Error(`Reserved cluster property: ${name}`);\n }\n const column = data.shape === 'arrow-table' ? data.data.getChild(aggregation.column) : null;\n const values = rowIndices.map(rowIndex => {\n const value =\n data.shape === 'arrow-table'\n ? column?.get(rowIndex)\n : data.features[rowIndex].properties?.[aggregation.column];\n if (typeof value !== 'number' || !Number.isFinite(value))\n throw new Error(`Cluster aggregation ${name} requires finite numeric values`);\n return value;\n });\n aggregations[name] = {values, operation: aggregation.operation};\n }\n this.index = new ClusterIndex(positions, {...options, rowIndices, aggregations});\n this.indexedRowCount = rowIndices.length;\n this.propertySchema = {\n metadata: {},\n fields: [\n {name: 'cluster', type: 'bool', nullable: false},\n {name: 'clusterId', type: 'float64', nullable: false},\n {name: 'pointCount', type: 'float64', nullable: false},\n {name: 'rowIndex', type: 'float64', nullable: true},\n ...Object.keys(aggregations).map(name => ({\n name,\n type: 'float64' as const,\n nullable: false\n })),\n makeWKBGeometryField('geometry', false)\n ]\n };\n setWKBGeometrySchemaMetadata(this.propertySchema, {\n geometryColumnName: 'geometry',\n primaryColumnName: 'geometry',\n geometryTypes: ['Point']\n });\n }\n\n /** Describes the default WKB Arrow output, including cluster and aggregate properties. */\n async getSchema(): Promise<Schema> {\n return structuredClone(this.propertySchema);\n }\n\n /** Exposes one geographic vector layer named clusters. */\n async getMetadata(): Promise<VectorSourceMetadata> {\n return {\n name: 'clusters',\n title: 'Clustered features',\n keywords: ['clustering'],\n layers: [{name: 'clusters', crs: ['EPSG:4326']}]\n };\n }\n\n /** Queries markers at an explicit map zoom; supports GeoJSON, binary and GeoArrow output. */\n async getFeatures(parameters: GetFeaturesParameters): Promise<VectorSourceData> {\n parameters.signal?.throwIfAborted();\n const layers = typeof parameters.layers === 'string' ? [parameters.layers] : parameters.layers;\n if (layers.some(layer => layer !== 'clusters'))\n throw new Error('ClusterSource only exposes the clusters layer');\n if (parameters.zoom === undefined)\n throw new Error('ClusterSource requires a zoom in each feature request');\n if (parameters.crs && !['EPSG:4326', 'OGC:CRS84', 'CRS:84'].includes(parameters.crs)) {\n throw new Error(\n 'ClusterSource returns longitude/latitude; reproject input before construction'\n );\n }\n const [[west, south], [east, north]] = parameters.boundingBox;\n if (\n parameters.requestCrs &&\n !['EPSG:4326', 'OGC:CRS84', 'CRS:84'].includes(parameters.requestCrs)\n ) {\n throw new Error('ClusterSource requires longitude/latitude request bounds');\n }\n const nodes = this.index.getClusters([west, south, east, north], parameters.zoom);\n const features = nodes.map(createClusterFeature);\n if (parameters.format === 'geojson')\n return {shape: 'geojson-table', type: 'FeatureCollection', features};\n if (parameters.format === 'binary') return convertGeojsonToBinaryFeatureCollection(features);\n const builder = new ArrowTableBuilder(this.propertySchema);\n for (const feature of features)\n builder.addObjectRow({\n ...feature.properties,\n geometry: new Uint8Array(convertGeometryToWKB(feature.geometry!))\n });\n const table = builder.finishTable();\n const preference = parameters.geoarrow?.encodingPreference;\n if (preference && preference !== 'geoarrow.wkb') {\n return {\n shape: 'arrow-table',\n data: convertGeoArrowGeometry(\n table.data,\n preference === 'optimized' ? 'geoarrow.point' : 'geoarrow.geometry'\n )\n };\n }\n return table;\n }\n\n /** Retrieves a member's original geometry and properties; Arrow rows are materialized on demand. */\n getFeature(rowIndex: number): Feature<Geometry | null> {\n const rowCount =\n this.data.shape === 'arrow-table' ? this.data.data.numRows : this.data.features.length;\n if (!Number.isInteger(rowIndex) || rowIndex < 0 || rowIndex >= rowCount)\n throw new Error('Invalid cluster source row');\n if (this.data.shape === 'geojson-table') return this.data.features[rowIndex];\n const properties = {...this.data.data.get(rowIndex)!.toJSON()};\n delete properties[this.geometryColumn!];\n return {type: 'Feature', geometry: this.getGeometry(rowIndex), properties};\n }\n\n /** Decodes one geometry only when extraction or member retrieval needs it. */\n private getGeometry(rowIndex: number): Geometry | null {\n return this.data.shape === 'geojson-table'\n ? this.data.features[rowIndex].geometry\n : convertGeoArrowVectorCellToGeoJSON(\n this.data.data.getChild(this.geometryColumn!)!,\n rowIndex,\n this.geometryEncoding!\n );\n }\n}\n\n/** Converts an index node into a marker without copying original feature properties. */\nfunction createClusterFeature(node: ClusterNode): Feature {\n return {\n type: 'Feature',\n id: node.id,\n geometry: {type: 'Point', coordinates: node.position},\n properties: {\n ...node.properties,\n cluster: node.isCluster,\n clusterId: node.id,\n pointCount: node.pointCount,\n rowIndex: node.rowIndex\n }\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,0BAAyB;AAezB,6BAAmC;AACnC,4BAGO;AACP,2BAAsD;AACtD,0BAAgC;AAChC,+BAA2C;AAC3C,uCAGO;AACP,6BAAmC;AACnC,2BAKO;AACP,sCAAuE;AA8ChE,IAAM,gBAAN,cAA4B,+BAA0D;AAAA;AAAA,EAElF;AAAA;AAAA,EAEA;AAAA;AAAA,EAEQ;AAAA;AAAA,EAEA;AAAA;AAAA,EAEA;AAAA;AAAA,EAGjB,YAAY,MAAyB,UAAgC,CAAC,GAAG;AACvE,UAAM,MAAM,CAAC,CAAC;AACd,UAAM,YAAsB,CAAC;AAC7B,UAAM,aAAuB,CAAC;AAC9B,QAAI,KAAK,UAAU,eAAe;AAChC,YAAM,cAAU,uDAA6B,KAAK,KAAK,MAAM;AAC7D,YAAM,cAAc,OAAO,KAAK,OAAO;AACvC,WAAK,iBACH,QAAQ,mBAAmB,YAAY,WAAW,IAAI,YAAY,CAAC,IAAI;AACzE,WAAK,mBAAmB,KAAK,iBACzB,QAAQ,KAAK,cAAc,GAAG,WAC9B;AACJ,UACE,CAAC,KAAK,kBACN,CAAC,KAAK,oBACN,CAAC,KAAK,KAAK,SAAS,KAAK,cAAc,GACvC;AACA,cAAM,IAAI,MAAM,0EAA0E;AAAA,MAC5F;AAAA,IACF;AACA,UAAM,iBACJ,KAAK,UAAU,gBAAgB,KAAK,KAAK,SAAS,KAAK,cAAe,IAAK;AAE7E,UAAM,cACJ,k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