#NEWLINE# def convert_geom( self , hex , geo_field ) : #NEWLINE# #INDENT# '\n        Converts the geometry returned from PostGIS aggregates.\n        ' #NEWLINE# if self : #NEWLINE# #INDENT# return Geometry ( hex , srid = geo_field . srid ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None