geo-polygonize 0.52.0 → 0.54.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.
Binary file
Binary file
@@ -184,6 +184,13 @@ class WasmPolygonResult {
184
184
  const ret = wasm.wasmpolygonresult_stride(this.__wbg_ptr);
185
185
  return ret;
186
186
  }
187
+ /**
188
+ * @returns {any}
189
+ */
190
+ get topology_fingerprint() {
191
+ const ret = wasm.wasmpolygonresult_topology_fingerprint(this.__wbg_ptr);
192
+ return ret;
193
+ }
187
194
  }
188
195
  if (Symbol.dispose) WasmPolygonResult.prototype[Symbol.dispose] = WasmPolygonResult.prototype.free;
189
196
 
@@ -216,6 +223,33 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
216
223
  }
217
224
  }
218
225
 
226
+ /**
227
+ * Returns the exact retained topology contract for a GeoJSON canonical-options call.
228
+ * @param {string} geojson_str
229
+ * @param {any} options_val
230
+ * @returns {string}
231
+ */
232
+ function polygonizeFingerprintWithOptions(geojson_str, options_val) {
233
+ let deferred3_0;
234
+ let deferred3_1;
235
+ try {
236
+ const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
237
+ const len0 = WASM_VECTOR_LEN;
238
+ const ret = wasm.polygonizeFingerprintWithOptions(ptr0, len0, options_val);
239
+ var ptr2 = ret[0];
240
+ var len2 = ret[1];
241
+ if (ret[3]) {
242
+ ptr2 = 0; len2 = 0;
243
+ throw takeFromExternrefTable0(ret[2]);
244
+ }
245
+ deferred3_0 = ptr2;
246
+ deferred3_1 = len2;
247
+ return getStringFromWasm0(ptr2, len2);
248
+ } finally {
249
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
250
+ }
251
+ }
252
+
219
253
  /**
220
254
  * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
221
255
  *
@@ -508,6 +542,10 @@ function __wbg_get_imports() {
508
542
  const ret = new Error();
509
543
  return ret;
510
544
  },
545
+ __wbg_new_49d5571bd3f0c4d4: function() {
546
+ const ret = new Map();
547
+ return ret;
548
+ },
511
549
  __wbg_new_5f486cdf45a04d78: function(arg0) {
512
550
  const ret = new Uint8Array(arg0);
513
551
  return ret;
@@ -553,6 +591,10 @@ function __wbg_get_imports() {
553
591
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
554
592
  arg0[arg1] = arg2;
555
593
  },
594
+ __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
595
+ const ret = arg0.set(arg1, arg2);
596
+ return ret;
597
+ },
556
598
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
557
599
  const ret = arg1.stack;
558
600
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -941,6 +983,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
941
983
  default: __wbg_init,
942
984
  initSync: initSync,
943
985
  polygonize: polygonize,
986
+ polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
944
987
  polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
945
988
  polygonizeWithOptions: polygonizeWithOptions,
946
989
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
@@ -1013,6 +1056,7 @@ exports.cfbRobustOptions = cfbRobustOptions;
1013
1056
  exports.initBest = initBest;
1014
1057
  exports.initSync = initSync;
1015
1058
  exports.polygonize = polygonize;
1059
+ exports.polygonizeFingerprintWithOptions = polygonizeFingerprintWithOptions;
1016
1060
  exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions;
1017
1061
  exports.polygonizeWithOptions = polygonizeWithOptions;
1018
1062
  exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer;
@@ -181,6 +181,13 @@ class WasmPolygonResult {
181
181
  const ret = wasm.wasmpolygonresult_stride(this.__wbg_ptr);
182
182
  return ret;
183
183
  }
184
+ /**
185
+ * @returns {any}
186
+ */
187
+ get topology_fingerprint() {
188
+ const ret = wasm.wasmpolygonresult_topology_fingerprint(this.__wbg_ptr);
189
+ return ret;
190
+ }
184
191
  }
185
192
  if (Symbol.dispose) WasmPolygonResult.prototype[Symbol.dispose] = WasmPolygonResult.prototype.free;
186
193
 
@@ -213,6 +220,33 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
213
220
  }
214
221
  }
215
222
 
