Skip to main content
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 It will ignore the M coordinate if present.

Signatures

ST_AsEWKB (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

The computed result.

Example

SELECT ST_AsEWKB(ST_SetSrid(ST_GeomFromWKT('POINT (1 1)'), 3021))
0101000020cd0b0000000000000000f03f000000000000f03f