@@ -261,7 +261,7 @@ function __wbg_adapter_52(arg0, arg1, arg2) {
261261 wasm . closure326_externref_shim ( arg0 , arg1 , arg2 ) ;
262262}
263263
264- function __wbg_adapter_188 ( arg0 , arg1 , arg2 , arg3 ) {
264+ function __wbg_adapter_190 ( arg0 , arg1 , arg2 , arg3 ) {
265265 wasm . closure357_externref_shim ( arg0 , arg1 , arg2 , arg3 ) ;
266266}
267267
@@ -404,6 +404,21 @@ export class HttpFcbReader {
404404 const ret = wasm . httpfcbreader_select_spatial ( ptr , query . __wbg_ptr ) ;
405405 return ret ;
406406 }
407+ /**
408+ * Select features within a bounding box with optional pagination.
409+ * If `limit`/`offset` are provided, only a page of features is returned while
410+ * `features_count()` on the returned iterator still reflects the total number of matches.
411+ * @param {WasmSpatialQuery } query
412+ * @param {number | null } [limit]
413+ * @param {number | null } [offset]
414+ * @returns {Promise<AsyncFeatureIter> }
415+ */
416+ select_spatial_paged ( query , limit , offset ) {
417+ const ptr = this . __destroy_into_raw ( ) ;
418+ _assertClass ( query , WasmSpatialQuery ) ;
419+ const ret = wasm . httpfcbreader_select_spatial_paged ( ptr , query . __wbg_ptr , isLikeNone ( limit ) ? 0x100000001 : ( limit ) >>> 0 , isLikeNone ( offset ) ? 0x100000001 : ( offset ) >>> 0 ) ;
420+ return ret ;
421+ }
407422 /**
408423 * @param {WasmAttrQuery } query
409424 * @returns {Promise<AsyncFeatureIter> }
@@ -414,6 +429,19 @@ export class HttpFcbReader {
414429 const ret = wasm . httpfcbreader_select_attr_query ( ptr , query . __wbg_ptr ) ;
415430 return ret ;
416431 }
432+ /**
433+ * Attribute query with optional pagination.
434+ * @param {WasmAttrQuery } query
435+ * @param {number | null } [limit]
436+ * @param {number | null } [offset]
437+ * @returns {Promise<AsyncFeatureIter> }
438+ */
439+ select_attr_query_paged ( query , limit , offset ) {
440+ const ptr = this . __destroy_into_raw ( ) ;
441+ _assertClass ( query , WasmAttrQuery ) ;
442+ const ret = wasm . httpfcbreader_select_attr_query_paged ( ptr , query . __wbg_ptr , isLikeNone ( limit ) ? 0x100000001 : ( limit ) >>> 0 , isLikeNone ( offset ) ? 0x100000001 : ( offset ) >>> 0 ) ;
443+ return ret ;
444+ }
417445}
418446
419447const WasmAttrQueryFinalization = ( typeof FinalizationRegistry === 'undefined' )
@@ -771,7 +799,7 @@ function __wbg_get_imports() {
771799 const a = state0 . a ;
772800 state0 . a = 0 ;
773801 try {
774- return __wbg_adapter_188 ( a , state0 . b , arg0 , arg1 ) ;
802+ return __wbg_adapter_190 ( a , state0 . b , arg0 , arg1 ) ;
775803 } finally {
776804 state0 . a = a ;
777805 }
@@ -960,7 +988,7 @@ function __wbg_get_imports() {
960988 const ret = false ;
961989 return ret ;
962990 } ;
963- imports . wbg . __wbindgen_closure_wrapper1223 = function ( arg0 , arg1 , arg2 ) {
991+ imports . wbg . __wbindgen_closure_wrapper1244 = function ( arg0 , arg1 , arg2 ) {
964992 const ret = makeMutClosure ( arg0 , arg1 , 327 , __wbg_adapter_52 ) ;
965993 return ret ;
966994 } ;
0 commit comments