Skip to content

Commit

Permalink
Merge pull request #11 from chrispahm/export-all-geos-functions
Browse files Browse the repository at this point in the history
Upgrade to GEOS 3.12.0
  • Loading branch information
chrispahm authored Jul 26, 2023
2 parents 1bc95f8 + b8657a7 commit 81149f4
Show file tree
Hide file tree
Showing 45 changed files with 1,371 additions and 101 deletions.
42 changes: 42 additions & 0 deletions GEOS_EMCC_FLAGS.mk
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,48 @@ GEOS_EMCC_FLAGS += -s EXPORTED_FUNCTIONS="[\
'_GEOSCoordSeq_setZ_r',\
'_GEOSCoordSeq_getX_r',\
'_GEOSCoordSeq_getY_r',\
'_GEOSConstrainedDelaunayTriangulation',\
'_GEOSConstrainedDelaunayTriangulation_r',\
'_GEOSCoordSeq_copyFromArrays',\
'_GEOSCoordSeq_copyFromArrays_r',\
'_GEOSCoordSeq_copyFromBuffer',\
'_GEOSCoordSeq_copyFromBuffer_r',\
'_GEOSCoordSeq_copyToArrays',\
'_GEOSCoordSeq_copyToArrays_r',\
'_GEOSCoordSeq_copyToBuffer',\
'_GEOSCoordSeq_copyToBuffer_r',\
'_GEOSDensify',\
'_GEOSDensify_r',\
'_GEOSDistanceWithin',\
'_GEOSDistanceWithin_r',\
'_GEOSGeoJSONReader_create',\
'_GEOSGeoJSONReader_create_r',\
'_GEOSGeoJSONReader_destroy',\
'_GEOSGeoJSONReader_destroy_r',\
'_GEOSGeoJSONReader_readGeometry',\
'_GEOSGeoJSONReader_readGeometry_r',\
'_GEOSGeoJSONWriter_create',\
'_GEOSGeoJSONWriter_create_r',\
'_GEOSGeoJSONWriter_destroy',\
'_GEOSGeoJSONWriter_destroy_r',\
'_GEOSGeoJSONWriter_writeGeometry',\
'_GEOSGeoJSONWriter_writeGeometry_r',\
'_GEOSMakeValidParams_create',\
'_GEOSMakeValidParams_create_r',\
'_GEOSMakeValidParams_destroy',\
'_GEOSMakeValidParams_destroy_r',\
'_GEOSMakeValidParams_setKeepCollapsed',\
'_GEOSMakeValidParams_setKeepCollapsed_r',\
'_GEOSMakeValidParams_setMethod',\
'_GEOSMakeValidParams_setMethod_r',\
'_GEOSMakeValidWithParams',\
'_GEOSMakeValidWithParams_r',\
'_GEOSPreparedDistanceWithin',\
'_GEOSPreparedDistanceWithin_r',\
'_GEOSWKBWriter_getFlavor',\
'_GEOSWKBWriter_getFlavor_r',\
'_GEOSWKBWriter_setFlavor',\
'_GEOSWKBWriter_setFlavor_r',\
'_finishGEOS'\
]"

Expand Down
27 changes: 14 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GEOS_VERSION = 3.9.4
GEOS_VERSION = 3.12.0

GEOS_URL = "http://download.osgeo.org/geos/geos-$(GEOS_VERSION).tar.bz2"

Expand All @@ -16,8 +16,8 @@ else
TYPE_FLAGS = -O3
endif

# EMCC_CFLAGS = -g4 -O0 -fexceptions -DRENAME_INTERNAL_LIBTIFF_SYMBOLS
EMCC_CFLAGS = $(TYPE_FLAGS) -fexceptions -DRENAME_INTERNAL_LIBTIFF_SYMBOLS -s ERROR_ON_UNDEFINED_SYMBOLS=0
# EMCC_CFLAGS = $(TYPE_FLAGS) -fexceptions -s ERROR_ON_UNDEFINED_SYMBOLS=0
EMCC_CFLAGS = $(TYPE_FLAGS) -fexceptions -s
EMMAKE ?= EMCC_CFLAGS="$(EMCC_CFLAGS)" emmake
EMCMAKE ?= emcmake
EMCC ?= CFLAGS="$(EMCC_CFLAGS)" emcc
Expand All @@ -40,20 +40,21 @@ $(DIST_DIR)/geos.js: $(ROOT_DIR)/lib/libgeos.a
EMCC_CORES=4 $(EMCC) $(ROOT_DIR)/lib/libgeos.a $(ROOT_DIR)/lib/libgeos_c.a \
-o $@ $(GEOS_EMCC_FLAGS);

