-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database does not appear #126
Comments
Hi @apiszcz , This plugin uses all PostgreSQL connections you have added to QGIS so the port is not a problem. The issue could be you don't have a pgRouting database with pgRouting extension created. You could check what you need in pgRouting docs: http://docs.pgrouting.org/latest/en/pgRouting-concepts.html#create-a-routing-database Thanks, |
The following command works from PSQL with proper values in the place of id1, id2, id3
SELECT * FROM pgr_dijkstra(
'SELECT gid as id, source, target, cost, reverse_cost FROM ways',
id1, array[id2 id3], directed := False
);
==
Another observation is the DB Manager Info View has a warning. Unsure if this means anything for the plugin.
When selecting 'ways'
No primary key defined for this table.
Table and preview tabs work and display the data.
|
|
This plugin was developed with last stable (v2.6) but taking into account compatibility with dev version. We need to recheck that again. Did you try with v2.6? |
Hi
No.
If there is anything to turn on trace/debug/etc. to review/display issues
please let me know.
While many things may have improved throughout the versions the database
connection seems like something that would be 'farily' consistent.
However I have located others in 2017 with the same question, not sure what
their setup was though.
…On Mon, Mar 9, 2020 at 7:31 AM Cayetano Benavent ***@***.***> wrote:
This plugin was developed with last stable (v2.6) but taking into account
compatibility with dev version. We need to recheck that again. Did you try
with v2.6?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#126?email_source=notifications&email_token=AAK5KTMJOMJJABIII7TEP53RGTHSZA5CNFSM4LD23E4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOGXNNY#issuecomment-596473527>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK5KTOTLO3GAYPDD6IZTZTRGTHSZANCNFSM4LD23E4A>
.
|
postgis.py seems to capturing the parameters
Connection string looks good
|
Problem #1 with FIX pgRoutingLayer_utils::getPgrVersion(con): NOW
|
The change described above allows me to connect to the database. |
This needs to be fixed |
I am facing the same issue with almost identical setup. Did you @apiszcz just edit the .py file directly in your plugin profiles folder and then reloaded it? I did that but still can't get the db connection to show. |
Yes. |
Yes I have connection established already and accessible through the QGIS Browser. Also changed this line: |
I tried to follow and changed but still I'm having the issue. |
|
Checked the pgRoutinLayer logs and it seems that the password authentication fails:
But when I check the pgpass file, it seems that the password (which is stored as plain text 🤨) is correct. And also like I said, normal authentication to the same database works in QGIS. The query |
Now I got this working. If someone else faces the same issue: in the pgpass.conf file for some reason the text is in small letters although my credentials included capitals. For normal QGIS DB connection this is not a problem, but I changed the pgpass password manually and now the connection was succesful! |
Thanks for reporting your solution @tjukanovt ! |
Hi all, Fixed Regard password issue, I don't know why are occurring that. I know this side of the code is old so it needs a little bit of refactoring to better handling of new QGIS API :) |
I have the same Issue From pgRoutingLayer Protokoll layer is available in QGIS |
I'm still seeing the original issue. Is it expected to be fixed in the current release? The pgRoutingLayer log in QGIS says: I am able to run pgRouting queries in both pgAdmin and DB Manager plugin in QGIS with no problem, so the connection is fine, and everything appears to be up and running from the perspective of both QGIS and pgAdmin. It's just the pgRoutingLayer plug that seems to have the connection issue. I don't see pgpass.conf anywhere on my system, so perhaps this has changed in newer versions? |
Hi @darrencope, If possible, could you share your current environment ?
Thanks, |
@sanak Of course!
|
@darrencope Thanks for the information! |
Windows 10
PostGres 12.2
PostGIS 3.0
pgrouting 3.0.0-rc1
pgroutinglayer 3.0.0
QGIS 3.12
The database is loaded with OSM and works and display the layer properly in QGIS.
The pgroutinglayer plugin Database selection widget is blank.
The database has a username and password, however it is not on the standard postges port 5432.
Is there a configuration requirement for the connection? The connection appears correctly in the QGIS Browser.
Quickly reviewed the connectors/postgis.py, and am wondering the issue is related to this code not acquiring active database connections.
Thank you.
The text was updated successfully, but these errors were encountered: