osm2pgrouting | Import tool for OpenStreetMap data to pgRouting database | Map library
kandi X-RAY | osm2pgrouting Summary
kandi X-RAY | osm2pgrouting Summary
Import tool for OpenStreetMap data to pgRouting database
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of osm2pgrouting
osm2pgrouting Key Features
osm2pgrouting Examples and Code Snippets
Community Discussions
Trending Discussions on osm2pgrouting
QUESTION
I started getting the following error when updating my casks recently:
...ANSWER
Answered 2019-Jun-14 at 07:19Solved by doing the following:
- Edited the java cask:
QUESTION
I'm working on a routing application using OSM data in pgrouting. I'm using overpass-api to access the data from a specific bounding box. However, after downloading the data, there seem to be tag_keys missing from the data.
When inspecting the data using postgis or QGIS, certain tag_keys are there, like "highway", "oneway" or "maxpeed". However, others seem to be missing. In particular the tag keys "bicycle" (with possible values like "yes" or "no") or "access" are not included in the data. These tag keys are available on OSM online, however.
The following code is used to retrieve the data from OSM through Overpass-API and put it into PGrouting
...ANSWER
Answered 2019-Jun-11 at 08:20I'm not familiar with osm2pgrouting. However it looks like mapconfig.xml doesn't include "bicycle" and "access" tags. You either need to add them or create your own config file. If you want osm2pgrouting to consider these tags during routing this might not be enough, though.
QUESTION
hellow, I'm learning to create a routing application with this new workshop. This is using Postgres as the database, and its extensions PostGIS and pgRouting. It uses GeoServer to manage data and publish that.
I got data from osm and then added it to database with osm2pgrouting to be able to use them. After that I installed geoserver too then created a layer for my data but when I try to create new SQL view I get this error:
ERROR: function wrk_fromatob(unknown, integer, integer, integer, integer) does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts. Position: 76
I searched a lot but I can't find any answer.
...ANSWER
Answered 2017-Jul-19 at 10:49I forgot to create wrk_fromatob() function in my database. so there is the answer on this part of workshop: Writing a pl/pgsql Stored Procedures .
QUESTION
I would like to use one of pgrouting's algorithm to find the (shortest) path between 2 points with: (a) predominance for a specific type of road and (b) intemediate points.
To build the data I used the osm2pgrouting. I would like to focus first on the issue (a).
- Is there an algorithm where I could define my preferences for the road type (in table ways class_id column class_id which represents road type or in table osm_way_types)?
- If not how should I tweak my database? Knowing that I used the osm2pgrouting --> there is table public.osm_way_classes there is max_speed but it seems poor choice for tweaking it. I would like to leave it alone. I didn't really find anything useful in other tables. Any ideas?
Problem (b) (LESS IMPORTANT) is to determine if the length of searched path is less than for example 10km. If no then path should visit one of specified intermediate point (or points).
I don't think there are algorithms in pgrouting which condider these "stops" (intermediate points between source and target). I think this problem (b) should be solved by searching path from point1 to point2 and then from p2 to p3 etc. etc. but I don't know yet how to determine those points.
ANSWER
Answered 2017-May-22 at 23:36Graph theory in general solves shortest path based on edge weights. IE: to get from A to B in the graph it will select those edges that minimize sum of the weights of the edges in the path. So in pgRouting you select the weights as the edge lengths of shortest path length, or can compute the weight as the time to traverse the edge time = length/speed, for shortest time, but for you problem you can make your own weights with an equation like length*preference where preference is some fraction where smaller is more preferred. Obviously you will get back cost based on this factor along with the edge ids and a simple join useing the edge id will get you bcak to the original table. This strategy should work for most any of our algorithms.
QUESTION
I need import open street maps data into my PostGIS database over osm2pgrouting tool. But when I run command, tables was created but without any data. Can you tell me what am I doing wrong? I have installed extension pgrouting in my db ...
As mapconfig I use default mapconfig.xml which is in same folder like osm2pgrouting tool (C:\Program Files\PostgreSQL\9.5\bin). I am using windows os.
...ANSWER
Answered 2017-Jan-21 at 22:38Solution is *.osm format instead of *.osm.pbf.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install osm2pgrouting
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page