geo-polygonize 0.54.0 → 0.56.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/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/slim/cjs/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/slim/cjs/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/slim/cjs/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/slim/cjs/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/slim/cjs/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/slim/cjs/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/slim/cjs/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/slim/cjs/index.d.ts +2 -0
- package/dist/slim/cjs/index_slim.js +35 -3
- package/dist/slim/es/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/slim/es/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/slim/es/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/slim/es/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/slim/es/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/slim/es/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/slim/es/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/slim/es/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/slim/es/index.d.ts +2 -0
- package/dist/slim/es/index_slim.js +35 -4
- package/dist/slim/pkg-scalar/geo_polygonize.d.ts +12 -3
- package/dist/slim/pkg-scalar/geo_polygonize_bg.wasm.d.ts +1 -0
- package/dist/slim/pkg-wrapper/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/slim/pkg-wrapper/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/slim/pkg-wrapper/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/slim/pkg-wrapper/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/slim/pkg-wrapper/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/slim/pkg-wrapper/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/slim/pkg-wrapper/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/slim/pkg-wrapper/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/standard/cjs/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/standard/cjs/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/standard/cjs/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/standard/cjs/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/standard/cjs/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/standard/cjs/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/standard/cjs/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/standard/cjs/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/standard/cjs/index.d.ts +2 -0
- package/dist/standard/cjs/index.js +37 -5
- package/dist/standard/es/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/standard/es/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/standard/es/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/standard/es/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/standard/es/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/standard/es/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/standard/es/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/standard/es/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/standard/es/index.d.ts +2 -0
- package/dist/standard/es/index.js +37 -6
- package/dist/standard/pkg-scalar/geo_polygonize.d.ts +12 -3
- package/dist/standard/pkg-scalar/geo_polygonize_bg.wasm.d.ts +1 -0
- package/dist/standard/pkg-wrapper/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/standard/pkg-wrapper/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/standard/pkg-wrapper/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/standard/pkg-wrapper/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/standard/pkg-wrapper/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/standard/pkg-wrapper/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/standard/pkg-wrapper/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/standard/pkg-wrapper/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/threads/es/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/threads/es/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/threads/es/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/threads/es/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/threads/es/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/threads/es/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/threads/es/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/threads/es/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/dist/threads/es/index.d.ts +2 -0
- package/dist/threads/es/index.js +35 -4
- package/dist/threads/pkg-threads/geo_polygonize.d.ts +12 -3
- package/dist/threads/pkg-threads/geo_polygonize_bg.wasm.d.ts +1 -0
- package/dist/threads/pkg-wrapper/bindings/CoordinateFingerprintV1.d.ts +8 -0
- package/dist/threads/pkg-wrapper/bindings/ErrorWitnessV1.d.ts +5 -0
- package/dist/threads/pkg-wrapper/bindings/NormalizedPolygonizeErrorV1.d.ts +16 -0
- package/dist/threads/pkg-wrapper/bindings/PolygonFingerprintV1.d.ts +12 -0
- package/dist/threads/pkg-wrapper/bindings/ProvenanceFingerprintV1.d.ts +7 -0
- package/dist/threads/pkg-wrapper/bindings/RingFingerprintV1.d.ts +5 -0
- package/dist/threads/pkg-wrapper/bindings/TopologyDiagnosticsFingerprintV1.d.ts +15 -0
- package/dist/threads/pkg-wrapper/bindings/TopologyFingerprintV1.d.ts +18 -0
- package/package.json +1 -1
|
@@ -47,12 +47,20 @@ export function polygonizeFingerprintWithOptions(geojson_str: string, options_va
|
|
|
47
47
|
*/
|
|
48
48
|
export function polygonizeGeoArrowWithOptions(ipc_bytes: Uint8Array, options_val: Partial<PolygonizerOptions>): Uint8Array;
|
|
49
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
|
+
|
|
50
58
|
/**
|
|
51
59
|
* Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
|
|
52
60
|
*
|
|
53
|
-
* This
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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.
|
|
56
64
|
*/
|
|
57
65
|
export function polygonizeWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
|
|
58
66
|
|
|
@@ -71,6 +79,7 @@ export interface InitOutput {
|
|
|
71
79
|
readonly polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
72
80
|
readonly polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
73
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];
|
|
74
83
|
readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
75
84
|
readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
76
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];
|
|
@@ -6,6 +6,7 @@ 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
7
|
export const polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
8
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];
|
|
9
10
|
export const polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
10
11
|
export const polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
11
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];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ErrorWitnessV1 } from "./ErrorWitnessV1";
|
|
2
|
+
/**
|
|
3
|
+
* A structured, stable error equality contract.
|
|
4
|
+
*/
|
|
5
|
+
export type NormalizedPolygonizeErrorV1 = {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
family: string;
|
|
8
|
+
code: string;
|
|
9
|
+
stage: string;
|
|
10
|
+
field: string | null;
|
|
11
|
+
expected: string | null;
|
|
12
|
+
actual: string | null;
|
|
13
|
+
limit: string | null;
|
|
14
|
+
observed: string | null;
|
|
15
|
+
witness: ErrorWitnessV1 | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CoordinateFingerprintV1 } from "./CoordinateFingerprintV1";
|
|
2
|
+
import type { ProvenanceFingerprintV1 } from "./ProvenanceFingerprintV1";
|
|
3
|
+
import type { RingFingerprintV1 } from "./RingFingerprintV1";
|
|
4
|
+
export type PolygonFingerprintV1 = {
|
|
5
|
+
exterior: Array<CoordinateFingerprintV1>;
|
|
6
|
+
interiors: Array<RingFingerprintV1>;
|
|
7
|
+
/**
|
|
8
|
+
* Per-edge representative input IDs, encoded as fixed-width hex strings.
|
|
9
|
+
*/
|
|
10
|
+
exterior_edge_ids: Array<string>;
|
|
11
|
+
provenance: ProvenanceFingerprintV1 | null;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Only topology-level diagnostics. Timings and work counters are deliberately excluded.
|
|
3
|
+
*/
|
|
4
|
+
export type TopologyDiagnosticsFingerprintV1 = {
|
|
5
|
+
dangle_count: number;
|
|
6
|
+
cut_edge_count: number;
|
|
7
|
+
ring_count: number;
|
|
8
|
+
shell_count: number;
|
|
9
|
+
hole_count: number;
|
|
10
|
+
unassigned_hole_count: number;
|
|
11
|
+
unassigned_hole_area: string;
|
|
12
|
+
invalid_ring_count: number;
|
|
13
|
+
z_conflict_node_count: number;
|
|
14
|
+
z_conflicting_line_ids: Array<string>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CoordinateFingerprintV1 } from "./CoordinateFingerprintV1";
|
|
2
|
+
import type { PolygonFingerprintV1 } from "./PolygonFingerprintV1";
|
|
3
|
+
import type { TopologyDiagnosticsFingerprintV1 } from "./TopologyDiagnosticsFingerprintV1";
|
|
4
|
+
/**
|
|
5
|
+
* A versioned, structured canonical representation of a successful run.
|
|
6
|
+
*/
|
|
7
|
+
export type TopologyFingerprintV1 = {
|
|
8
|
+
schema_version: number;
|
|
9
|
+
/**
|
|
10
|
+
* The serialized canonical options object is part of the semantic contract.
|
|
11
|
+
*/
|
|
12
|
+
options: unknown;
|
|
13
|
+
polygons: Array<PolygonFingerprintV1>;
|
|
14
|
+
dangles: Array<Array<CoordinateFingerprintV1>>;
|
|
15
|
+
cut_edges: Array<Array<CoordinateFingerprintV1>>;
|
|
16
|
+
invalid_rings: Array<Array<CoordinateFingerprintV1>>;
|
|
17
|
+
diagnostics: TopologyDiagnosticsFingerprintV1 | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ErrorWitnessV1 } from "./ErrorWitnessV1";
|
|
2
|
+
/**
|
|
3
|
+
* A structured, stable error equality contract.
|
|
4
|
+
*/
|
|
5
|
+
export type NormalizedPolygonizeErrorV1 = {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
family: string;
|
|
8
|
+
code: string;
|
|
9
|
+
stage: string;
|
|
10
|
+
field: string | null;
|
|
11
|
+
expected: string | null;
|
|
12
|
+
actual: string | null;
|
|
13
|
+
limit: string | null;
|
|
14
|
+
observed: string | null;
|
|
15
|
+
witness: ErrorWitnessV1 | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CoordinateFingerprintV1 } from "./CoordinateFingerprintV1";
|
|
2
|
+
import type { ProvenanceFingerprintV1 } from "./ProvenanceFingerprintV1";
|
|
3
|
+
import type { RingFingerprintV1 } from "./RingFingerprintV1";
|
|
4
|
+
export type PolygonFingerprintV1 = {
|
|
5
|
+
exterior: Array<CoordinateFingerprintV1>;
|
|
6
|
+
interiors: Array<RingFingerprintV1>;
|
|
7
|
+
/**
|
|
8
|
+
* Per-edge representative input IDs, encoded as fixed-width hex strings.
|
|
9
|
+
*/
|
|
10
|
+
exterior_edge_ids: Array<string>;
|
|
11
|
+
provenance: ProvenanceFingerprintV1 | null;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Only topology-level diagnostics. Timings and work counters are deliberately excluded.
|
|
3
|
+
*/
|
|
4
|
+
export type TopologyDiagnosticsFingerprintV1 = {
|
|
5
|
+
dangle_count: number;
|
|
6
|
+
cut_edge_count: number;
|
|
7
|
+
ring_count: number;
|
|
8
|
+
shell_count: number;
|
|
9
|
+
hole_count: number;
|
|
10
|
+
unassigned_hole_count: number;
|
|
11
|
+
unassigned_hole_area: string;
|
|
12
|
+
invalid_ring_count: number;
|
|
13
|
+
z_conflict_node_count: number;
|
|
14
|
+
z_conflicting_line_ids: Array<string>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CoordinateFingerprintV1 } from "./CoordinateFingerprintV1";
|
|
2
|
+
import type { PolygonFingerprintV1 } from "./PolygonFingerprintV1";
|
|
3
|
+
import type { TopologyDiagnosticsFingerprintV1 } from "./TopologyDiagnosticsFingerprintV1";
|
|
4
|
+
/**
|
|
5
|
+
* A versioned, structured canonical representation of a successful run.
|
|
6
|
+
*/
|
|
7
|
+
export type TopologyFingerprintV1 = {
|
|
8
|
+
schema_version: number;
|
|
9
|
+
/**
|
|
10
|
+
* The serialized canonical options object is part of the semantic contract.
|
|
11
|
+
*/
|
|
12
|
+
options: unknown;
|
|
13
|
+
polygons: Array<PolygonFingerprintV1>;
|
|
14
|
+
dangles: Array<Array<CoordinateFingerprintV1>>;
|
|
15
|
+
cut_edges: Array<Array<CoordinateFingerprintV1>>;
|
|
16
|
+
invalid_rings: Array<Array<CoordinateFingerprintV1>>;
|
|
17
|
+
diagnostics: TopologyDiagnosticsFingerprintV1 | null;
|
|
18
|
+
};
|
|
@@ -15,5 +15,7 @@ export * from "./bindings/TileOwnershipPolicy";
|
|
|
15
15
|
export * from "./bindings/TouchPolicy";
|
|
16
16
|
export * from "./bindings/ZOptions";
|
|
17
17
|
export * from "./bindings/ZPolicy";
|
|
18
|
+
export * from "./bindings/TopologyFingerprintV1";
|
|
19
|
+
export * from "./bindings/NormalizedPolygonizeErrorV1";
|
|
18
20
|
export * from "./cfb";
|
|
19
21
|
export default function init(_input?: any): Promise<typeof exports>;
|
package/dist/threads/es/index.js
CHANGED
|
@@ -377,12 +377,42 @@ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
|
|
|
377
377
|
return v2;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Returns the complete versioned topology report for a GeoJSON canonical-options call.
|
|
382
|
+
*
|
|
383
|
+
* The report is the JSON serialization of `TopologyFingerprintV1`; it is the
|
|
384
|
+
* stable cross-binding success contract, not a polygon-only GeoJSON projection.
|
|
385
|
+
* @param {string} geojson_str
|
|
386
|
+
* @param {any} options_val
|
|
387
|
+
* @returns {string}
|
|
388
|
+
*/
|
|
389
|
+
function polygonizeReportWithOptions(geojson_str, options_val) {
|
|
390
|
+
let deferred3_0;
|
|
391
|
+
let deferred3_1;
|
|
392
|
+
try {
|
|
393
|
+
const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
|
+
const len0 = WASM_VECTOR_LEN;
|
|
395
|
+
const ret = wasm.polygonizeReportWithOptions(ptr0, len0, options_val);
|
|
396
|
+
var ptr2 = ret[0];
|
|
397
|
+
var len2 = ret[1];
|
|
398
|
+
if (ret[3]) {
|
|
399
|
+
ptr2 = 0; len2 = 0;
|
|
400
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
401
|
+
}
|
|
402
|
+
deferred3_0 = ptr2;
|
|
403
|
+
deferred3_1 = len2;
|
|
404
|
+
return getStringFromWasm0(ptr2, len2);
|
|
405
|
+
} finally {
|
|
406
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
380
410
|
/**
|
|
381
411
|
* Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
|
|
382
412
|
*
|
|
383
|
-
* This
|
|
384
|
-
*
|
|
385
|
-
*
|
|
413
|
+
* This compatibility entry point returns polygons only. Use
|
|
414
|
+
* [`polygonize_report_with_options_js`] when dangles, cut edges, invalid rings,
|
|
415
|
+
* provenance, diagnostics, and exact coordinate encoding are required.
|
|
386
416
|
* @param {string} geojson_str
|
|
387
417
|
* @param {any} options_val
|
|
388
418
|
* @returns {string}
|
|
@@ -1172,6 +1202,7 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
|
|
|
1172
1202
|
polygonize: polygonize,
|
|
1173
1203
|
polygonizeFingerprintWithOptions: polygonizeFingerprintWithOptions,
|
|
1174
1204
|
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
1205
|
+
polygonizeReportWithOptions: polygonizeReportWithOptions,
|
|
1175
1206
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
1176
1207
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
1177
1208
|
polygonize_buffers: polygonize_buffers,
|
|
@@ -1217,4 +1248,4 @@ const cfbRobustOptions = {
|
|
|
1217
1248
|
input_profile_id: "cfb_robust_v1",
|
|
1218
1249
|
};
|
|
1219
1250
|
|
|
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 };
|
|
1251
|
+
export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeFingerprintWithOptions, polygonizeGeoArrowWithOptions, polygonizeReportWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|
|
@@ -49,12 +49,20 @@ export function polygonizeFingerprintWithOptions(geojson_str: string, options_va
|
|
|
49
49
|
*/
|
|
50
50
|
export function polygonizeGeoArrowWithOptions(ipc_bytes: Uint8Array, options_val: Partial<PolygonizerOptions>): Uint8Array;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Returns the complete versioned topology report for a GeoJSON canonical-options call.
|
|
54
|
+
*
|
|
55
|
+
* The report is the JSON serialization of `TopologyFingerprintV1`; it is the
|
|
56
|
+
* stable cross-binding success contract, not a polygon-only GeoJSON projection.
|
|
57
|
+
*/
|
|
58
|
+
export function polygonizeReportWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
|
|
59
|
+
|
|
52
60
|
/**
|
|
53
61
|
* Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
|
|
54
62
|
*
|
|
55
|
-
* This
|
|
56
|
-
*
|
|
57
|
-
*
|
|
63
|
+
* This compatibility entry point returns polygons only. Use
|
|
64
|
+
* [`polygonize_report_with_options_js`] when dangles, cut edges, invalid rings,
|
|
65
|
+
* provenance, diagnostics, and exact coordinate encoding are required.
|
|
58
66
|
*/
|
|
59
67
|
export function polygonizeWithOptions(geojson_str: string, options_val: Partial<PolygonizerOptions>): string;
|
|
60
68
|
|
|
@@ -83,6 +91,7 @@ export interface InitOutput {
|
|
|
83
91
|
readonly polygonize: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
84
92
|
readonly polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
85
93
|
readonly polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
94
|
+
readonly polygonizeReportWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
86
95
|
readonly polygonizeWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
87
96
|
readonly polygonizeWithOptionsBuffer: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number) => [number, number, number];
|
|
88
97
|
readonly polygonize_buffers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
@@ -5,6 +5,7 @@ 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
6
|
export const polygonizeFingerprintWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
7
7
|
export const polygonizeGeoArrowWithOptions: (a: number, b: number, c: any) => [number, number, number, number];
|
|
8
|
+
export const polygonizeReportWithOptions: (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];
|
|
10
11
|
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];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ErrorWitnessV1 } from "./ErrorWitnessV1";
|
|
2
|
+
/**
|
|
3
|
+
* A structured, stable error equality contract.
|
|
4
|
+
*/
|
|
5
|
+
export type NormalizedPolygonizeErrorV1 = {
|
|
6
|
+
schema_version: number;
|
|
7
|
+
family: string;
|
|
8
|
+
code: string;
|
|
9
|
+
stage: string;
|
|
10
|
+
field: string | null;
|
|
11
|
+
expected: string | null;
|
|
12
|
+
actual: string | null;
|
|
13
|
+
limit: string | null;
|
|
14
|
+
observed: string | null;
|
|
15
|
+
witness: ErrorWitnessV1 | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CoordinateFingerprintV1 } from "./CoordinateFingerprintV1";
|
|
2
|
+
import type { ProvenanceFingerprintV1 } from "./ProvenanceFingerprintV1";
|
|
3
|
+
import type { RingFingerprintV1 } from "./RingFingerprintV1";
|
|
4
|
+
export type PolygonFingerprintV1 = {
|
|
5
|
+
exterior: Array<CoordinateFingerprintV1>;
|
|
6
|
+
interiors: Array<RingFingerprintV1>;
|
|
7
|
+
/**
|
|
8
|
+
* Per-edge representative input IDs, encoded as fixed-width hex strings.
|
|
9
|
+
*/
|
|
10
|
+
exterior_edge_ids: Array<string>;
|
|
11
|
+
provenance: ProvenanceFingerprintV1 | null;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Only topology-level diagnostics. Timings and work counters are deliberately excluded.
|
|
3
|
+
*/
|
|
4
|
+
export type TopologyDiagnosticsFingerprintV1 = {
|
|
5
|
+
dangle_count: number;
|
|
6
|
+
cut_edge_count: number;
|
|
7
|
+
ring_count: number;
|
|
8
|
+
shell_count: number;
|
|
9
|
+
hole_count: number;
|
|
10
|
+
unassigned_hole_count: number;
|
|
11
|
+
unassigned_hole_area: string;
|
|
12
|
+
invalid_ring_count: number;
|
|
13
|
+
z_conflict_node_count: number;
|
|
14
|
+
z_conflicting_line_ids: Array<string>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CoordinateFingerprintV1 } from "./CoordinateFingerprintV1";
|
|
2
|
+
import type { PolygonFingerprintV1 } from "./PolygonFingerprintV1";
|
|
3
|
+
import type { TopologyDiagnosticsFingerprintV1 } from "./TopologyDiagnosticsFingerprintV1";
|
|
4
|
+
/**
|
|
5
|
+
* A versioned, structured canonical representation of a successful run.
|
|
6
|
+
*/
|
|
7
|
+
export type TopologyFingerprintV1 = {
|
|
8
|
+
schema_version: number;
|
|
9
|
+
/**
|
|
10
|
+
* The serialized canonical options object is part of the semantic contract.
|
|
11
|
+
*/
|
|
12
|
+
options: unknown;
|
|
13
|
+
polygons: Array<PolygonFingerprintV1>;
|
|
14
|
+
dangles: Array<Array<CoordinateFingerprintV1>>;
|
|
15
|
+
cut_edges: Array<Array<CoordinateFingerprintV1>>;
|
|
16
|
+
invalid_rings: Array<Array<CoordinateFingerprintV1>>;
|
|
17
|
+
diagnostics: TopologyDiagnosticsFingerprintV1 | null;
|
|
18
|
+
};
|