geo-polygonize 0.53.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 +29 -0
- package/dist/slim/es/index_slim.js +29 -1
- package/dist/slim/pkg-scalar/geo_polygonize.d.ts +6 -0
- package/dist/slim/pkg-scalar/geo_polygonize_bg.wasm.d.ts +1 -0
- package/dist/standard/cjs/index.js +31 -2
- package/dist/standard/es/index.js +31 -3
- package/dist/standard/pkg-scalar/geo_polygonize.d.ts +6 -0
- package/dist/standard/pkg-scalar/geo_polygonize_bg.wasm.d.ts +1 -0
- package/dist/threads/es/index.js +29 -1
- package/dist/threads/pkg-threads/geo_polygonize.d.ts +6 -0
- package/dist/threads/pkg-threads/geo_polygonize_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,6 +33,11 @@ export class WasmPolygonResult {
|
|
|
33
33
|
|
|
34
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;
|
|
35
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
|
+
|
|
36
41
|
/**
|
|
37
42
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
38
43
|
*
|
|
@@ -64,6 +69,7 @@ export interface InitOutput {
|
|
|
64
69
|
readonly __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
|
|
65
70
|
readonly __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
|
|
66
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];
|
|
67
73
|
readonly polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
68
74
|
readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
69
75
|
readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
@@ -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];
|
package/dist/threads/es/index.js
CHANGED
|
@@ -328,6 +328,33 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
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
|
+
|
|
331
358
|
/**
|
|
332
359
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
333
360
|
*
|
|
@@ -1143,6 +1170,7 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
|
|
|
1143
1170
|
initSync: initSync,
|
|
1144
1171
|
initThreadPool: initThreadPool,
|
|
1145
1172
|
polygonize: polygonize,
|
|
1173
|
+
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
1146
1174
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
1147
1175
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
1148
1176
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
@@ -1189,4 +1217,4 @@ const cfbRobustOptions = {
|
|
|
1189
1217
|
input_profile_id: "cfb_robust_v1",
|
|
1190
1218
|
};
|
|
1191
1219
|
|
|
1192
|
-
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 };
|
|
@@ -35,6 +35,11 @@ export function initThreadPool(num_threads: number): Promise<any>;
|
|
|
35
35
|
|
|
36
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;
|
|
37
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
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
40
45
|
*
|
|
@@ -76,6 +81,7 @@ export interface InitOutput {
|
|
|
76
81
|
readonly __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
|
|
77
82
|
readonly __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
|
|
78
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];
|
|
79
85
|
readonly polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
80
86
|
readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
81
87
|
readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
@@ -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];
|