Questions tagged [osm2po]

Converter and Routing Engine for Openstreetmap.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

pgRouting plugin error

I have used osm2po to create routing data after load the data to database(postgresql) then from it to QGis.when using the pgrouting plugin the error appears: 2019-05-16T12:43:17 WARNING ...
0
votes
1answer
42 views

OSM data: “Referenced nodes” vs regular nodes

I am using osm2po software to extract nodes and edges from europe-latest.osm.pbf. When run from terminal, the logs are as follows: So, there are over 2 billion nodes, but only (or "only") around 197 ...
0
votes
0answers
39 views

How do I run osm2po service on internal Windows 2016 server?

I have recently started to play with osm2po, and found it really cool. As a first step, I followed this coolest Anita Graser's tutorial to get things started, and everything seems to work fine. I am ...
0
votes
1answer
80 views

How to add our own routing data from postgresql into osm2po graph

Is there any way to convert data from a PostgreSQL noded table into an osm2po graph? this library is able to read pbf data and generate a graph from osm data but If I want to update roads data it is ...
0
votes
0answers
45 views

Routing from user location to POI in pgRouting?

I have roads(edge) table and hospitals(point of interest) table in pgRouting database. Now I want to take user location or any point location that user inputs as a starting node and ending node must ...
1
vote
0answers
148 views

PgRouting queries too slow

I'm writing a function that returns routes using PgRouting (v.2.6) The main problem I'm having is that I cant get the time less than 1 second per query. The main query I need is get time, length, and ...
3
votes
3answers
238 views

Meaning of OSM file columns

I imported an OSM file of San Francisco and I get this dataset: Can any one help me to understand the meaning of these columns: km/h: is this the limit speed or the average speed of each road? flags ...
0
votes
1answer
53 views

Using osm2po to avoid certain areas?

Is it possible to avoid certain areas using osm2po? For example I would like to avoid central London. I can't see anyway to put this as a constraint in Java.
1
vote
1answer
57 views

osm2po way tag resolver: how to use allow/deny for complex selection

