geo-polygonize 0.33.0 → 0.34.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.
@@ -16,4 +16,5 @@ export * from "./bindings/TilingOptions";
16
16
  export * from "./bindings/TouchPolicy";
17
17
  export * from "./bindings/ZOptions";
18
18
  export * from "./bindings/ZPolicy";
19
+ export * from "./cfb";
19
20
  export declare function initBest(scalarModule: any, simdModule: any): Promise<typeof scalarExports>;
@@ -16,4 +16,5 @@ export * from "./bindings/TilingOptions";
16
16
  export * from "./bindings/TouchPolicy";
17
17
  export * from "./bindings/ZOptions";
18
18
  export * from "./bindings/ZPolicy";
19
+ export * from "./cfb";
19
20
  export default init;
@@ -0,0 +1,2 @@
1
+ import type { PolygonizerOptions } from "./bindings/PolygonizerOptions";
2
+ export declare const cfbRobustOptions: PolygonizerOptions;
@@ -16,4 +16,5 @@ export * from "./bindings/TilingOptions";
16
16
  export * from "./bindings/TouchPolicy";
17
17
  export * from "./bindings/ZOptions";
18
18
  export * from "./bindings/ZPolicy";
19
+ export * from "./cfb";
19
20
  export default function init(_input?: any): Promise<typeof exports>;
@@ -196,6 +196,20 @@ class WasmPolygonResult {
196
196
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
197
197
  return ret >>> 0;
198
198
  }
199
+ /**
200
+ * @returns {any}
201
+ */
202
+ get cut_edges() {
203
+ const ret = wasm.wasmpolygonresult_cut_edges(this.__wbg_ptr);
204
+ return ret;
205
+ }
206
+ /**
207
+ * @returns {any}
208
+ */
209
+ get dangles() {
210
+ const ret = wasm.wasmpolygonresult_dangles(this.__wbg_ptr);
211
+ return ret;
212
+ }
199
213
  /**
200
214
  * @returns {any}
201
215
  */
@@ -217,6 +231,13 @@ class WasmPolygonResult {
217
231
  const ret = wasm.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
218
232
  return ret >>> 0;
219
233
  }
234
+ /**
235
+ * @returns {any}
236
+ */
237
+ get invalid_rings() {
238
+ const ret = wasm.wasmpolygonresult_invalid_rings(this.__wbg_ptr);
239
+ return ret;
240
+ }
220
241
  /**
221
242
  * @returns {number}
222
243
  */
@@ -1012,4 +1033,37 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
1012
1033
  wbg_rayon_start_worker: wbg_rayon_start_worker
1013
1034
  });
1014
1035
 
1015
- export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
1036
+ const cfbRobustOptions = {
1037
+ target: "Native",
1038
+ node_input: true,
1039
+ snap_grid_size: 0.5,
1040
+ extract_only_polygonal: false,
1041
+ snap_strategy: "GeosCompat",
1042
+ noding: {
1043
+ backend: "Snap",
1044
+ snap_mode: "FloatEpsilonDedup",
1045
+ },
1046
+ containment: {
1047
+ touch_policy: "AllowPointTouchDisallowEdgeShare",
1048
+ index_backend: "RStar",
1049
+ },
1050
+ z: {
1051
+ policy: "InterpolateAlongEdge",
1052
+ },
1053
+ determinism: {
1054
+ canonical_sort: true,
1055
+ canonical_ring_rotation: true,
1056
+ stable_tie_breaks: true,
1057
+ },
1058
+ diagnostics: {
1059
+ enabled: true,
1060
+ report_mode: true,
1061
+ },
1062
+ provenance: {
1063
+ enabled: true,
1064
+ include_boundary_line_ids: true,
1065
+ },
1066
+ input_profile_id: "cfb_robust_v1",
1067
+ };
1068
+
1069
+ export { PolygonizerWasmError, WasmPolygonResult, cfbRobustOptions, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
@@ -16,4 +16,5 @@ export * from "./bindings/TilingOptions";
16
16
  export * from "./bindings/TouchPolicy";
17
17
  export * from "./bindings/ZOptions";
18
18
  export * from "./bindings/ZPolicy";
19
+ export * from "./cfb";
19
20
  export declare function initBest(scalarModule: any, simdModule: any): Promise<typeof scalarExports>;
@@ -16,4 +16,5 @@ export * from "./bindings/TilingOptions";
16
16
  export * from "./bindings/TouchPolicy";
17
17
  export * from "./bindings/ZOptions";
18
18
  export * from "./bindings/ZPolicy";
19
+ export * from "./cfb";
19
20
  export default init;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geo-polygonize",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "A native Rust port of the JTS/GEOS polygonization algorithm (Wasm)",
5
5
  "type": "module",
6
6
  "scripts": {