def convert_geom(self, hex, geo_field):
        if hex:
            return Geometry(hex, srid=geo_field.srid)
        else:
            return None
Converts the geometry returned from PostGIS aggregates.
dataset/ETHPy150Open django/django/django/contrib/gis/db/backends/postgis/operations.py/PostGISOperations.convert_geom