geos.GEOSUnaryUnion ⇒ GEOSGeometry
⏏
Returns the union of all components of a single geometry. Usually used to convert a collection into the smallest set of polygons that cover the same area.
Kind: global property of geos
Returns: GEOSGeometry
- A newly allocated geometry of the union. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The input geometry |
geos.GEOSUnaryUnionPrec ⇒ GEOSGeometry
⏏
Returns the union of all components of a single geometry. Usually used to convert a collection into the smallest set of polygons that cover the same area. 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 union. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | input geometry |
gridSize | number | the cell size of the precision grid |
geos.GEOSUnaryUnionPrec_r ⇒ GEOSGeometry
⏏
Returns the union of all components of a single geometry. Usually used to convert a collection into the smallest set of polygons that cover the same area. 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 union. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | input geometry |
gridSize | number | the cell size of the precision grid |
geos.GEOSUnaryUnion_r ⇒ GEOSGeometry
⏏
Returns the union of all components of a single geometry. Usually used to convert a collection into the smallest set of polygons that cover the same area.
Kind: global property of geos
Returns: GEOSGeometry
- A newly allocated geometry of the union. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The input geometry |