'Return the EWKB representation of this Geometry as a Python buffer.
This is an extension of the WKB specification that includes any SRID
and Z values that are a part of this geometry.'

@property
def ewkb(self):

    if self.hasz:
        if (not GEOS_PREPARE):
            raise GEOSException('Upgrade    GEOS    to    3.1    to    get    valid    3D    EWKB.')
        return ewkb_w3d().write(self)
    else:
        return ewkb_w().write(self)
