> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Circle

> Converts a WKT (WEll Known Text) to a circle on the sphere of the earth.

Creates a spherical circle from its center coordinates and radius.

## Syntax

```sql theme={null}
VARCHAR ST_Circle(DOUBLE center_lng, DOUBLE center_lat, DOUBLE radius)
```

## Parameters

`center_lng` indicates the longitude of the center of the circle.

`center_lat` indicates the latitude of the center of the circle.

`radius` indicates the radius of a circle, in meters. A maximum of 9999999 radius is supported.

## Return value

Returns the legacy encoded shape as `VARCHAR`. Use [ST\_AsText](/documents/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) to display it as WKT.

## Examples

```Plain Text theme={null}
MySQL > SELECT ST_AsText(ST_Circle(111, 64, 10000));
+--------------------------------------------+
| st_astext(st_circle(111.0, 64.0, 10000.0)) |
+--------------------------------------------+
| CIRCLE ((111 64), 10000)                   |
+--------------------------------------------+
```

## keyword

ST\_CIRCLE,ST,CIRCLE

## Related data types

[VARCHAR](/documents/4.2/sql-reference/data-types/string-type/VARCHAR.md), [DOUBLE](/documents/4.2/sql-reference/data-types/numeric/DOUBLE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.