Loop3D / map2loop

MIT License
11 stars 10 forks source link

[Feature Request] - Generic file retrieval class for online files #94

Open RoyThomsonMonash opened 5 months ago

RoyThomsonMonash commented 5 months ago

💻

Feature Title

Generic file retrieval class

Feature Description

When accessing online files (ftp, http for example) there should be a class to deal with retrieval of those files including timeouts, error handling and retries. This would be used for shapefiles, dtm, config files and clut files.

Current Situation

Currently there is specific code written for each case of DTM, shapefile, config and clut file retrieval and the error handling is not standardised.

Proposed Solution

A class that specifies the url, timeout time, number of retries and what to return on different types of errors (Empty Dataframe??, None??, exception??)

Additional Context

No response

Affected Areas