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
package/dist/geo_polygonize.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -223,6 +223,33 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
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
|
+
|
|
226
253
|
/**
|
|
227
254
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
228
255
|
*
|
|
@@ -956,6 +983,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
|
|
|
956
983
|
default: __wbg_init,
|
|
957
984
|
initSync: initSync,
|
|
958
985
|
polygonize: polygonize,
|
|
986
|
+
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
959
987
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
960
988
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
961
989
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
@@ -1028,6 +1056,7 @@ exports.cfbRobustOptions = cfbRobustOptions;
|
|
|
1028
1056
|
exports.initBest = initBest;
|
|
1029
1057
|
exports.initSync = initSync;
|
|
1030
1058
|
exports.polygonize = polygonize;
|
|
1059
|
+
exports.polygonizeFingerprintWithOptions = polygonizeFingerprintWithOptions;
|
|
1031
1060
|
exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions;
|
|
1032
1061
|
exports.polygonizeWithOptions = polygonizeWithOptions;
|
|
1033
1062
|
exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer;
|
|
@@ -220,6 +220,33 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
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
|
+
|
|
223
250
|
/**
|
|
224
251
|
* Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
|
|
225
252
|
*
|
|
@@ -953,6 +980,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
|
|
|
953
980
|
default: __wbg_init,
|
|
954
981
|
initSync: initSync,
|
|
955
982
|
polygonize: polygonize,
|
|
983
|
+
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
956
984
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
957
985
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
958
986
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
@@ -1019,4 +1047,4 @@ async function initBest(scalarModule, simdModule) {
|
|
|
1019
1047
|
return scalarExports;
|
|
1020
1048
|
}
|
|
1021
1049
|
|
|
1022
|
-
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 };
|
|
@@ -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];
|