geos-wasm icon indicating copy to clipboard operation
geos-wasm copied to clipboard

WASM + JS port of GEOS

Results 9 geos-wasm issues
Sort by recently updated
recently updated
newest added

fixes #23 - Adds missing C Functions: [GEOSGeom_createRectangle](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L2486-L2498) [GEOSGeom_getExtent](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L2780-L2798) [GEOSRemoveRepeatedPoints](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L3107-L3126) [GEOSPolygonHullSimplify](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4010-L4032) [GEOSPolygonHullSimplifyMode](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4045-L4070) [GEOSLineMergeDirected](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4442-L4453) [GEOSHilbertCode](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4534-L4554) [GEOSGeom_transformXY](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4556-L4573) [GEOSWKTReader_setFixStructure](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L5368-L5378) [GEOSWKBReader_setFixStructure](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L5495-L5505) [GEOSGeomGetM](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L2654-L2663) [GEOSHasM](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L2860-L2867) [GEOSDisjointSubsetUnion](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L3551-L3561) [GEOSCoverageIsValid](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L3795-L3821) [GEOSCoverageSimplifyVW](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L3836-L3851) [GEOSLineSubstring](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4455-L4469) [GEOSEqualsIdentical](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4773-L4787) [GEOSPreparedContainsXY](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4906-L4920) [GEOSPreparedIntersectsXY](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L5006-L5020) [GEOSSTRtree_build](https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L5140-L5151) - Updates docs...

Hi, Following https://github.com/chrispahm/geos-wasm/pull/33, I found a few places where the examples were incorrect. This PR fixes them.

Closes #24 - [x] Fix polygonize variants types - [x] Append tests - Ported the following GEOS capi test: - https://github.com/libgeos/geos/blob/3.12.0/tests/unit/capi/GEOSPolygonizeTest.cpp

Closes #25 - [x] Fix nearest points types - [x] Add test - Ported the following GEOS capi test: - https://github.com/libgeos/geos/blob/3.12.0/tests/unit/capi/GEOSNearestPointsTest.cpp

`GEOSNearestPoints` method's argument/return `string` types need to be `number` from geos CAPI definition (https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L3226-L3239). ```diff --- a/src/allCFunctions.mjs +++ b/src/allCFunctions.mjs @@ -724,9 +724,9 @@ export function initCFunctions (config = {}) {...

bug

I noticed that the following C functions (since 3.11 and 3.12) are missing in main branch. It's not so urgent, but it would be nice to support these methods. -...

enhancement

`GEOSPolygonize_valid` and `GEOSPolygonizer_getCutEdges` methods' argument/return `string` types need to be `number` like `GEOSPolygonize`, from geos CAPI definition (https://github.com/libgeos/geos/blob/3.12.0/capi/geos_c.h.in#L4338-L4371), I think. ```diff --- a/src/allCFunctions.mjs +++ b/src/allCFunctions.mjs @@ -2152,21 +2152,21 @@ export...

bug

@chrispahm I think that it's good to provide JTS Test Builder like example test app in this repository's ~~`docs/examples`~~ `docs/public/apps`, but how do you think about this ? - [The...

Awesome. Do you plan to make it available in Observable? Actually, we absolutely need that! In any case, i'm available for testing.