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

# ST_PolygonFromText

Construct a Polygon from Text, delimited by Delimiter. Path must be closed

## Signatures

```sql theme={"system"}
ST_PolygonFromText (Text: String, Delimiter: Char)
```

## Parameters

<ParamField body="Text" type="String" required>
  The text value.
</ParamField>

<ParamField body="Delimiter" type="Char" required>
  The delimiter value.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_PolygonFromText('-74.0428197,40.6867969,-74.0421975,40.6921336,-74.0508020,40.6912794,-74.0428197,40.6867969', ',')
```

```
POLYGON ((-74.0428197 40.6867969, -74.0421975 40.6921336, -74.050802 40.6912794, -74.0428197 40.6867969))
```
