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

Return the Extended Well-Known Binary representation of a geometry.
EWKB is an extended version of WKB which includes the SRID of the geometry.
The format originated in PostGIS but is supported by many GIS tools.
If the geometry is lacking SRID a WKB format is produced.
[See ST\_SetSRID](/reference/wherobots-db/geometry-data/spatial-reference/ST_SetSRID)
It will ignore the M coordinate if present.

## Signatures

```sql theme={"system"}
ST_AsEWKB (A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Binary">
  The computed result.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_AsEWKB(ST_SetSrid(ST_GeomFromWKT('POINT (1 1)'), 3021))
```

```
0101000020cd0b0000000000000000f03f000000000000f03f
```
