@loaders.gl/scan 5.0.0-alpha.6 → 5.0.0-alpha.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loaders.gl/scan",
3
3
  "description": "Optional scan planning and execution for loaders.gl",
4
- "version": "5.0.0-alpha.6",
4
+ "version": "5.0.0-alpha.8",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "publishConfig": {
@@ -54,13 +54,13 @@
54
54
  "build-bundle": "ocular-bundle ./bundle.ts --output=dist/dist.min.js"
55
55
  },
56
56
  "dependencies": {
57
- "@loaders.gl/geoarrow": "5.0.0-alpha.6",
58
- "@loaders.gl/loader-utils": "5.0.0-alpha.6",
59
- "@loaders.gl/parquet": "5.0.0-alpha.6",
60
- "@loaders.gl/schema": "5.0.0-alpha.6",
61
- "@loaders.gl/schema-utils": "5.0.0-alpha.6",
62
- "@loaders.gl/sql": "5.0.0-alpha.6",
57
+ "@loaders.gl/geoarrow": "5.0.0-alpha.8",
58
+ "@loaders.gl/loader-utils": "5.0.0-alpha.8",
59
+ "@loaders.gl/parquet": "5.0.0-alpha.8",
60
+ "@loaders.gl/schema": "5.0.0-alpha.8",
61
+ "@loaders.gl/schema-utils": "5.0.0-alpha.8",
62
+ "@loaders.gl/sql": "5.0.0-alpha.8",
63
63
  "apache-arrow": ">= 17.0.0"
64
64
  },
65
- "gitHead": "9b9ea7738e0fe63e55c19c136283705f99e0b9bf"
65
+ "gitHead": "bdc4536ea5b7d074ea362e372704cbdb180126cc"
66
66
  }
@@ -123,6 +123,11 @@ export abstract class AddressedVectorTableScanSource {
123
123
  yield makeTableScanBatch(result);
124
124
  }
125
125
 
126
+ /** Scans the addressed query result through the same batch contract as `read()`. */
127
+ scan(options: ArrowQueryOptions = {}): AsyncIterableIterator<ArrowTableBatch> {
128
+ return this.read(options);
129
+ }
130
+
126
131
  /** Resolves and caches the addressed table while allowing failed loads to be retried. */
127
132
  private async getTable(signal?: AbortSignal): Promise<ArrowTable> {
128
133
  throwIfAborted(signal);
@@ -206,7 +211,8 @@ export class VectorFeatureTableScanSource extends AddressedVectorTableScanSource
206
211
  Object.freeze([...options.request.boundingBox[1]])
207
212
  ]) as GetFeaturesParameters['boundingBox']
208
213
  });
209
- const coordinateReferenceSystems = typeof request.crs === 'string' ? [request.crs] : undefined;
214
+ const boundsCrs = request.requestCrs || request.crs;
215
+ const coordinateReferenceSystems = typeof boundsCrs === 'string' ? [boundsCrs] : undefined;
210
216
  super(options, {
211
217
  sourceType: 'vector-feature-table',
212
218
  description: `Vector feature request for ${normalizeLayers(request.layers).join(', ')}`,