WASM API Reference
Auto-generated reference for the geo-polygonize WebAssembly bindings.
polygonize_with_options_js
Polygonizes a GeoJSON FeatureCollection using the canonical PolygonizerOptions.
This compatibility entry point returns polygons only. Use [polygonize_report_with_options_js] when dangles, cut edges, invalid rings, provenance, diagnostics, and exact coordinate encoding are required.
Signature
function polygonize_with_options_js(geojson_str: string, options_val: any): anypolygonize_fingerprint_with_options_js
Returns the exact retained topology contract for a GeoJSON canonical-options call.
Signature
function polygonize_fingerprint_with_options_js(geojson_str: string, options_val: any): anypolygonize_report_with_options_js
Returns the complete versioned topology report for a GeoJSON canonical-options call.
The report is the JSON serialization of TopologyFingerprintV1; it is the stable cross-binding success contract, not a polygon-only GeoJSON projection.
Signature
function polygonize_report_with_options_js(geojson_str: string, options_val: any): anypolygonize_trace_with_options_js
Returns a versioned topology report and bounded physical-pipeline trace.
Signature
function polygonize_trace_with_options_js(geojson_str: string, options_val: any, trace_level: string, byte_limit: number): anypartition_router_comparison_js
Signature
function partition_router_comparison_js(geojson_str: string, tile_size: number, buffer: number, options_val: any): anybenchmark_partition_router_js
Signature
function benchmark_partition_router_js(geojson_str: string, tile_size: number, buffer: number, options_val: any, warmup_iterations: number, samples: number, iterations_per_sample: number): anypolygonize
Signature
function polygonize(geojson_str: string, node_input: boolean, snap_grid_size: number, extract_only_polygonal: boolean, report_mode: boolean): anypolygonize_with_options_buffer_js
Signature
function polygonize_with_options_buffer_js(coords: number, offsets: number, stride: number, options_val: any, line_ids: number): anypolygonize_buffers
Signature
function polygonize_buffers(coords: number, offsets: number, stride: number, node_input: boolean, snap_grid_size: number, line_ids: number): anypolygonize_geoarrow_with_options_js
Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
This binary path avoids JSON serialization overhead and returns an Arrow IPC stream containing a GeoArrow Polygon array. Requires the options to be passed as a parsed JS object.
Signature
function polygonize_geoarrow_with_options_js(ipc_bytes: number, options_val: any): anypolygonize_geoarrow
Signature
function polygonize_geoarrow(ipc_bytes: number, node_input: boolean, snap_grid_size: number, extract_only_polygonal: boolean): any