'Returns the EWKB of this Geometry in hexadecimal form.  This is an
extension of the WKB specification that includes SRID value that are
a part of this geometry.'

@property
def hexewkb(self):

    if (self.hasz and (not GEOS_PREPARE)):
        raise GEOSException(u'Upgrade    GEOS    to    3.1    to    get    valid    3D    HEXEWKB.')
    return ewkb_w(((self.hasz and 3) or 2)).write_hex(self)
