geo-polygonize 0.33.1 → 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.
Binary file
Binary file
@@ -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>;
@@ -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>;
@@ -100,6 +100,20 @@ let WasmPolygonResult$1 = class WasmPolygonResult {
100
100
  const ret = wasm$1.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
101
101
  return ret >>> 0;
102
102
  }
103
+ /**
104
+ * @returns {any}
105
+ */
106
+ get cut_edges() {
107
+ const ret = wasm$1.wasmpolygonresult_cut_edges(this.__wbg_ptr);
108
+ return ret;
109
+ }
110
+ /**
111
+ * @returns {any}
112
+ */
113
+ get dangles() {
114
+ const ret = wasm$1.wasmpolygonresult_dangles(this.__wbg_ptr);
115
+ return ret;
116
+ }
103
117
  /**
104
118
  * @returns {any}
105
119
  */
@@ -121,6 +135,13 @@ let WasmPolygonResult$1 = class WasmPolygonResult {
121
135
  const ret = wasm$1.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
122
136
  return ret >>> 0;
123
137
  }
138
+ /**
139
+ * @returns {any}
140
+ */
141
+ get invalid_rings() {
142
+ const ret = wasm$1.wasmpolygonresult_invalid_rings(this.__wbg_ptr);
143
+ return ret;
144
+ }
124
145
  /**
125
146
  * @returns {number}
126
147
  */
@@ -910,6 +931,20 @@ class WasmPolygonResult {
910
931
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
911
932
  return ret >>> 0;
912
933
  }
934
+ /**
935
+ * @returns {any}
936
+ */
937
+ get cut_edges() {
938
+ const ret = wasm.wasmpolygonresult_cut_edges(this.__wbg_ptr);
939
+ return ret;
940
+ }
941
+ /**
942
+ * @returns {any}
943
+ */
944
+ get dangles() {
945
+ const ret = wasm.wasmpolygonresult_dangles(this.__wbg_ptr);
946
+ return ret;
947
+ }
913
948
  /**
914
949
  * @returns {any}
915
950
  */
@@ -931,6 +966,13 @@ class WasmPolygonResult {
931
966
  const ret = wasm.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
932
967
  return ret >>> 0;
933
968
  }
969
+ /**
970
+ * @returns {any}
971
+ */
972
+ get invalid_rings() {
973
+ const ret = wasm.wasmpolygonresult_invalid_rings(this.__wbg_ptr);
974
+ return ret;
975
+ }
934
976
  /**
935
977
  * @returns {number}
936
978
  */
@@ -1621,6 +1663,39 @@ var simdExports = /*#__PURE__*/Object.freeze({
1621
1663
  polygonize_geoarrow: polygonize_geoarrow
1622
1664
  });
1623
1665
 
1666
+ const cfbRobustOptions = {
1667
+ target: "Native",
1668
+ node_input: true,
1669
+ snap_grid_size: 0.5,
1670
+ extract_only_polygonal: false,
1671
+ snap_strategy: "GeosCompat",
1672
+ noding: {
1673
+ backend: "Snap",
1674
+ snap_mode: "FloatEpsilonDedup",
1675
+ },
1676
+ containment: {
1677
+ touch_policy: "AllowPointTouchDisallowEdgeShare",
1678
+ index_backend: "RStar",
1679
+ },
1680
+ z: {
1681
+ policy: "InterpolateAlongEdge",
1682
+ },
1683
+ determinism: {
1684
+ canonical_sort: true,
1685
+ canonical_ring_rotation: true,
1686
+ stable_tie_breaks: true,
1687
+ },
1688
+ diagnostics: {
1689
+ enabled: true,
1690
+ report_mode: true,
1691
+ },
1692
+ provenance: {
1693
+ enabled: true,
1694
+ include_boundary_line_ids: true,
1695
+ },
1696
+ input_profile_id: "cfb_robust_v1",
1697
+ };
1698
+
1624
1699
  // We provide a helper to choose based on feature detection if the user wants to use it
1625
1700
  let isSimdSupported;
1626
1701
  const SIMD_TEST_BYTES = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
