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.
- package/dist/geo_polygonize.wasm +0 -0
- package/dist/geo_polygonize_simd.wasm +0 -0
- package/dist/slim/cjs/index_slim.js +44 -0
- package/dist/slim/es/index_slim.js +44 -1
- package/dist/slim/pkg-scalar/geo_polygonize.d.ts +8 -0
- package/dist/slim/pkg-scalar/geo_polygonize_bg.wasm.d.ts +2 -0
- package/dist/standard/cjs/index.js +46 -2
- package/dist/standard/es/index.js +46 -3
- package/dist/standard/pkg-scalar/geo_polygonize.d.ts +8 -0
- package/dist/standard/pkg-scalar/geo_polygonize_bg.wasm.d.ts +2 -0
- package/dist/threads/es/index.js +44 -1
- package/dist/threads/pkg-threads/geo_polygonize.d.ts +8 -0
- package/dist/threads/pkg-threads/geo_polygonize_bg.wasm.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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;
|
package/dist/threads/es/index.js
CHANGED
|
@@ -280,6 +280,13 @@ class WasmPolygonResult {
|
|
|
280
280
|
const ret = wasm.wasmpolygonresult_stride(this.__wbg_ptr);
|
|
281
281
|
return ret;
|
|
282
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* @returns {any}
|
|
285
|
+
*/
|
|
286
|
+
get topology_fingerprint() {
|
|
287
|
+
const ret = wasm.wasmpolygonresult_topology_fingerprint(this.__wbg_ptr);
|
|
288
|
+
return ret;
|
|
289
|
+
}
|
|
283
290
|
}
|
|
284
291
|
if (Symbol.dispose) WasmPolygonResult.prototype[Symbol.dispose] = WasmPolygonResult.prototype.free;
|
|
285
292
|
|
|
@@ -321,6 +328,33 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
|
|
|
321
328
|
}
|
|
322
329
|
}
|
|
323
330
|
|
|
331
|
+
/**
|
|
332
|
+
* Returns the exact retained topology contract for a GeoJSON canonical-options call.
|
|
333
|
+
* @param {string} geojson_str
|
|
334
|
+
* @param {any} options_val
|
|
335
|
+
* @returns {string}
|
|
336
|
+
*/
|
|
337
|
+
function polygonizeFingerprintWithOptions(geojson_str, options_val) {
|
|
338
|
+
let deferred3_0;
|
|
339
|
+
let deferred3_1;
|
|
340
|
+
try {
|
|
341
|
+
const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
342
|
+
const len0 = WASM_VECTOR_LEN;
|
|
343
|
+
const ret = wasm.polygonizeFingerprintWithOptions(ptr0, len0, options_val);
|
|
344
|
+
var ptr2 = ret[0];
|
|
345
|
+
var len2 = ret[1];
|
|
346
|
+
if (ret[3]) {
|
|
347
|
+
ptr2 = 0; len2 = 0;
|
|
348
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
349
|
+
}
|
|
350
|
+
deferred3_0 = ptr2;
|
|
351
|
+
deferred3_1 = len2;
|
|
352
|
+
return getStringFromWasm0(ptr2, len2);
|
|
353
|
+
} finally {
|
|
354
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
324
358
|
/**
|
|
325
359
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
326
360
|
*
|
|
@@ -676,6 +710,10 @@ function __wbg_get_imports(memory) {
|
|
|
676
710
|
const ret = new Error();
|
|
677
711
|
return ret;
|
|
678
712
|
},
|
|
713
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
714
|
+
const ret = new Map();
|
|
715
|
+
return ret;
|
|
716
|
+
},
|
|
679
717
|
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
680
718
|
const ret = new Uint8Array(arg0);
|
|
681
719
|
return ret;
|
|
@@ -721,6 +759,10 @@ function __wbg_get_imports(memory) {
|
|
|
721
759
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
722
760
|
arg0[arg1] = arg2;
|
|
723
761
|
},
|
|
762
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
763
|
+
const ret = arg0.set(arg1, arg2);
|
|
764
|
+
return ret;
|
|
765
|
+
},
|
|
724
766
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
725
767
|
const ret = arg1.stack;
|
|
726
768
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1128,6 +1170,7 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
|
|
|
1128
1170
|
initSync: initSync,
|
|
1129
1171
|
initThreadPool: initThreadPool,
|
|
1130
1172
|
polygonize: polygonize,
|
|
1173
|
+
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
1131
1174
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
1132
1175
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
1133
1176
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
@@ -1174,4 +1217,4 @@ const cfbRobustOptions = {
|
|
|
1174
1217
|
input_profile_id: "cfb_robust_v1",
|
|
1175
1218
|
};
|
|
1176
1219
|
|
|
1177
|
-
export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|
|
1220
|
+
export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeFingerprintWithOptions, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|
|
@@ -28,12 +28,18 @@ 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 initThreadPool(num_threads: number): Promise<any>;
|
|
34
35
|
|
|
35
36
|
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;
|
|
36
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Returns the exact retained topology contract for a GeoJSON canonical-options call.
|
|
40
|
+
*/
|
|
41
|
+
export function polygonizeFingerprintWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
|
|
42
|
+
|
|
37
43
|
/**
|
|
38
44
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
39
45
|
*
|
|
@@ -75,6 +81,7 @@ export interface InitOutput {
|
|
|
75
81
|
readonly __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
|
|
76
82
|
readonly __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
|
|
77
83
|
readonly polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
84
|
+
readonly polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
78
85
|
readonly polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
79
86
|
readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
80
87
|
readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
@@ -97,6 +104,7 @@ export interface InitOutput {
|
|
|
97
104
|
readonly wasmpolygonresult_ring_offsets_len: (a: number) => number;
|
|
98
105
|
readonly wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
|
|
99
106
|
readonly wasmpolygonresult_stride: (a: number) => number;
|
|
107
|
+
readonly wasmpolygonresult_topology_fingerprint: (a: number) => any;
|
|
100
108
|
readonly polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
101
109
|
readonly polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
102
110
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export const __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
|
|
4
4
|
export const __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
|
|
5
5
|
export const polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
6
|
+
export const polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
6
7
|
export const polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
7
8
|
export const polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
8
9
|
export const polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
@@ -25,6 +26,7 @@ export const wasmpolygonresult_provenance: (a: number) => any;
|
|
|
25
26
|
export const wasmpolygonresult_ring_offsets_len: (a: number) => number;
|
|
26
27
|
export const wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
|
|
27
28
|
export const wasmpolygonresult_stride: (a: number) => number;
|
|
29
|
+
export const wasmpolygonresult_topology_fingerprint: (a: number) => any;
|
|
28
30
|
export const polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
29
31
|
export const polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
30
32
|
export const __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|