urbanpy icon indicating copy to clipboard operation
urbanpy copied to clipboard

Query population usign city boundaries to avoid loading all country data

Open Claudio9701 opened this issue 1 year ago • 8 comments

Currrent behaviour:

pop_search = up.download.search_hdx_dataset(country)
pop_country = up.download.get_hdx_dataset(pop_search, pop_index) # This takes too much time

Requested feature:

pop_search = up.download.search_hdx_dataset(country)
pop_country = up.download.get_hdx_dataset(pop_search, pop_index, mask=city_limits) # This is expected to be faster

Where city_limits represent either the city boundaries as a polygon or the city total bounds as a bounding box.

Claudio9701 avatar Sep 20 '23 15:09 Claudio9701