@@ -1645,6 +1720,7 @@ async function initBest(scalarModule, simdModule) {
1645
1720
 
1646
1721
  exports.PolygonizerWasmError = PolygonizerWasmError$1;
1647
1722
  exports.WasmPolygonResult = WasmPolygonResult$1;
1723
+ exports.cfbRobustOptions = cfbRobustOptions;
1648
1724
  exports.initBest = initBest;
1649
1725
  exports.initSync = initSync$1;
1650
1726
  exports.polygonize = polygonize$1;
@@ -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>;
@@ -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>;
@@ -97,6 +97,20 @@ let WasmPolygonResult$1 = class WasmPolygonResult {
97
97
  const ret = wasm$1.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
98
98
  return ret >>> 0;
99
99
  }
100
+ /**
101
+ * @returns {any}
102
+ */
103
+ get cut_edges() {
104
+ const ret = wasm$1.wasmpolygonresult_cut_edges(this.__wbg_ptr);
105
+ return ret;
106
+ }
107
+ /**
108
+ * @returns {any}
109
+ */
110
+ get dangles() {
111
+ const ret = wasm$1.wasmpolygonresult_dangles(this.__wbg_ptr);
112
+ return ret;
113
+ }
100
114
  /**
101
115
  * @returns {any}
102
116
  */
@@ -118,6 +132,13 @@ let WasmPolygonResult$1 = class WasmPolygonResult {
118
132
  const ret = wasm$1.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
119
133
  return ret >>> 0;
120
134
  }
135
+ /**
136
+ * @returns {any}
137
+ */
138
+ get invalid_rings() {
139
+ const ret = wasm$1.wasmpolygonresult_invalid_rings(this.__wbg_ptr);
140
+ return ret;
141
+ }
121
142
  /**
122
143
  * @returns {number}
123
144
  */
@@ -907,6 +928,20 @@ class WasmPolygonResult {
907
928
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
908
929
  return ret >>> 0;
909
930
  }
931
+ /**
932
+ * @returns {any}
933
+ */
934
+ get cut_edges() {
935
+ const ret = wasm.wasmpolygonresult_cut_edges(this.__wbg_ptr);
936
+ return ret;
937
+ }
938
+ /**
939
+ * @returns {any}
940
+ */
941
+ get dangles() {
942
+ const ret = wasm.wasmpolygonresult_dangles(this.__wbg_ptr);
943
+ return ret;
944
+ }
910
945
  /**
911
946
  * @returns {any}
912
947
  */
@@ -928,6 +963,13 @@ class WasmPolygonResult {
928
963
  const ret = wasm.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
929
964
  return ret >>> 0;
930
965
  }
966
+ /**
967
+ * @returns {any}
968
+ */
969
+ get invalid_rings() {
970
+ const ret = wasm.wasmpolygonresult_invalid_rings(this.__wbg_ptr);
971
+ return ret;
972
+ }
931
973
  /**
932
974
  * @returns {number}
933
975
  */
@@ -1618,6 +1660,39 @@ var simdExports = /*#__PURE__*/Object.freeze({
1618
1660
  polygonize_geoarrow: polygonize_geoarrow
1619
1661
  });
1620
1662
 
1663
+ const cfbRobustOptions = {
1664
+ target: "Native",
1665
+ node_input: true,
1666
+ snap_grid_size: 0.5,
1667
+ extract_only_polygonal: false,
1668
+ snap_strategy: "GeosCompat",
1669
+ noding: {
1670
+ backend: "Snap",
1671
+ snap_mode: "FloatEpsilonDedup",
1672
+ },
1673
+ containment: {
1674
+ touch_policy: "AllowPointTouchDisallowEdgeShare",
1675
+ index_backend: "RStar",
1676
+ },
1677
+ z: {
1678
+ policy: "InterpolateAlongEdge",
1679
+ },
1680
+ determinism: {
1681
+ canonical_sort: true,
1682
+ canonical_ring_rotation: true,
1683
+ stable_tie_breaks: true,
1684
+ },
1685
+ diagnostics: {
1686
+ enabled: true,
1687
+ report_mode: true,
1688
+ },
1689
+ provenance: {
1690
+ enabled: true,
1691
+ include_boundary_line_ids: true,
1692
+ },
1693
+ input_profile_id: "cfb_robust_v1",
1694
+ };
1695
+
1621
1696
  // We provide a helper to choose based on feature detection if the user wants to use it
1622
1697
  let isSimdSupported;
1623
1698
  const SIMD_TEST_BYTES = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
@@ -1640,4 +1715,4 @@ async function initBest(scalarModule, simdModule) {
1640
1715
  }
1641
1716
  }
1642
1717
 
1643
- export { PolygonizerWasmError$1 as PolygonizerWasmError, WasmPolygonResult$1 as WasmPolygonResult, initBest, initSync$1 as initSync, polygonize$1 as polygonize, polygonizeGeoArrowWithOptions$1 as polygonizeGeoArrowWithOptions, polygonizeWithOptions$1 as polygonizeWithOptions, polygonizeWithOptionsBuffer$1 as polygonizeWithOptionsBuffer, polygonize_buffers$1 as polygonize_buffers, polygonize_geoarrow$1 as polygonize_geoarrow };
1718
+ export { PolygonizerWasmError$1 as PolygonizerWasmError, WasmPolygonResult$1 as WasmPolygonResult, cfbRobustOptions, initBest, initSync$1 as initSync, polygonize$1 as polygonize, polygonizeGeoArrowWithOptions$1 as polygonizeGeoArrowWithOptions, polygonizeWithOptions$1 as polygonizeWithOptions, polygonizeWithOptionsBuffer$1 as polygonizeWithOptionsBuffer, polygonize_buffers$1 as polygonize_buffers, polygonize_geoarrow$1 as polygonize_geoarrow };
@@ -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>;