Skip to content

geos.GEOSCoordSeq_clone ⇒ GEOSCoordSequence

Clone a coordinate sequence.

Kind: global property of geos
Returns: GEOSCoordSequence - a copy of the coordinate sequence or NULL on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence to clone

geos.GEOSCoordSeq_clone_r ⇒ GEOSCoordSequence

Clone a coordinate sequence.

Kind: global property of geos
Returns: GEOSCoordSequence - a copy of the coordinate sequence or NULL on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence to clone

geos.GEOSCoordSeq_copyFromArrays ⇒ GEOSCoordSequence

Create a coordinate sequence by copying from arrays of doubles

Kind: global property of geos
Returns: GEOSCoordSequence - the sequence or NULL on exception

ParamTypeDescription
xArrayPointerarray of x coordinates
yArrayPointerarray of y coordinates
zArrayPointerarray of z coordinates, or NULL
mArrayPointerarray of m coordinates, or NULL
sizenumberlength of each array

geos.GEOSCoordSeq_copyFromArrays_r ⇒ GEOSCoordSequence

Create a coordinate sequence by copying from arrays of doubles

Kind: global property of geos
Returns: GEOSCoordSequence - the sequence or NULL on exception

ParamTypeDescription
handleGEOSContextHandle_t-
xArrayPointerarray of x coordinates
yArrayPointerarray of y coordinates
zArrayPointerarray of z coordinates, or NULL
mArrayPointerarray of m coordinates, or NULL
sizenumberlength of each array

geos.GEOSCoordSeq_copyFromBuffer ⇒ GEOSCoordSequence

Create a coordinate sequence by copying from an interleaved buffer of doubles (e.g., XYXY or XYZXYZ)

Kind: global property of geos
Returns: GEOSCoordSequence - the sequence or NULL on exception

ParamTypeDescription
bufNumberPointerpointer to buffer
sizenumbernumber of coordinates in the sequence
hasZnumberdoes buffer have Z values?
hasMnumberdoes buffer have M values?

geos.GEOSCoordSeq_copyFromBuffer_r ⇒ GEOSCoordSequence

Create a coordinate sequence by copying from an interleaved buffer of doubles (e.g., XYXY or XYZXYZ)

Kind: global property of geos
Returns: GEOSCoordSequence - the sequence or NULL on exception

ParamTypeDescription
handleGEOSContextHandle_t-
bufNumberPointerpointer to buffer
sizenumbernumber of coordinates in the sequence
hasZnumberdoes buffer have Z values?
hasMnumberdoes buffer have M values?

geos.GEOSCoordSeq_copyToArrays ⇒ number

Copy the contents of a coordinate sequence to arrays of doubles

Kind: global property of geos
Returns: number - 1 on success, 0 on error

ParamTypeDescription
sGEOSCoordSequencesequence to copy
xArrayPointerarray to which x values should be copied
yArrayPointerarray to which y values should be copied
zArrayPointerarray to which z values should be copied, or NULL
mArrayPointerarray to which m values should be copied, or NULL

geos.GEOSCoordSeq_copyToArrays_r ⇒ number

Copy the contents of a coordinate sequence to arrays of doubles

Kind: global property of geos
Returns: number - 1 on success, 0 on error

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencesequence to copy
xArrayPointerarray to which x values should be copied
yArrayPointerarray to which y values should be copied
zArrayPointerarray to which z values should be copied, or NULL
mArrayPointerarray to which m values should be copied, or NULL

geos.GEOSCoordSeq_copyToBuffer ⇒ number

Copy the contents of a coordinate sequence to an interleaved buffer of doubles (e.g., XYXY or XYZXYZ)

Kind: global property of geos
Returns: number - 1 on success, 0 on error

ParamTypeDescription
sGEOSCoordSequencesequence to copy
bufNumberPointerbuffer to which coordinates should be copied
hasZnumbercopy Z values to buffer?
hasMnumbercopy M values to buffer?

geos.GEOSCoordSeq_copyToBuffer_r ⇒ number

Copy the contents of a coordinate sequence to an interleaved buffer of doubles (e.g., XYXY or XYZXYZ)

Kind: global property of geos
Returns: number - 1 on success, 0 on error

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencesequence to copy
bufNumberPointerbuffer to which coordinates should be copied
hasZnumbercopy Z values to buffer?
hasMnumbercopy M values to buffer?

geos.GEOSCoordSeq_create ⇒ GEOSCoordSequence

Create a coordinate sequence.

Kind: global property of geos
Returns: GEOSCoordSequence - the sequence or NULL on exception

ParamTypeDescription
sizenumbernumber of coordinates in the sequence
dimsnumberdimensionality of the coordinates (2, 3 or 4)

geos.GEOSCoordSeq_create_r ⇒ GEOSCoordSequence

Create a coordinate sequence.

Kind: global property of geos
Returns: GEOSCoordSequence - the sequence or NULL on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sizenumbernumber of coordinates in the sequence
dimsnumberdimensionality of the coordinates (2, 3 or 4)