$(ROOT_DIR)/lib/libgeos.a: $(GEOS_SRC)/Makefile
cd $(GEOS_SRC); \
$(EMMAKE) make install;
$(ROOT_DIR)/lib/libgeos.a: $(GEOS_SRC)/build/Makefile
cd $(GEOS_SRC)/build; \
$(EMMAKE) make -j4 install;

$(GEOS_SRC)/Makefile: $(GEOS_SRC)/configure
$(GEOS_SRC)/build/Makefile: $(GEOS_SRC)/CMakeLists.txt
cd $(GEOS_SRC); \
$(EMCONFIGURE) ./configure $(PREFIX) --enable-shared=no --disable-inline;
rm -rf $(ROOT_DIR)/lib/cmake; \
mkdir build; \
cd build; \
$(EMCMAKE) cmake .. $(PREFIX_CMAKE) -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \
-DCMAKE_PREFIX_PATH=$(ROOT_DIR) -DCMAKE_FIND_ROOT_PATH=$(ROOT_DIR) \

$(GEOS_SRC)/configure:
$(GEOS_SRC)/CMakeLists.txt:
mkdir -p $(SRC_DIR); \
cd $(SRC_DIR); \
echo "{}" > package.json; \
wget -nc $(GEOS_URL); \
tar -xf geos-$(GEOS_VERSION).tar.bz2;

