Skip to content
On this page

geos.GEOSUnion ⇒ number

Computes a union of two geometries.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL on exception.

ParamTypeDescription
g1numberA pointer to the first geometry.
g2numberA pointer to the second geometry.

geos.GEOSUnionCascaded ⇒ number

Computes the union of a collection of polygonal geometries using an optimized algorithm.

Kind: Exported member
Returns: number - The pointer to a GEOS geometry representing the union, or NULL on error.
See: https://libgeos.org/doxygen/classgeos_1_1operation_1_1geounion_1_1CascadedPolygonUnion.html

ParamTypeDescription
gnumberThe pointer to a GEOS geometry collection.

geos.GEOSUnionCascaded_r ⇒ number

Computes the union of a collection of polygonal geometries using an optimized algorithm.

Kind: Exported member
Returns: number - The pointer to a GEOS geometry representing the union, or NULL on error.
See: https://libgeos.org/doxygen/classgeos_1_1operation_1_1geounion_1_1CascadedPolygonUnion.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
gnumberThe pointer to a GEOS geometry collection.

geos.GEOSUnionPrec ⇒ number

Computes a union of two geometries using a specified precision model.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL on exception.

ParamTypeDescription
g1numberA pointer to the first geometry.
g2numberA pointer to the second geometry.
gridsizenumberThe precision grid size to use.

geos.GEOSUnionPrec_r ⇒ number

Computes a union of two geometries using a specified precision model and context handle.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL on exception.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberA pointer to the first geometry.
g2numberA pointer to the second geometry.
gridsizenumberThe precision grid size to use.

geos.GEOSUnion_r ⇒ number

Computes a union of two geometries using a specified context handle.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL on exception.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberA pointer to the first geometry.
g2numberA pointer to the second geometry.