> ## 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_MPolyFromText

Construct a MultiPolygon from Wkt. If srid is not set, it defaults to 0 (unknown).

## Signatures

```sql theme={"system"}
ST_MPolyFromText (Wkt: String)
```

```sql theme={"system"}
ST_MPolyFromText (Wkt: String, srid: Integer)
```

## Parameters

<ParamField body="Wkt" type="String" required>
  A Well-Known Text (WKT) representation of a geometry.
</ParamField>

<ParamField body="srid" type="Integer">
  Spatial Reference Identifier.
</ParamField>

## Return type

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

## Example

```sql theme={"system"}
SELECT ST_MPolyFromText('MULTIPOLYGON(((0 0 1,20 0 1,20 20 1,0 20 1,0 0 1),(5 5 3,5 7 3,7 7 3,7 5 3,5 5 3)))')
```

```
MULTIPOLYGON (((0 0, 20 0, 20 20, 0 20, 0 0), (5 5, 5 7, 7 7, 7 5, 5 5)))
```