geos.GEOSCoordSeq_destroy ⇒ null

Destroy a coordinate sequence, freeing all memory.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence to destroy

geos.GEOSCoordSeq_destroy_r ⇒ null

Destroy a coordinate sequence, freeing all memory.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence to destroy

geos.GEOSCoordSeq_getDimensions ⇒ number

Get dimension info from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
dimsNumberPointerpointer where dimension value will be placed

geos.GEOSCoordSeq_getDimensions_r ⇒ number

Get dimension info from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
dimsNumberPointerpointer where dimension value will be placed

geos.GEOSCoordSeq_getOrdinate ⇒ number

Read Nth ordinate value from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
dimnumberthe dimension number of the ordinate to read, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getOrdinate_r ⇒ number

Read Nth ordinate value from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
dimnumberthe dimension number of the ordinate to read, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getSize ⇒ number

Get size info from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
sizeNumberPointerpointer where size value will be placed

geos.GEOSCoordSeq_getSize_r ⇒ number

Get size info from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
sizeNumberPointerpointer where size value will be placed

geos.GEOSCoordSeq_getX ⇒ number

Read X ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getXY ⇒ number

Read X and Y ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xNumberPointerpointer where ordinate X value will be placed
yNumberPointerpointer where ordinate Y value will be placed

geos.GEOSCoordSeq_getXYZ ⇒ number

Read X and Y ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xNumberPointerpointer where ordinate X value will be placed
yNumberPointerpointer where ordinate Y value will be placed
zNumberPointerpointer where ordinate Z value will be placed

geos.GEOSCoordSeq_getXYZ_r ⇒ number

Read X and Y ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xNumberPointerpointer where ordinate X value will be placed
yNumberPointerpointer where ordinate Y value will be placed
zNumberPointerpointer where ordinate Z value will be placed

geos.GEOSCoordSeq_getXY_r ⇒ number

Read X and Y ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xNumberPointerpointer where ordinate X value will be placed
yNumberPointerpointer where ordinate Y value will be placed

geos.GEOSCoordSeq_getX_r ⇒ number

Read X ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getY ⇒ number

Read Y ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getY_r ⇒ number

Read Y ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getZ ⇒ number

Read Z ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_getZ_r ⇒ number

Read Z ordinate values from a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valNumberPointerpointer where ordinate value will be placed

geos.GEOSCoordSeq_isCCW ⇒ number

Check orientation of a coordinate sequence. Closure of the sequence is assumed. Invalid (collapsed) or short (fewer than 4 points) sequences return false.

Kind: global property of geos
Returns: number - 0 on exception, 1 on success

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
is_ccwStringPointerpointer for ccw value, 1 if counter-clockwise orientation, 0 otherwise

geos.GEOSCoordSeq_isCCW_r ⇒ number

Check orientation of a coordinate sequence. Closure of the sequence is assumed. Invalid (collapsed) or short (fewer than 4 points) sequences return false.

Kind: global property of geos
Returns: number - 0 on exception, 1 on success

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
is_ccwStringPointerpointer for ccw value, 1 if counter-clockwise orientation, 0 otherwise

geos.GEOSCoordSeq_setOrdinate ⇒ number

Set Nth ordinate value in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
dimnumberthe dimension number of the ordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setOrdinate_r ⇒ number

Set Nth ordinate value in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
dimnumberthe dimension number of the ordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setX ⇒ number

Set X ordinate values in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setXY ⇒ number

Set X and Y ordinate values in a coordinate sequence simultaneously.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xnumberthe value to set the X ordinate to
ynumberthe value to set the Y ordinate to

geos.GEOSCoordSeq_setXYZ ⇒ number

Set X, Y and Z ordinate values in a coordinate sequence simultaneously.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xnumberthe value to set the X ordinate to
ynumberthe value to set the Y ordinate to
znumberthe value to set the Z ordinate to

geos.GEOSCoordSeq_setXYZ_r ⇒ number

Set X, Y and Z ordinate values in a coordinate sequence simultaneously.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xnumberthe value to set the X ordinate to
ynumberthe value to set the Y ordinate to
znumberthe value to set the Z ordinate to

geos.GEOSCoordSeq_setXY_r ⇒ number

Set X and Y ordinate values in a coordinate sequence simultaneously.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
xnumberthe value to set the X ordinate to
ynumberthe value to set the Y ordinate to

geos.GEOSCoordSeq_setX_r ⇒ number

Set X ordinate values in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setY ⇒ number

Set Y ordinate values in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setY_r ⇒ number

Set Y ordinate values in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setZ ⇒ number

Set Z ordinate values in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valnumberthe value to set the ordinate to

geos.GEOSCoordSeq_setZ_r ⇒ number

Set Z ordinate values in a coordinate sequence.

Kind: global property of geos
Returns: number - 0 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
sGEOSCoordSequencethe coordinate sequence
idxnumberthe index of the coordinate to alter, zero based
valnumberthe value to set the ordinate to