You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added OpenStreetMap data to a PostgreGIS database using osm2pgrouting. The generated 'ways' table is EPSG: 4326 - WGS 84. The OpenStreetMap layer provided by QGIS EPSG:3857 - WGS 84 / Pseudo-Mercator. When I use buttonSelectTargetIds or buttonSelectSourceIds to add target or source nodes, clicking the map does not behave as expected and the selected node is no where near where I clicked.
To Reproduce
Using the pgRouting Layer plugin within QGIS with data in the above projections and clicking to select vertices on the map using the buttons next to "From Vids" or "To Vids" in the Arguments tab of the plugin GUI.
Importantly, I've discovered that I can fix this issue, at least in my specific case, by commenting out line 1106:
Also notice that the variable rect is not used after declaration. Seems like a project mismatch that is resolved in this case by simply not transforming the selected user selected point. I don't currently know enough about the plugin to implement a complete fix.
Problem
I've added OpenStreetMap data to a PostgreGIS database using osm2pgrouting. The generated 'ways' table is EPSG: 4326 - WGS 84. The OpenStreetMap layer provided by QGIS EPSG:3857 - WGS 84 / Pseudo-Mercator. When I use buttonSelectTargetIds or buttonSelectSourceIds to add target or source nodes, clicking the map does not behave as expected and the selected node is no where near where I clicked.
To Reproduce
Using the pgRouting Layer plugin within QGIS with data in the above projections and clicking to select vertices on the map using the buttons next to "From Vids" or "To Vids" in the Arguments tab of the plugin GUI.
Importantly, I've discovered that I can fix this issue, at least in my specific case, by commenting out line 1106:
1106: #pt = trans.transform(pt)
Code in context of the function findNearestNode:
Also notice that the variable
rect
is not used after declaration. Seems like a project mismatch that is resolved in this case by simply not transforming the selected user selected point. I don't currently know enough about the plugin to implement a complete fix.Sample Data
OSM files exported from https://www.openstreetmap.org/
Platform/versions
OS: Win11
QGIS: 3.28.0-Firenze
pgRoutingLayer: 3.0.2
The text was updated successfully, but these errors were encountered: