Skip to content

geos.GEOSUnion ⇒ GEOSGeometry

Returns the union of two geometries A and B: the set of points that fall in A or within B.

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
gaGEOSGeometrygeometry A
gbGEOSGeometrygeometry B

geos.GEOSUnionCascaded ⇒ GEOSGeometry

Deprecated

Kind: global property of geos
Returns: GEOSGeometry - GEOSGeometry*

ParamTypeDescription
gGEOSGeometry-

geos.GEOSUnionCascaded_r ⇒ GEOSGeometry

Deprecated

Kind: global property of geos
Returns: GEOSGeometry - GEOSGeometry*

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometry-

geos.GEOSUnionPrec ⇒ GEOSGeometry

Returns the union of two geometries A and B: the set of points that fall in A or within B. 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
gaGEOSGeometryone of the geometries
gbGEOSGeometrythe other geometry
gridSizenumberthe cell size of the precision grid

geos.GEOSUnionPrec_r ⇒ GEOSGeometry

Returns the union of two geometries A and B: the set of points that fall in A or within B. 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-
g1GEOSGeometryone of the geometries
g2GEOSGeometrythe other geometry
gridSizenumberthe cell size of the precision grid

geos.GEOSUnion_r ⇒ GEOSGeometry

Returns the union of two geometries A and B: the set of points that fall in A or within B.

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-
g1GEOSGeometrygeometry A
g2GEOSGeometrygeometry B