hauke96 / qgis-outdoor-map

QGIS project for an outdoor map based on OpenStreetMap data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QGIS rejects password for database and wont load layers

abeck58 opened this issue · comments

image
image

Hi, thanks for checking out the project. I just tried the setup from scratch and everything worked for me. However I noticed that the README was a bit unclear about the database setup: At the end of the docker setup section, the database is completely empty. When no data was imported to the database, I also get the dialog of unavailable layers but the login still works.

A few more details would be helpful:

  • I see that you work on a Windows computer, do you still use docker for the database?
  • If you use docker: Is everything running and working?
  • If you don't use docker: Is postgres correctly configured and your installation working?
  • Have you tried to login with a normal database client (PGAdmin or similar)?

let me start by saying that while I am a tech guy development and coding go straight over my head. I'm doing the best I can and I am really keen to use your program, I have been looking for something like this for 2 years.

Ok typical troubleshooting the login issue fixed its self but I still get lots of unavailable layers.
image

I have installed pgAdmin 4 but have never used it before, I've logged it but I have no idea if its working.
image

Ok the login works, that good. Have you imported the data into the database? When the database in empty, then of course all layers are missing/unavailable ;)

The process of filling the database is also described in the README. However, since you're working on Windows, the script init.sh will probably not work on a normal windows command line. The tool I use to import the data is osm2pgsql and is also available on Windows. I think you still need the Windows terminal (PowerShell or similar) and them have to manually enter the command, whcih should be the same as I use on Linux: osm2pgsql --create --slim -G --hstore --number-processes 4 "./your/file.pbf". More details can be found in the manual of osm2pgsql.

Please note that I'll probably will not support Windows or Mac here since I only use Linux. I simply wouldn't be able to fix bugs or add features to a Windows/Mac setup. But feel free to fork this project here on GitHub to manage your own adjustments/scripts/changes to this project.

The current version of this project is not using Postgres anymore but GeoPackage files. I therefore close this issue.