HCMGIS icon indicating copy to clipboard operation
HCMGIS copied to clipboard

WOF-Downloader not working on Windows

Open CeallachKN opened this issue 2 months ago • 0 comments

I'm using HCMGIS on Windows, but if I try to download Data from WOF I always get a TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'.

That is because the values of the country_short List in hcmgis_dialogs.py are all upper_case. Since these are used to build the request in the hcmgis_wof function of hcmgis_library.py the resulting download_url_shp is for example https://data.geocode.earth/wof/dist/shapefile/whosonfirst-data-admin-AD-latest.zip and results in a 404

If i change the values in the country_short List locally to lower_case it works.

CeallachKN avatar Nov 07 '25 10:11 CeallachKN