parameters: (
          self, table, col, value, rel_col=None, rel_model=None, op=""
      )
docstring: provide raw sql for geater and lesser operators
docstring_summary: provide raw sql for geater and lesser operators
docstring_tokens: provide raw sql for geater and lesser operators
function: def _get_direct_como_op_sql(
          self, table, col, value, rel_col=None, rel_model=None, op=""
      ):
          """provide raw sql for geater and lesser operators"""
          if isinstance(value, (int, float)):
              if rel_col and rel_model:
                  raise Exception(
                      "Area %s does not support int compare for relation "
                      "search" % (op,)
                  )
              return " ST_Area({}.{}) {} {}".format(table, col, op, value)
          else:
              if rel_col and rel_model is not None:
                  compare_to = self.get_rel_field(rel_col, rel_model)
              else:
                  base = self.geo_field.entry_to_shape(value, same_type=False)
                  compare_to = base.wkt
              return " ST_Area({}.{}) {} ST_Area(ST_GeomFromText('{}'))".format(
                  table, col, op, compare_to
              )
function_tokens: def _get_direct_como_op_sql ( self , table , col , value , rel_col = None , rel_model = None , op = "" ) : if isinstance ( value , ( int , float ) ) : if rel_col and rel_model : raise Exception ( "Area %s does not support int compare for relation " "search" % ( op , ) ) return " ST_Area({}.{}) {} {}" . format ( table , col , op , value ) else : if rel_col and rel_model is not None : compare_to = self . get_rel_field ( rel_col , rel_model ) else : base = self . geo_field . entry_to_shape ( value , same_type = False ) compare_to = base . wkt return " ST_Area({}.{}) {} ST_Area(ST_GeomFromText('{}'))" . format ( table , col , op , compare_to )