#NEWLINE# def _geomset_attribute( self , func , geom , tolerance = 0.05 , **kwargs ) : #NEWLINE# #INDENT# '\n        DRY routine for setting up a GeoQuerySet method that attaches a\n        Geometry attribute and takes a Geoemtry parameter.  This is used\n        for geometry set-like operations (e.g., intersection, difference,\n        union, sym_difference).\n        ' #NEWLINE# s = { #NEWLINE# #INDENT# 'geom_args' : ( 'geom' , ) , #NEWLINE# 'select_field' : GeomField ( ) , #NEWLINE# 'procedure_fmt' : '%(geo_col)s,%(geom)s' , #NEWLINE# 'procedure_args' : { #NEWLINE# #INDENT# 'geom' : geom , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# if connections [ self . db ] . ops . oracle : #NEWLINE# #INDENT# s [ 'procedure_fmt' ] += ',%(tolerance)s' #NEWLINE# s [ 'procedure_args' ] [ 'tolerance' ] = tolerance #NEWLINE# #UNINDENT# return self . _spatial_attribute ( func , s , ** kwargs )