@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
|
@@ -104,6 +104,7 @@ __export(index_exports, {
|
|
|
104
104
|
createLAZChunkDecoderCursor: () => createLAZChunkDecoderCursor,
|
|
105
105
|
createLAZChunkEncoder: () => createLAZChunkEncoder,
|
|
106
106
|
createLoaderWorker: () => createLoaderWorker,
|
|
107
|
+
createQueryMetadata: () => createQueryMetadata,
|
|
107
108
|
createQueryParameterCredential: () => createQueryParameterCredential,
|
|
108
109
|
createRangeStats: () => createRangeStats,
|
|
109
110
|
createScanQueryMetadata: () => createScanQueryMetadata,
|
|
@@ -141,6 +142,7 @@ __export(index_exports, {
|
|
|
141
142
|
getLAZChunkByteLength: () => getLAZChunkByteLength,
|
|
142
143
|
getLAZChunkDeclaredByteLength: () => getLAZChunkDeclaredByteLength,
|
|
143
144
|
getLAZChunkHeaderByteLength: () => getLAZChunkHeaderByteLength,
|
|
145
|
+
getLoaderLog: () => getLoaderLog,
|
|
144
146
|
getMagicString: () => getMagicString,
|
|
145
147
|
getPathPrefix: () => getPathPrefix,
|
|
146
148
|
getRangeStats: () => getRangeStats,
|
|
@@ -182,12 +184,12 @@ __export(index_exports, {
|
|
|
182
184
|
log: () => log,
|
|
183
185
|
makeLineIterator: () => makeLineIterator,
|
|
184
186
|
makeNumberedLineIterator: () => makeNumberedLineIterator,
|
|
185
|
-
makeTableScanBatch: () => makeTableScanBatch,
|
|
186
187
|
makeTextDecoderIterator: () => makeTextDecoderIterator,
|
|
187
188
|
makeTextEncoderIterator: () => makeTextEncoderIterator,
|
|
188
189
|
mergeOptions: () => mergeOptions,
|
|
189
190
|
nodeVersion: () => nodeVersion,
|
|
190
191
|
normalizeTableQuery: () => normalizeTableQuery,
|
|
192
|
+
paceBatchIterator: () => paceBatchIterator,
|
|
191
193
|
padStringToByteAlignment: () => padStringToByteAlignment,
|
|
192
194
|
padToNBytes: () => padToNBytes,
|
|
193
195
|
parseContentType: () => parseContentType,
|
|
@@ -223,11 +225,13 @@ __export(index_exports, {
|
|
|
223
225
|
shouldParseWithWorker: () => shouldParseWithWorker,
|
|
224
226
|
sliceArrayBuffer: () => sliceArrayBuffer,
|
|
225
227
|
stream: () => stream_browser_exports,
|
|
228
|
+
supportsSourceCreation: () => supportsSourceCreation,
|
|
226
229
|
toArrayBuffer: () => toArrayBuffer2,
|
|
227
230
|
toArrayBufferIterator: () => toArrayBufferIterator,
|
|
228
231
|
toArrayBufferView: () => toArrayBufferView,
|
|
229
232
|
toBuffer: () => toBuffer2,
|
|
230
233
|
truncateTableBatch: () => truncateTableBatch,
|
|
234
|
+
validateBatchDeliveryRate: () => validateBatchDeliveryRate,
|
|
231
235
|
validateColumnarPredicate: () => validateColumnarPredicate,
|
|
232
236
|
validatePointCloudQueryOptions: () => validatePointCloudQueryOptions,
|
|
233
237
|
validateRasterQueryOptions: () => validateRasterQueryOptions,
|
|
@@ -288,18 +292,48 @@ var nodeVersion = matches && parseFloat(matches[1]) || 0;
|
|
|
288
292
|
|
|
289
293
|
// dist/loader-utils/lib/log-utils/log.js
|
|
290
294
|
var import_log = require("probe.gl/log");
|
|
291
|
-
var VERSION = true ? "5.0.0-
|
|
295
|
+
var VERSION = true ? "5.0.0-rc.1" : "latest";
|
|
292
296
|
var version = VERSION[0] >= "0" && VERSION[0] <= "9" ? `v${VERSION}` : "";
|
|
293
297
|
function createLog() {
|
|
294
|
-
const
|
|
298
|
+
const log3 = new import_log.Log({ id: "loaders.gl" });
|
|
295
299
|
globalThis.loaders ||= {};
|
|
296
|
-
globalThis.loaders.log =
|
|
300
|
+
globalThis.loaders.log = log3;
|
|
297
301
|
globalThis.loaders.version = version;
|
|
298
302
|
globalThis.probe ||= {};
|
|
299
|
-
globalThis.probe.loaders =
|
|
300
|
-
return
|
|
303
|
+
globalThis.probe.loaders = log3;
|
|
304
|
+
return log3;
|
|
301
305
|
}
|
|
302
306
|
var log = createLog();
|
|
307
|
+
var NullLog = class {
|
|
308
|
+
/** Discards debug messages. */
|
|
309
|
+
log() {
|
|
310
|
+
return ignoreMessage;
|
|
311
|
+
}
|
|
312
|
+
/** Discards informational messages. */
|
|
313
|
+
info() {
|
|
314
|
+
return ignoreMessage;
|
|
315
|
+
}
|
|
316
|
+
/** Discards messages marked to be emitted once. */
|
|
317
|
+
once() {
|
|
318
|
+
return ignoreMessage;
|
|
319
|
+
}
|
|
320
|
+
/** Discards warnings. */
|
|
321
|
+
warn() {
|
|
322
|
+
return ignoreMessage;
|
|
323
|
+
}
|
|
324
|
+
/** Discards errors. */
|
|
325
|
+
error() {
|
|
326
|
+
return ignoreMessage;
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
function ignoreMessage() {
|
|
330
|
+
}
|
|
331
|
+
var nullLog = new NullLog();
|
|
332
|
+
function getLoaderLog(options) {
|
|
333
|
+
var _a;
|
|
334
|
+
const logger = (_a = options == null ? void 0 : options.core) == null ? void 0 : _a.log;
|
|
335
|
+
return logger === null ? nullLog : logger || log;
|
|
336
|
+
}
|
|
303
337
|
|
|
304
338
|
// dist/loader-utils/lib/javascript-utils/is-type.js
|
|
305
339
|
var isBoolean = (value) => typeof value === "boolean";
|
|
@@ -437,6 +471,46 @@ var nodeVersion2 = matches2 && parseFloat(matches2[1]) || 0;
|
|
|
437
471
|
// src/worker-utils/lib/worker-api/process-on-worker.ts
|
|
438
472
|
var import_tasks2 = require("@math.gl/tasks");
|
|
439
473
|
|
|
474
|
+
// src/loader-utils/lib/log-utils/log.ts
|
|
475
|
+
var import_log3 = require("probe.gl/log");
|
|
476
|
+
var VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
|
|
477
|
+
var version2 = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
|
|
478
|
+
function createLog2() {
|
|
479
|
+
const log3 = new import_log3.Log({ id: "loaders.gl" });
|
|
480
|
+
globalThis.loaders ||= {};
|
|
481
|
+
globalThis.loaders.log = log3;
|
|
482
|
+
globalThis.loaders.version = version2;
|
|
483
|
+
globalThis.probe ||= {};
|
|
484
|
+
globalThis.probe.loaders = log3;
|
|
485
|
+
return log3;
|
|
486
|
+
}
|
|
487
|
+
var log2 = createLog2();
|
|
488
|
+
var NullLog2 = class {
|
|
489
|
+
/** Discards debug messages. */
|
|
490
|
+
log() {
|
|
491
|
+
return ignoreMessage2;
|
|
492
|
+
}
|
|
493
|
+
/** Discards informational messages. */
|
|
494
|
+
info() {
|
|
495
|
+
return ignoreMessage2;
|
|
496
|
+
}
|
|
497
|
+
/** Discards messages marked to be emitted once. */
|
|
498
|
+
once() {
|
|
499
|
+
return ignoreMessage2;
|
|
500
|
+
}
|
|
501
|
+
/** Discards warnings. */
|
|
502
|
+
warn() {
|
|
503
|
+
return ignoreMessage2;
|
|
504
|
+
}
|
|
505
|
+
/** Discards errors. */
|
|
506
|
+
error() {
|
|
507
|
+
return ignoreMessage2;
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
function ignoreMessage2() {
|
|
511
|
+
}
|
|
512
|
+
var nullLog2 = new NullLog2();
|
|
513
|
+
|
|
440
514
|
// src/worker-utils/lib/worker-api/get-worker-url.ts
|
|
441
515
|
var warnedWorkerVersionFallbacks = /* @__PURE__ */ new Set();
|
|
442
516
|
function getCustomWorkerURL(worker, options = {}) {
|
|
@@ -468,11 +542,11 @@ function getWorkerURL(worker, options = {}) {
|
|
|
468
542
|
}
|
|
469
543
|
function getDefaultWorkerURL(worker, warn = false) {
|
|
470
544
|
const workerFile = isBrowser2 ? worker.workerFile || `${worker.id}-worker.js` : worker.workerNode || `${worker.id}-worker-node.js`;
|
|
471
|
-
let
|
|
472
|
-
if (
|
|
473
|
-
|
|
545
|
+
let version3 = worker.version;
|
|
546
|
+
if (version3 === "latest") {
|
|
547
|
+
version3 = NPM_TAG;
|
|
474
548
|
}
|
|
475
|
-
const versionTag =
|
|
549
|
+
const versionTag = version3 ? `@${version3}` : "";
|
|
476
550
|
const url = `https://unpkg.com/@loaders.gl/${worker.module}${versionTag}/dist/${workerFile}`;
|
|
477
551
|
if (warn) {
|
|
478
552
|
warnIfUsingNpmTagFallback(worker, url);
|
|
@@ -488,9 +562,9 @@ function warnIfUsingNpmTagFallback(worker, url) {
|
|
|
488
562
|
return;
|
|
489
563
|
}
|
|
490
564
|
warnedWorkerVersionFallbacks.add(workerId);
|
|
491
|
-
|
|
565
|
+
log2.warn(
|
|
492
566
|
`loaders.gl: ${worker.name} loader worker version is "latest" because __VERSION__ was not injected. Fetching ${url} from CDN.`
|
|
493
|
-
);
|
|
567
|
+
)();
|
|
494
568
|
}
|
|
495
569
|
|
|
496
570
|
// src/worker-utils/lib/worker-api/task-runtime.ts
|
|
@@ -639,8 +713,8 @@ function getControls(options) {
|
|
|
639
713
|
};
|
|
640
714
|
}
|
|
641
715
|
function getParserOptions(options) {
|
|
642
|
-
const { signal, onProgress,
|
|
643
|
-
return getTransferListForWriter(parserOptions);
|
|
716
|
+
const { signal, onProgress, parserOptions, ...workerOptions } = options;
|
|
717
|
+
return getTransferListForWriter(parserOptions ?? workerOptions);
|
|
644
718
|
}
|
|
645
719
|
async function openSession(worker, options, context, jobContext) {
|
|
646
720
|
var _a, _b;
|
|
@@ -975,7 +1049,7 @@ function canParseWithWorker(loader, options) {
|
|
|
975
1049
|
return false;
|
|
976
1050
|
if ((_d = (_c = options == null ? void 0 : options.core) == null ? void 0 : _c.credentials) == null ? void 0 : _d.some((credential) => credential.type === "request" || "token" in credential && typeof credential.token === "function"))
|
|
977
1051
|
return false;
|
|
978
|
-
if (loader.id === "shapefile" &&
|
|
1052
|
+
if (loader.id === "shapefile" && typeof ((_e = options == null ? void 0 : options.core) == null ? void 0 : _e.fetch) === "function")
|
|
979
1053
|
return false;
|
|
980
1054
|
const workerOptions = getWorkerOptions(options);
|
|
981
1055
|
const nodeWorkers = workerOptions._nodeWorkers;
|
|
@@ -1104,13 +1178,19 @@ function resolveWorkerLoaders(loader, loaderIds, loaderIsArray, context, options
|
|
|
1104
1178
|
}
|
|
1105
1179
|
}
|
|
1106
1180
|
function getWorkerOptions(options = {}, loader) {
|
|
1107
|
-
var _a;
|
|
1181
|
+
var _a, _b;
|
|
1108
1182
|
const portableOptions = ((_a = loader == null ? void 0 : loader.serializeWorkerOptions) == null ? void 0 : _a.call(loader, options)) || options;
|
|
1109
1183
|
const optionsToSerialize = {
|
|
1110
1184
|
...portableOptions,
|
|
1111
1185
|
signal: void 0,
|
|
1112
1186
|
onProgress: void 0,
|
|
1113
|
-
...portableOptions.core ? {
|
|
1187
|
+
...portableOptions.core ? {
|
|
1188
|
+
core: {
|
|
1189
|
+
...portableOptions.core,
|
|
1190
|
+
authentications: void 0,
|
|
1191
|
+
log: isDisabledLog(portableOptions.core.log) ? null : void 0
|
|
1192
|
+
}
|
|
1193
|
+
} : {}
|
|
1114
1194
|
};
|
|
1115
1195
|
const serializedOptions = JSON.parse(JSON.stringify(optionsToSerialize, (_key, value) => {
|
|
1116
1196
|
if (typeof Headers !== "undefined" && value instanceof Headers)
|
|
@@ -1120,17 +1200,17 @@ function getWorkerOptions(options = {}, loader) {
|
|
|
1120
1200
|
return typeof value === "bigint" ? null : value;
|
|
1121
1201
|
}));
|
|
1122
1202
|
restoreBigIntOptions(optionsToSerialize, serializedOptions);
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
...serializedOptions
|
|
1126
|
-
};
|
|
1127
|
-
if (workerOptions.worker === "auto") {
|
|
1128
|
-
workerOptions.worker = true;
|
|
1203
|
+
if (((_b = serializedOptions.core) == null ? void 0 : _b.worker) === "auto") {
|
|
1204
|
+
serializedOptions.core.worker = true;
|
|
1129
1205
|
}
|
|
1130
1206
|
if (loader) {
|
|
1131
|
-
|
|
1207
|
+
serializedOptions._workerLoaderId = loader.id;
|
|
1132
1208
|
}
|
|
1133
|
-
return
|
|
1209
|
+
return {
|
|
1210
|
+
...serializedOptions,
|
|
1211
|
+
...serializedOptions.core,
|
|
1212
|
+
parserOptions: serializedOptions
|
|
1213
|
+
};
|
|
1134
1214
|
}
|
|
1135
1215
|
function restoreBigIntOptions(original, serialized) {
|
|
1136
1216
|
if (!serialized || typeof serialized !== "object")
|
|
@@ -1153,11 +1233,14 @@ function getSerializableLoaderContext2(context) {
|
|
|
1153
1233
|
function shouldParseCSVWithWorker(options) {
|
|
1154
1234
|
var _a, _b;
|
|
1155
1235
|
const csvOptions = options;
|
|
1156
|
-
return (((_a = csvOptions == null ? void 0 : csvOptions.csv) == null ? void 0 : _a.shape) ?? ((_b = csvOptions == null ? void 0 : csvOptions.core) == null ? void 0 : _b.shape)) === "arrow
|
|
1236
|
+
return (((_a = csvOptions == null ? void 0 : csvOptions.csv) == null ? void 0 : _a.shape) ?? ((_b = csvOptions == null ? void 0 : csvOptions.core) == null ? void 0 : _b.shape)) === "arrow";
|
|
1157
1237
|
}
|
|
1158
1238
|
function isLoaderWithWorkerResultDeserializer(loader) {
|
|
1159
1239
|
return typeof loader.deserializeWorkerResult === "function";
|
|
1160
1240
|
}
|
|
1241
|
+
function isDisabledLog(logger) {
|
|
1242
|
+
return logger === null || logger instanceof NullLog;
|
|
1243
|
+
}
|
|
1161
1244
|
|
|
1162
1245
|
// dist/loader-utils/lib/worker-loader-utils/encode-with-worker.js
|
|
1163
1246
|
function canEncodeWithWorker(writer, options) {
|
|
@@ -2277,7 +2360,7 @@ function createAuthenticatedFetch(options) {
|
|
|
2277
2360
|
}
|
|
2278
2361
|
function getAuthenticatedFetch(options = {}) {
|
|
2279
2362
|
var _a, _b, _c;
|
|
2280
|
-
const fetchOption =
|
|
2363
|
+
const fetchOption = (_a = options.core) == null ? void 0 : _a.fetch;
|
|
2281
2364
|
let fetchFunction;
|
|
2282
2365
|
if (typeof fetchOption === "function") {
|
|
2283
2366
|
fetchFunction = fetchOption;
|
|
@@ -5398,14 +5481,14 @@ var Byte14Decompressor = class {
|
|
|
5398
5481
|
};
|
|
5399
5482
|
function createPointDecompressor(stream, metadata, outputMode, selection) {
|
|
5400
5483
|
const extraByteCount = getExtraByteCount(metadata);
|
|
5401
|
-
for (const
|
|
5484
|
+
for (const version3 of [
|
|
5402
5485
|
metadata.point10ItemVersion,
|
|
5403
5486
|
metadata.gpsTime11ItemVersion,
|
|
5404
5487
|
metadata.rgb12ItemVersion,
|
|
5405
5488
|
metadata.byteItemVersion
|
|
5406
5489
|
]) {
|
|
5407
|
-
if (
|
|
5408
|
-
throw new Error(`Unsupported legacy LASzip item version ${
|
|
5490
|
+
if (version3 !== void 0 && version3 !== 1 && version3 !== 2) {
|
|
5491
|
+
throw new Error(`Unsupported legacy LASzip item version ${version3}`);
|
|
5409
5492
|
}
|
|
5410
5493
|
}
|
|
5411
5494
|
switch (metadata.pointDataRecordFormat) {
|
|
@@ -8709,7 +8792,7 @@ function validateMetadata(rawBytes, metadata) {
|
|
|
8709
8792
|
metadata.gpsTime11ItemVersion,
|
|
8710
8793
|
metadata.rgb12ItemVersion,
|
|
8711
8794
|
metadata.byteItemVersion
|
|
8712
|
-
].some((
|
|
8795
|
+
].some((version3) => version3 !== void 0 && version3 !== 2)) {
|
|
8713
8796
|
throw new Error("TypeScript LAZ encoder only supports legacy item version 2");
|
|
8714
8797
|
}
|
|
8715
8798
|
if (!Number.isInteger(metadata.pointCount) || metadata.pointCount < 0) {
|
|
@@ -9126,14 +9209,14 @@ var CachedUriResolver = class {
|
|
|
9126
9209
|
};
|
|
9127
9210
|
|
|
9128
9211
|
// dist/loader-utils/json-loader.js
|
|
9129
|
-
var
|
|
9212
|
+
var VERSION3 = true ? "5.0.0-rc.1" : "latest";
|
|
9130
9213
|
var JSONLoader = {
|
|
9131
9214
|
dataType: null,
|
|
9132
9215
|
batchType: null,
|
|
9133
9216
|
name: "JSON",
|
|
9134
9217
|
id: "json",
|
|
9135
9218
|
module: "json",
|
|
9136
|
-
version:
|
|
9219
|
+
version: VERSION3,
|
|
9137
9220
|
encoding: "json",
|
|
9138
9221
|
format: "json",
|
|
9139
9222
|
extensions: ["json", "geojson"],
|
|
@@ -9925,7 +10008,10 @@ var NodeFileSystemFacade = class {
|
|
|
9925
10008
|
|
|
9926
10009
|
// dist/loader-utils/source-types.js
|
|
9927
10010
|
function isSourceLoader(loader) {
|
|
9928
|
-
return Boolean(loader && typeof loader === "object" && "
|
|
10011
|
+
return Boolean(loader && typeof loader === "object" && "createDataSourceSync" in loader && "fromUrl" in loader && "testURL" in loader);
|
|
10012
|
+
}
|
|
10013
|
+
function supportsSourceCreation(loader) {
|
|
10014
|
+
return Boolean(loader.createDataSourceSync || loader.preload && loader.fromUrl !== void 0);
|
|
9929
10015
|
}
|
|
9930
10016
|
|
|
9931
10017
|
// dist/loader-utils/lib/sources/data-source.js
|
|
@@ -10008,7 +10094,7 @@ var DataSource = class _DataSource {
|
|
|
10008
10094
|
if (callback) {
|
|
10009
10095
|
callback(normalizedError, this);
|
|
10010
10096
|
} else {
|
|
10011
|
-
|
|
10097
|
+
getLoaderLog(this.options).warn(`${this.constructor.name}: ${normalizedError.message}`)();
|
|
10012
10098
|
}
|
|
10013
10099
|
return normalizedError;
|
|
10014
10100
|
}
|
|
@@ -10032,16 +10118,6 @@ function getSourceLoaderOptions(options) {
|
|
|
10032
10118
|
delete loadOptions.core;
|
|
10033
10119
|
}
|
|
10034
10120
|
}
|
|
10035
|
-
const topLevelBaseUri = typeof loadOptions.baseUri === "string" ? loadOptions.baseUri : void 0;
|
|
10036
|
-
const topLevelBaseUrl = typeof loadOptions.baseUrl === "string" ? loadOptions.baseUrl : void 0;
|
|
10037
|
-
if (topLevelBaseUri !== void 0 || topLevelBaseUrl !== void 0) {
|
|
10038
|
-
loadOptions.core ||= {};
|
|
10039
|
-
if (loadOptions.core.baseUrl === void 0) {
|
|
10040
|
-
loadOptions.core.baseUrl = topLevelBaseUrl ?? topLevelBaseUri;
|
|
10041
|
-
}
|
|
10042
|
-
delete loadOptions.baseUri;
|
|
10043
|
-
delete loadOptions.baseUrl;
|
|
10044
|
-
}
|
|
10045
10121
|
return loadOptions;
|
|
10046
10122
|
}
|
|
10047
10123
|
function normalizeError(error, message) {
|
|
@@ -10055,7 +10131,7 @@ function normalizeError(error, message) {
|
|
|
10055
10131
|
}
|
|
10056
10132
|
function unavailableCoreApiMethod(methodName) {
|
|
10057
10133
|
return () => {
|
|
10058
|
-
throw new Error(`CoreAPI.${methodName} is unavailable. Use @loaders.gl/core.
|
|
10134
|
+
throw new Error(`CoreAPI.${methodName} is unavailable. Use @loaders.gl/core.createDataSourceSync().`);
|
|
10059
10135
|
};
|
|
10060
10136
|
}
|
|
10061
10137
|
function getDataSourceName(data, options) {
|
|
@@ -10864,6 +10940,7 @@ function createScanQueryMetadata(options) {
|
|
|
10864
10940
|
metadata: field.metadata || Object.freeze({})
|
|
10865
10941
|
});
|
|
10866
10942
|
});
|
|
10943
|
+
const queryCapabilities = Object.freeze({ ...options.capabilities });
|
|
10867
10944
|
return Object.freeze({
|
|
10868
10945
|
sourceType: options.sourceType,
|
|
10869
10946
|
queryType: options.queryType,
|
|
@@ -10872,7 +10949,9 @@ function createScanQueryMetadata(options) {
|
|
|
10872
10949
|
description: options.description,
|
|
10873
10950
|
schema,
|
|
10874
10951
|
columns: Object.freeze(columns),
|
|
10875
|
-
capabilities:
|
|
10952
|
+
capabilities: queryCapabilities,
|
|
10953
|
+
queryCapabilities,
|
|
10954
|
+
...options.hasDefaultRowWindow ? { hasDefaultRowWindow: true } : {},
|
|
10876
10955
|
spatial: options.spatial ? Object.freeze({
|
|
10877
10956
|
...options.spatial,
|
|
10878
10957
|
bounds: options.spatial.bounds ? Object.freeze({
|
|
@@ -10909,6 +10988,13 @@ function getNonEmptyMetadataValue(metadata, key) {
|
|
|
10909
10988
|
const value = metadata == null ? void 0 : metadata[key];
|
|
10910
10989
|
return value || void 0;
|
|
10911
10990
|
}
|
|
10991
|
+
function createQueryMetadata(options) {
|
|
10992
|
+
const { queryCapabilities, ...metadataOptions } = options;
|
|
10993
|
+
return createScanQueryMetadata({
|
|
10994
|
+
...metadataOptions,
|
|
10995
|
+
capabilities: queryCapabilities
|
|
10996
|
+
});
|
|
10997
|
+
}
|
|
10912
10998
|
|
|
10913
10999
|
// dist/loader-utils/lib/scan-utils/table-query.js
|
|
10914
11000
|
function planTableQuery(sourceColumnNames, options = {}) {
|
|
@@ -10952,14 +11038,18 @@ function validateTableQueryLimit(limit) {
|
|
|
10952
11038
|
throw new Error("Table query limit must be a non-negative safe integer.");
|
|
10953
11039
|
}
|
|
10954
11040
|
}
|
|
11041
|
+
function validateTableQueryOffset(offset) {
|
|
11042
|
+
if (offset !== void 0 && (!Number.isSafeInteger(offset) || offset < 0)) {
|
|
11043
|
+
throw new Error("Table query offset must be a non-negative safe integer.");
|
|
11044
|
+
}
|
|
11045
|
+
}
|
|
10955
11046
|
|
|
10956
11047
|
// dist/loader-utils/lib/scan-utils/table-scan-batch.js
|
|
10957
|
-
function makeTableScanBatch(table) {
|
|
10958
|
-
return { ...table, batchType: "data", length: table.data.numRows };
|
|
10959
|
-
}
|
|
10960
11048
|
async function* executeTableScanBatches(readBatches, options = {}, operators = {}) {
|
|
10961
11049
|
var _a, _b, _c, _d, _e;
|
|
10962
11050
|
validateTableQueryLimit(options.limit);
|
|
11051
|
+
validateTableQueryOffset(options.offset);
|
|
11052
|
+
let skip = options.offset ?? 0;
|
|
10963
11053
|
const startedAt = Date.now();
|
|
10964
11054
|
let sourcesRead = 0;
|
|
10965
11055
|
let batchesRead = 0;
|
|
@@ -10986,30 +11076,34 @@ async function* executeTableScanBatches(readBatches, options = {}, operators = {
|
|
|
10986
11076
|
}
|
|
10987
11077
|
(_b = options.signal) == null ? void 0 : _b.throwIfAborted();
|
|
10988
11078
|
batchesRead++;
|
|
10989
|
-
|
|
10990
|
-
|
|
11079
|
+
const rowCount = getScanBatchRowCount(batch);
|
|
11080
|
+
rowsRead += rowCount;
|
|
11081
|
+
if (options.predicate && !operators.filter && !("shape" in batch)) {
|
|
11082
|
+
throw new Error("Native Arrow scans require a filter kernel for residual predicates.");
|
|
11083
|
+
}
|
|
11084
|
+
const filteredBatch = operators.filter ? await operators.filter(batch, options.predicate, options.signal) : "shape" in batch ? filterTableBatch(batch, options.predicate) : batch;
|
|
10991
11085
|
(_c = options.signal) == null ? void 0 : _c.throwIfAborted();
|
|
11086
|
+
const filteredRowCount = getScanBatchRowCount(filteredBatch);
|
|
10992
11087
|
if (options.predicate) {
|
|
10993
|
-
rowsTested +=
|
|
10994
|
-
rowsRetained +=
|
|
10995
|
-
}
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
const outputBatch = truncateTableBatch(projectedBatch, remaining);
|
|
11008
|
-
rowsReturned += outputBatch.length;
|
|
11088
|
+
rowsTested += rowCount;
|
|
11089
|
+
rowsRetained += filteredRowCount;
|
|
11090
|
+
}
|
|
11091
|
+
if (skip >= filteredRowCount && (skip > 0 || options.skipEmptyBatches)) {
|
|
11092
|
+
skip -= filteredRowCount;
|
|
11093
|
+
continue;
|
|
11094
|
+
}
|
|
11095
|
+
const end = Math.min(filteredRowCount, skip + remaining);
|
|
11096
|
+
const window2 = skip || end < filteredRowCount ? "shape" in filteredBatch ? sliceTableBatch(filteredBatch, skip, end) : filteredBatch.slice(skip, end) : filteredBatch;
|
|
11097
|
+
skip = 0;
|
|
11098
|
+
const output = operators.project ? operators.project(window2, options.columns) : projectTableBatch(window2, options.columns);
|
|
11099
|
+
remaining -= getScanBatchRowCount(window2);
|
|
11100
|
+
rowsReturned += getScanBatchRowCount(output);
|
|
11101
|
+
if (remaining === 0)
|
|
11009
11102
|
earlyTerminationReason = "limit";
|
|
11010
|
-
|
|
11103
|
+
yield output;
|
|
11104
|
+
if (remaining === 0)
|
|
11011
11105
|
return;
|
|
11012
|
-
|
|
11106
|
+
(_d = options.signal) == null ? void 0 : _d.throwIfAborted();
|
|
11013
11107
|
}
|
|
11014
11108
|
status = "completed";
|
|
11015
11109
|
} catch (error) {
|
|
@@ -11040,27 +11134,36 @@ async function* executeTableScanBatches(readBatches, options = {}, operators = {
|
|
|
11040
11134
|
}));
|
|
11041
11135
|
}
|
|
11042
11136
|
}
|
|
11137
|
+
function getScanBatchRowCount(batch) {
|
|
11138
|
+
return "shape" in batch ? batch.length : batch.numRows;
|
|
11139
|
+
}
|
|
11043
11140
|
function truncateTableBatch(batch, length) {
|
|
11141
|
+
return "shape" in batch ? sliceTableBatch(batch, 0, length) : batch.slice(0, length);
|
|
11142
|
+
}
|
|
11143
|
+
function sliceTableBatch(batch, start, end) {
|
|
11144
|
+
const length = end - start;
|
|
11044
11145
|
if (batch.shape === "object-row-table" || batch.shape === "array-row-table") {
|
|
11045
|
-
return { ...batch, data: batch.data.slice(
|
|
11146
|
+
return { ...batch, data: batch.data.slice(start, end), length };
|
|
11046
11147
|
}
|
|
11047
11148
|
if (batch.shape === "columnar-table") {
|
|
11048
11149
|
return {
|
|
11049
11150
|
...batch,
|
|
11050
11151
|
data: Object.fromEntries(Object.entries(batch.data).map(([name, values]) => [
|
|
11051
11152
|
name,
|
|
11052
|
-
Array.from(values).slice(
|
|
11153
|
+
Array.from(values).slice(start, end)
|
|
11053
11154
|
])),
|
|
11054
11155
|
length
|
|
11055
11156
|
};
|
|
11056
11157
|
}
|
|
11057
|
-
|
|
11058
|
-
return { ...batch, data: batch.data.slice(0, length), length };
|
|
11059
|
-
return { ...batch, features: batch.features.slice(0, length), length };
|
|
11158
|
+
return { ...batch, features: batch.features.slice(start, end), length };
|
|
11060
11159
|
}
|
|
11061
11160
|
function projectTableBatch(batch, columns) {
|
|
11062
11161
|
if (columns === void 0)
|
|
11063
11162
|
return batch;
|
|
11163
|
+
if (!("shape" in batch)) {
|
|
11164
|
+
const indices = columns.map((column) => batch.schema.fields.findIndex((field) => field.name === column)).filter((index) => index >= 0);
|
|
11165
|
+
return batch.selectAt(indices);
|
|
11166
|
+
}
|
|
11064
11167
|
const schema = projectTableSchema(batch, columns);
|
|
11065
11168
|
if (batch.shape === "object-row-table") {
|
|
11066
11169
|
return {
|
|
@@ -11076,8 +11179,6 @@ function projectTableBatch(batch, columns) {
|
|
|
11076
11179
|
data: Object.fromEntries(columns.map((column) => [column, batch.data[column]]))
|
|
11077
11180
|
};
|
|
11078
11181
|
}
|
|
11079
|
-
if (batch.shape === "arrow-table")
|
|
11080
|
-
return { ...batch, schema, data: batch.data.select([...columns]) };
|
|
11081
11182
|
return batch;
|
|
11082
11183
|
}
|
|
11083
11184
|
function projectTableSchema(batch, columns) {
|
|
@@ -11556,6 +11657,16 @@ function getTileGridValidation(grid) {
|
|
|
11556
11657
|
message: error instanceof Error ? error.message : "Invalid tile grid limits."
|
|
11557
11658
|
});
|
|
11558
11659
|
}
|
|
11660
|
+
if (matrixSet && !issues.length) {
|
|
11661
|
+
try {
|
|
11662
|
+
(0, import_geospatial.validateTileMatrixSet)(matrixSet, grid.limits);
|
|
11663
|
+
} catch (error) {
|
|
11664
|
+
issues.push({
|
|
11665
|
+
code: "invalid-matrix",
|
|
11666
|
+
message: error instanceof Error ? error.message : "Invalid tile matrix set."
|
|
11667
|
+
});
|
|
11668
|
+
}
|
|
11669
|
+
}
|
|
11559
11670
|
const invalid = issues.some((issue) => issue.code !== "missing-crs" && issue.code !== "missing-geometry");
|
|
11560
11671
|
return { status: invalid ? "invalid" : issues.length ? "partial" : "complete", issues };
|
|
11561
11672
|
}
|
|
@@ -11574,12 +11685,17 @@ function validateTileGridLimits(grid) {
|
|
|
11574
11685
|
throw new RangeError("Tile matrix limits require an array.");
|
|
11575
11686
|
const identifiers = /* @__PURE__ */ new Set();
|
|
11576
11687
|
const matrices = ((_a = grid.tileMatrixSet) == null ? void 0 : _a.matrices) ?? grid.matrices;
|
|
11688
|
+
const matrixById = Array.isArray(matrices) ? new Map(matrices.map((matrix) => [matrix == null ? void 0 : matrix.id, matrix])) : void 0;
|
|
11577
11689
|
for (const limit of grid.limits) {
|
|
11578
|
-
if (!limit || typeof limit.tileMatrix !== "string" || !limit.tileMatrix || identifiers.has(limit.tileMatrix)
|
|
11579
|
-
throw new RangeError("
|
|
11690
|
+
if (!limit || typeof limit.tileMatrix !== "string" || !limit.tileMatrix || identifiers.has(limit.tileMatrix))
|
|
11691
|
+
throw new RangeError("Tile matrix limits require unique nonempty matrix identifiers.");
|
|
11580
11692
|
identifiers.add(limit.tileMatrix);
|
|
11581
|
-
|
|
11582
|
-
|
|
11693
|
+
if (![limit.minTileColumn, limit.maxTileColumn, limit.minTileRow, limit.maxTileRow].every((value) => Number.isSafeInteger(value) && value >= 0))
|
|
11694
|
+
throw new RangeError("Tile matrix limits require nonnegative safe integers.");
|
|
11695
|
+
if (limit.minTileColumn > limit.maxTileColumn || limit.minTileRow > limit.maxTileRow)
|
|
11696
|
+
throw new RangeError("Tile matrix limits have reversed bounds.");
|
|
11697
|
+
const matrix = matrixById == null ? void 0 : matrixById.get(limit.tileMatrix);
|
|
11698
|
+
if (matrixById && !matrix)
|
|
11583
11699
|
throw new RangeError("Tile matrix limits reference an unknown matrix.");
|
|
11584
11700
|
if ((matrix == null ? void 0 : matrix.matrixSize) && (limit.maxTileColumn >= matrix.matrixSize[0] || limit.maxTileRow >= matrix.matrixSize[1]))
|
|
11585
11701
|
throw new RangeError("Tile matrix limits exceed matrix dimensions.");
|
|
@@ -11603,11 +11719,8 @@ function resolveTileGridTile(grid, parameters) {
|
|
|
11603
11719
|
if ((matrix == null ? void 0 : matrix.matrixSize) && (parameters.x >= matrix.matrixSize[0] || parameters.y >= matrix.matrixSize[1]))
|
|
11604
11720
|
return null;
|
|
11605
11721
|
if (matrix && grid.tileMatrixSet) {
|
|
11606
|
-
const
|
|
11607
|
-
|
|
11608
|
-
if (!ranges.length)
|
|
11609
|
-
return null;
|
|
11610
|
-
return { ...parameters, x: ranges[0].minTileColumn, tileMatrix };
|
|
11722
|
+
const index = (0, import_geospatial.resolveTileIndex)(matrix, parameters.x, parameters.y, limits);
|
|
11723
|
+
return index ? { ...parameters, x: index[0], tileMatrix } : null;
|
|
11611
11724
|
}
|
|
11612
11725
|
if ((_c = matrix == null ? void 0 : matrix.variableMatrixWidths) == null ? void 0 : _c.length)
|
|
11613
11726
|
throw new RangeError("Coalesced tile requests require complete geometry.");
|
|
@@ -12044,7 +12157,7 @@ function normalizeTableQuery(sourceColumnNames, query = {}) {
|
|
|
12044
12157
|
throw new Error("Table query must be an object.");
|
|
12045
12158
|
}
|
|
12046
12159
|
for (const key of Object.keys(query)) {
|
|
12047
|
-
if (!["from", "select", "where", "limit"].includes(key)) {
|
|
12160
|
+
if (!["from", "select", "where", "offset", "limit"].includes(key)) {
|
|
12048
12161
|
throw new Error(`Unsupported table query option: ${key}`);
|
|
12049
12162
|
}
|
|
12050
12163
|
}
|
|
@@ -12052,6 +12165,7 @@ function normalizeTableQuery(sourceColumnNames, query = {}) {
|
|
|
12052
12165
|
throw new Error("Table query select must be a non-empty array.");
|
|
12053
12166
|
}
|
|
12054
12167
|
validateTableReference(query.from);
|
|
12168
|
+
validateTableQueryOffset(query.offset);
|
|
12055
12169
|
validateTableQueryLimit(query.limit);
|
|
12056
12170
|
if (query.where !== void 0) {
|
|
12057
12171
|
validateColumnarPredicate(query.where, new Set(sourceColumnNames));
|
|
@@ -12087,6 +12201,7 @@ function normalizeTableQuery(sourceColumnNames, query = {}) {
|
|
|
12087
12201
|
select: Object.freeze(select),
|
|
12088
12202
|
...query.from === void 0 ? {} : { from: typeof query.from === "string" ? query.from : Object.freeze({ ...query.from }) },
|
|
12089
12203
|
...query.where === void 0 ? {} : { where: query.where },
|
|
12204
|
+
...query.offset === void 0 ? {} : { offset: query.offset },
|
|
12090
12205
|
...query.limit === void 0 ? {} : { limit: query.limit }
|
|
12091
12206
|
});
|
|
12092
12207
|
}
|
|
@@ -12097,7 +12212,15 @@ function planLogicalTableQuery(sourceColumnNames, query = {}) {
|
|
|
12097
12212
|
predicate: normalized.where,
|
|
12098
12213
|
limit: normalized.limit
|
|
12099
12214
|
});
|
|
12100
|
-
|
|
12215
|
+
const steps = [];
|
|
12216
|
+
for (const step of plan) {
|
|
12217
|
+
if (step.kind === "limit" && normalized.offset !== void 0)
|
|
12218
|
+
steps.push(Object.freeze({ kind: "offset", offset: normalized.offset }));
|
|
12219
|
+
steps.push(step.kind === "project" ? Object.freeze({ kind: "project", select: normalized.select }) : step);
|
|
12220
|
+
}
|
|
12221
|
+
if (normalized.limit === void 0 && normalized.offset !== void 0)
|
|
12222
|
+
steps.push(Object.freeze({ kind: "offset", offset: normalized.offset }));
|
|
12223
|
+
return Object.freeze(steps);
|
|
12101
12224
|
}
|
|
12102
12225
|
function validateTableReference(reference) {
|
|
12103
12226
|
if (reference === void 0)
|
|
@@ -12163,4 +12286,50 @@ async function readRangeResponse(response, offset, length, signal) {
|
|
|
12163
12286
|
reader.releaseLock();
|
|
12164
12287
|
}
|
|
12165
12288
|
}
|
|
12289
|
+
|
|
12290
|
+
// dist/loader-utils/lib/pace-batch-iterator.js
|
|
12291
|
+
function validateBatchDeliveryRate(rate) {
|
|
12292
|
+
if (!Number.isFinite(rate) || rate < 0) {
|
|
12293
|
+
throw new RangeError("core.batchMaxRowsPerSecond must be a finite nonnegative number");
|
|
12294
|
+
}
|
|
12295
|
+
}
|
|
12296
|
+
async function* paceBatchIterator(batches, { batchMaxRowsPerSecond = 0, getRowCount, signal }) {
|
|
12297
|
+
validateBatchDeliveryRate(batchMaxRowsPerSecond);
|
|
12298
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
12299
|
+
if (batchMaxRowsPerSecond === 0) {
|
|
12300
|
+
yield* batches;
|
|
12301
|
+
return;
|
|
12302
|
+
}
|
|
12303
|
+
let deadline = 0;
|
|
12304
|
+
for await (const batch of batches) {
|
|
12305
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
12306
|
+
const rowCount = getRowCount(batch);
|
|
12307
|
+
if (rowCount !== void 0 && rowCount > 0) {
|
|
12308
|
+
let remaining = deadline - performance.now();
|
|
12309
|
+
while (remaining > 0) {
|
|
12310
|
+
await waitForBatch(Math.min(Math.ceil(remaining), 2 ** 31 - 1), signal);
|
|
12311
|
+
remaining = deadline - performance.now();
|
|
12312
|
+
}
|
|
12313
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
12314
|
+
deadline = performance.now() + rowCount / batchMaxRowsPerSecond * 1e3;
|
|
12315
|
+
}
|
|
12316
|
+
yield batch;
|
|
12317
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
12318
|
+
}
|
|
12319
|
+
}
|
|
12320
|
+
function waitForBatch(delay, signal) {
|
|
12321
|
+
signal == null ? void 0 : signal.throwIfAborted();
|
|
12322
|
+
return new Promise((resolve2, reject) => {
|
|
12323
|
+
const timer = setTimeout(() => {
|
|
12324
|
+
signal == null ? void 0 : signal.removeEventListener("abort", abort);
|
|
12325
|
+
resolve2();
|
|
12326
|
+
}, delay);
|
|
12327
|
+
function abort() {
|
|
12328
|
+
clearTimeout(timer);
|
|
12329
|
+
signal == null ? void 0 : signal.removeEventListener("abort", abort);
|
|
12330
|
+
reject(signal == null ? void 0 : signal.reason);
|
|
12331
|
+
}
|
|
12332
|
+
signal == null ? void 0 : signal.addEventListener("abort", abort, { once: true });
|
|
12333
|
+
});
|
|
12334
|
+
}
|
|
12166
12335
|
//# sourceMappingURL=index.cjs.map
|