ST_AsEWKB
Output
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:

