parameters: (self, table, geom)
return_statement: return c.fetchone()
docstring: find out table extent
docstring_summary: find out table extent
docstring_tokens: find out table extent
function: def getTableExtent(self, table, geom):
          """ find out table extent """
          schema, tablename = self.getSchemaTableName(table)
          c = self._get_cursor()
  
          if self.isRasterTable(table):
              tablename = tablename.replace('_rasters', '_metadata')
              geom = u'geometry'
  
          sql = u"""SELECT Min(MbrMinX(%(geom)s)), Min(MbrMinY(%(geom)s)), Max(MbrMaxX(%(geom)s)), Max(MbrMaxY(%(geom)s))
                                                  FROM %(table)s """ % {'geom': self.quoteId(geom),
                                                                        'table': self.quoteId(tablename)}
          self._execute(c, sql)
          return c.fetchone()
function_tokens: def getTableExtent ( self , table , geom ) : schema , tablename = self . getSchemaTableName ( table ) c = self . _get_cursor ( ) if self . isRasterTable ( table ) : tablename = tablename . replace ( '_rasters' , '_metadata' ) geom = u'geometry' sql = u"""SELECT Min(MbrMinX(%(geom)s)), Min(MbrMinY(%(geom)s)), Max(MbrMaxX(%(geom)s)), Max(MbrMaxY(%(geom)s))
                                                  FROM %(table)s """ % { 'geom' : self . quoteId ( geom ) , 'table' : self . quoteId ( tablename ) } self . _execute ( c , sql ) return c . fetchone ( )