> ## 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 (Python)

> Generate the Extended Well-Known Binary representation of a geometry.

Generate the Extended Well-Known Binary representation of a geometry.
As opposed to WKB, EWKB will include the SRID of the geometry.

SQL reference: [`ST_AsEWKB`](/reference/wherobots-db/geometry-data/output/ST_AsEWKB)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_AsEWKB

ST_AsEWKB(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry to generate EWKB for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Extended Well-Known Binary representation of geometry as a binary column.
</ResponseField>


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