> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/wkb/mpointfromwkb.md).

# MPointFromWKB

## Syntax

```bnf
MPointFromWKB(wkb[,srid])
MultiPointFromWKB(wkb[,srid])
```

## Description

Constructs a [MULTIPOINT](/docs/server/reference/sql-statements/geometry-constructors/geometry-constructors/multipoint.md) value using its [WKB](/docs/server/reference/sql-statements/geometry-constructors/wkb/well-known-binary-wkb-format.md) representation and [SRID](/docs/server/reference/sql-statements/geometry-constructors/geometry-properties/st_srid.md).

`MPointFromWKB()` and `MultiPointFromWKB()` are synonyms.

## Examples

```sql
SET @g = ST_AsBinary(MPointFromText('MultiPoint( 1 1, 2 2, 5 3, 7 2, 9 3, 8 4, 6 6, 6 9, 4 9, 1 5 )'));

SELECT ST_AsText(MPointFromWKB(@g));
+-----------------------------------------------------+
| ST_AsText(MPointFromWKB(@g))                        |
+-----------------------------------------------------+
| MULTIPOINT(1 1,2 2,5 3,7 2,9 3,8 4,6 6,6 9,4 9,1 5) |
+-----------------------------------------------------+
```

<sub>*This page is licensed: GPLv2, originally from*</sub> [<sub>*fill\_help\_tables.sql*</sub>](https://github.com/MariaDB/server/blob/main/scripts/fill_help_tables.sql)

{% @marketo/form formId="4316" %}