clean:
rm -rf $(SRC_DIR_FULL) $(ROOT_DIR) $(DIST_DIR)
tar -xf geos-$(GEOS_VERSION).tar.bz2;
2 changes: 1 addition & 1 deletion docs/allFunctions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"text":"Module","link":"/functions/geos.Module.md"},{"text":"GEOSArea","link":"/functions/geos.GEOSArea.md"},{"text":"GEOSBoundary","link":"/functions/geos.GEOSBoundary.md"},{"text":"GEOSBuffer","link":"/functions/geos.GEOSBuffer.md"},{"text":"GEOSBuildArea","link":"/functions/geos.GEOSBuildArea.md"},{"text":"GEOSClipByRect","link":"/functions/geos.GEOSClipByRect.md"},{"text":"GEOSContains","link":"/functions/geos.GEOSContains.md"},{"text":"GEOSContext","link":"/functions/geos.GEOSContext.md"},{"text":"GEOSConvexHull","link":"/functions/geos.GEOSConvexHull.md"},{"text":"GEOSCoordSeq","link":"/functions/geos.GEOSCoordSeq.md"},{"text":"GEOSCoverageUnion","link":"/functions/geos.GEOSCoverageUnion.md"},{"text":"GEOSCoveredBy","link":"/functions/geos.GEOSCoveredBy.md"},{"text":"GEOSCovers","link":"/functions/geos.GEOSCovers.md"},{"text":"GEOSCrosses","link":"/functions/geos.GEOSCrosses.md"},{"text":"GEOSDelaunayTriangulation","link":"/functions/geos.GEOSDelaunayTriangulation.md"},{"text":"GEOSDifference","link":"/functions/geos.GEOSDifference.md"},{"text":"GEOSDisjoint","link":"/functions/geos.GEOSDisjoint.md"},{"text":"GEOSDistance","link":"/functions/geos.GEOSDistance.md"},{"text":"GEOSEnvelope","link":"/functions/geos.GEOSEnvelope.md"},{"text":"GEOSEquals","link":"/functions/geos.GEOSEquals.md"},{"text":"GEOSFrechetDistance","link":"/functions/geos.GEOSFrechetDistance.md"},{"text":"GEOSFree","link":"/functions/geos.GEOSFree.md"},{"text":"GEOSGeom","link":"/functions/geos.GEOSGeom.md"},{"text":"GEOSGetCentroid","link":"/functions/geos.GEOSGetCentroid.md"},{"text":"GEOSGetExteriorRing","link":"/functions/geos.GEOSGetExteriorRing.md"},{"text":"GEOSGetGeometryN","link":"/functions/geos.GEOSGetGeometryN.md"},{"text":"GEOSGetInteriorRingN","link":"/functions/geos.GEOSGetInteriorRingN.md"},{"text":"GEOSGetNumCoordinates","link":"/functions/geos.GEOSGetNumCoordinates.md"},{"text":"GEOSGetNumGeometries","link":"/functions/geos.GEOSGetNumGeometries.md"},{"text":"GEOSGetNumInteriorRings","link":"/functions/geos.GEOSGetNumInteriorRings.md"},{"text":"GEOSGetSRID","link":"/functions/geos.GEOSGetSRID.md"},{"text":"GEOSHasZ","link":"/functions/geos.GEOSHasZ.md"},{"text":"GEOSHausdorffDistance","link":"/functions/geos.GEOSHausdorffDistance.md"},{"text":"GEOSInterpolate","link":"/functions/geos.GEOSInterpolate.md"},{"text":"GEOSIntersection","link":"/functions/geos.GEOSIntersection.md"},{"text":"GEOSIntersects","link":"/functions/geos.GEOSIntersects.md"},{"text":"GEOSLargestEmptyCircle","link":"/functions/geos.GEOSLargestEmptyCircle.md"},{"text":"GEOSLength","link":"/functions/geos.GEOSLength.md"},{"text":"GEOSLineMerge","link":"/functions/geos.GEOSLineMerge.md"},{"text":"GEOSMakeValid","link":"/functions/geos.GEOSMakeValid.md"},{"text":"GEOSMaximumInscribedCircle","link":"/functions/geos.GEOSMaximumInscribedCircle.md"},{"text":"GEOSMinimumBoundingCircle","link":"/functions/geos.GEOSMinimumBoundingCircle.md"},{"text":"GEOSMinimumClearance","link":"/functions/geos.GEOSMinimumClearance.md"},{"text":"GEOSMinimumRotatedRectangle","link":"/functions/geos.GEOSMinimumRotatedRectangle.md"},{"text":"GEOSMinimumWidth","link":"/functions/geos.GEOSMinimumWidth.md"},{"text":"GEOSNearestPoints","link":"/functions/geos.GEOSNearestPoints.md"},{"text":"GEOSNode","link":"/functions/geos.GEOSNode.md"},{"text":"GEOSNormalize","link":"/functions/geos.GEOSNormalize.md"},{"text":"GEOSOffsetCurve","link":"/functions/geos.GEOSOffsetCurve.md"},{"text":"GEOSOrientationIndex","link":"/functions/geos.GEOSOrientationIndex.md"},{"text":"GEOSOverlaps","link":"/functions/geos.GEOSOverlaps.md"},{"text":"GEOSPointOnSurface","link":"/functions/geos.GEOSPointOnSurface.md"},{"text":"GEOSPolygonize","link":"/functions/geos.GEOSPolygonize.md"},{"text":"GEOSPrepare","link":"/functions/geos.GEOSPrepare.md"},{"text":"GEOSProject","link":"/functions/geos.GEOSProject.md"},{"text":"GEOSRelate","link":"/functions/geos.GEOSRelate.md"},{"text":"GEOSReverse","link":"/functions/geos.GEOSReverse.md"},{"text":"GEOSSTRtree","link":"/functions/geos.GEOSSTRtree.md"},{"text":"GEOSSegmentIntersection","link":"/functions/geos.GEOSSegmentIntersection.md"},{"text":"GEOSSetSRID","link":"/functions/geos.GEOSSetSRID.md"},{"text":"GEOSSharedPaths","link":"/functions/geos.GEOSSharedPaths.md"},{"text":"GEOSSimplify","link":"/functions/geos.GEOSSimplify.md"},{"text":"GEOSSingleSidedBuffer","link":"/functions/geos.GEOSSingleSidedBuffer.md"},{"text":"GEOSSnap","link":"/functions/geos.GEOSSnap.md"},{"text":"GEOSSymDifference","link":"/functions/geos.GEOSSymDifference.md"},{"text":"GEOSTopologyPreserveSimplify","link":"/functions/geos.GEOSTopologyPreserveSimplify.md"},{"text":"GEOSTouches","link":"/functions/geos.GEOSTouches.md"},{"text":"GEOSUnaryUnion","link":"/functions/geos.GEOSUnaryUnion.md"},{"text":"GEOSUnion","link":"/functions/geos.GEOSUnion.md"},{"text":"GEOSVoronoiDiagram","link":"/functions/geos.GEOSVoronoiDiagram.md"},{"text":"GEOSWKBReader","link":"/functions/geos.GEOSWKBReader.md"},{"text":"GEOSWKBWriter","link":"/functions/geos.GEOSWKBWriter.md"},{"text":"GEOSWKTReader","link":"/functions/geos.GEOSWKTReader.md"},{"text":"GEOSWKTWriter","link":"/functions/geos.GEOSWKTWriter.md"},{"text":"GEOSWithin","link":"/functions/geos.GEOSWithin.md"},{"text":"GEOS_getWKBByteOrder","link":"/functions/geos.GEOS_getWKBByteOrder.md"},{"text":"GEOS_getWKBOutputDims","link":"/functions/geos.GEOS_getWKBOutputDims.md"},{"text":"GEOS_setWKBByteOrder","link":"/functions/geos.GEOS_setWKBByteOrder.md"},{"text":"GEOS_setWKBOutputDims","link":"/functions/geos.GEOS_setWKBOutputDims.md"},{"text":"GEOSisClosed","link":"/functions/geos.GEOSisClosed.md"},{"text":"GEOSisEmpty","link":"/functions/geos.GEOSisEmpty.md"},{"text":"GEOSisRing","link":"/functions/geos.GEOSisRing.md"},{"text":"GEOSisSimple","link":"/functions/geos.GEOSisSimple.md"},{"text":"GEOSisValid","link":"/functions/geos.GEOSisValid.md"}]
[{"text":"Module","link":"/functions/geos.Module.md"},{"text":"GEOSArea","link":"/functions/geos.GEOSArea.md"},{"text":"GEOSBoundary","link":"/functions/geos.GEOSBoundary.md"},{"text":"GEOSBuffer","link":"/functions/geos.GEOSBuffer.md"},{"text":"GEOSBuildArea","link":"/functions/geos.GEOSBuildArea.md"},{"text":"GEOSClipByRect","link":"/functions/geos.GEOSClipByRect.md"},{"text":"GEOSConstrainedDelaunayTriangulation","link":"/functions/geos.GEOSConstrainedDelaunayTriangulation.md"},{"text":"GEOSContains","link":"/functions/geos.GEOSContains.md"},{"text":"GEOSContext","link":"/functions/geos.GEOSContext.md"},{"text":"GEOSConvexHull","link":"/functions/geos.GEOSConvexHull.md"},{"text":"GEOSCoordSeq","link":"/functions/geos.GEOSCoordSeq.md"},{"text":"GEOSCoverageUnion","link":"/functions/geos.GEOSCoverageUnion.md"},{"text":"GEOSCoveredBy","link":"/functions/geos.GEOSCoveredBy.md"},{"text":"GEOSCovers","link":"/functions/geos.GEOSCovers.md"},{"text":"GEOSCrosses","link":"/functions/geos.GEOSCrosses.md"},{"text":"GEOSDelaunayTriangulation","link":"/functions/geos.GEOSDelaunayTriangulation.md"},{"text":"GEOSDensify","link":"/functions/geos.GEOSDensify.md"},{"text":"GEOSDifference","link":"/functions/geos.GEOSDifference.md"},{"text":"GEOSDisjoint","link":"/functions/geos.GEOSDisjoint.md"},{"text":"GEOSDistance","link":"/functions/geos.GEOSDistance.md"},{"text":"GEOSEnvelope","link":"/functions/geos.GEOSEnvelope.md"},{"text":"GEOSEquals","link":"/functions/geos.GEOSEquals.md"},{"text":"GEOSFrechetDistance","link":"/functions/geos.GEOSFrechetDistance.md"},{"text":"GEOSFree","link":"/functions/geos.GEOSFree.md"},{"text":"GEOSGeoJSONReader","link":"/functions/geos.GEOSGeoJSONReader.md"},{"text":"GEOSGeoJSONWriter","link":"/functions/geos.GEOSGeoJSONWriter.md"},{"text":"GEOSGeom","link":"/functions/geos.GEOSGeom.md"},{"text":"GEOSGetCentroid","link":"/functions/geos.GEOSGetCentroid.md"},{"text":"GEOSGetExteriorRing","link":"/functions/geos.GEOSGetExteriorRing.md"},{"text":"GEOSGetGeometryN","link":"/functions/geos.GEOSGetGeometryN.md"},{"text":"GEOSGetInteriorRingN","link":"/functions/geos.GEOSGetInteriorRingN.md"},{"text":"GEOSGetNumCoordinates","link":"/functions/geos.GEOSGetNumCoordinates.md"},{"text":"GEOSGetNumGeometries","link":"/functions/geos.GEOSGetNumGeometries.md"},{"text":"GEOSGetNumInteriorRings","link":"/functions/geos.GEOSGetNumInteriorRings.md"},{"text":"GEOSGetSRID","link":"/functions/geos.GEOSGetSRID.md"},{"text":"GEOSHasZ","link":"/functions/geos.GEOSHasZ.md"},{"text":"GEOSHausdorffDistance","link":"/functions/geos.GEOSHausdorffDistance.md"},{"text":"GEOSInterpolate","link":"/functions/geos.GEOSInterpolate.md"},{"text":"GEOSIntersection","link":"/functions/geos.GEOSIntersection.md"},{"text":"GEOSIntersects","link":"/functions/geos.GEOSIntersects.md"},{"text":"GEOSLargestEmptyCircle","link":"/functions/geos.GEOSLargestEmptyCircle.md"},{"text":"GEOSLength","link":"/functions/geos.GEOSLength.md"},{"text":"GEOSLineMerge","link":"/functions/geos.GEOSLineMerge.md"},{"text":"GEOSMakeValid","link":"/functions/geos.GEOSMakeValid.md"},{"text":"GEOSMaximumInscribedCircle","link":"/functions/geos.GEOSMaximumInscribedCircle.md"},{"text":"GEOSMinimumBoundingCircle","link":"/functions/geos.GEOSMinimumBoundingCircle.md"},{"text":"GEOSMinimumClearance","link":"/functions/geos.GEOSMinimumClearance.md"},{"text":"GEOSMinimumRotatedRectangle","link":"/functions/geos.GEOSMinimumRotatedRectangle.md"},{"text":"GEOSMinimumWidth","link":"/functions/geos.GEOSMinimumWidth.md"},{"text":"GEOSNearestPoints","link":"/functions/geos.GEOSNearestPoints.md"},{"text":"GEOSNode","link":"/functions/geos.GEOSNode.md"},{"text":"GEOSNormalize","link":"/functions/geos.GEOSNormalize.md"},{"text":"GEOSOffsetCurve","link":"/functions/geos.GEOSOffsetCurve.md"},{"text":"GEOSOrientationIndex","link":"/functions/geos.GEOSOrientationIndex.md"},{"text":"GEOSOverlaps","link":"/functions/geos.GEOSOverlaps.md"},{"text":"GEOSPointOnSurface","link":"/functions/geos.GEOSPointOnSurface.md"},{"text":"GEOSPolygonize","link":"/functions/geos.GEOSPolygonize.md"},{"text":"GEOSPrepare","link":"/functions/geos.GEOSPrepare.md"},{"text":"GEOSProject","link":"/functions/geos.GEOSProject.md"},{"text":"GEOSRelate","link":"/functions/geos.GEOSRelate.md"},{"text":"GEOSReverse","link":"/functions/geos.GEOSReverse.md"},{"text":"GEOSSTRtree","link":"/functions/geos.GEOSSTRtree.md"},{"text":"GEOSSegmentIntersection","link":"/functions/geos.GEOSSegmentIntersection.md"},{"text":"GEOSSetSRID","link":"/functions/geos.GEOSSetSRID.md"},{"text":"GEOSSharedPaths","link":"/functions/geos.GEOSSharedPaths.md"},{"text":"GEOSSimplify","link":"/functions/geos.GEOSSimplify.md"},{"text":"GEOSSingleSidedBuffer","link":"/functions/geos.GEOSSingleSidedBuffer.md"},{"text":"GEOSSnap","link":"/functions/geos.GEOSSnap.md"},{"text":"GEOSSymDifference","link":"/functions/geos.GEOSSymDifference.md"},{"text":"GEOSTopologyPreserveSimplify","link":"/functions/geos.GEOSTopologyPreserveSimplify.md"},{"text":"GEOSTouches","link":"/functions/geos.GEOSTouches.md"},{"text":"GEOSUnaryUnion","link":"/functions/geos.GEOSUnaryUnion.md"},{"text":"GEOSUnion","link":"/functions/geos.GEOSUnion.md"},{"text":"GEOSVoronoiDiagram","link":"/functions/geos.GEOSVoronoiDiagram.md"},{"text":"GEOSWKBReader","link":"/functions/geos.GEOSWKBReader.md"},{"text":"GEOSWKBWriter","link":"/functions/geos.GEOSWKBWriter.md"},{"text":"GEOSWKTReader","link":"/functions/geos.GEOSWKTReader.md"},{"text":"GEOSWKTWriter","link":"/functions/geos.GEOSWKTWriter.md"},{"text":"GEOSWithin","link":"/functions/geos.GEOSWithin.md"},{"text":"GEOS_getWKBByteOrder","link":"/functions/geos.GEOS_getWKBByteOrder.md"},{"text":"GEOS_getWKBOutputDims","link":"/functions/geos.GEOS_getWKBOutputDims.md"},{"text":"GEOS_setWKBByteOrder","link":"/functions/geos.GEOS_setWKBByteOrder.md"},{"text":"GEOS_setWKBOutputDims","link":"/functions/geos.GEOS_setWKBOutputDims.md"},{"text":"GEOSisClosed","link":"/functions/geos.GEOSisClosed.md"},{"text":"GEOSisEmpty","link":"/functions/geos.GEOSisEmpty.md"},{"text":"GEOSisRing","link":"/functions/geos.GEOSisRing.md"},{"text":"GEOSisSimple","link":"/functions/geos.GEOSisSimple.md"},{"text":"GEOSisValid","link":"/functions/geos.GEOSisValid.md"}]
2 changes: 1 addition & 1 deletion docs/assets/geos.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/geos.GEOSArea.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Calculate the area of a geometry.

**Kind**: Exported member
**Returns**: <code>number</code> - 1 on success, 0 on exception
**See**: https://libgeos.org/doxygen/classgeos_1_1algorithm_1_1Area.html
**See**: https://libgeos.org/doxygen/geos__c_8h.html#af5eec7e8796b756cf007fd21bb3a88ad

| Param | Type | Description |
| --- | --- | --- |
Expand Down
14 changes: 7 additions & 7 deletions docs/functions/geos.GEOSClipByRect.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<a name="exp_module_geos--geos.GEOSClipByRect"></a>

## geos.GEOSClipByRect ⇒ <code>string</code> ⏏
## geos.GEOSClipByRect ⇒ <code>number</code> ⏏
Clips a geometry by a rectangular extent.

**Kind**: Exported member
**Returns**: <code>string</code> - A string representing the clipped geometry in Well-Known Text format, or null if an error occurs.
**Returns**: <code>number</code> - The clipped geometry or NULL on exception Caller is responsible for freeing with GEOSGeom_destroy().

| Param | Type | Description |
| --- | --- | --- |
| wkt | <code>string</code> | A string representing the geometry in Well-Known Text format. |
| g | <code>number</code> | A pointer to a GEOSGeometry object. |
| xmin | <code>number</code> | The minimum x-coordinate of the clipping rectangle. |
| ymin | <code>number</code> | The minimum y-coordinate of the clipping rectangle. |
| xmax | <code>number</code> | The maximum x-coordinate of the clipping rectangle. |
Expand All @@ -18,16 +18,16 @@ Clips a geometry by a rectangular extent.
---
<a name="exp_module_geos--geos.GEOSClipByRect_r"></a>

