This topic describes the ST_HasArc function. This function checks whether a geometry object or a GeometryCollection object contains a ring. If the object contains a ring, this function returns True. Otherwise, this function returns False.
Syntax
boolean ST_HasArc(geometry geomA);
Parameters
Parameter | Description |
---|---|
geomA | The geometry object or GeometryCollection object that you want to specify. |
Description
- This function supports 3D objects and does not delete z coordinates.
- This function supports circular strings and curves.
Examples
Check whether an object contains a ring by using the default parameter settings.
SELECT ST_HasArc('GeometryCollection(POINT(1 0),CIRCULARSTRING(1 2,3 4,5 6))'::geometry);
st_hasarc
-----------
t
(1 row)