This article covers the QGIS plugin OSMDownloader,
answering how to obtain OSM data through a Graphical User Interface
(GUI).
It is assumed that users already have QGIS installed -
If not it can be downloaded for Mac and Windows Operating Systems here.
There is also a guide for Linux users, however this may be
confusing harder to follow, and so we go through the process of remving
QGIS (users may have corrupted versions or unstable versions) before
re-installing a stable version of QGIS at the bottom of this
article.
The installation guide has been paraphrased from the following YouTube video,
should you wish to follow the video instead.
qgis
in terminal)
Data downloaded using the OSMDownloader QGIS plugin comes in
the .osm format. This file can either be loaded into a GeoDataframe for
further analysis using the OSMnx Python package in our
Getting
and using OSM data in Python tutorial vignette.
Alternatively, the downloaded OSM layers can be loaded into QGIS as
tiles too.
Please see the linked video for
a longer example of using OSM layers within QGIS.
This section covers the removal of unstable or outdated QGIS versions
before covering the stable installation of QGIS for Ubuntu Linux 20.04.
This sections paraphrases the following YouTube video
covering this process, you may prefer to follow the video so it has been
linked.
First open the software properties interface from the terminal with:
> sudo software-properties-gtk
# then enter your password
Next go to the software tab in the popup and remove any provider that
contains gis
, in our example the highlighted
ubuntugis/ppa
url, before then clicking close
and then reload/refresh
:
# Go to "Other Software" tab
# Remove ANY provider that contains "gis" within URL
> click close
> click reload/refresh
Now we have removed QGIS from providers, we must purge our system of any QGIS files:
> sudo apt purge qgis* python-qgis* --auto-remove
# Then enter your password
# Type 'y' then hit Enter
Now we have removed QGIS, we must update our repository to
be able to download QGIS stable:
# Need to add the repository that we can download stable QGIS from:
> sudo add-apt-repository ppa:ubuntugis/ppa
# Hit enter
Now we need to refresh our list of repositories after adding
the QGIS repo before installing QGIS:
#Now we need to refresh the list of repositories
> sudo apt-get update
# Now we can reinstall QGIS
> sudo apt-get install qgis
# Type 'y' and hit Enter
Congratulations, QGIS (stable) should now be re-installed!
To load QGIS, simply type qgis
into the terminal and hit
enter!