geo-polygonize 0.53.0 → 0.55.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 +64 -3
- package/dist/slim/es/index_slim.js +63 -4
- package/dist/slim/pkg-scalar/geo_polygonize.d.ts +18 -3
- package/dist/slim/pkg-scalar/geo_polygonize_bg.wasm.d.ts +2 -0
- package/dist/standard/cjs/index.js +66 -5
- package/dist/standard/es/index.js +65 -6
- package/dist/standard/pkg-scalar/geo_polygonize.d.ts +18 -3
- package/dist/standard/pkg-scalar/geo_polygonize_bg.wasm.d.ts +2 -0
- package/dist/threads/es/index.js +63 -4
- package/dist/threads/pkg-threads/geo_polygonize.d.ts +18 -3
- package/dist/threads/pkg-threads/geo_polygonize_bg.wasm.d.ts +2 -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
|
*
|
|
@@ -245,12 +272,42 @@ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
|
|
|
245
272
|
return v2;
|
|
246
273
|
}
|
|
247
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Returns the complete versioned topology report for a GeoJSON canonical-options call.
|
|
277
|
+
*
|
|
278
|
+
* The report is the JSON serialization of `TopologyFingerprintV1`; it is the
|
|
279
|
+
* stable cross-binding success contract, not a polygon-only GeoJSON projection.
|
|
280
|
+
* @param {string} geojson_str
|
|
281
|
+
* @param {any} options_val
|
|
282
|
+
* @returns {string}
|
|
283
|
+
*/
|
|
284
|
+
function polygonizeReportWithOptions(geojson_str, options_val) {
|
|
285
|
+
let deferred3_0;
|
|
286
|
+
let deferred3_1;
|
|
287
|
+
try {
|
|
288
|
+
const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
289
|
+
const len0 = WASM_VECTOR_LEN;
|
|
290
|
+
const ret = wasm.polygonizeReportWithOptions(ptr0, len0, options_val);
|
|
291
|
+
var ptr2 = ret[0];
|
|
292
|
+
var len2 = ret[1];
|
|
293
|
+
if (ret[3]) {
|
|
294
|
+
ptr2 = 0; len2 = 0;
|
|
295
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
296
|
+
}
|
|
297
|
+
deferred3_0 = ptr2;
|
|
298
|
+
deferred3_1 = len2;
|
|
299
|
+
return getStringFromWasm0(ptr2, len2);
|
|
300
|
+
} finally {
|
|
301
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
248
305
|
/**
|
|
249
306
|
* Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
|
|
250
307
|
*
|
|
251
|
-
* This
|
|
252
|
-
*
|
|
253
|
-
*
|
|
308
|
+
* This compatibility entry point returns polygons only. Use
|
|
309
|
+
* [`polygonize_report_with_options_js`] when dangles, cut edges, invalid rings,
|
|
310
|
+
* provenance, diagnostics, and exact coordinate encoding are required.
|
|
254
311
|
* @param {string} geojson_str
|
|
255
312
|
* @param {any} options_val
|
|
256
313
|
* @returns {string}
|
|
@@ -956,7 +1013,9 @@ var scalarExports = /*#__PURE__*/Object.freeze({
|
|
|
956
1013
|
default: __wbg_init,
|
|
957
1014
|
initSync: initSync,
|
|
958
1015
|
polygonize: polygonize,
|
|
1016
|
+
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
959
1017
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
1018
|
+
polygonizeReportWithOptions: polygonizeReportWithOptions,
|
|
960
1019
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
961
1020
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
962
1021
|
polygonize_buffers: polygonize_buffers,
|
|
@@ -1028,7 +1087,9 @@ exports.cfbRobustOptions = cfbRobustOptions;
|
|
|
1028
1087
|
exports.initBest = initBest;
|
|
1029
1088
|
exports.initSync = initSync;
|
|
1030
1089
|
exports.polygonize = polygonize;
|
|
1090
|
+
exports.polygonizeFingerprintWithOptions = polygonizeFingerprintWithOptions;
|
|
1031
1091
|
exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions;
|
|
1092
|
+
exports.polygonizeReportWithOptions = polygonizeReportWithOptions;
|
|
1032
1093
|
exports.polygonizeWithOptions = polygonizeWithOptions;
|
|
1033
1094
|
exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer;
|
|
1034
1095
|
exports.polygonize_buffers = polygonize_buffers;
|
|
@@ -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
|
*
|
|
@@ -242,12 +269,42 @@ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
|
|
|
242
269
|
return v2;
|
|
243
270
|
}
|
|
244
271
|
|
|
272
|
+
/**
|
|
273
|
+
* Returns the complete versioned topology report for a GeoJSON canonical-options call.
|
|
274
|
+
*
|
|
275
|
+
* The report is the JSON serialization of `TopologyFingerprintV1`; it is the
|
|
276
|
+
* stable cross-binding success contract, not a polygon-only GeoJSON projection.
|
|
277
|
+
* @param {string} geojson_str
|
|
278
|
+
* @param {any} options_val
|
|
279
|
+
* @returns {string}
|
|
280
|
+
*/
|
|
281
|
+
function polygonizeReportWithOptions(geojson_str, options_val) {
|
|
282
|
+
let deferred3_0;
|
|
283
|
+
let deferred3_1;
|
|
284
|
+
try {
|
|
285
|
+
const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
286
|
+
const len0 = WASM_VECTOR_LEN;
|
|
287
|
+
const ret = wasm.polygonizeReportWithOptions(ptr0, len0, options_val);
|
|
288
|
+
var ptr2 = ret[0];
|
|
289
|
+
var len2 = ret[1];
|
|
290
|
+
if (ret[3]) {
|
|
291
|
+
ptr2 = 0; len2 = 0;
|
|
292
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
293
|
+
}
|
|
294
|
+
deferred3_0 = ptr2;
|
|
295
|
+
deferred3_1 = len2;
|
|
296
|
+
return getStringFromWasm0(ptr2, len2);
|
|
297
|
+
} finally {
|
|
298
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
245
302
|
/**
|
|
246
303
|
* Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
|
|
247
304
|
*
|
|
248
|
-
* This
|
|
249
|
-
*
|
|
250
|
-
*
|
|
305
|
+
* This compatibility entry point returns polygons only. Use
|
|
306
|
+
* [`polygonize_report_with_options_js`] when dangles, cut edges, invalid rings,
|
|
307
|
+
* provenance, diagnostics, and exact coordinate encoding are required.
|
|
251
308
|
* @param {string} geojson_str
|
|
252
309
|
* @param {any} options_val
|
|
253
310
|
* @returns {string}
|
|
@@ -953,7 +1010,9 @@ var scalarExports = /*#__PURE__*/Object.freeze({
|
|
|
953
1010
|
default: __wbg_init,
|
|
954
1011
|
initSync: initSync,
|
|
955
1012
|
polygonize: polygonize,
|
|
1013
|
+
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
956
1014
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
1015
|
+
polygonizeReportWithOptions: polygonizeReportWithOptions,
|
|
957
1016
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
958
1017
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
959
1018
|
polygonize_buffers: polygonize_buffers,
|
|
@@ -1019,4 +1078,4 @@ async function initBest(scalarModule, simdModule) {
|
|
|
1019
1078
|
return scalarExports;
|
|
1020
1079
|
}
|
|
1021
1080
|
|
|
1022
|
-
export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, initBest, initSync, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow };
|
|
1081
|
+
export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, initBest, initSync, polygonize, polygonizeFingerprintWithOptions, polygonizeGeoArrowWithOptions, polygonizeReportWithOptions, 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
|
*
|
|
@@ -42,12 +47,20 @@ export function polygonize(geojson_str: string, node_input?: boolean | null, sna
|
|
|
42
47
|
*/
|
|
43
48
|
export function polygonizeGeoArrowWithOptions(ipc_bytes: Uint8Array, options_val: Partial<PolygonizerOptions>): Uint8Array;
|
|
44
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Returns the complete versioned topology report for a GeoJSON canonical-options call.
|
|
52
|
+
*
|
|
53
|
+
* The report is the JSON serialization of `TopologyFingerprintV1`; it is the
|
|
54
|
+
* stable cross-binding success contract, not a polygon-only GeoJSON projection.
|
|
55
|
+
*/
|
|
56
|
+
export function polygonizeReportWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
|
|
57
|
+
|
|
45
58
|
/**
|
|
46
59
|
* Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
|
|
47
60
|
*
|
|
48
|
-
* This
|
|
49
|
-
*
|
|
50
|
-
*
|
|
61
|
+
* This compatibility entry point returns polygons only. Use
|
|
62
|
+
* [`polygonize_report_with_options_js`] when dangles, cut edges, invalid rings,
|
|
63
|
+
* provenance, diagnostics, and exact coordinate encoding are required.
|
|
51
64
|
*/
|
|
52
65
|
export function polygonizeWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
|
|
53
66
|
|
|
@@ -64,7 +77,9 @@ export interface InitOutput {
|
|
|
64
77
|
readonly __wbg_polygonizerwasmerror_free: (a: number, b: number) => void;
|
|
65
78
|
readonly __wbg_wasmpolygonresult_free: (a: number, b: number) => void;
|
|
66
79
|
readonly polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
80
|
+
readonly polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
67
81
|
readonly polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
82
|
+
readonly polygonizeReportWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
68
83
|
readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
69
84
|
readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
70
85
|
readonly polygonize_buffers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
@@ -4,7 +4,9 @@ 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];
|
|
9
|
+
export const polygonizeReportWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
8
10
|
export const polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
9
11
|
export const polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
10
12
|
export const polygonize_buffers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|