geo-polygonize 0.39.1 → 0.39.3

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/README.md CHANGED
@@ -9,10 +9,10 @@ A native Rust port of the JTS/GEOS polygonization algorithm. This crate allows y
9
9
  - **Robust Polygonization**: Extracts polygons from unstructured linework.
10
10
  - **Robust Noding**: Implements **Iterated Snap Rounding (ISR)** to guarantee topological correctness on dirty inputs (self-intersections, overlaps).
11
11
  - **Hardware Acceleration**: Uses **SIMD** instructions (via `wide` crate) for critical geometric predicates like Point-in-Polygon checks.
12
- - **Wasm Optimized**: Tailored for WebAssembly with `talc` allocator and Zero-Copy data support (`geoarrow`).
12
+ - **Wasm Optimized**: Tailored for WebAssembly with `talc` allocator and binary GeoArrow support.
13
13
  - **Performance**: Competitive with GEOS/Shapely (C++), outperforming it on random sparse inputs and scaling well on dense grids.
14
14
  - **Geo Ecosystem**: Fully integrated with `geo-types` and `geo` crates.
15
- - **GeoArrow Support**: Zero-copy data transfer via Arrow C Data Interface and Arrow IPC (Wasm).
15
+ - **GeoArrow Support**: Arrow C Data Interface and Arrow IPC integration with GeoArrow metadata.
16
16
 
17
17
  ## Engineering Roadmap
18
18
 
@@ -110,7 +110,7 @@ for p in polygons:
110
110
  print(p.area)
111
111
 
112
112
  # 2. Using High-Performance Flat Arrays
113
- # Perfect for zero-copy integrations or massive datasets
113
+ # Flat buffers avoid Python object-per-coordinate overhead
114
114
  coords = np.array([
115
115
  0.0, 0.0, 10.0, 0.0, 10.0, 10.0, 0.0, 10.0, 0.0, 0.0,
116
116
  0.0, 0.0, 10.0, 10.0
Binary file
Binary file
@@ -219,7 +219,7 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
219
219
  /**
220
220
  * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
221
221
  *
222
- * This zero-copy path avoids JSON serialization overhead and returns a binary
222
+ * This binary path avoids JSON serialization overhead and returns an
223
223
  * Arrow IPC stream containing a GeoArrow Polygon array. Requires the options
224
224
  * to be passed as a parsed JS object.
225
225
  * @param {Uint8Array} ipc_bytes
@@ -216,7 +216,7 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
216
216
  /**
217
217
  * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
218
218
  *
219
- * This zero-copy path avoids JSON serialization overhead and returns a binary
219
+ * This binary path avoids JSON serialization overhead and returns an
220
220
  * Arrow IPC stream containing a GeoArrow Polygon array. Requires the options
221
221
  * to be passed as a parsed JS object.
222
222
  * @param {Uint8Array} ipc_bytes
@@ -35,7 +35,7 @@ export function polygonize(geojson_str: string, node_input?: boolean | null, sna
35
35
  /**
36
36
  * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
37
37
  *
38
- * This zero-copy path avoids JSON serialization overhead and returns a binary
38
+ * This binary path avoids JSON serialization overhead and returns an
39
39
  * Arrow IPC stream containing a GeoArrow Polygon array. Requires the options
40
40
  * to be passed as a parsed JS object.
41
41
  */