geos.GEOSClipByRect ⇒ number
⏏
Clips a geometry by a rectangular extent.
Kind: Exported member
Returns: number
- The clipped geometry or NULL on exception Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | number | A pointer to a GEOSGeometry object. |
xmin | number | The minimum x-coordinate of the clipping rectangle. |
ymin | number | The minimum y-coordinate of the clipping rectangle. |
xmax | number | The maximum x-coordinate of the clipping rectangle. |
ymax | number | The maximum y-coordinate of the clipping rectangle. |
geos.GEOSClipByRect_r ⇒ number
⏏
Clips a geometry by a rectangular extent, using a thread-safe context handle.
Kind: Exported member
Returns: number
- The clipped geometry or NULL on exception Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | number | A pointer to a GEOSContextHandle_t object. |
g | number | A pointer to a GEOSGeometry object. |
xmin | number | The minimum x-coordinate of the clipping rectangle. |
ymin | number | The minimum y-coordinate of the clipping rectangle. |
xmax | number | The maximum x-coordinate of the clipping rectangle. |
ymax | number | The maximum y-coordinate of the clipping rectangle. |