@loaders.gl/core 5.0.0-beta.7 → 5.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GEOARROW-README.md +6 -0
- package/SCAN-README.md +2 -2
- package/SCHEMA-UTILS-README.md +1 -1
- package/dist/arrow-geometry/binary-features.cjs +4 -1
- package/dist/arrow-geometry/binary-features.cjs.map +2 -2
- package/dist/arrow-geometry/binary-features.d.ts.map +1 -1
- package/dist/arrow-geometry/binary-features.js +1 -1
- package/dist/arrow-geometry/binary-features.js.map +1 -1
- package/dist/arrow-geometry/binary-geometry-to-wkb.cjs +2 -2
- package/dist/arrow-geometry/binary-geometry-to-wkb.cjs.map +2 -2
- package/dist/arrow-geometry/binary-geometry-to-wkb.js +1 -1
- package/dist/arrow-geometry/binary-geometry-to-wkb.js.map +1 -1
- package/dist/arrow-geometry/feature-collection-to-arrow.cjs.map +2 -2
- package/dist/arrow-geometry/feature-collection-to-arrow.d.ts +4 -3
- package/dist/arrow-geometry/feature-collection-to-arrow.d.ts.map +1 -1
- package/dist/arrow-geometry/feature-collection-to-arrow.js +1 -1
- package/dist/arrow-geometry/feature-collection-to-arrow.js.map +1 -1
- package/dist/arrow-geometry/feature-table.cjs +2 -6
- package/dist/arrow-geometry/feature-table.cjs.map +2 -2
- package/dist/arrow-geometry/feature-table.d.ts +6 -5
- package/dist/arrow-geometry/feature-table.d.ts.map +1 -1
- package/dist/arrow-geometry/feature-table.js +5 -9
- package/dist/arrow-geometry/feature-table.js.map +1 -1
- package/dist/arrow-geometry/geojson-table.cjs +295 -18
- package/dist/arrow-geometry/geojson-table.cjs.map +4 -4
- package/dist/arrow-geometry/geojson-table.d.ts +10 -3
- package/dist/arrow-geometry/geojson-table.d.ts.map +1 -1
- package/dist/arrow-geometry/geojson-table.js +23 -13
- package/dist/arrow-geometry/geojson-table.js.map +1 -1
- package/dist/arrow-geometry/geometry-codecs.cjs +6 -6
- package/dist/arrow-geometry/geometry-codecs.cjs.map +2 -2
- package/dist/arrow-geometry/geometry-codecs.js +1 -1
- package/dist/arrow-geometry/geometry-codecs.js.map +1 -1
- package/dist/arrow-geometry/geometry-to-wkt.cjs +2 -2
- package/dist/arrow-geometry/geometry-to-wkt.cjs.map +2 -2
- package/dist/arrow-geometry/geometry-to-wkt.js +1 -1
- package/dist/arrow-geometry/geometry-to-wkt.js.map +1 -1
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.cjs +3 -1
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.cjs.map +2 -2
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.js +3 -1
- package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.js.map +1 -1
- package/dist/arrow-geometry/wkb-arrow-utils.cjs +1 -5
- package/dist/arrow-geometry/wkb-arrow-utils.cjs.map +2 -2
- package/dist/arrow-geometry/wkb-arrow-utils.d.ts +7 -7
- package/dist/arrow-geometry/wkb-arrow-utils.d.ts.map +1 -1
- package/dist/arrow-geometry/wkb-arrow-utils.js +4 -8
- package/dist/arrow-geometry/wkb-arrow-utils.js.map +1 -1
- package/dist/arrow-geometry/wkb-builder.cjs +3 -3
- package/dist/arrow-geometry/wkb-builder.cjs.map +2 -2
- package/dist/arrow-geometry/wkb-builder.d.ts +1 -1
- package/dist/arrow-geometry/wkb-builder.d.ts.map +1 -1
- package/dist/arrow-geometry/wkb-builder.js +1 -1
- package/dist/arrow-geometry/wkb-builder.js.map +1 -1
- package/dist/arrow-geometry/wkb-statistics.cjs +2 -2
- package/dist/arrow-geometry/wkb-statistics.cjs.map +2 -2
- package/dist/arrow-geometry/wkb-statistics.js +1 -1
- package/dist/arrow-geometry/wkb-statistics.js.map +1 -1
- package/dist/arrow-worker-transport.cjs +59 -35
- package/dist/arrow-worker-transport.cjs.map +1 -1
- package/dist/arrow-worker-transport.d.ts +9 -7
- package/dist/arrow-worker-transport.d.ts.map +1 -1
- package/dist/arrow-worker-transport.js +59 -42
- package/dist/arrow-worker-transport.js.map +1 -1
- package/dist/cluster-source.cjs +274 -509
- package/dist/cluster-source.cjs.map +3 -3
- package/dist/dist.dev.js +478 -450
- package/dist/dist.min.js +3 -3
- package/dist/federated-table-scan-source.cjs +121 -485
- package/dist/federated-table-scan-source.cjs.map +3 -3
- package/dist/geoarrow/binary-polygon-to-geoarrow.cjs +2 -2
- package/dist/geoarrow/binary-polygon-to-geoarrow.cjs.map +2 -2
- package/dist/geoarrow/binary-polygon-to-geoarrow.d.ts +1 -1
- package/dist/geoarrow/binary-polygon-to-geoarrow.d.ts.map +1 -1
- package/dist/geoarrow/binary-polygon-to-geoarrow.js +1 -1
- package/dist/geoarrow/binary-polygon-to-geoarrow.js.map +1 -1
- package/dist/geoarrow/clustering/cluster-source.cjs +16 -19
- package/dist/geoarrow/clustering/cluster-source.cjs.map +2 -2
- package/dist/geoarrow/clustering/cluster-source.d.ts +3 -2
- package/dist/geoarrow/clustering/cluster-source.d.ts.map +1 -1
- package/dist/geoarrow/clustering/cluster-source.js +13 -18
- package/dist/geoarrow/clustering/cluster-source.js.map +1 -1
- package/dist/geoarrow/convert-table-to-geoarrow.cjs +5 -12
- package/dist/geoarrow/convert-table-to-geoarrow.cjs.map +2 -2
- package/dist/geoarrow/convert-table-to-geoarrow.d.ts +6 -6
- package/dist/geoarrow/convert-table-to-geoarrow.d.ts.map +1 -1
- package/dist/geoarrow/convert-table-to-geoarrow.js +8 -14
- package/dist/geoarrow/convert-table-to-geoarrow.js.map +1 -1
- package/dist/geoarrow/geo-column/geo-column.cjs.map +1 -1
- package/dist/geoarrow/geo-column/geo-column.d.ts +1 -1
- package/dist/geoarrow/geo-column/geo-column.d.ts.map +1 -1
- package/dist/geoarrow/geoarrow-bounds.cjs +7 -7
- package/dist/geoarrow/geoarrow-bounds.cjs.map +3 -3
- package/dist/geoarrow/geoarrow-bounds.js +3 -3
- package/dist/geoarrow/geoarrow-bounds.js.map +1 -1
- package/dist/geoarrow/geoarrow-capabilities.cjs +2 -2
- package/dist/geoarrow/geoarrow-capabilities.cjs.map +2 -2
- package/dist/geoarrow/geoarrow-capabilities.js +1 -1
- package/dist/geoarrow/geoarrow-capabilities.js.map +1 -1
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.cjs +13 -15
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.cjs.map +3 -3
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.d.ts.map +1 -1
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.js +8 -11
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.js.map +1 -1
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.cjs +6 -4
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.cjs.map +2 -2
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.d.ts +3 -3
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.d.ts.map +1 -1
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.js +9 -4
- package/dist/geoarrow/geoarrow-converter/convert-geoarrow.js.map +1 -1
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.cjs +5 -4
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.cjs.map +2 -2
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.d.ts +3 -3
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.d.ts.map +1 -1
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.js +5 -4
- package/dist/geoarrow/geoarrow-converter/geoarrow-converter.js.map +1 -1
- package/dist/geoarrow/geoarrow-inspection.cjs +2 -2
- package/dist/geoarrow/geoarrow-inspection.cjs.map +2 -2
- package/dist/geoarrow/geoarrow-inspection.js +1 -1
- package/dist/geoarrow/geoarrow-inspection.js.map +1 -1
- package/dist/geoarrow/geoarrow-stream.cjs +10 -11
- package/dist/geoarrow/geoarrow-stream.cjs.map +2 -2
- package/dist/geoarrow/geoarrow-stream.d.ts +2 -2
- package/dist/geoarrow/geoarrow-stream.d.ts.map +1 -1
- package/dist/geoarrow/geoarrow-stream.js +9 -12
- package/dist/geoarrow/geoarrow-stream.js.map +1 -1
- package/dist/geoarrow/get-geoarrow-vertex-count.cjs +2 -2
- package/dist/geoarrow/get-geoarrow-vertex-count.cjs.map +2 -2
- package/dist/geoarrow/get-geoarrow-vertex-count.js +1 -1
- package/dist/geoarrow/get-geoarrow-vertex-count.js.map +1 -1
- package/dist/geoarrow/index.cjs +0 -3
- package/dist/geoarrow/index.cjs.map +2 -2
- package/dist/geoarrow/index.d.ts +0 -2
- package/dist/geoarrow/index.d.ts.map +1 -1
- package/dist/geoarrow/index.js +0 -1
- package/dist/geoarrow/index.js.map +1 -1
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.cjs.map +1 -1
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.js +3 -3
- package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.js.map +1 -1
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.cjs +8 -9
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.cjs.map +2 -2
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.d.ts.map +1 -1
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.js +5 -9
- package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.js.map +1 -1
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.cjs +2 -2
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.cjs.map +2 -2
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.d.ts +1 -1
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.d.ts.map +1 -1
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.js +1 -1
- package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.js.map +1 -1
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.cjs +4 -4
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.cjs.map +2 -2
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.js +1 -1
- package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.js.map +1 -1
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.cjs +3 -3
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.cjs.map +2 -2
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.js +1 -1
- package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.js.map +1 -1
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.cjs +3 -3
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.cjs.map +2 -2
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.js +1 -1
- package/dist/geoarrow/lib/kernels/encode-geoarrow-box.js.map +1 -1
- package/dist/geoarrow/lib/kernels/geoarrow-union.cjs +2 -2
- package/dist/geoarrow/lib/kernels/geoarrow-union.cjs.map +2 -2
- package/dist/geoarrow/lib/kernels/geoarrow-union.d.ts +1 -1
- package/dist/geoarrow/lib/kernels/geoarrow-union.d.ts.map +1 -1
- package/dist/geoarrow/lib/kernels/geoarrow-union.js +1 -1
- package/dist/geoarrow/lib/kernels/geoarrow-union.js.map +1 -1
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.cjs +0 -6
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.cjs.map +2 -2
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.d.ts +5 -3
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.d.ts.map +1 -1
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.js +0 -6
- package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.js.map +1 -1
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.cjs +3 -2
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.cjs.map +2 -2
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.d.ts +1 -1
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.d.ts.map +1 -1
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.js +3 -2
- package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.js.map +1 -1
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.cjs.map +1 -1
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.d.ts +1 -1
- package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -1
- package/dist/geoarrow/mesharrow/get-deck-binary-data.cjs.map +1 -1
- package/dist/geoarrow/mesharrow/get-deck-binary-data.d.ts +1 -1
- package/dist/geoarrow/mesharrow/get-deck-binary-data.d.ts.map +1 -1
- package/dist/geoarrow/mesharrow/mesh-accessors.cjs.map +1 -1
- package/dist/geoarrow/mesharrow/mesh-accessors.d.ts +1 -1
- package/dist/geoarrow/mesharrow/mesh-accessors.d.ts.map +1 -1
- package/dist/geoarrow/metadata/geoarrow-metadata.cjs +44 -2
- package/dist/geoarrow/metadata/geoarrow-metadata.cjs.map +4 -4
- package/dist/geoarrow/metadata/geoarrow-metadata.d.ts.map +1 -1
- package/dist/geoarrow/metadata/geoarrow-metadata.js +3 -4
- package/dist/geoarrow/metadata/geoarrow-metadata.js.map +1 -1
- package/dist/index.cjs +486 -410
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/api/create-data-source.d.ts +20 -9
- package/dist/lib/api/create-data-source.d.ts.map +1 -1
- package/dist/lib/api/create-data-source.js +55 -45
- package/dist/lib/api/create-data-source.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 +11 -2
- package/dist/lib/api/encode.js.map +1 -1
- package/dist/lib/api/load-in-batches.d.ts +3 -2
- package/dist/lib/api/load-in-batches.d.ts.map +1 -1
- package/dist/lib/api/load-in-batches.js.map +1 -1
- package/dist/lib/api/load-loader.d.ts +3 -3
- package/dist/lib/api/load-loader.d.ts.map +1 -1
- package/dist/lib/api/load-loader.js +15 -19
- package/dist/lib/api/load-loader.js.map +1 -1
- package/dist/lib/api/load.d.ts +7 -3
- package/dist/lib/api/load.d.ts.map +1 -1
- package/dist/lib/api/load.js +15 -67
- package/dist/lib/api/load.js.map +1 -1
- package/dist/lib/api/loader-options.d.ts +6 -0
- package/dist/lib/api/loader-options.d.ts.map +1 -1
- package/dist/lib/api/loader-options.js +48 -0
- package/dist/lib/api/loader-options.js.map +1 -1
- package/dist/lib/api/parse-file.d.ts +5 -3
- package/dist/lib/api/parse-file.d.ts.map +1 -1
- package/dist/lib/api/parse-file.js +8 -6
- package/dist/lib/api/parse-file.js.map +1 -1
- package/dist/lib/api/parse-in-batches.d.ts +5 -3
- package/dist/lib/api/parse-in-batches.d.ts.map +1 -1
- package/dist/lib/api/parse-in-batches.js +60 -9
- package/dist/lib/api/parse-in-batches.js.map +1 -1
- package/dist/lib/api/parse-sync.d.ts +5 -3
- package/dist/lib/api/parse-sync.d.ts.map +1 -1
- package/dist/lib/api/parse-sync.js +3 -4
- package/dist/lib/api/parse-sync.js.map +1 -1
- package/dist/lib/api/parse.d.ts +5 -3
- package/dist/lib/api/parse.d.ts.map +1 -1
- package/dist/lib/api/parse.js +22 -14
- package/dist/lib/api/parse.js.map +1 -1
- package/dist/lib/api/select-loader.d.ts +4 -2
- package/dist/lib/api/select-loader.d.ts.map +1 -1
- package/dist/lib/api/select-loader.js +47 -53
- package/dist/lib/api/select-loader.js.map +1 -1
- package/dist/lib/api/select-source.d.ts.map +1 -1
- package/dist/lib/api/select-source.js +1 -1
- package/dist/lib/api/select-source.js.map +1 -1
- package/dist/lib/init.js +1 -1
- package/dist/lib/init.js.map +1 -1
- package/dist/lib/loader-utils/get-fetch-function.js +2 -2
- package/dist/lib/loader-utils/get-fetch-function.js.map +1 -1
- package/dist/lib/loader-utils/loggers.d.ts +2 -37
- package/dist/lib/loader-utils/loggers.d.ts.map +1 -1
- package/dist/lib/loader-utils/loggers.js +2 -63
- package/dist/lib/loader-utils/loggers.js.map +1 -1
- package/dist/lib/loader-utils/native-arrow.d.ts +13 -0
- package/dist/lib/loader-utils/native-arrow.d.ts.map +1 -0
- package/dist/lib/loader-utils/native-arrow.js +66 -0
- package/dist/lib/loader-utils/native-arrow.js.map +1 -0
- package/dist/lib/loader-utils/option-defaults.d.ts +3 -2
- package/dist/lib/loader-utils/option-defaults.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-defaults.js +9 -10
- package/dist/lib/loader-utils/option-defaults.js.map +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts +0 -6
- package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-utils.js +31 -114
- package/dist/lib/loader-utils/option-utils.js.map +1 -1
- package/dist/loader-utils/format-types.d.ts +3 -0
- package/dist/loader-utils/format-types.d.ts.map +1 -1
- package/dist/loader-utils/index.cjs +257 -88
- package/dist/loader-utils/index.cjs.map +3 -3
- package/dist/loader-utils/index.d.ts +9 -4
- package/dist/loader-utils/index.d.ts.map +1 -1
- package/dist/loader-utils/index.js +5 -3
- package/dist/loader-utils/index.js.map +1 -1
- package/dist/loader-utils/json-loader.js +1 -1
- package/dist/loader-utils/json-loader.js.map +1 -1
- package/dist/loader-utils/lib/log-utils/log.d.ts +23 -1
- package/dist/loader-utils/lib/log-utils/log.d.ts.map +1 -1
- package/dist/loader-utils/lib/log-utils/log.js +32 -1
- package/dist/loader-utils/lib/log-utils/log.js.map +1 -1
- package/dist/loader-utils/lib/pace-batch-iterator.d.ts +14 -0
- package/dist/loader-utils/lib/pace-batch-iterator.d.ts.map +1 -0
- package/dist/loader-utils/lib/pace-batch-iterator.js +51 -0
- package/dist/loader-utils/lib/pace-batch-iterator.js.map +1 -0
- package/dist/loader-utils/lib/request-utils/request-credentials.js +1 -1
- package/dist/loader-utils/lib/request-utils/request-credentials.js.map +1 -1
- package/dist/loader-utils/lib/scan-utils/logical-table-query.d.ts +5 -0
- package/dist/loader-utils/lib/scan-utils/logical-table-query.d.ts.map +1 -1
- package/dist/loader-utils/lib/scan-utils/logical-table-query.js +13 -5
- package/dist/loader-utils/lib/scan-utils/logical-table-query.js.map +1 -1
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts +48 -3
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts.map +1 -1
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js +12 -1
- package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js.map +1 -1
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts +22 -1
- package/dist/loader-utils/lib/scan-utils/table-query.d.ts.map +1 -1
- package/dist/loader-utils/lib/scan-utils/table-query.js +6 -0
- package/dist/loader-utils/lib/scan-utils/table-query.js.map +1 -1
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts +17 -11
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts.map +1 -1
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js +53 -32
- package/dist/loader-utils/lib/scan-utils/table-scan-batch.js.map +1 -1
- package/dist/loader-utils/lib/sources/data-source.d.ts.map +1 -1
- package/dist/loader-utils/lib/sources/data-source.js +3 -13
- package/dist/loader-utils/lib/sources/data-source.js.map +1 -1
- package/dist/loader-utils/lib/sources/image-source.d.ts +1 -1
- package/dist/loader-utils/lib/sources/table-source-collection.d.ts +2 -1
- package/dist/loader-utils/lib/sources/table-source-collection.d.ts.map +1 -1
- package/dist/loader-utils/lib/sources/tile-grid.d.ts +6 -1
- package/dist/loader-utils/lib/sources/tile-grid.d.ts.map +1 -1
- package/dist/loader-utils/lib/sources/tile-grid.js +32 -14
- package/dist/loader-utils/lib/sources/tile-grid.js.map +1 -1
- package/dist/loader-utils/lib/sources/utils/utils.js +1 -1
- package/dist/loader-utils/lib/sources/utils/utils.js.map +1 -1
- package/dist/loader-utils/lib/sources/vector-source.d.ts +4 -3
- package/dist/loader-utils/lib/sources/vector-source.d.ts.map +1 -1
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts +4 -3
- package/dist/loader-utils/lib/sources/vector-tile-source.d.ts.map +1 -1
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts.map +1 -1
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js +26 -15
- package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js.map +1 -1
- package/dist/loader-utils/loader-types.d.ts +114 -87
- package/dist/loader-utils/loader-types.d.ts.map +1 -1
- package/dist/loader-utils/loader-types.js.map +1 -1
- package/dist/loader-utils/source-types.d.ts +7 -5
- package/dist/loader-utils/source-types.d.ts.map +1 -1
- package/dist/loader-utils/source-types.js +9 -1
- package/dist/loader-utils/source-types.js.map +1 -1
- package/dist/loader-utils/tile-grid.cjs +21 -9
- package/dist/loader-utils/tile-grid.cjs.map +1 -1
- package/dist/null-loader.d.ts +0 -18
- package/dist/null-loader.d.ts.map +1 -1
- package/dist/null-loader.js +1 -19
- package/dist/null-loader.js.map +1 -1
- package/dist/null-worker-node.js +1 -1
- package/dist/null-worker.js +1 -1
- package/dist/polyfills/index.cjs +3 -2
- package/dist/polyfills/index.d.ts.map +1 -1
- package/dist/polyfills/index.js +2 -2
- package/dist/polyfills/index.js.map +1 -1
- package/dist/scan/arrow-execution/expressions.cjs +36 -12
- package/dist/scan/arrow-execution/expressions.cjs.map +3 -3
- package/dist/scan/arrow-execution/expressions.d.ts +7 -4
- package/dist/scan/arrow-execution/expressions.d.ts.map +1 -1
- package/dist/scan/arrow-execution/expressions.js +32 -6
- package/dist/scan/arrow-execution/expressions.js.map +1 -1
- package/dist/scan/arrow-execution/filter-arrow-table.cjs +3 -18
- package/dist/scan/arrow-execution/filter-arrow-table.cjs.map +2 -2
- package/dist/scan/arrow-execution/filter-arrow-table.d.ts.map +1 -1
- package/dist/scan/arrow-execution/filter-arrow-table.js +3 -9
- package/dist/scan/arrow-execution/filter-arrow-table.js.map +1 -1
- package/dist/scan/arrow-execution/portable-predicate-compatibility.cjs +41 -0
- package/dist/scan/arrow-execution/portable-predicate-compatibility.cjs.map +7 -0
- package/dist/scan/arrow-execution/portable-predicate-compatibility.d.ts +5 -0
- package/dist/scan/arrow-execution/portable-predicate-compatibility.d.ts.map +1 -0
- package/dist/scan/arrow-execution/portable-predicate-compatibility.js +23 -0
- package/dist/scan/arrow-execution/portable-predicate-compatibility.js.map +1 -0
- package/dist/scan/arrow-query-worker-entry.cjs +121 -0
- package/dist/scan/arrow-query-worker-entry.cjs.map +7 -0
- package/dist/scan/arrow-query-worker-entry.d.ts +2 -0
- package/dist/scan/arrow-query-worker-entry.d.ts.map +1 -0
- package/dist/scan/arrow-query-worker-entry.js +7 -0
- package/dist/scan/arrow-query-worker-entry.js.map +1 -0
- package/dist/scan/arrow-query-worker.cjs +197 -0
- package/dist/scan/arrow-query-worker.cjs.map +7 -0
- package/dist/scan/arrow-query-worker.d.ts +47 -0
- package/dist/scan/arrow-query-worker.d.ts.map +1 -0
- package/dist/scan/arrow-query-worker.js +101 -0
- package/dist/scan/arrow-query-worker.js.map +1 -0
- package/dist/scan/arrow-query.cjs +6 -2
- package/dist/scan/arrow-query.cjs.map +2 -2
- package/dist/scan/arrow-query.d.ts +3 -1
- package/dist/scan/arrow-query.d.ts.map +1 -1
- package/dist/scan/arrow-query.js +3 -1
- package/dist/scan/arrow-query.js.map +1 -1
- package/dist/scan/federated-table-scan-source.cjs +38 -39
- package/dist/scan/federated-table-scan-source.cjs.map +2 -2
- package/dist/scan/federated-table-scan-source.d.ts +5 -9
- package/dist/scan/federated-table-scan-source.d.ts.map +1 -1
- package/dist/scan/federated-table-scan-source.js +35 -36
- package/dist/scan/federated-table-scan-source.js.map +1 -1
- package/dist/scan/index.cjs +36 -12
- package/dist/scan/index.cjs.map +3 -3
- package/dist/scan/index.d.ts +11 -6
- package/dist/scan/index.d.ts.map +1 -1
- package/dist/scan/index.js +8 -5
- package/dist/scan/index.js.map +1 -1
- package/dist/scan/parse-sql-predicate.cjs +2 -2
- package/dist/scan/parse-sql-predicate.cjs.map +2 -2
- package/dist/scan/parse-sql-predicate.js +1 -1
- package/dist/scan/parse-sql-predicate.js.map +1 -1
- package/dist/scan/query-arrow-table-in-batches.cjs +60 -26
- package/dist/scan/query-arrow-table-in-batches.cjs.map +3 -3
- package/dist/scan/query-arrow-table-in-batches.d.ts +3 -3
- package/dist/scan/query-arrow-table-in-batches.d.ts.map +1 -1
- package/dist/scan/query-arrow-table-in-batches.js +52 -24
- package/dist/scan/query-arrow-table-in-batches.js.map +1 -1
- package/dist/{geoarrow/get-geoarrow-native-geometry.cjs → scan/query-arrow-table-math.cjs} +18 -8
- package/dist/scan/query-arrow-table-math.cjs.map +7 -0
- package/dist/scan/query-arrow-table-math.d.ts +5 -0
- package/dist/scan/query-arrow-table-math.d.ts.map +1 -0
- package/dist/scan/query-arrow-table-math.js +14 -0
- package/dist/scan/query-arrow-table-math.js.map +1 -0
- package/dist/scan/query-arrow-table.cjs +32 -62
- package/dist/scan/query-arrow-table.cjs.map +2 -2
- package/dist/scan/query-arrow-table.d.ts +13 -8
- package/dist/scan/query-arrow-table.d.ts.map +1 -1
- package/dist/scan/query-arrow-table.js +35 -67
- package/dist/scan/query-arrow-table.js.map +1 -1
- package/dist/scan/query-grouped-sql.cjs +66 -0
- package/dist/scan/query-grouped-sql.cjs.map +7 -0
- package/dist/scan/query-grouped-sql.d.ts +5 -0
- package/dist/scan/query-grouped-sql.d.ts.map +1 -0
- package/dist/scan/query-grouped-sql.js +58 -0
- package/dist/scan/query-grouped-sql.js.map +1 -0
- package/dist/scan/query-open-source.cjs +52 -0
- package/dist/scan/query-open-source.cjs.map +7 -0
- package/dist/scan/query-open-source.d.ts +4 -0
- package/dist/scan/query-open-source.d.ts.map +1 -0
- package/dist/scan/query-open-source.js +26 -0
- package/dist/scan/query-open-source.js.map +1 -0
- package/dist/scan/query-progressive.cjs +190 -0
- package/dist/scan/query-progressive.cjs.map +7 -0
- package/dist/scan/query-progressive.d.ts +41 -0
- package/dist/scan/query-progressive.d.ts.map +1 -0
- package/dist/scan/query-progressive.js +173 -0
- package/dist/scan/query-progressive.js.map +1 -0
- package/dist/scan/query-pushdown.cjs +140 -0
- package/dist/scan/query-pushdown.cjs.map +7 -0
- package/dist/scan/query-pushdown.d.ts +14 -0
- package/dist/scan/query-pushdown.d.ts.map +1 -0
- package/dist/scan/query-pushdown.js +133 -0
- package/dist/scan/query-pushdown.js.map +1 -0
- package/dist/scan/query-scales.cjs +195 -0
- package/dist/scan/query-scales.cjs.map +7 -0
- package/dist/scan/query-scales.d.ts +47 -0
- package/dist/scan/query-scales.d.ts.map +1 -0
- package/dist/scan/query-scales.js +201 -0
- package/dist/scan/query-scales.js.map +1 -0
- package/dist/scan/query.cjs +141 -92
- package/dist/scan/query.cjs.map +3 -3
- package/dist/scan/query.d.ts +37 -10
- package/dist/scan/query.d.ts.map +1 -1
- package/dist/scan/query.js +137 -96
- package/dist/scan/query.js.map +1 -1
- package/dist/scan/rows-to-arrow.cjs +1 -28
- package/dist/scan/rows-to-arrow.cjs.map +2 -2
- package/dist/scan/rows-to-arrow.d.ts +3 -3
- package/dist/scan/rows-to-arrow.d.ts.map +1 -1
- package/dist/scan/rows-to-arrow.js +2 -32
- package/dist/scan/rows-to-arrow.js.map +1 -1
- package/dist/scan/scan-engine.cjs +1 -1
- package/dist/scan/scan-engine.cjs.map +2 -2
- package/dist/scan/scan-engine.d.ts +5 -5
- package/dist/scan/scan-engine.d.ts.map +1 -1
- package/dist/scan/scan-engine.js +1 -1
- package/dist/scan/scan-engine.js.map +1 -1
- package/dist/scan/vector-table-scan-source.cjs +24 -17
- package/dist/scan/vector-table-scan-source.cjs.map +4 -4
- package/dist/scan/vector-table-scan-source.d.ts +8 -8
- package/dist/scan/vector-table-scan-source.d.ts.map +1 -1
- package/dist/scan/vector-table-scan-source.js +19 -17
- package/dist/scan/vector-table-scan-source.js.map +1 -1
- package/dist/schema/categories/category-mesh.d.ts +3 -10
- package/dist/schema/categories/category-mesh.d.ts.map +1 -1
- package/dist/schema/categories/category-mesh.js.map +1 -1
- package/dist/schema/categories/category-table.d.ts +2 -19
- package/dist/schema/categories/category-table.d.ts.map +1 -1
- package/dist/schema/float16.js +1 -1
- package/dist/schema/float16.js.map +1 -1
- package/dist/schema/geometry/arrow-binary-features.d.ts +1 -1
- package/dist/schema/geometry/arrow-binary-features.d.ts.map +1 -1
- package/dist/schema/geometry/geoarrow.d.ts +2 -2
- package/dist/schema/geometry/geoarrow.d.ts.map +1 -1
- package/dist/schema/index.cjs +14 -10
- package/dist/schema/index.cjs.map +2 -2
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +2 -2
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/types/batch.d.ts +0 -4
- package/dist/schema/types/batch.d.ts.map +1 -1
- package/dist/schema-utils/index.cjs +410 -626
- package/dist/schema-utils/index.cjs.map +3 -3
- package/dist/schema-utils/index.d.ts +6 -6
- package/dist/schema-utils/index.d.ts.map +1 -1
- package/dist/schema-utils/index.js +6 -5
- package/dist/schema-utils/index.js.map +1 -1
- package/dist/schema-utils/lib/arrow/arrow-metadata.d.ts +16 -0
- package/dist/schema-utils/lib/arrow/arrow-metadata.d.ts.map +1 -0
- package/dist/schema-utils/lib/arrow/arrow-metadata.js +109 -0
- package/dist/schema-utils/lib/arrow/arrow-metadata.js.map +1 -0
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts +1 -1
- package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -1
- package/dist/schema-utils/lib/converters/convert.js +9 -2
- package/dist/schema-utils/lib/converters/convert.js.map +1 -1
- package/dist/schema-utils/lib/converters/types.d.ts +2 -0
- package/dist/schema-utils/lib/converters/types.d.ts.map +1 -1
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts +8 -12
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts.map +1 -1
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js +8 -21
- package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js.map +1 -1
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts +5 -4
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts.map +1 -1
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js +18 -13
- package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js.map +1 -1
- package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.d.ts +14 -0
- package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.d.ts.map +1 -0
- package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.js +39 -0
- package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.js.map +1 -0
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts +2 -14
- package/dist/schema-utils/lib/mesh/mesh-utils.d.ts.map +1 -1
- package/dist/schema-utils/lib/mesh/mesh-utils.js +1 -35
- package/dist/schema-utils/lib/mesh/mesh-utils.js.map +1 -1
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts.map +1 -1
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js +6 -5
- package/dist/schema-utils/lib/mesh/point-cloud-tiler.js.map +1 -1
- package/dist/schema-utils/lib/schema/data-type.js +1 -1
- package/dist/schema-utils/lib/schema/data-type.js.map +1 -1
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts +2 -1
- package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts.map +1 -1
- package/dist/schema-utils/lib/schema/deduce-table-schema.js +7 -3
- package/dist/schema-utils/lib/schema/deduce-table-schema.js.map +1 -1
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts +6 -5
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js +6 -5
- package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js.map +1 -1
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts +9 -9
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js +13 -46
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js.map +1 -1
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts +9 -20
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js +61 -73
- package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js.map +1 -1
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts +4 -3
- package/dist/schema-utils/lib/table/batches/convert-batches.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/batches/convert-batches.js +27 -9
- package/dist/schema-utils/lib/table/batches/convert-batches.js.map +1 -1
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts +6 -9
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js +22 -15
- package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js.map +1 -1
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts +4 -1
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js +13 -9
- package/dist/schema-utils/lib/table/batches/make-table-from-batches.js.map +1 -1
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts +3 -3
- package/dist/schema-utils/lib/table/query-arrow-table.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/query-arrow-table.js +9 -23
- package/dist/schema-utils/lib/table/query-arrow-table.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts +9 -10
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js +15 -76
- package/dist/schema-utils/lib/table/tables/convert-arrow-table.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts +6 -36
- package/dist/schema-utils/lib/table/tables/convert-table.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/convert-table.js +5 -42
- package/dist/schema-utils/lib/table/tables/convert-table.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/make-table.d.ts +3 -55
- package/dist/schema-utils/lib/table/tables/make-table.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/make-table.js +3 -59
- package/dist/schema-utils/lib/table/tables/make-table.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/row-utils.js +2 -2
- package/dist/schema-utils/lib/table/tables/row-utils.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts +18 -16
- package/dist/schema-utils/lib/table/tables/table-accessors.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-accessors.js +36 -39
- package/dist/schema-utils/lib/table/tables/table-accessors.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts +6 -5
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js +2 -2
- package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts +1 -1
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js +8 -5
- package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-types.d.ts +1 -3
- package/dist/schema-utils/lib/table/tables/table-types.d.ts.map +1 -1
- package/dist/schema-utils/lib/table/tables/table-types.js +0 -4
- package/dist/schema-utils/lib/table/tables/table-types.js.map +1 -1
- package/dist/vector-table-scan-source.cjs +241 -291
- package/dist/vector-table-scan-source.cjs.map +2 -2
- package/dist/wkt/index.cjs.map +1 -1
- package/dist/wkt/index.d.ts.map +1 -1
- package/dist/wkt/index.js.map +1 -1
- package/dist/worker-utils/index.cjs +51 -11
- package/dist/worker-utils/index.cjs.map +3 -3
- package/dist/worker-utils/lib/env-utils/version.js +1 -1
- package/dist/worker-utils/lib/env-utils/version.js.map +1 -1
- package/dist/worker-utils/lib/library-utils/library-utils.d.ts.map +1 -1
- package/dist/worker-utils/lib/library-utils/library-utils.js +2 -1
- package/dist/worker-utils/lib/library-utils/library-utils.js.map +1 -1
- package/dist/worker-utils/lib/npm-tag.d.ts.map +1 -1
- package/dist/worker-utils/lib/npm-tag.js.map +1 -1
- package/dist/worker-utils/lib/process-utils/child-process-proxy.d.ts.map +1 -1
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js +8 -7
- package/dist/worker-utils/lib/process-utils/child-process-proxy.js.map +1 -1
- package/dist/worker-utils/lib/worker-api/get-worker-url.d.ts.map +1 -1
- package/dist/worker-utils/lib/worker-api/get-worker-url.js +5 -2
- package/dist/worker-utils/lib/worker-api/get-worker-url.js.map +1 -1
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts +4 -1
- package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts.map +1 -1
- package/dist/worker-utils/lib/worker-api/process-on-worker.js +2 -2
- package/dist/worker-utils/lib/worker-api/process-on-worker.js.map +1 -1
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js +1 -6
- package/dist/worker-utils/lib/worker-utils/get-loadable-worker-url.js.map +1 -1
- package/dist/worker-utils/null-worker-node.js.map +1 -1
- package/dist/worker-utils/null-worker.js.map +1 -1
- package/package.json +102 -12
- package/src/arrow-geometry/binary-features.ts +4 -1
- package/src/arrow-geometry/binary-geometry-to-wkb.ts +1 -1
- package/src/arrow-geometry/feature-collection-to-arrow.ts +4 -3
- package/src/arrow-geometry/feature-table.ts +8 -17
- package/src/arrow-geometry/geojson-table.ts +32 -21
- package/src/arrow-geometry/geometry-codecs.ts +2 -2
- package/src/arrow-geometry/geometry-to-wkt.ts +2 -2
- package/src/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.ts +3 -1
- package/src/arrow-geometry/wkb-arrow-utils.ts +8 -12
- package/src/arrow-geometry/wkb-builder.ts +2 -2
- package/src/arrow-geometry/wkb-statistics.ts +2 -2
- package/src/arrow-worker-transport.ts +89 -50
- package/src/geoarrow/binary-polygon-to-geoarrow.ts +2 -2
- package/src/geoarrow/clustering/cluster-source.ts +20 -30
- package/src/geoarrow/convert-table-to-geoarrow.ts +14 -24
- package/src/geoarrow/geo-column/geo-column.ts +1 -1
- package/src/geoarrow/geoarrow-bounds.ts +3 -3
- package/src/geoarrow/geoarrow-capabilities.ts +1 -1
- package/src/geoarrow/geoarrow-converter/convert-geoarrow-geometry.ts +12 -15
- package/src/geoarrow/geoarrow-converter/convert-geoarrow.ts +14 -9
- package/src/geoarrow/geoarrow-converter/geoarrow-converter.ts +7 -6
- package/src/geoarrow/geoarrow-inspection.ts +2 -2
- package/src/geoarrow/geoarrow-stream.ts +15 -15
- package/src/geoarrow/get-geoarrow-vertex-count.ts +1 -1
- package/src/geoarrow/index.ts +0 -2
- package/src/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.ts +3 -3
- package/src/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.ts +8 -12
- package/src/geoarrow/lib/geoarrow/geoarrow-union-kind.ts +1 -1
- package/src/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.ts +1 -1
- package/src/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.ts +2 -2
- package/src/geoarrow/lib/kernels/encode-geoarrow-box.ts +1 -1
- package/src/geoarrow/lib/kernels/geoarrow-union.ts +1 -1
- package/src/geoarrow/lib/table-converters/convert-geoarrow-table.ts +11 -11
- package/src/geoarrow/mesharrow/arrow-fixed-size-list-utils.ts +4 -3
- package/src/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.ts +1 -1
- package/src/geoarrow/mesharrow/get-deck-binary-data.ts +1 -1
- package/src/geoarrow/mesharrow/mesh-accessors.ts +1 -1
- package/src/geoarrow/metadata/geoarrow-metadata.ts +3 -4
- package/src/index.ts +2 -6
- package/src/lib/api/create-data-source.ts +148 -58
- package/src/lib/api/encode.ts +14 -3
- package/src/lib/api/load-in-batches.ts +15 -7
- package/src/lib/api/load-loader.ts +22 -21
- package/src/lib/api/load.ts +51 -127
- package/src/lib/api/loader-options.ts +69 -0
- package/src/lib/api/parse-file.ts +32 -22
- package/src/lib/api/parse-in-batches.ts +121 -20
- package/src/lib/api/parse-sync.ts +30 -16
- package/src/lib/api/parse.ts +46 -29
- package/src/lib/api/select-loader.ts +54 -69
- package/src/lib/api/select-source.ts +7 -1
- package/src/lib/loader-utils/get-fetch-function.ts +2 -2
- package/src/lib/loader-utils/loggers.ts +2 -70
- package/src/lib/loader-utils/native-arrow.ts +83 -0
- package/src/lib/loader-utils/option-defaults.ts +9 -10
- package/src/lib/loader-utils/option-utils.ts +33 -122
- package/src/loader-utils/format-types.ts +4 -0
- package/src/loader-utils/index.ts +19 -3
- package/src/loader-utils/lib/log-utils/log.ts +36 -1
- package/src/loader-utils/lib/pace-batch-iterator.ts +66 -0
- package/src/loader-utils/lib/request-utils/request-credentials.ts +1 -1
- package/src/loader-utils/lib/scan-utils/logical-table-query.ts +18 -8
- package/src/loader-utils/lib/scan-utils/scan-query-metadata.ts +68 -6
- package/src/loader-utils/lib/scan-utils/table-query.ts +28 -1
- package/src/loader-utils/lib/scan-utils/table-scan-batch.ts +88 -56
- package/src/loader-utils/lib/sources/data-source.ts +3 -15
- package/src/loader-utils/lib/sources/image-source.ts +1 -1
- package/src/loader-utils/lib/sources/table-source-collection.ts +2 -1
- package/src/loader-utils/lib/sources/tile-grid.ts +34 -18
- package/src/loader-utils/lib/sources/utils/utils.ts +1 -1
- package/src/loader-utils/lib/sources/vector-source.ts +3 -3
- package/src/loader-utils/lib/sources/vector-tile-source.ts +4 -9
- package/src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts +27 -18
- package/src/loader-utils/loader-types.ts +186 -107
- package/src/loader-utils/source-types.ts +17 -6
- package/src/null-loader.ts +1 -20
- package/src/polyfills/index.ts +3 -3
- package/src/scan/arrow-execution/expressions.ts +42 -7
- package/src/scan/arrow-execution/filter-arrow-table.ts +3 -18
- package/src/scan/arrow-execution/portable-predicate-compatibility.ts +27 -0
- package/src/scan/arrow-query-worker-entry.ts +8 -0
- package/src/scan/arrow-query-worker.ts +158 -0
- package/src/scan/arrow-query.ts +3 -1
- package/src/scan/federated-table-scan-source.ts +48 -59
- package/src/scan/index.ts +41 -11
- package/src/scan/parse-sql-predicate.ts +1 -1
- package/src/scan/query-arrow-table-in-batches.ts +62 -33
- package/src/scan/query-arrow-table-math.ts +23 -0
- package/src/scan/query-arrow-table.ts +62 -97
- package/src/scan/query-grouped-sql.ts +69 -0
- package/src/scan/query-open-source.ts +39 -0
- package/src/scan/query-progressive.ts +230 -0
- package/src/scan/query-pushdown.ts +184 -0
- package/src/scan/query-scales.ts +299 -0
- package/src/scan/query.ts +254 -127
- package/src/scan/rows-to-arrow.ts +3 -39
- package/src/scan/scan-engine.ts +7 -7
- package/src/scan/vector-table-scan-source.ts +25 -26
- package/src/schema/categories/category-mesh.ts +3 -11
- package/src/schema/categories/category-table.ts +2 -28
- package/src/schema/float16.ts +1 -1
- package/src/schema/geometry/arrow-binary-features.ts +1 -1
- package/src/schema/geometry/geoarrow.ts +2 -2
- package/src/schema/index.ts +4 -5
- package/src/schema/types/batch.ts +0 -5
- package/src/schema-utils/index.ts +20 -11
- package/src/schema-utils/lib/arrow/arrow-metadata.ts +139 -0
- package/src/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.ts +1 -1
- package/src/schema-utils/lib/converters/convert.ts +7 -2
- package/src/schema-utils/lib/converters/types.ts +2 -0
- package/src/schema-utils/lib/mesh/convert-mesh-to-table.ts +15 -43
- package/src/schema-utils/lib/mesh/convert-table-to-mesh.ts +19 -16
- package/src/schema-utils/lib/mesh/get-mesh-bounding-box.ts +52 -0
- package/src/schema-utils/lib/mesh/mesh-utils.ts +3 -49
- package/src/schema-utils/lib/mesh/point-cloud-tiler.ts +6 -5
- package/src/schema-utils/lib/schema/data-type.ts +1 -1
- package/src/schema-utils/lib/schema/deduce-table-schema.ts +8 -4
- package/src/schema-utils/lib/table/arrow-api/arrow-like-table.ts +10 -9
- package/src/schema-utils/lib/table/batch-builder/arrow-table-builder.ts +21 -51
- package/src/schema-utils/lib/table/batch-builder/table-batch-builder.ts +68 -83
- package/src/schema-utils/lib/table/batches/convert-batches.ts +38 -21
- package/src/schema-utils/lib/table/batches/make-arrow-batch-iterator.ts +29 -19
- package/src/schema-utils/lib/table/batches/make-table-from-batches.ts +26 -7
- package/src/schema-utils/lib/table/query-arrow-table.ts +14 -32
- package/src/schema-utils/lib/table/tables/convert-arrow-table.ts +29 -96
- package/src/schema-utils/lib/table/tables/convert-table.ts +11 -57
- package/src/schema-utils/lib/table/tables/make-table.ts +6 -70
- package/src/schema-utils/lib/table/tables/row-utils.ts +2 -2
- package/src/schema-utils/lib/table/tables/table-accessors.ts +60 -63
- package/src/schema-utils/lib/table/tables/table-converter/convert-tables.ts +12 -14
- package/src/schema-utils/lib/table/tables/table-converter/table-converter.ts +12 -9
- package/src/schema-utils/lib/table/tables/table-types.ts +1 -7
- package/src/wkt/index.ts +1 -1
- package/src/worker-utils/lib/library-utils/library-utils.ts +2 -1
- package/src/worker-utils/lib/npm-tag.ts +1 -1
- package/src/worker-utils/lib/process-utils/child-process-proxy.ts +8 -7
- package/src/worker-utils/lib/worker-api/get-worker-url.ts +4 -3
- package/src/worker-utils/lib/worker-api/process-on-worker.ts +7 -4
- package/src/worker-utils/lib/worker-utils/get-loadable-worker-url.ts +1 -6
- package/dist/arrow-geometry/native-geometry.cjs +0 -215
- package/dist/arrow-geometry/native-geometry.cjs.map +0 -7
- package/dist/arrow-geometry/native-geometry.d.ts +0 -41
- package/dist/arrow-geometry/native-geometry.d.ts.map +0 -1
- package/dist/arrow-geometry/native-geometry.js +0 -224
- package/dist/arrow-geometry/native-geometry.js.map +0 -1
- package/dist/geoarrow/get-geoarrow-native-geometry.cjs.map +0 -7
- package/dist/geoarrow/get-geoarrow-native-geometry.d.ts +0 -2
- package/dist/geoarrow/get-geoarrow-native-geometry.d.ts.map +0 -1
- package/dist/geoarrow/get-geoarrow-native-geometry.js +0 -5
- package/dist/geoarrow/get-geoarrow-native-geometry.js.map +0 -1
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.cjs +0 -290
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.cjs.map +0 -7
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.d.ts +0 -16
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.d.ts.map +0 -1
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.js +0 -334
- package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.js.map +0 -1
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts +0 -40
- package/dist/loader-utils/lib/file-provider/data-view-file.d.ts.map +0 -1
- package/dist/loader-utils/lib/file-provider/data-view-file.js +0 -68
- package/dist/loader-utils/lib/file-provider/data-view-file.js.map +0 -1
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts +0 -54
- package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts.map +0 -1
- package/dist/loader-utils/lib/file-provider/file-handle-file.js +0 -102
- package/dist/loader-utils/lib/file-provider/file-handle-file.js.map +0 -1
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts +0 -45
- package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts.map +0 -1
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js +0 -13
- package/dist/loader-utils/lib/file-provider/file-provider-interface.js.map +0 -1
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts +0 -57
- package/dist/loader-utils/lib/file-provider/file-provider.d.ts.map +0 -1
- package/dist/loader-utils/lib/file-provider/file-provider.js +0 -114
- package/dist/loader-utils/lib/file-provider/file-provider.js.map +0 -1
- package/dist/schema/deprecated/mesh-utils.d.ts +0 -12
- package/dist/schema/deprecated/mesh-utils.d.ts.map +0 -1
- package/dist/schema/deprecated/mesh-utils.js +0 -37
- package/dist/schema/deprecated/mesh-utils.js.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts +0 -10
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js +0 -71
- package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts +0 -19
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js +0 -64
- package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts +0 -20
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js +0 -83
- package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts +0 -21
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js +0 -86
- package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts +0 -24
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts.map +0 -1
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js +0 -5
- package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js.map +0 -1
- package/src/arrow-geometry/native-geometry.ts +0 -278
- package/src/geoarrow/get-geoarrow-native-geometry.ts +0 -8
- package/src/geoarrow/lib/kernels/encode-geoarrow-wkt.ts +0 -373
- package/src/loader-utils/lib/file-provider/data-view-file.ts +0 -83
- package/src/loader-utils/lib/file-provider/file-handle-file.ts +0 -114
- package/src/loader-utils/lib/file-provider/file-provider-interface.ts +0 -60
- package/src/loader-utils/lib/file-provider/file-provider.ts +0 -130
- package/src/schema/deprecated/mesh-utils.ts +0 -46
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator-builders.ts.disabled +0 -190
- package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts +0 -85
- package/src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts +0 -82
- package/src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts +0 -103
- package/src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts +0 -108
- package/src/schema-utils/lib/table/batch-builder/table-batch-aggregator.ts +0 -28
|
@@ -39,7 +39,9 @@ export type TableQuery<
|
|
|
39
39
|
select?: readonly TableSelection[];
|
|
40
40
|
/** Predicate evaluated against source columns before output aliases are applied. */
|
|
41
41
|
where?: PredicateT;
|
|
42
|
-
/**
|
|
42
|
+
/** Number of filtered rows skipped before applying the limit. */
|
|
43
|
+
offset?: number;
|
|
44
|
+
/** Maximum number of rows retained after filtering and offset. */
|
|
43
45
|
limit?: number;
|
|
44
46
|
}>;
|
|
45
47
|
|
|
@@ -122,6 +124,10 @@ export type TableQueryCapabilities = Readonly<{
|
|
|
122
124
|
predicate: TableQueryOperatorSupport;
|
|
123
125
|
/** Whether limits are unsupported, applied after execution, or stop physical work early. */
|
|
124
126
|
limit: TableQueryOperatorSupport;
|
|
127
|
+
/** Whether exact CAST semantics can execute at the source; conversions require negotiation. */
|
|
128
|
+
cast?: TableQueryOperatorSupport;
|
|
129
|
+
/** Whether the source can skip filtered rows before its limit. */
|
|
130
|
+
offset?: TableQueryOperatorSupport;
|
|
125
131
|
/** Whether the backend can stream bounded result batches. */
|
|
126
132
|
streaming: boolean;
|
|
127
133
|
/** Whether active and queued physical work observes cancellation. */
|
|
@@ -202,3 +208,24 @@ export function validateTableQueryLimit(limit: number | undefined): void {
|
|
|
202
208
|
throw new Error('Table query limit must be a non-negative safe integer.');
|
|
203
209
|
}
|
|
204
210
|
}
|
|
211
|
+
|
|
212
|
+
/** Validates a logical row offset before any batches are read. */
|
|
213
|
+
export function validateTableQueryOffset(offset: number | undefined): void {
|
|
214
|
+
if (offset !== undefined && (!Number.isSafeInteger(offset) || offset < 0)) {
|
|
215
|
+
throw new Error('Table query offset must be a non-negative safe integer.');
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** Static format hints only; omission means unknown and never authorizes execution. */
|
|
220
|
+
export type QueryPushdownCapabilityHints = Readonly<{
|
|
221
|
+
/** The format may support reading only selected columns. */
|
|
222
|
+
projection?: boolean;
|
|
223
|
+
/** The format may support predicate evaluation or pruning. */
|
|
224
|
+
predicate?: boolean;
|
|
225
|
+
/** An implementation may evaluate some CAST conversions. */
|
|
226
|
+
cast?: boolean;
|
|
227
|
+
/** An implementation may skip rows at the source. */
|
|
228
|
+
offset?: boolean;
|
|
229
|
+
/** An implementation may stop source work after a row limit. */
|
|
230
|
+
limit?: boolean;
|
|
231
|
+
}>;
|
|
@@ -2,48 +2,54 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {
|
|
5
|
+
import type {Table as ApacheArrowTable, RecordBatch} from 'apache-arrow';
|
|
6
|
+
import type {TableBatch} from '@loaders.gl/core/schema';
|
|
6
7
|
import type {TableScanReadOptions, TableQueryExecutionSummary} from './scan-query-metadata';
|
|
7
8
|
import {emitQueryComplete} from './scan-query-metadata';
|
|
8
9
|
import {filterColumnarRowIndices, validateColumnarPredicate} from './columnar-predicate';
|
|
9
|
-
import {validateTableQueryLimit} from './table-query';
|
|
10
|
+
import {validateTableQueryLimit, validateTableQueryOffset} from './table-query';
|
|
11
|
+
|
|
12
|
+
/** Physical batches handled by the shared scan executor. */
|
|
13
|
+
type ScanBatch = TableBatch | ApacheArrowTable | RecordBatch;
|
|
10
14
|
|
|
11
15
|
/** Reads source batches while allowing the shared executor to observe fetched bytes. */
|
|
12
|
-
export type TableScanBatchReader = (
|
|
16
|
+
export type TableScanBatchReader<BatchT = TableBatch> = (
|
|
13
17
|
signal?: AbortSignal,
|
|
14
18
|
onByteLength?: (byteLength: number) => void
|
|
15
|
-
) => AsyncIterable<
|
|
19
|
+
) => AsyncIterable<BatchT>;
|
|
16
20
|
|
|
17
21
|
/** Optional batch kernels for formats with a native vectorized predicate implementation. */
|
|
18
|
-
export type TableScanBatchOperators = Readonly<{
|
|
22
|
+
export type TableScanBatchOperators<BatchT = TableBatch> = Readonly<{
|
|
19
23
|
/** Applies a residual predicate locally or on a worker; async kernels must observe the signal. */
|
|
20
24
|
filter?: (
|
|
21
|
-
batch:
|
|
25
|
+
batch: BatchT,
|
|
22
26
|
predicate: TableScanReadOptions['predicate'],
|
|
23
27
|
signal?: AbortSignal
|
|
24
|
-
) =>
|
|
28
|
+
) => BatchT | Promise<BatchT>;
|
|
25
29
|
/** Applies a projection while preserving the source batch shape. */
|
|
26
|
-
project?: (batch:
|
|
30
|
+
project?: (batch: BatchT, columns?: readonly string[]) => BatchT;
|
|
27
31
|
}>;
|
|
28
32
|
|
|
29
|
-
/** Wraps an Arrow table in the standard single-result scan batch envelope. */
|
|
30
|
-
export function makeTableScanBatch(table: ArrowTable): ArrowTableBatch {
|
|
31
|
-
return {...table, batchType: 'data', length: table.data.numRows} as ArrowTableBatch;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
33
|
/**
|
|
35
|
-
* Executes the common residual table-scan stages for row and
|
|
34
|
+
* Executes the common residual table-scan stages for row, columnar, and native Arrow chunks.
|
|
35
|
+
* Native Arrow predicates require a format-supplied filter kernel.
|
|
36
36
|
*
|
|
37
37
|
* Format adapters provide only their parser-specific batch reader. Keeping filtering, projection,
|
|
38
38
|
* limits, cancellation, and telemetry here avoids copying the same executor into every format
|
|
39
39
|
* package while preserving each format's native batch shape.
|
|
40
40
|
*/
|
|
41
|
-
export async function* executeTableScanBatches(
|
|
42
|
-
readBatches: TableScanBatchReader
|
|
43
|
-
options: TableScanReadOptions
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
export async function* executeTableScanBatches<BatchT extends ScanBatch>(
|
|
42
|
+
readBatches: TableScanBatchReader<BatchT>,
|
|
43
|
+
options: TableScanReadOptions &
|
|
44
|
+
Readonly<{
|
|
45
|
+
/** Omits empty batches from the output stream. */
|
|
46
|
+
skipEmptyBatches?: boolean;
|
|
47
|
+
}> = {},
|
|
48
|
+
operators: TableScanBatchOperators<NoInfer<BatchT>> = {}
|
|
49
|
+
): AsyncIterable<BatchT> {
|
|
46
50
|
validateTableQueryLimit(options.limit);
|
|
51
|
+
validateTableQueryOffset(options.offset);
|
|
52
|
+
let skip = options.offset ?? 0;
|
|
47
53
|
const startedAt = Date.now();
|
|
48
54
|
let sourcesRead = 0;
|
|
49
55
|
let batchesRead = 0;
|
|
@@ -74,37 +80,41 @@ export async function* executeTableScanBatches(
|
|
|
74
80
|
}
|
|
75
81
|
options.signal?.throwIfAborted();
|
|
76
82
|
batchesRead++;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
const rowCount = getScanBatchRowCount(batch);
|
|
84
|
+
rowsRead += rowCount;
|
|
85
|
+
if (options.predicate && !operators.filter && !('shape' in batch)) {
|
|
86
|
+
throw new Error('Native Arrow scans require a filter kernel for residual predicates.');
|
|
87
|
+
}
|
|
88
|
+
const filteredBatch = operators.filter
|
|
89
|
+
? await operators.filter(batch, options.predicate, options.signal)
|
|
90
|
+
: (('shape' in batch ? filterTableBatch(batch, options.predicate) : batch) as BatchT);
|
|
83
91
|
options.signal?.throwIfAborted();
|
|
92
|
+
const filteredRowCount = getScanBatchRowCount(filteredBatch);
|
|
84
93
|
if (options.predicate) {
|
|
85
|
-
rowsTested +=
|
|
86
|
-
rowsRetained +=
|
|
94
|
+
rowsTested += rowCount;
|
|
95
|
+
rowsRetained += filteredRowCount;
|
|
87
96
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
);
|
|
92
|
-
if (projectedBatch.length <= remaining) {
|
|
93
|
-
remaining -= projectedBatch.length;
|
|
94
|
-
rowsReturned += projectedBatch.length;
|
|
95
|
-
yield projectedBatch;
|
|
96
|
-
if (remaining === 0) {
|
|
97
|
-
earlyTerminationReason = 'limit';
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
options.signal?.throwIfAborted();
|
|
101
|
-
} else {
|
|
102
|
-
const outputBatch = truncateTableBatch(projectedBatch, remaining);
|
|
103
|
-
rowsReturned += outputBatch.length;
|
|
104
|
-
earlyTerminationReason = 'limit';
|
|
105
|
-
yield outputBatch;
|
|
106
|
-
return;
|
|
97
|
+
if (skip >= filteredRowCount && (skip > 0 || options.skipEmptyBatches)) {
|
|
98
|
+
skip -= filteredRowCount;
|
|
99
|
+
continue;
|
|
107
100
|
}
|
|
101
|
+
const end = Math.min(filteredRowCount, skip + remaining);
|
|
102
|
+
const window =
|
|
103
|
+
skip || end < filteredRowCount
|
|
104
|
+
? (('shape' in filteredBatch
|
|
105
|
+
? sliceTableBatch(filteredBatch, skip, end)
|
|
106
|
+
: filteredBatch.slice(skip, end)) as BatchT)
|
|
107
|
+
: filteredBatch;
|
|
108
|
+
skip = 0;
|
|
109
|
+
const output = operators.project
|
|
110
|
+
? operators.project(window, options.columns)
|
|
111
|
+
: projectTableBatch(window, options.columns);
|
|
112
|
+
remaining -= getScanBatchRowCount(window);
|
|
113
|
+
rowsReturned += getScanBatchRowCount(output);
|
|
114
|
+
if (remaining === 0) earlyTerminationReason = 'limit';
|
|
115
|
+
yield output;
|
|
116
|
+
if (remaining === 0) return;
|
|
117
|
+
options.signal?.throwIfAborted();
|
|
108
118
|
}
|
|
109
119
|
status = 'completed';
|
|
110
120
|
} catch (error) {
|
|
@@ -139,10 +149,26 @@ export async function* executeTableScanBatches(
|
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
|
|
152
|
+
/** Reads the row count from native Arrow chunks and portable batch envelopes. */
|
|
153
|
+
function getScanBatchRowCount(batch: ScanBatch): number {
|
|
154
|
+
return 'shape' in batch ? batch.length : batch.numRows;
|
|
155
|
+
}
|
|
156
|
+
|
|
142
157
|
/** Truncates a batch without changing its native representation. */
|
|
143
|
-
export function truncateTableBatch
|
|
158
|
+
export function truncateTableBatch<BatchType extends ScanBatch>(
|
|
159
|
+
batch: BatchType,
|
|
160
|
+
length: number
|
|
161
|
+
): BatchType {
|
|
162
|
+
return (
|
|
163
|
+
'shape' in batch ? sliceTableBatch(batch, 0, length) : batch.slice(0, length)
|
|
164
|
+
) as BatchType;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** Slices rows in a batch, preserving Arrow buffers and the batch shape. */
|
|
168
|
+
function sliceTableBatch(batch: TableBatch, start: number, end: number): TableBatch {
|
|
169
|
+
const length = end - start;
|
|
144
170
|
if (batch.shape === 'object-row-table' || batch.shape === 'array-row-table') {
|
|
145
|
-
return {...batch, data: batch.data.slice(
|
|
171
|
+
return {...batch, data: batch.data.slice(start, end), length} as TableBatch;
|
|
146
172
|
}
|
|
147
173
|
if (batch.shape === 'columnar-table') {
|
|
148
174
|
return {
|
|
@@ -150,36 +176,42 @@ export function truncateTableBatch(batch: TableBatch, length: number): TableBatc
|
|
|
150
176
|
data: Object.fromEntries(
|
|
151
177
|
Object.entries(batch.data).map(([name, values]) => [
|
|
152
178
|
name,
|
|
153
|
-
Array.from(values as ArrayLike<unknown>).slice(
|
|
179
|
+
Array.from(values as ArrayLike<unknown>).slice(start, end)
|
|
154
180
|
])
|
|
155
181
|
),
|
|
156
182
|
length
|
|
157
183
|
};
|
|
158
184
|
}
|
|
159
|
-
|
|
160
|
-
return {...batch, features: batch.features.slice(0, length), length};
|
|
185
|
+
return {...batch, features: batch.features.slice(start, end), length};
|
|
161
186
|
}
|
|
162
187
|
|
|
163
188
|
/** Projects a batch in the caller-requested order while preserving its shape. */
|
|
164
|
-
export function projectTableBatch
|
|
189
|
+
export function projectTableBatch<BatchType extends ScanBatch>(
|
|
190
|
+
batch: BatchType,
|
|
191
|
+
columns?: readonly string[]
|
|
192
|
+
): BatchType {
|
|
165
193
|
if (columns === undefined) return batch;
|
|
194
|
+
if (!('shape' in batch)) {
|
|
195
|
+
const indices = columns
|
|
196
|
+
.map(column => batch.schema.fields.findIndex(field => field.name === column))
|
|
197
|
+
.filter(index => index >= 0);
|
|
198
|
+
return batch.selectAt(indices) as BatchType;
|
|
199
|
+
}
|
|
166
200
|
const schema = projectTableSchema(batch, columns);
|
|
167
201
|
if (batch.shape === 'object-row-table') {
|
|
168
202
|
return {
|
|
169
203
|
...batch,
|
|
170
204
|
schema,
|
|
171
205
|
data: batch.data.map(row => Object.fromEntries(columns.map(column => [column, row[column]])))
|
|
172
|
-
} as
|
|
206
|
+
} as BatchType;
|
|
173
207
|
}
|
|
174
208
|
if (batch.shape === 'columnar-table') {
|
|
175
209
|
return {
|
|
176
210
|
...batch,
|
|
177
211
|
schema,
|
|
178
212
|
data: Object.fromEntries(columns.map(column => [column, batch.data[column]]))
|
|
179
|
-
};
|
|
213
|
+
} as BatchType;
|
|
180
214
|
}
|
|
181
|
-
if (batch.shape === 'arrow-table')
|
|
182
|
-
return {...batch, schema, data: batch.data.select([...columns])};
|
|
183
215
|
return batch;
|
|
184
216
|
}
|
|
185
217
|
|
|
@@ -7,7 +7,7 @@ import type {BatchableDataType, DataType, SyncDataType} from '../../types';
|
|
|
7
7
|
import type {ReadableFile} from '../files/file';
|
|
8
8
|
import {mergeOptions} from '../option-utils/merge-options';
|
|
9
9
|
import {resolvePath} from '../path-utils/file-aliases';
|
|
10
|
-
import {
|
|
10
|
+
import {getLoaderLog} from '../log-utils/log';
|
|
11
11
|
import {getAuthenticatedFetch} from '../request-utils/request-credentials';
|
|
12
12
|
import {resolveAuthenticationOptions} from '../request-utils/authentication';
|
|
13
13
|
|
|
@@ -169,7 +169,7 @@ export abstract class DataSource<DataT, OptionsT extends DataSourceOptions> {
|
|
|
169
169
|
if (callback) {
|
|
170
170
|
callback(normalizedError, this);
|
|
171
171
|
} else {
|
|
172
|
-
|
|
172
|
+
getLoaderLog(this.options).warn(`${this.constructor.name}: ${normalizedError.message}`)();
|
|
173
173
|
}
|
|
174
174
|
return normalizedError;
|
|
175
175
|
}
|
|
@@ -208,18 +208,6 @@ export function getSourceLoaderOptions(options: DataSourceOptions): StrictLoader
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
const topLevelBaseUri = typeof loadOptions.baseUri === 'string' ? loadOptions.baseUri : undefined;
|
|
212
|
-
const topLevelBaseUrl = typeof loadOptions.baseUrl === 'string' ? loadOptions.baseUrl : undefined;
|
|
213
|
-
|
|
214
|
-
if (topLevelBaseUri !== undefined || topLevelBaseUrl !== undefined) {
|
|
215
|
-
loadOptions.core ||= {};
|
|
216
|
-
if (loadOptions.core.baseUrl === undefined) {
|
|
217
|
-
loadOptions.core.baseUrl = topLevelBaseUrl ?? topLevelBaseUri;
|
|
218
|
-
}
|
|
219
|
-
delete loadOptions.baseUri;
|
|
220
|
-
delete loadOptions.baseUrl;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
211
|
return loadOptions as StrictLoaderOptions;
|
|
224
212
|
}
|
|
225
213
|
|
|
@@ -237,7 +225,7 @@ function normalizeError(error: unknown, message: string): Error {
|
|
|
237
225
|
function unavailableCoreApiMethod(methodName: keyof CoreAPI) {
|
|
238
226
|
return () => {
|
|
239
227
|
throw new Error(
|
|
240
|
-
`CoreAPI.${methodName} is unavailable. Use @loaders.gl/core.
|
|
228
|
+
`CoreAPI.${methodName} is unavailable. Use @loaders.gl/core.createDataSourceSync().`
|
|
241
229
|
);
|
|
242
230
|
};
|
|
243
231
|
}
|
|
@@ -20,7 +20,7 @@ export interface ImageSource {
|
|
|
20
20
|
/**
|
|
21
21
|
* Normalized capabilities of an Image service
|
|
22
22
|
* @example
|
|
23
|
-
* The
|
|
23
|
+
* The WMSLoader will normalize the response to the WMS `GetCapabilities`
|
|
24
24
|
* data structure extracted from WMS XML response into an ImageSourceMetadata.
|
|
25
25
|
*/
|
|
26
26
|
export type ImageSourceMetadata = {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {ArrowTable
|
|
5
|
+
import type {Table as ArrowTable} from 'apache-arrow';
|
|
6
|
+
import type {Schema} from '@loaders.gl/core/schema';
|
|
6
7
|
import type {TableScanSource} from '../scan-utils/scan-query-metadata';
|
|
7
8
|
|
|
8
9
|
/** Source exposing named tables. Returned handles remain owned by the source or caller. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import type {GetTileParameters, TileGrid, TileGridMatrix, TileGridLimits} from './tile-source';
|
|
6
|
-
import {
|
|
6
|
+
import {resolveTileIndex, validateTileMatrix, validateTileMatrixSet} from '@math.gl/geospatial';
|
|
7
7
|
import type {TileMatrix, TileMatrixSet, VariableMatrixWidth} from '@math.gl/geospatial';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -300,6 +300,17 @@ export function getTileGridValidation(grid: TileGridValidationInput): TileGridVa
|
|
|
300
300
|
message: error instanceof Error ? error.message : 'Invalid tile grid limits.'
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
+
// math.gl owns the complete-set contract; it must agree before geometry is called complete.
|
|
304
|
+
if (matrixSet && !issues.length) {
|
|
305
|
+
try {
|
|
306
|
+
validateTileMatrixSet(matrixSet, grid.limits);
|
|
307
|
+
} catch (error) {
|
|
308
|
+
issues.push({
|
|
309
|
+
code: 'invalid-matrix',
|
|
310
|
+
message: error instanceof Error ? error.message : 'Invalid tile matrix set.'
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
303
314
|
const invalid = issues.some(
|
|
304
315
|
issue => issue.code !== 'missing-crs' && issue.code !== 'missing-geometry'
|
|
305
316
|
);
|
|
@@ -320,28 +331,39 @@ export function validateTileGrid(grid: TileGridValidationInput): void {
|
|
|
320
331
|
throw new RangeError('Complete tile matrix geometry requires a CRS.');
|
|
321
332
|
}
|
|
322
333
|
|
|
323
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* Validates inclusive base-grid coverage even when resolution or CRS is unknown. Each malformed
|
|
336
|
+
* rectangle throws a `RangeError` that names the reason: a missing or repeated matrix ID, an
|
|
337
|
+
* unknown matrix, an index that is not a nonnegative safe integer, reversed bounds, or bounds
|
|
338
|
+
* beyond the advertised matrix dimensions.
|
|
339
|
+
*/
|
|
324
340
|
export function validateTileGridLimits(grid: TileGridValidationInput): void {
|
|
325
341
|
if (grid.limits === undefined) return;
|
|
326
342
|
if (!Array.isArray(grid.limits)) throw new RangeError('Tile matrix limits require an array.');
|
|
327
343
|
const identifiers = new Set<string>();
|
|
328
344
|
const matrices = grid.tileMatrixSet?.matrices ?? grid.matrices;
|
|
345
|
+
const matrixById = Array.isArray(matrices)
|
|
346
|
+
? new Map(matrices.map(matrix => [matrix?.id, matrix]))
|
|
347
|
+
: undefined;
|
|
329
348
|
for (const limit of grid.limits) {
|
|
330
349
|
if (
|
|
331
350
|
!limit ||
|
|
332
351
|
typeof limit.tileMatrix !== 'string' ||
|
|
333
352
|
!limit.tileMatrix ||
|
|
334
|
-
identifiers.has(limit.tileMatrix)
|
|
353
|
+
identifiers.has(limit.tileMatrix)
|
|
354
|
+
)
|
|
355
|
+
throw new RangeError('Tile matrix limits require unique nonempty matrix identifiers.');
|
|
356
|
+
identifiers.add(limit.tileMatrix);
|
|
357
|
+
if (
|
|
335
358
|
![limit.minTileColumn, limit.maxTileColumn, limit.minTileRow, limit.maxTileRow].every(
|
|
336
359
|
value => Number.isSafeInteger(value) && value >= 0
|
|
337
|
-
)
|
|
338
|
-
limit.minTileColumn > limit.maxTileColumn ||
|
|
339
|
-
limit.minTileRow > limit.maxTileRow
|
|
360
|
+
)
|
|
340
361
|
)
|
|
341
|
-
throw new RangeError('
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
362
|
+
throw new RangeError('Tile matrix limits require nonnegative safe integers.');
|
|
363
|
+
if (limit.minTileColumn > limit.maxTileColumn || limit.minTileRow > limit.maxTileRow)
|
|
364
|
+
throw new RangeError('Tile matrix limits have reversed bounds.');
|
|
365
|
+
const matrix = matrixById?.get(limit.tileMatrix);
|
|
366
|
+
if (matrixById && !matrix)
|
|
345
367
|
throw new RangeError('Tile matrix limits reference an unknown matrix.');
|
|
346
368
|
if (
|
|
347
369
|
matrix?.matrixSize &&
|
|
@@ -391,14 +413,8 @@ export function resolveTileGridTile<
|
|
|
391
413
|
)
|
|
392
414
|
return null;
|
|
393
415
|
if (matrix && grid.tileMatrixSet) {
|
|
394
|
-
const
|
|
395
|
-
|
|
396
|
-
geometry,
|
|
397
|
-
getTileBounds(geometry, parameters.x, parameters.y),
|
|
398
|
-
limits
|
|
399
|
-
);
|
|
400
|
-
if (!ranges.length) return null;
|
|
401
|
-
return {...parameters, x: ranges[0].minTileColumn, tileMatrix};
|
|
416
|
+
const index = resolveTileIndex(matrix as TileMatrix, parameters.x, parameters.y, limits);
|
|
417
|
+
return index ? {...parameters, x: index[0], tileMatrix} : null;
|
|
402
418
|
}
|
|
403
419
|
if (matrix?.variableMatrixWidths?.length)
|
|
404
420
|
throw new RangeError('Coalesced tile requests require complete geometry.');
|
|
@@ -25,7 +25,7 @@ export function mergeImageSourceLoaderProps<Props extends {loadOptions?: any}>(
|
|
|
25
25
|
...props,
|
|
26
26
|
loadOptions: {
|
|
27
27
|
...props.loadOptions,
|
|
28
|
-
fetch: getFetchFunction(props.loadOptions)
|
|
28
|
+
core: {...props.loadOptions?.core, fetch: getFetchFunction(props.loadOptions)}
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
+
import type {Table as ArrowTable} from 'apache-arrow';
|
|
5
6
|
import type {
|
|
6
|
-
ArrowTable,
|
|
7
7
|
BinaryFeatureCollection,
|
|
8
8
|
GeoArrowEncodingPreference,
|
|
9
9
|
GeoJSONTable,
|
|
@@ -33,7 +33,7 @@ export interface VectorSource {
|
|
|
33
33
|
/**
|
|
34
34
|
* Normalized capabilities of an Image service
|
|
35
35
|
* @example
|
|
36
|
-
* The
|
|
36
|
+
* The WMSLoader will normalize the response to the WMS `GetCapabilities`
|
|
37
37
|
* data structure extracted from WMS XML response into an VectorSourceMetadata.
|
|
38
38
|
*/
|
|
39
39
|
export type VectorSourceMetadata = {
|
|
@@ -79,7 +79,7 @@ export type GetFeaturesParameters = {
|
|
|
79
79
|
requestCrs?: CRSIdentifier;
|
|
80
80
|
/**
|
|
81
81
|
* Requested feature encoding for the returned table.
|
|
82
|
-
* `arrow` returns a
|
|
82
|
+
* `arrow` returns a native Apache Arrow `Table`.
|
|
83
83
|
*/
|
|
84
84
|
format?: 'geojson' | 'binary' | 'arrow';
|
|
85
85
|
/** Preferred GeoArrow encoding when `format` is `arrow`. */
|
|
@@ -2,17 +2,12 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
Feature,
|
|
8
|
-
GeoJSONTable,
|
|
9
|
-
BinaryFeatureCollection,
|
|
10
|
-
ArrowTable
|
|
11
|
-
} from '@loaders.gl/core/schema';
|
|
5
|
+
import type {Table} from 'apache-arrow';
|
|
6
|
+
import type {Schema, Feature, GeoJSONTable, BinaryFeatureCollection} from '@loaders.gl/core/schema';
|
|
12
7
|
import {TileSource, TileSourceProps, GetTileParameters} from './tile-source';
|
|
13
8
|
import type {GetTileDataParameters} from './tile-source';
|
|
14
9
|
|
|
15
|
-
export type VectorTile = Feature[] | GeoJSONTable | BinaryFeatureCollection |
|
|
10
|
+
export type VectorTile = Feature[] | GeoJSONTable | BinaryFeatureCollection | Table;
|
|
16
11
|
|
|
17
12
|
export type VectorTileSourceProps = TileSourceProps;
|
|
18
13
|
|
|
@@ -25,5 +20,5 @@ export interface VectorTileSource extends TileSource {
|
|
|
25
20
|
getVectorTile(parameters: GetTileParameters): Promise<VectorTile | null>;
|
|
26
21
|
getTileData(
|
|
27
22
|
parameters: GetTileDataParameters
|
|
28
|
-
): Promise<Feature[] | GeoJSONTable | BinaryFeatureCollection |
|
|
23
|
+
): Promise<Feature[] | GeoJSONTable | BinaryFeatureCollection | Table | null>;
|
|
29
24
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
+
import {NullLog} from '../log-utils/log';
|
|
5
6
|
import {
|
|
6
7
|
canProcessOnWorker,
|
|
7
8
|
canProcessOnWorkerInBatches,
|
|
@@ -45,11 +46,7 @@ export function canParseWithWorker(loader: Loader, options?: StrictLoaderOptions
|
|
|
45
46
|
)
|
|
46
47
|
return false;
|
|
47
48
|
// Multifile workers cannot transfer an application's custom fetch callback.
|
|
48
|
-
if (
|
|
49
|
-
loader.id === 'shapefile' &&
|
|
50
|
-
(typeof options?.fetch === 'function' || typeof options?.core?.fetch === 'function')
|
|
51
|
-
)
|
|
52
|
-
return false;
|
|
49
|
+
if (loader.id === 'shapefile' && typeof options?.core?.fetch === 'function') return false;
|
|
53
50
|
const workerOptions = getWorkerOptions(options);
|
|
54
51
|
const nodeWorkers = workerOptions._nodeWorkers;
|
|
55
52
|
if (!isBrowser && !nodeWorkers) {
|
|
@@ -307,7 +304,7 @@ function resolveWorkerLoaders(
|
|
|
307
304
|
}
|
|
308
305
|
|
|
309
306
|
/**
|
|
310
|
-
*
|
|
307
|
+
* Prepares worker routing controls and serializable parser options.
|
|
311
308
|
* @param options
|
|
312
309
|
* @param loader Loader whose parser will handle the worker request.
|
|
313
310
|
*/
|
|
@@ -317,7 +314,15 @@ function getWorkerOptions(options: StrictLoaderOptions = {}, loader?: Loader) {
|
|
|
317
314
|
...portableOptions,
|
|
318
315
|
signal: undefined,
|
|
319
316
|
onProgress: undefined,
|
|
320
|
-
...(portableOptions.core
|
|
317
|
+
...(portableOptions.core
|
|
318
|
+
? {
|
|
319
|
+
core: {
|
|
320
|
+
...portableOptions.core,
|
|
321
|
+
authentications: undefined,
|
|
322
|
+
log: isDisabledLog(portableOptions.core.log) ? null : undefined
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
: {})
|
|
321
326
|
};
|
|
322
327
|
const serializedOptions = JSON.parse(
|
|
323
328
|
JSON.stringify(optionsToSerialize, (_key, value) => {
|
|
@@ -328,19 +333,18 @@ function getWorkerOptions(options: StrictLoaderOptions = {}, loader?: Loader) {
|
|
|
328
333
|
})
|
|
329
334
|
);
|
|
330
335
|
restoreBigIntOptions(optionsToSerialize, serializedOptions);
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
};
|
|
335
|
-
// The decision has already been made before dispatch, so worker runtimes should
|
|
336
|
-
// receive the established boolean form even when the caller selected `auto`.
|
|
337
|
-
if (workerOptions.worker === 'auto') {
|
|
338
|
-
workerOptions.worker = true;
|
|
336
|
+
// The decision has already been made before dispatch.
|
|
337
|
+
if (serializedOptions.core?.worker === 'auto') {
|
|
338
|
+
serializedOptions.core.worker = true;
|
|
339
339
|
}
|
|
340
340
|
if (loader) {
|
|
341
|
-
|
|
341
|
+
serializedOptions._workerLoaderId = loader.id;
|
|
342
342
|
}
|
|
343
|
-
return
|
|
343
|
+
return {
|
|
344
|
+
...serializedOptions,
|
|
345
|
+
...serializedOptions.core,
|
|
346
|
+
parserOptions: serializedOptions
|
|
347
|
+
};
|
|
344
348
|
}
|
|
345
349
|
|
|
346
350
|
/** Restores exact bigint leaves after JSON removes callbacks; ordinary JSON values keep their shape. */
|
|
@@ -382,7 +386,7 @@ function getSerializableLoaderContext(context?: LoaderContext) {
|
|
|
382
386
|
*/
|
|
383
387
|
function shouldParseCSVWithWorker(options?: StrictLoaderOptions): boolean {
|
|
384
388
|
const csvOptions = options as {csv?: {shape?: string}; core?: {shape?: string}} | undefined;
|
|
385
|
-
return (csvOptions?.csv?.shape ?? csvOptions?.core?.shape) === 'arrow
|
|
389
|
+
return (csvOptions?.csv?.shape ?? csvOptions?.core?.shape) === 'arrow';
|
|
386
390
|
}
|
|
387
391
|
|
|
388
392
|
/**
|
|
@@ -398,3 +402,8 @@ function isLoaderWithWorkerResultDeserializer(
|
|
|
398
402
|
'function'
|
|
399
403
|
);
|
|
400
404
|
}
|
|
405
|
+
|
|
406
|
+
/** Preserves explicit log suppression when crossing the worker boundary. */
|
|
407
|
+
function isDisabledLog(logger: unknown): boolean {
|
|
408
|
+
return logger === null || logger instanceof NullLog;
|
|
409
|
+
}
|