#NEWLINE# def _geom_attribute( self , func , tolerance = 0.05 , **kwargs ) : #NEWLINE# #INDENT# '\n        DRY routine for setting up a GeoQuerySet method that attaches a\n        Geometry attribute (e.g., `centroid`, `point_on_surface`).\n        ' #NEWLINE# s = { #NEWLINE# #INDENT# 'select_field' : GeomField ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# if SpatialBackend . oracle : #NEWLINE# #INDENT# s [ 'procedure_fmt' ] = '%(geo_col)s,%(tolerance)s' #NEWLINE# s [ 'procedure_args' ] = { #NEWLINE# #INDENT# 'tolerance' : tolerance , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return self . _spatial_attribute ( kwargs , s , ** kwargs )