pyrosm.OSM.list_cache

Contents

pyrosm.OSM.list_cache#

static OSM.list_cache(filepath=None)#

List the out-of-core engine’s cached layer files – the GeoParquet files that engine="out_of_core" reads write under <tempdir>/pyrosm/cache.

Parameters:

filepath (str | os.PathLike (optional)) – A source PBF’s path. A bare file name names both the file of that name in the working directory and the one get_data downloaded. When given, only the cached layers for that source PBF are listed; when None (default) every cached file is listed.

Returns:

The cached files’ paths.

Return type:

list of str