## geos.GEOSClipByRect\_r ⇒ <code>string</code> ⏏
## geos.GEOSClipByRect\_r ⇒ <code>number</code> ⏏
Clips a geometry by a rectangular extent, using a thread-safe context handle.

**Kind**: Exported member
**Returns**: <code>string</code> - A string representing the clipped geometry in Well-Known Text format, or null if an error occurs.
**Returns**: <code>number</code> - The clipped geometry or NULL on exception Caller is responsible for freeing with GEOSGeom_destroy().

| Param | Type | Description |
| --- | --- | --- |
| handle | <code>string</code> | A pointer to a GEOSContextHandle_t object. |
| wkt | <code>string</code> | A string representing the geometry in Well-Known Text format. |
| handle | <code>number</code> | A pointer to a GEOSContextHandle_t object. |
| g | <code>number</code> | A pointer to a GEOSGeometry object. |
| xmin | <code>number</code> | The minimum x-coordinate of the clipping rectangle. |
| ymin | <code>number</code> | The minimum y-coordinate of the clipping rectangle. |
| xmax | <code>number</code> | The maximum x-coordinate of the clipping rectangle. |
Expand Down
31 changes: 31 additions & 0 deletions docs/functions/geos.GEOSConstrainedDelaunayTriangulation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<a name="exp_module_geos--geos.GEOSConstrainedDelaunayTriangulation"></a>

