Skip to content
On this page

geos.GEOSSymDifference ⇒ number

Computes the symmetric difference of two geometries.

Kind: Exported member
Returns: number - A pointer to a new GEOSGeometry object representing the symmetric difference, or NULL on exception.

ParamTypeDescription
g1numberA pointer to a GEOSGeometry object.
g2numberA pointer to another GEOSGeometry object.

geos.GEOSSymDifferencePrec ⇒ number

Computes the symmetric difference of two geometries with precision control.

Kind: Exported member
Returns: number - A pointer to a new GEOSGeometry object representing the symmetric difference, or NULL on exception or invalid input.

ParamTypeDescription
g1numberA pointer to a GEOSGeometry object.
g2numberA pointer to another GEOSGeometry object.
gridSizenumberThe size of the grid used for snapping coordinates. Must be positive and non-zero.

geos.GEOSSymDifferencePrec_r ⇒ number

Computes a symmetric difference of two geometries using a specified precision model.

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.GEOSSymDifference_r ⇒ number

Computes the symmetric difference of two geometries in a thread-safe manner.

Kind: Exported member
Returns: number - A pointer to a new GEOSGeometry object representing the symmetric difference, or NULL on exception.

ParamTypeDescription
handlenumberA GEOSContextHandle_t object.
g1numberA pointer to a GEOSGeometry object.
g2numberA pointer to another GEOSGeometry object.