title_wip

```
SELECT wkt(polygonsUnionCartesian([[[(0., 0.), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (0., 0.)]]], [[[(1., 1.), (1., 4.), (4., 4.), (4., 1.), (1., 1.)]]]))
```

```
MULTIPOLYGON(((1 2.9,1 4,4 4,4 1,2.9 1,3 0,0 0,0 3,1 2.9)))
```

### Input parameters[​](#input-parameters-19 "Direct link to Input parameters")

Polygons

### Returned value[​](#returned-value-26 "Direct link to Returned value")

MultiPolygon

For more information on geometry systems, see this [presentation](https://archive.fosdem.org/2020/schedule/event/working_with_spatial_trajectories_in_boost_geometry/attachments/slides/3988/export/events/attachments/working_with_spatial_trajectories_in_boost_geometry/slides/3988/FOSDEM20_vissarion.pdf) about the Boost library, which is what ClickHouse uses.

- [WKT](#wkt)- [readWKTMultiPolygon](#readwktmultipolygon)
    - [Example](#example)- [Input parameters](#input-parameters)- [Returned value](#returned-value)- [readWKTPolygon](#readwktpolygon)
      - [Example](#example-1)- [Input parameters](#input-parameters-1)- [Returned value](#returned-value-1)- [readWKTPoint](#readwktpoint)
        - [Syntax](#syntax)- [Arguments](#arguments)- [Returned value](#returned-value-2)- [Example](#example-2)- [readWKTLineString](#readwktlinestring)
          - [Syntax](#syntax-1)- [Arguments](#arguments-1)- [Returned value](#returned-value-3)- [Example](#example-3)- [readWKTMultiLineString](#readwktmultilinestring)
            - [Syntax](#syntax-2)- [Arguments](#arguments-2)- [Returned value](#returned-value-4)- [Example](#example-4)- [readWKTRing](#readwktring)
              - [Syntax](#syntax-3)- [Arguments](#arguments-3)- [Returned value](#returned-value-5)- [Example](#example-5)- [polygonsWithinSpherical](#polygonswithinspherical)
                - [Example](#example-6)- [readWKBMultiPolygon](#readwkbmultipolygon)
                  - [Example](#example-7)- [Input parameters](#input-parameters-2)- [Returned value](#returned-value-6)- [readWKBPolygon](#readwkbpolygon)
                    - [Example](#example-8)- [Input parameters](#input-parameters-3)- [Returned value](#returned-value-7)- [readWKBPoint](#readwkbpoint)
                      - [Syntax](#syntax-4)- [Arguments](#arguments-4)- [Returned value](#returned-value-8)- [Example](#example-9)- [readWKBLineString](#readwkblinestring)
                        - [Syntax](#syntax-5)- [Arguments](#arguments-5)- [Returned value](#returned-value-9)- [Example](#example-10)- [readWKBMultiLineString](#readwkbmultilinestring)
                          - [Syntax](#syntax-6)- [Arguments](#arguments-6)- [Returned value](#returned-value-10)- [Example](#example-11)- [Input parameters](#input-parameters-4)- [Returned value](#returned-value-11)- [polygonsDistanceSpherical](#polygonsdistancespherical)
                            - [Example](#example-12)- [Input parameters](#input-parameters-5)- [Returned value](#returned-value-12)- [polygonsDistanceCartesian](#polygonsdistancecartesian)
                              - [Example](#example-13)- [Input parameters](#input-parameters-6)- [Returned value](#returned-value-13)- [polygonsEqualsCartesian](#polygonsequalscartesian)
                                - [Example](#example-14)- [Input parameters](#input-parameters-7)- [Returned value](#returned-value-14)- [polygonsSymDifferenceSpherical](#polygonssymdifferencespherical)
                                  - [Example](#example-15)- [Input parameters](#input-parameters-8)- [Returned value](#returned-value-15)- [polygonsSymDifferenceCartesian](#polygonssymdifferencecartesian)
                                    - [Example](#example-16)- [Input parameters](#input-parameters-9)- [Returned value](#returned-value-16)- [polygonsIntersectionSpherical](#polygonsintersectionspherical)
                                      - [Example](#example-17)- [Input parameters](#input-parameters-10)- [Returned value](#returned-value-17)- [polygonsWithinCartesian](#polygonswithincartesian)
                                        - [Example](#example-18)- [Input parameters](#input-parameters-11)- [Returned value](#returned-value-18)- [polygonsIntersectCartesian](#polygonsintersectcartesian)
                                          - [Example](#example-intersects-cartesian)- [Input parameters](#input-parameters-intersects-cartesian)- [Returned value](#returned-value-intersects-cartesian)- [polygonsIntersectSpherical](#polygonsintersectspherical)
                                            - [Example](#example-intersects-spherical)- [Input parameters](#input-parameters-intersects-spherical)- [Returned value](#returned-value-intersects-spherical)- [polygonConvexHullCartesian](#polygonconvexhullcartesian)
                                              - [Example](#example-19)- [Input parameters](#input-parameters-12)- [Returned value](#returned-value-19)- [polygonAreaSpherical](#polygonareaspherical)
                                                - [Example](#example-20)- [Input parameters](#input-parameters-13)- [Returned value](#returned-value-20)- [polygonsUnionSpherical](#polygonsunionspherical)
                                                  - [Example](#example-21)- [Input parameters](#input-parameters-14)- [Returned value](#returned-value-21)- [polygonPerimeterSpherical](#polygonperimeterspherical)
                                                    - [Example](#example-22)- [Input parameters](#input-parameters-15)- [Returned value](#returned-value-22)- [polygonsIntersectionCartesian](#polygonsintersectioncartesian)
                                                      - [Example](#example-23)- [Input parameters](#input-parameters-16)- [Returned value](#returned-value-23)- [polygonAreaCartesian](#polygonareacartesian)
                                                        - [Example](#example-24)- [Input parameters](#input-parameters-17)- [Returned value](#returned-value-24)- [polygonPerimeterCartesian](#polygonperimetercartesian)
                                                          - [Example](#example-25)- [Input parameters](#input-parameters-18)- [Returned value](#returned-value-25)- [polygonsUnionCartesian](#polygonsunioncartesian)
                                                            - [Example](#example-26)- [Input parameters](#input-parameters-19)- [Returned value](#returned-value-26)

Was this page helpful?