Skip to content

geos.GEOSClipByRect ⇒ GEOSGeometry

Intersection optimized for a rectangular clipping polygon. Supposed to be faster than using GEOSIntersection(). Not guaranteed to return valid results.

Kind: global property of geos
Returns: GEOSGeometry - The clipped geometry or NULL on exception Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
gGEOSGeometryThe input geometry to be clipped
xminnumberLeft bound of clipping rectangle
yminnumberLower bound of clipping rectangle
xmaxnumberRight bound of clipping rectangle
ymaxnumberUpper bound of clipping rectangle

geos.GEOSClipByRect_r ⇒ GEOSGeometry

Intersection optimized for a rectangular clipping polygon. Supposed to be faster than using GEOSIntersection(). Not guaranteed to return valid results.

Kind: global property of geos
Returns: GEOSGeometry - The clipped geometry or NULL on exception Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe input geometry to be clipped
xminnumberLeft bound of clipping rectangle
yminnumberLower bound of clipping rectangle
xmaxnumberRight bound of clipping rectangle
ymaxnumberUpper bound of clipping rectangle