def has_shape(db, table):
    try:
        q = "select count(*) from %s where shape is not null" % table
        return db.execute(q).fetchone()[0] > 0
    except:
        return False
dataset/ETHPy150Open sirrice/dbtruck/dbtruck/analyze/fuzzyjoin.py/has_shape/original