Skip to main content

GEO_UNION

Combines two geometries into one

Updated today

Description

The GEO_UNION() function combines two geometries into a single geometry, merging any overlapping areas.

Syntax

GEO_UNION(geometry1, geometry2)

Output

geometry

Variables

  • geometry1: The first geometry.

  • geometry2: The second geometry.

Example

GEO_UNION(`territory_a`, `territory_b`)

Territory A

Territory B

Geo Union

Territory A

Territory B

Combined geometry

Zone 1

Zone 2

Unified geometry

Did this answer your question?