## geos.GEOSConstrainedDelaunayTriangulation ⇒ <code>number</code> ⏏
Computes the Constrained Delaunay Triangulation of a polygon geometry.

**Kind**: Exported member
**Returns**: <code>number</code> - A pointer to a GEOS geometry object representing the triangulation, or NULL on error.
**See**: https://libgeos.org/doxygen/geos__c_8h.html#a0f6b9f4c2e8a3b1f7c2a5d0e3c6a7d9f

| Param | Type | Description |
| --- | --- | --- |
| g | <code>number</code> | A pointer to a GEOS geometry object representing the input polygon. |


---
<a name="exp_module_geos--geos.GEOSConstrainedDelaunayTriangulation_r"></a>

## geos.GEOSConstrainedDelaunayTriangulation\_r ⇒ <code>number</code> ⏏
Computes the Constrained Delaunay Triangulation of a polygon.

**Kind**: Exported member
**Returns**: <code>number</code> - A pointer to a GEOS geometry object representing the triangulation, or NULL on error.
**See**: https://libgeos.org/doxygen/geos__c_8h.html#a4a9f3c0bfbf1f9c6b1a7b0e7a8d4d5c6

| Param | Type | Description |
| --- | --- | --- |
| handle | <code>number</code> | A pointer to a GEOS context handle. |
| g | <code>number</code> | A pointer to a GEOS geometry object representing the polygon. |


---
4 changes: 2 additions & 2 deletions docs/functions/geos.GEOSContains.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tests if the first geometry contains the second geometry.

**Kind**: Exported member
**Returns**: <code>number</code> - 1 if true, 0 if false, -1 on error.
**Returns**: <code>number</code> - = 1 if true, 0 if false, -1 on error.

| Param | Type | Description |
| --- | --- | --- |
Expand All @@ -19,7 +19,7 @@ Tests if the first geometry contains the second geometry.
Tests if the first geometry contains the second geometry in a given context.

**Kind**: Exported member
**Returns**: <code>number</code> - 1 if true, 0 if false, -1 on error.
**Returns**: <code>number</code> - = 1 if true, 0 if false, -1 on error.

| Param | Type | Description |
| --- | --- | --- |
Expand Down
Loading

0 comments on commit 81149f4

Please sign in to comment.