Skip to content

module gfk_download


function download_file

download_file(url, dir, exists_ok=False)

Download file from url to dir

Args:

  • url (str): url to download
  • dir (str): directory to download to
  • exists_ok (bool): Flag to allow skipping download if file exists.

Returns:

  • str: filepath of downloaded file

function download_sitemap

download_sitemap(geom, pkg_data_dir)

function download_pbf

download_pbf(url, update, data_dir)

function calculate_md5

calculate_md5(fname)

function verify_pbf

verify_pbf(pbf_inputfile, pbf_md5file)