/
geoUnion
geoUnion
Function: geoUnion(Geometry left, Geometry right, Decimal Places)
Computes a geometry representing the point set which is contained in the left geometry and the right geometry.
If passed a string the geometry functions will automatically convert it into a geometry object.
Syntax
geoUnion( geometryValueLeft, geometryValueRight, decimalPlaces )
Argument | Type | Description |
---|---|---|
geometryValueLeft | WTK String or Geometry Object | Geometry value being used to calculate the union with geometryValueRight. |
geometryValueRight | WTK String or Geometry Object | The geometry being checked. |
decimalPlaces | Integer | The number of decimal places to use in the geometry calculations. Defaults to 0 if not provided. Can also take negative values e.g. -1 uses geometry to the nearest 10. |
Examples
geoUnion("POLYGON ((0 0, 0 2, 2 2, 2 0, 0 0))", "POLYGON ((1 1, 3 1, 3 3, 1 3, 1 1))")
Returns a Geometry representing the point-set which is contained in the left geometry and the right geometry.
See Also
, multiple selections available,
Related content
geoIntersection
geoIntersection
More like this
geoIntersection
geoIntersection
More like this
geoDisjoint
geoDisjoint
More like this
geoIntersection
geoIntersection
More like this
geoDisjoint
geoDisjoint
More like this
geoIntersects
geoIntersects
More like this