Skip to content

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().

ParamTypeDescription
gGEOSGeometryThe 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().

ParamTypeDescription
gGEOSGeometryinput geometry
gridSizenumberthe 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().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryinput geometry
gridSizenumberthe 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().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe input geometry