Visualising The Data with QGIS Desktop - SpotScore/spotscore GitHub Wiki
How to load PostGIS data to QGIS layers
- Download and install QGIS
- Run your PostgreSQL/PostGIS database (container) where you loaded data with osm2pgsql.
- Open QGIS and in the menus go to
"Layer" > "Add Layer" > "Add PostGIS Layers"or press (Ctrl + Shift + D). - In the dialog window click button
"New". - Fill in the database connection information:
Name:Spotscore OSM (or anything you like)Host:localhostPort:5432Database:gisUsername:spotscorePassword:notsecret- make check in
"Save Username" - make check in
"Save Password" - make check in
"Only look in the 'public' schema".
- Now press
"OK"and the connection appears in the"Connections"dropdown. - Press
"Connect"with the "Spotscore OSM" selected. List is filled with public schema tables that contain a 'way' geometry column. - Select the following tables with your mouse cursor left click so they are highlighted:
- planet_osm_line
- planet_osm_point
- planet_osm_polygon
- Press the button
"Add". - Now the added layers are listed in the
"Layers"panel.
For further documentation please read the official QGIS User Guide.
Additional tools
- A useful plug-in for visualizing SQL query results is the "DB Manager". You can install it through the menu
"Plugins" > "Manage and Install Plugins...".