@property
    def hex(self):
        return str(self.wkb).encode('hex').upper()
        #return b2a_hex(self.wkb).upper()
Returns the hexadecimal representation of the WKB (a string).
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/gdal/geometries.py/OGRGeometry.hex