All Products
Search
Document Center

ApsaraDB RDS:ST_HasArc

Last Updated:Mar 28, 2026

Checks whether a geometry or GeometryCollection object contains an arc. Returns true if the object contains an arc, or false otherwise.

Syntax

boolean ST_HasArc(geometry geomA);

Parameters

ParameterDescription
geomAThe geometry or GeometryCollection object to check.

Usage notes

  • Supports 3D objects and preserves Z coordinates.

  • Supports circular strings and curves.

Examples

Check whether a GeometryCollection containing a circular string has an arc:

SELECT ST_HasArc('GeometryCollection(POINT(1 0),CIRCULARSTRING(1 2,3 4,5 6))'::geometry);
 st_hasarc
-----------
 t
(1 row)