Skip to content

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

typescript
function polygonize_with_options_js(geojson_str: string, options_val: any): any

polygonize_fingerprint_with_options_js

Returns the exact retained topology contract for a GeoJSON canonical-options call.

Signature

typescript
function polygonize_fingerprint_with_options_js(geojson_str: string, options_val: any): any

polygonize_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

typescript
function polygonize_report_with_options_js(geojson_str: string, options_val: any): any

polygonize_trace_with_options_js

Returns a versioned topology report and bounded physical-pipeline trace.

Signature

typescript
function polygonize_trace_with_options_js(geojson_str: string, options_val: any, trace_level: string, byte_limit: number): any

partition_router_comparison_js

Signature

typescript
function partition_router_comparison_js(geojson_str: string, tile_size: number, buffer: number, options_val: any): any

benchmark_partition_router_js

Signature

typescript
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): any

polygonize

Signature

typescript
function polygonize(geojson_str: string, node_input: boolean, snap_grid_size: number, extract_only_polygonal: boolean, report_mode: boolean): any

polygonize_with_options_buffer_js

Signature

typescript
function polygonize_with_options_buffer_js(coords: number, offsets: number, stride: number, options_val: any, line_ids: number): any

polygonize_buffers

Signature

typescript
function polygonize_buffers(coords: number, offsets: number, stride: number, node_input: boolean, snap_grid_size: number, line_ids: number): any

polygonize_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

typescript
function polygonize_geoarrow_with_options_js(ipc_bytes: number, options_val: any): any

polygonize_geoarrow

Signature

typescript
function polygonize_geoarrow(ipc_bytes: number, node_input: boolean, snap_grid_size: number, extract_only_polygonal: boolean): any