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 +3 -3
- package/dist/geo_polygonize.wasm +0 -0
- package/dist/geo_polygonize_simd.wasm +0 -0
- package/dist/slim/cjs/index_slim.js +1 -1
- package/dist/slim/es/index_slim.js +1 -1
- package/dist/slim/pkg-scalar/geo_polygonize.d.ts +1 -1
- package/dist/standard/cjs/index.js +3 -3
- package/dist/standard/es/index.js +3 -3
- package/dist/standard/pkg-scalar/geo_polygonize.d.ts +1 -1
- package/dist/threads/es/index.js +1 -1
- package/dist/threads/pkg-threads/geo_polygonize.d.ts +1 -1
- package/package.json +1 -1
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
|
|
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**:
|
|
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
|
-
#
|
|
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
|
package/dist/geo_polygonize.wasm
CHANGED
|
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
|
|
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
|
|
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
|
|
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
|
*/
|