def load_features(jobs, host, port, path, tiles):
 features = []
 lock = _Lock()
 args = (lock, host, port, path, tiles, features)
 threads = [Thread(target=load_tile_features, args=args) for i in range(jobs)]
 for thread in threads:
  thread.start()
 for thread in threads:
  thread.join()
 logging.debug(('Loaded %d features' % len(features)))
 return features

def load_features ( jobs , host , port , path , tiles ) : features = [ ] lock = _Lock ( ) args = ( lock , host , port , path , tiles , features ) threads = [ Thread ( target = load_tile_features , args = args ) for i in range ( jobs ) ] for thread in threads : thread . start ( ) for thread in threads : thread . join ( ) logging . debug ( ( 'Loaded %d features' % len ( features ) ) ) return features
load data from tiles to features .