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().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The input geometry to be clipped |
xmin | number | Left bound of clipping rectangle |
ymin | number | Lower bound of clipping rectangle |
xmax | number | Right bound of clipping rectangle |
ymax | number | Upper 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The input geometry to be clipped |
xmin | number | Left bound of clipping rectangle |
ymin | number | Lower bound of clipping rectangle |
xmax | number | Right bound of clipping rectangle |
ymax | number | Upper bound of clipping rectangle |