Skip to content

Commit 04b998d

Browse files
Fix tileExtent bug
1 parent 5681967 commit 04b998d

7 files changed

Lines changed: 8 additions & 9 deletions

File tree

lib/TileDBQuery/TileDBQuery.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export declare class TileDBQuery {
258258
results: Record<string, any>;
259259
queryAsArrayBuffer: ArrayBuffer;
260260
}>;
261-
ReadQuery(namespace: string, arrayName: string, body: QueryData, arraySchema?: ArraySchema, queryObj?: any): AsyncGenerator<{}, void, unknown>;
261+
ReadQuery(namespace: string, arrayName: string, body: QueryData, arraySchema?: ArraySchema): AsyncGenerator<{}, void, unknown>;
262262
private getResultsFromArrayBuffer;
263263
private throwError;
264264
ArrayOpen(namespace: string, array: string, queryType: Querytype): Promise<ArrayData>;

lib/TileDBQuery/TileDBQuery.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/TileDBQuery/TileDBQuery.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/utils/serialization/capnpQuerySerializer/capnpQuerySerializer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/utils/serialization/capnpQuerySerializer/capnpQuerySerializer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/TileDBQuery/TileDBQuery.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export class TileDBQuery {
196196
arrayName: string,
197197
body: QueryData,
198198
arraySchema?: ArraySchema,
199-
queryObj?: any,
200199
) {
201200
try {
202201
// Get ArraySchema of arrray, to get type information of the dimensions and the attributes
@@ -219,7 +218,7 @@ export class TileDBQuery {
219218
* Get the query response in capnp, we set responseType to arraybuffer instead of JSON
220219
* in order to deserialize the query capnp object.
221220
*/
222-
const queryJSON = queryObj ? queryObj : dataToQuery(
221+
const queryJSON = dataToQuery(
223222
body,
224223
arraySchema,
225224
arrayStruct,

src/utils/serialization/capnpQuerySerializer/capnpQuerySerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ const serializeDimension = (
961961
serializeDomainArray(dimensionCapnp.initDomain(), dimension.domain);
962962
}
963963
const { tileExtent } = dimension;
964-
if (tileExtent) {
964+
if (!tileExtent) {
965965
return;
966966
}
967967

0 commit comments

Comments
 (0)