2015-05-03 18:40:09 +10:00
|
|
|
<h3>convex_hull function</h3>
|
2013-09-15 16:18:02 +02:00
|
|
|
Returns the convex hull of a geometry. It represents the minimum convex geometry that encloses all geometries within the set.
|
|
|
|
|
|
|
|
<h4>Syntax</h4>
|
2015-05-03 18:40:09 +10:00
|
|
|
<pre>convex_hull( a, b )</pre>
|
2013-09-15 16:18:02 +02:00
|
|
|
|
|
|
|
<h4>Arguments</h4>
|
2013-09-15 19:21:51 +02:00
|
|
|
a → geometry
|
|
|
|
a → geometry
|
2013-09-15 16:18:02 +02:00
|
|
|
|
|
|
|
<h4>Example</h4>
|
2015-05-03 18:40:09 +10:00
|
|
|
<pre> geom_to_wkt( convex_hull( geom_from_wkt( 'LINESTRING(3 3 , 4 4 , 4 10)' )) ) → returns POLYGON((3 3,4 10,4 4,3 3)) </pre>
|