How to combine allow / deny in osm2po config file for complex selection? As an example, I would like to include in my finalmask (car) all [highway=service] except the ones that DO NOT have the tag [...
2
votes
2answers
315 views

Add a POI in pgrouting

I am new of pgrouting. I have created a new network using osm2po with both edges and nodes. Everything works fine, and I have tested the system using the Pgrouting Layer plugin for QGIS but I have ...
3
votes
0answers
69 views

Navigating Outdoor Area with obstacles [closed]

I am trying to navigate in an outdoor area from one point to the other, e.g. in an area with hills or mountains, and I would like to declare a hill as an obstacle if the change in elevation is too ...
0
votes
1answer
76 views

OSM2PO V5.1 - Routing from mid line not working with Ovl routers

I am using osm2po v5.1.0 I have combined 6 country pbf extracts as such: java -jar osm2po-core-5.1.0-signed.jar prefix=sk cmd=tj slovakia-latest.osm.pbf java -jar osm2po-core-5.1.0-signed.jar ...
1
vote
1answer
37 views

Does osm2po support anchor tags with a colon?

I have seen some tags in OpenStreetMap that contain colons. Example: cycleway:right = lane I have tried to add those tags as anchors "as is" in osm2po.config. For example: wtr.tag.cycleway:right....
0
votes
1answer
71 views

maxSpeed tags versus default speeds

I am using osm2po to load the Europe dataset into a PostGIS database to use with pgRouting. I find the default speeds in osm2po.config to work quite well, but when a maxSpeed tag is found this speed ...
0
votes
1answer
89 views

Longer street segments in osm2po

I'm using osm2po to break up OSM map into routable segments, and pretty much always I want the streets to go from one intersection to another (or till some alley). However, if underlying OSM map has ...
0
votes
1answer
122 views

Customize osm2po sql script

I am using osm2po to populate a pgrouting-compatible table in a postgis enabled database. I changed the table definition a little bit (unlogged table for faster inserts, added indexes on osm_id for ...
0
votes
2answers
202 views

Using osm2po to route using places (saved as multipolygon)

I use osm2po to create a routable network from OSM data and this works great. Although I feel quite familiar with osm2po nowadays, there is one thing I can not solve using PgRoutingWriter's output: ...
1
vote
1answer
67 views

How to keep an OSM routing topology updated?

I have a South America import and an osm2po topology table. My database is updated daily using osmosis but how to keep the topology table updated without make all import over again?
1
vote
1answer
98 views

database --> osm2po --> gph

I know osm2po is great for getting an osm file into a database. I used it to load an entire country in a country_2po_4pgr table. What I would like to do is then reverse the process, to be able ...
4
votes
2answers
550 views

pgr_createTopology - how tolerance?

I've proceed by this tutorial to create routing topology: Create a Network Topology They are using osm2pgsql tool for import data and next call pgr_createTopology function. When I proceed step by ...
3
votes
2answers
422 views

Correct routing on osm2po table

What is the best way to use routing table generated by osm2po? When I apply osm2po on my *.osm.pbf file, the generated table looks like this: Here is my routing script: SELECT d.seq, d.path_seq, d....
2
votes
0answers
68 views

Some PostGIS functions explanations [closed]

I'm trying to optimize a route SQL function and playing with some ST_* functions I found around. But even found a good one, I don't want to simply copy/paste what someone wrote. I want to understand ...
0
votes
1answer
166 views

Add height/elevation in generated sql files from osm2po

I am using osm2po to generate a routable network (by importing .sql files from osm2po into a PostgreSQL/Postgis database). This works great using the post process filters PgRoutingWriter and ...
1
vote
2answers
122 views

List of parameters accepted by osm2po server?

Can someone please point me to the full list of parameters accepted by osm2po server (osm2poService)? The documentation under "Server" section on osm2po.de seems to be incomplete. For example, ...
1
vote
0answers
98 views

London highways missing in OSM Data

I'm working with London OSM data (roads) with PostGIS and pgRouting. After download the pbf file from Geofabrik and create the topology with osm2po, I've realized that some highways in London are ...
0
votes
1answer
1k views

Unable to use pgRouting Layer QGIS plugin with osm2po tool (database connection error)

By following these amazing tutorials of Anita Graser An osm2po Quick Start and pgRouting on OSM using osm2po, I was able to use osm2po tool successfully on Windows 7 (x64) with PostgreSQL version 9.5 ...
0
votes
1answer
62 views

osm2po v5.1.0 concave shapes

According to release notes version 5.1.0 is capable of generating concave shapes. However, I cannot find any information on how to use this new feature. Has anyone had any luck with this?
1
vote
1answer
91 views

osm2po highways and surfaces

Is it possible in osm2po to additionally consider surfaces as edge weights along with the highways? I've tried the following: wtr.tag.highway.pedestrian = 1,1,5, foot wtr.tag.highway.footway = 1,1,...
2
votes
1answer
83 views

Does Osm2Po support administrative boundary extraction?

I already used osm2po for ways extraction, but still cannot understand how to get administrative boundaries with osm2po. There is relationTagResolver in config section and v.5.1.0 description says, ...
1
vote
1answer
59 views

Deny steps with count more than 3 in osm2po

wtr.tag.highway.steps = 1, 1, 1, foot In osm2po I can deny stairs with count 3 steps like this: wtr.deny.step_count.3 = foot But, I would like to prohibit stairs with a number of stages over ...
0
votes
1answer
63 views

Why can't osm2po router find vertexIds when I use Graph.SUPPORT_EDGEFLAGS?

I am using the Osm2po.router in Java, trying to find the clazz of roads from this Get road type (clazz) in osm2po. When I am using the router without any supports, I am able to find the vertex Ids. ...
2
votes
0answers
90 views

Cannot parse walking routes in Osm2po

I really am at a loss with trying to figure out how to parse only walking routes using OSM2PO. I've modified the config file to add foot to the routes which can be walked along, as follows: wtr.tag....
0
votes
1answer
77 views

pgr_drivingdistance returning no results

I've imported the latest North America OSM extract into postgres using osm2po so that I can use the pgr_drivingDistance function of pgRouting to create a drive-time polygon. I'm at the final step, ...
1
vote
1answer
274 views

Constructing a weighted graph a.k.a. a road network with distances for a specific area

Pardon my ignorance in GIS/Routing tools as I'm new to it: I have a map in OSM format and wanted to build a routable graph out of it ( to experiment a searching algorithm I have in my PhD thesis). ...
0
votes
1answer
100 views

pgRouting - How get all pubs that are less than x meters from a point

I'm building a Mobile App to discover all pubs that are less than 2 km away from my position! First I obtained all the roads of a town using Open Street Maps "osm2po" Next I obtained all coordinates ...
1
vote
1answer
78 views

osm2po custom node tag resolver problem

I try to implement a custom node tag resolver to make a railway stations exported with specific clazz value. I used this article How to extend OSM2PO with ferry durations? as manual. Class compiled ...
2
votes
1answer
579 views

PostGIS: How can I improve the response time for getting the routed distance between addresses?

I need the ability to calculate the driving distance between two addresses for possibly hundreds of thousands of records. I have decided on PostGIS because it can geocode and perform routing all in ...
7
votes
2answers
319 views

How can I know why an OSM way cannot be used for routing, and how can I fix it

Background I use osm2po in an application that needs to calculate distances, times and path between locations. In short, I take data from Geofabrik as input to osm2po to output a directed graph with ...
2
votes
1answer
214 views

Parameters for osm2po web service to route for walking

I have started the osm2po web service using the jar file. In the configuration file, I could see different parameters related to walking but not sure what each one does. I am trying to call the web ...
0
votes
1answer
241 views

Not able to create PostgreSQL file using Osm2po?

I am new to the GIS community. After downloading the osm2po jar file, I have run following the instructions from underdark tutorial. Also, from Carsten's answer in gis stack exchange, I have enabled ...
2
votes
3answers
352 views

QGIS Pgrouting layer plugin error

I followed the instructions for loading OSM data into pgrouting found here: http://anitagraser.com/2011/12/18/osm2po-part-2-pgrouting-on-osm-the-easy-way/ Everything works fine using osm2po to ...
0
votes
2answers
612 views

Routing using OSM data, osm2po, and pgrouting: strange route produced

I downloaded latest data from Geofabrik and ran the data through osm2po. osm2po web service works fine. I tried to find the route from node 103843 to 170597 and got the following route: However, ...
0
votes
1answer
127 views

osm2po routing problem with bridge

How can i add a bridge as a normal street in the config of osm2po 5.1.0? When i try to calculate the route from "333842" to "291763" using austria-latest.osm.pbf an error occurs about failing to ...
0
votes
1answer
183 views

osm2po > PostGIS > QGIS/pgRoutingLayer Extension Issue

I've just been testing osm2po and everything worked fine and straightforward until it comes to the QGIS pgRoutingLayer Extension. Selecting the Database and selecting source and target node works fine ...
0
votes
2answers
133 views

Successful import of osm2po results

I would like to know if my import of some osm2po results into a PostgreSQL database have been successful or not. Is there something like: Import successful or a simple Done? All I got was: public....
2
votes
1answer
292 views

OSM2PO Postgres to graph for A*

I have created a directed graph from the nodes stored within my Postgres db but the resulting graph doesn't seem to be fully connected and as a result my shortest path algorithm is not able to find a ...
6
votes
1answer
1k views

How to make osm2po 5.1 write an SQL file?

With osm2po 5.1, I can get the osm2po router running D:\osm2po-5.1.0>java -Xmx1024m -jar osm2po-core-5.1.0-signed.jar prefix=vie ..\vienna_austria.osm.pbf but the resuting vie folder only ...
0
votes
2answers
67 views

SAXParseException in OSM2PO

I am getting the following error message when trying to utilise an osm pbf from the Geofabrik (latest Europe file): org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not ...
0
votes
1answer
93 views

My osm2po java program compiles but gives a runtime error

I need road distances and I'm trying to use osm2po to do this. After downloading the OSM files and converting them to gph format, using the osm2po program, I start at the very beginning with the ...
0
votes
1answer
88 views

osm2po traffic signals -128

Using osm2po to extract traffic signal in the vertices used to provide the value 1 in the clazz column of the vertex table: Add vertices costs to postgresql routable network For some reason I keep ...