Skip to content

Commit

Permalink
Merge pull request #18 from sanak/fix/remove-remaining-non-re-and-fix…
Browse files Browse the repository at this point in the history
…-coordseq-getz

Remove remaining non-re function from build and add/fix GEOSCoordSeq_getZ(_r)
  • Loading branch information
chrispahm authored Aug 7, 2023
2 parents e7ea9f9 + 4a9f3a5 commit fbfddc1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 28 deletions.
11 changes: 1 addition & 10 deletions GEOS_EMCC_FLAGS.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ GEOS_EMCC_FLAGS += -s EXPORTED_FUNCTIONS="[\
'_GEOSEnvelope_r',\
'_GEOSIntersection_r',\
'_GEOSIntersectionPrec_r',\
'_GEOSBuffer',\
'_GEOSBuffer_r',\
'_GEOSBufferWithStyle_r',\
'_GEOSSingleSidedBuffer',\
'_GEOSSingleSidedBuffer_r',\
'_GEOSOffsetCurve_r',\
'_GEOSConvexHull_r',\
Expand Down Expand Up @@ -126,9 +124,7 @@ GEOS_EMCC_FLAGS += -s EXPORTED_FUNCTIONS="[\
'_GEOSHasZ_r',\
'_GEOS_getWKBOutputDims_r',\
'_GEOS_setWKBOutputDims_r',\
'_GEOS_getWKBByteOrder',\
'_GEOS_getWKBByteOrder_r',\
'_GEOS_setWKBByteOrder',\
'_GEOS_setWKBByteOrder_r',\
'_GEOSCoordSeq_create_r',\
'_GEOSCoordSeq_setOrdinate_r',\
Expand Down Expand Up @@ -180,9 +176,7 @@ GEOS_EMCC_FLAGS += -s EXPORTED_FUNCTIONS="[\
'_GEOSWKBWriter_writeHEX_r',\
'_GEOSWKBWriter_getOutputDimension_r',\
'_GEOSWKBWriter_setOutputDimension_r',\
'_GEOSWKBWriter_getByteOrder',\
'_GEOSWKBWriter_getByteOrder_r',\
'_GEOSWKBWriter_setByteOrder',\
'_GEOSWKBWriter_setByteOrder_r',\
'_GEOSWKBWriter_getIncludeSRID_r',\
'_GEOSWKBWriter_setIncludeSRID_r',\
Expand Down Expand Up @@ -240,12 +234,11 @@ GEOS_EMCC_FLAGS += -s EXPORTED_FUNCTIONS="[\
'_GEOSCoordSeq_setZ_r',\
'_GEOSCoordSeq_getX_r',\
'_GEOSCoordSeq_getY_r',\
'_GEOSCoordSeq_getZ_r',\
'_GEOSConstrainedDelaunayTriangulation_r',\
'_GEOSCoordSeq_copyFromArrays_r',\
'_GEOSCoordSeq_copyFromBuffer',\
'_GEOSCoordSeq_copyFromBuffer_r',\
'_GEOSCoordSeq_copyToArrays_r',\
'_GEOSCoordSeq_copyToBuffer',\
'_GEOSCoordSeq_copyToBuffer_r',\
'_GEOSDensify_r',\
'_GEOSDistanceWithin_r',\
Expand All @@ -261,9 +254,7 @@ GEOS_EMCC_FLAGS += -s EXPORTED_FUNCTIONS="[\
'_GEOSMakeValidParams_setMethod_r',\
'_GEOSMakeValidWithParams_r',\
'_GEOSPreparedDistanceWithin_r',\
'_GEOSWKBWriter_getFlavor',\
'_GEOSWKBWriter_getFlavor_r',\
'_GEOSWKBWriter_setFlavor',\
'_GEOSWKBWriter_setFlavor_r'\
]"

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/geos.esm.js

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions docs/functions/geos.GEOSCoordSeq.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,22 +481,6 @@ Get the Z ordinate value of a coordinate in a sequence.
| val | <code>number</code> | A pointer to a double where the ordinate value will be stored. |


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

## geos.GEOSCoordSeq\_getZ\_ ⇒ <code>number</code> ⏏
Gets the Z ordinate value for a given coordinate in a GEOSCoordSequence. This is an alias for GEOSCoordSeq_getZ_r without the context handle parameter.

**Kind**: Exported member
**Returns**: <code>number</code> - 1 on success, 0 on exception.

| Param | Type | Description |
| --- | --- | --- |
| s | <code>number</code> | A pointer to the GEOSCoordSequence to query. |
| idx | <code>number</code> | The coordinate index. |
| val | <code>number</code> | A pointer to a double to store the Z ordinate value. |


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

Expand Down
2 changes: 1 addition & 1 deletion src/allCFunctions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4639,7 +4639,7 @@ pointer * @param {number} s - The coordinate sequence pointer
* @returns {number} 1 on success, 0 on exception.
* @alias module:geos
*/
geos.GEOSCoordSeq_getZ_ = null
geos.GEOSCoordSeq_getZ = null

/**
* Gets the Z ordinate value for a given coordinate in a GEOSCoordSequence. This is equivalent to GEOSCoordSeq_getZ_ with an additional context handle parameter.
Expand Down

0 comments on commit fbfddc1

Please sign in to comment.