@crossbind/port-geos 2.0.0-beta.63 → 2.0.0-beta.65
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,14 +161,14 @@ console.log(await Overlay.area(await Overlay.unite(parcel, floodZone)), await Ov
|
|
|
161
161
|
- Each call opens its own GEOS context with `GEOS_init_r`, which keeps the reentrant C API safe to call from several threads. When GEOS fails, the wrapper throws GEOS's message; for broken WKT, JavaScript catches an error reading `std::runtime_error: ParseException: Expected word but encountered end of stream`.
|
|
162
162
|
|
|
163
163
|
### More examples
|
|
164
|
-
Each one runs in your browser on [crossbind.dev/ports/geos](https://crossbind.dev/ports/geos/#
|
|
164
|
+
Each one runs in your browser on [crossbind.dev/ports/geos](https://crossbind.dev/ports/geos/#examples), next to the code shown there:
|
|
165
165
|
|
|
166
166
|
- [Test points against a prepared polygon](https://crossbind.dev/ports/geos/#02-zone): `GEOSPrepare_r` once, then `GEOSPreparedContainsXY_r` and `GEOSPreparedIntersectsXY_r` for each point, and `GEOSPreparedRelate_r` for the DE-9IM matrix.
|
|
167
167
|
- [Measure area, length and distance](https://crossbind.dev/ports/geos/#03-measure): `GEOSArea_r`, `GEOSLength_r`, `GEOSDistance_r`, `GEOSNearestPoints_r` and `GEOSGetCentroid_r`.
|
|
168
168
|
- [Buffer points, lines and polygons](https://crossbind.dev/ports/geos/#04-buffer): `GEOSBuffer_r`, `GEOSBufferWithStyle_r` with cap and join styles, and `GEOSOffsetCurve_r`.
|
|
169
169
|
- [Find why a polygon is invalid and repair it](https://crossbind.dev/ports/geos/#05-validity): `GEOSisValidReason_r`, and `GEOSMakeValidWithParams_r` with both of its methods.
|
|
170
170
|
|
|
171
|
-
Setup
|
|
171
|
+
Setup for every platform: [crossbind.dev/ports/geos](https://crossbind.dev/ports/geos/#install). The same page has [a command-line program](https://crossbind.dev/ports/geos/#wasi-program) built with `crossbind build -p wasi -e wasi`.
|
|
172
172
|
|
|
173
173
|
## What this build includes
|
|
174
174
|
- GEOS 3.15.0 (C API 1.21.0) as two static libraries: `libgeos_c`, the stable C API the examples use, and `libgeos`, the C++ library behind it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossbind/port-geos",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.65",
|
|
4
4
|
"nativeVersion": "3.15.0",
|
|
5
5
|
"description": "This package provides the precompiled GEOS library, built using crossbind, for seamless integration into JavaScript, WebAssembly, and React Native projects. It supports advanced geometry operations, including spatial analysis and topological calculations, delivering high performance and cross-platform compatibility. Perfect for web, server-side, and mobile geospatial applications.",
|
|
6
6
|
"homepage": "https://crossbind.dev/ports/geos/",
|