geos.GEOSIntersection ⇒ GEOSGeometry ⏏
Returns the intersection of two geometries: the set of points that fall within both geometries.
Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry of the intersection. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
| Param | Type | Description |
|---|---|---|
| g1 | GEOSGeometry | one of the geometries |
| g2 | GEOSGeometry | the other geometry |
geos.GEOSIntersectionPrec ⇒ GEOSGeometry ⏏
Returns the intersection of two geometries: the set of points that fall within both geometries. All the vertices of the output geometry must fall on the grid defined by the gridSize, and the output will be a valid geometry.
Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry of the intersection. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
| Param | Type | Description |
|---|---|---|
| g1 | GEOSGeometry | one of the geometries |
| g2 | GEOSGeometry | the other geometry |
| gridSize | number | the cell size of the precision grid |
geos.GEOSIntersectionPrec_r ⇒ GEOSGeometry ⏏
Returns the intersection of two geometries: the set of points that fall within both geometries. All the vertices of the output geometry must fall on the grid defined by the gridSize, and the output will be a valid geometry.
Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry of the intersection. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| g1 | GEOSGeometry | one of the geometries |
| g2 | GEOSGeometry | the other geometry |
| gridSize | number | the cell size of the precision grid |
geos.GEOSIntersection_r ⇒ GEOSGeometry ⏏
Returns the intersection of two geometries: the set of points that fall within both geometries.
Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry of the intersection. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| g1 | GEOSGeometry | one of the geometries |
| g2 | GEOSGeometry | the other geometry |