#NEWLINE# def convert_values( self , value , field ) : #NEWLINE# #INDENT# "\n        Using the same routines that Oracle does we can convert our\n        extra selection objects into Geometry and Distance objects.\n        TODO: Make converted objects 'lazy' for less overhead.\n        " #NEWLINE# if SpatialBackend . oracle : #NEWLINE# #INDENT# value = super ( GeoQuery , self ) . convert_values ( value , field ) #NEWLINE# #UNINDENT# if isinstance ( field , DistanceField ) : #NEWLINE# #INDENT# value = Distance ( ** { #NEWLINE# #INDENT# field . distance_att : field , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( field , AreaField ) : #NEWLINE# #INDENT# value = Area ( ** { #NEWLINE# #INDENT# field . area_att : value , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( field , GeomField ) : #NEWLINE# #INDENT# value = SpatialBackend . Geometry ( value ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return value