geo-polygonize 0.10.0 → 0.11.0

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.
@@ -503,6 +503,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
503
503
  }
504
504
  }
505
505
 
506
+ /**
507
+ * @param {Uint8Array} ipc_bytes
508
+ * @param {any} options_val
509
+ * @returns {Uint8Array}
510
+ */
511
+ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
512
+ const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
513
+ const len0 = WASM_VECTOR_LEN;
514
+ const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
515
+ if (ret[3]) {
516
+ throw takeFromExternrefTable0(ret[2]);
517
+ }
518
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
519
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
520
+ return v2;
521
+ }
522
+
506
523
  /**
507
524
  * @param {string} geojson_str
508
525
  * @param {any} options_val
@@ -932,6 +949,7 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
932
949
  initSync: initSync,
933
950
  initThreadPool: initThreadPool,
934
951
  polygonize: polygonize,
952
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
935
953
  polygonizeWithOptions: polygonizeWithOptions,
936
954
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
937
955
  polygonize_buffers: polygonize_buffers,
@@ -940,4 +958,4 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
940
958
  wbg_rayon_start_worker: wbg_rayon_start_worker
941
959
  });
942
960
 
943
- export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
961
+ export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geo-polygonize",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "A native Rust port of the JTS/GEOS polygonization algorithm (Wasm)",
5
5
  "type": "module",
6
6
  "scripts": {