Refactor the function `import_from_postgis` into multiple functions depending on the parameter defining the import area
The function import_from_postgis()
accepts the three keyword arguments country_iso_code=None
, bounding_box=None
, quadkey=None
, of which one needs to be given. The checking of these input arguments requires many different checks to ensure that only one argument is given. It would be better to refactor the function into three different functions (e.g. import_from_bounding_box()
in which only the relevant checks need to be performed.