'Does the database have Spatial extensions?'

def get_gis_spatialdb(self):

    db_type = self.get_database_type()
    if (db_type != 'postgres'):
        return False
    else:
        return self.gis.get('spatialdb', False)
