Skip to content
On this page

geos.GEOSIntersection ⇒ number

Computes a geometry that represents the point set intersection of the input geometries.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL if an exception was thrown.

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

geos.GEOSIntersectionPrec ⇒ number

Computes a geometry that represents the point set intersection of the input geometries using a precision model.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL if an exception was thrown.

ParamTypeDescription
g1numberA pointer to the first geometry.
g2numberA pointer to the second geometry.
gridSizenumberThe grid size for the precision model.

geos.GEOSIntersectionPrec_r ⇒ number

Computes a geometry that represents the point set intersection of the input geometries using a precision model.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL if an exception was thrown.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberA pointer to the first geometry.
g2numberA pointer to the second geometry.
gridSizenumberThe grid size for the precision model.

geos.GEOSIntersection_r ⇒ number

Computes a geometry that represents the point set intersection of the input geometries.

Kind: Exported member
Returns: number - A pointer to the resulting geometry, or NULL if an exception was thrown.

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