From the course: Advanced Geospatial Data Analytics in Python

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Data acquisition

Data acquisition

- [Instructor] In this section, we are going to study the temporal dimension of geospatial data. For this, we are going to rely on a series of population rosters, snapshots of population levels published by the European Commission's GHSR. As you have seen in the earlier presentation, you may download these data files one by one manually, but you can also follow the instructions on this video where we are going to learn how to download them in an automatic way using Python. First, we will need to import a few selected libraries, which we are going to use to download and unzip all the data files from the GHSL website. To do that, we are going to use this function called download, which is taking two input parameters, the URL of a specific data set and the output directory. Then if the directory doesn't exist, then the function will create it and then it will define the output file path of this given data set. Then if it hasn't downloaded the file yet, then it will start to proceed and…

Contents