223
+ /**
224
+ * Returns the exact retained topology contract for a GeoJSON canonical-options call.
225
+ * @param {string} geojson_str
226
+ * @param {any} options_val
227
+ * @returns {string}
228
+ */
229
+ function polygonizeFingerprintWithOptions(geojson_str, options_val) {
230
+ let deferred3_0;
231
+ let deferred3_1;
232
+ try {
233
+ const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
234
+ const len0 = WASM_VECTOR_LEN;
235
+ const ret = wasm.polygonizeFingerprintWithOptions(ptr0, len0, options_val);
236
+ var ptr2 = ret[0];
237
+ var len2 = ret[1];
238
+ if (ret[3]) {
239
+ ptr2 = 0; len2 = 0;
240
+ throw takeFromExternrefTable0(ret[2]);
241
+ }
242
+ deferred3_0 = ptr2;
243
+ deferred3_1 = len2;
244
+ return getStringFromWasm0(ptr2, len2);
245
+ } finally {
246
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
247
+ }
248
+ }
249
+
216
250
  /**
217
251
  * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
218
252
  *
@@ -505,6 +539,10 @@ function __wbg_get_imports() {
505
539
  const ret = new Error();
506
540
  return ret;
507
541
  },
542
+ __wbg_new_49d5571bd3f0c4d4: function() {
543
+ const ret = new Map();
544
+ return ret;
545
+ },
508
546
  __wbg_new_5f486cdf45a04d78: function(arg0) {
509
547
  const ret = new Uint8Array(arg0);
510
548
  return ret;
@@ -550,6 +588,10 @@ function __wbg_get_imports() {
550
588
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
551
589
  arg0[arg1] = arg2;
552
590
  },
591
+ __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
592
+ const ret = arg0.set(arg1, arg2);
593
+ return ret;
594
+ },
553
595
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
554
596
  const ret = arg1.stack;
555
597
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -938,6 +980,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
938
980
  default: __wbg_init,
939
981
  initSync: initSync,
940
982
  polygonize: polygonize,
983
+ polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
941
984
  polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
942
985
  polygonizeWithOptions: polygonizeWithOptions,
943
986
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
@@ -1004,4 +1047,4 @@ async function initBest(scalarModule, simdModule) {
1004
1047
  return scalarExports;
1005
1048
  }
1006
1049
 
1007
- export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, initBest, initSync, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow };
1050
+ export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, initBest, initSync, polygonize, polygonizeFingerprintWithOptions, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow };
@@ -28,10 +28,16 @@ export class WasmPolygonResult {
28
28
  readonly diagnostics: any;
29
29
  readonly invalid_rings: any;
30
30
  readonly provenance: any;
31
+ readonly topology_fingerprint: any;
31
32
  }
32
33
 
33
34
  export function polygonize(geojson_str: string, node_input?: boolean | null, snap_grid_size?: number | null, extract_only_polygonal?: boolean | null, report_mode?: boolean | null): string;
34
35
 
36
+ /**
37
+ * Returns the exact retained topology contract for a GeoJSON canonical-options call.
38
+ */
39
+ export function polygonizeFingerprintWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
40
+
35
41
  /**
36
42
  * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
37
43
  *
@@ -63,6 +69,7 @@ export interface InitOutput {
63
69
  readonly __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
64
70
  readonly __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
65
71
  readonly polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
72
+ readonly polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
66
73
  readonly polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
67
74
  readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
68
75
  readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
@@ -85,6 +92,7 @@ export interface InitOutput {
85
92
  readonly wasmpolygonresult_ring_offsets_len: (a: number) => number;
86
93
  readonly wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
87
94
  readonly wasmpolygonresult_stride: (a: number) => number;
95
+ readonly wasmpolygonresult_topology_fingerprint: (a: number) => any;
88
96
  readonly polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
89
97
  readonly polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
90
98
  readonly polygonize_result_free: () => void;
@@ -4,6 +4,7 @@ export const memory: WebAssembly.Memory;
4
4
  export const __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
5
5
  export const __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
6
6
  export const polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
7
+ export const polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
7
8
  export const polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
8
9
  export const polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
9
10
  export const polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
@@ -26,6 +27,7 @@ export const wasmpolygonresult_provenance: (a: number) => any;
26
27
  export const wasmpolygonresult_ring_offsets_len: (a: number) => number;
27
28
  export const wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
28
29
  export const wasmpolygonresult_stride: (a: number) => number;
30
+ export const wasmpolygonresult_topology_fingerprint: (a: number) => any;
29
31
  export const polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
30
32
  export const polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
31
33
  export const polygonize_result_free: () => void;