Questions tagged [osm2pgrouting]

osm2pgrouting is a command line tool that allows to import OpenStreetMap data into a pgRouting database.

Filter by
Sorted by
Tagged with
0
votes
2answers
16 views

Launch of osm2pgrouting: fe_sendauth: no password supplied

I am trying to launch the osm2pgrouting thru the command below and load data (file) into it, but i get the following message: $ osm2pgrouting --f osnabrueck.osm --conf mapconfig.xml --dbname routing -...
0
votes
1answer
20 views

osm2pgsql failed import The system cannot find the file specified

I got error message, when loading osm file to PostgreSQL by osm2pgsql command. I run the following command line : osm2pgsql -c -G -U postgres --hstore -S D:\osm2pgsql\default.style -U postgres -W ...
2
votes
1answer
88 views

pgr_dijkstra return empty set after using osm2pgRouting

I recently started to work with pgRouting with this osm file So I used osm2pgRouting to parse the file and load it into the DB. osm2pgRouting (using the mapconfig_for_pedestrian.xml) work's fine, ...
1
vote
1answer
28 views

Find every possible user to user travel time duration using pgr_dijkstra or pgr_kDijkstra

I have this below GetNearest function that will get every user's nearest node from ways (imported using osm2pgrouting). CREATE or REPLACE FUNCTION GetNearest(NUMERIC, NUMERIC) RETURNS BIGINT AS ...
1
vote
1answer
90 views

Creating Isochrones - pgr_drivingDistance 2.6 SQL error

Im trying to create a matrix of driving distances from an osm2pgrouting parsed dataset. Following many blogs I have the below incorrect SQL: SELECT * from ways join ( SELECT * FROM ...
0
votes
0answers
59 views

Configure mapconfig.xml for null tag_value

I am using osm2pgrouting version 2.3.6. When using osm2pgrouting for .osm file, I created tables ways. However, when I compared it with table planet_osm_line, it lost a lot of line. I determined ...
0
votes
2answers
41 views

osm2pgrouting can't connect to postGIS

I want to do some isochrones with pgrouting, and I am failing in setting up the network in the first place. osm2pgrouting doesn't find my postGIS installation. Also, the error message is not very ...
4
votes
2answers
85 views

osm2pgrouting creates erroneous roads

osm2pgrouting works without giving any errors but most of the roads have lost their geometry. Result is ; What I've done so far; OSM Data downloaded from http://download.geofabrik.de/ in pbf ...
0
votes
1answer
76 views

Using contextual information to plan route?

I downloaded the .osm map data, and I imported it to postgresql using the m2pgrouting. I have a CSV file on violence data, with three attributes, nature of occurrence, latitude and longitude. How do ...
-2
votes
2answers
111 views

Using original shapefile vs osm for routing in South Australia using pgRouting?

I'm looking at building a simple routing application using pgRouting. I'm running on Windows 10 at the moment but could migrate to Windows Server at some point. I'm trying to figure out how best to ...
0
votes
1answer
497 views

OSRM how to use my own map

I download a cartography bike from the open data data link to Postgres then I convert it to osm using: python ogr2osm.py "PG:dbname=x user=x host=localhost" --sql="SELECT * FROM bike_network" --...
0
votes
0answers
172 views

osm2pgrouting tables emtpy

When I use the osm2pgrouting I only get emtpy tables. I got my .osm file from this Wien.os.gz and use the mapconfig.xml from Github. I run the follwing command: ./osm2pgrouting -f path/Wien.osm -c ...
0
votes
2answers
141 views

Getting closest node point (within 2km) from current location using pgrouting?

I'm very new to the GIS, and grasping the pgrouting function to see the possibles develop this feature. Basically I wanted to know all the next end points distance within 2KM from the current ...
1
vote
1answer
190 views

Different databases using different ways to export xml file

I tried to use different ways to get road osmid database, for same region. The bounding box of that region with north latitude, south latitude, east longitude, west longitude are equal to 30....
1
vote
1answer
147 views

pgrouting OSM data with tolls

Is there any way to import the OSM data into pgRouting with the toll data? I already have a database with OSM data with topology, and working with pgRouting, but I need to add some nodes to it. I ...
2
votes
2answers
133 views

Dead-ends are connected by osm2pgrouting

I've downloaded an extent of OSM data with QGIS's OpenStreetMap downloader, and want to use this data for with pgRouting. I can load it without problems as: osm2pgrouting --f data.osm --conf ...
1
vote
0answers
353 views

Given an array of OSM point IDs, how can I create a path of connected roads?

I'm writing a shortest route script in Python using geospatial data from a Postgres DB with PostGIS extension and pgRouting to make the points from OSM data. I have a path of OSM IDs by points. I ...
3
votes
0answers
62 views

Installing external software for QGIS Plugin

I'm wondering if anybody has experience in installing external software for QGIS plugins. I am developing one and I feel like I have hit a wall. I need to use osm2pgrouting, but it is written in C ...
1
vote
2answers
84 views

osm2pgrouting fails with “cannot open”

I try this code: cd osm2pgrouting file http://.....com/veriler/andorra.osm conf mapconfig.xml dbname postgres username postgres dbname, username and web address are correct. But it gives an error.
0
votes
1answer
473 views

Getting osm2pgrouting working

Using PostgreSQL 9.6 and osm2pgrouting 2.2 I am not able to let osm2pgrouting work. Starting from the command line, I get always some mistakes. I think I tried everything, and am getting a bit ...
1
vote
0answers
37 views

Getting base GIS files for use with pgRouting library

I'm just starting to read the tutorial for pgRouting and the first issue that troubles me is the origin of the "base map" to feed pgRouting with. I'm aware that there's available a tool called ...
3
votes
1answer
135 views

pgrouting - Choosing an algorithm with a predominance for a specific type of road

I would like to use one of pgrouting's algorithm to find the (shortest) path between 2 points with predominance for a specific type of road. To build the data I used the osm2pgrouting. Is there an ...
2
votes
0answers
201 views

Weird (longer) route from using cost_s as cost in pgRouting?

I am currently developing application that want to use the fastest time to arrive as parameter for the routing. And i know that pgRouting has 'cost_s' column which calculated from length_m and ...
2
votes
0answers
321 views

Importing OSM data to pgRouting enabled database including turn restrictions

I recently used the tool pypgroutingloader to import OSM data into a pgRouting database. For a small amount of data, this tool works perfectly. Most routing restrictions are present and it modifies ...
5
votes
2answers
467 views

Using pgRouting for 'multiple pedestrians' on an existing table of 'students'?

I'm trying to use the pgRouting sample for 'multiple pedestrians going to the same destination' to determine the 1) length and 2)geometry of students to their schools. Essentially I'm trying to write ...
2
votes
0answers
64 views

Routing for specific subjects (cars, pedestrians, ..) dynamically

I need create app which will be provide routing for specific category. For example only for cars, only for bikes or only for pedestrians. For importing OSM data I'll used default mapconfig for all way ...
2
votes
0answers
35 views

Osm2pgrouting - edit final route

I've imported my data to database by osm2pgrouting. This tool created network topology which contains vertices and edges between them. Problem is when I need get route to specific point which is not ...
0
votes
1answer
516 views

pgr_dijkstra function with geometry column in result

can you help me to edit my pgr_dijkstra function to required result? Currently I had this select: SELECT * FROM pgr_dijkstra(' SELECT gid AS id, source, target, cost, ...
4
votes
2answers
932 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 ...
4
votes
0answers
132 views

pgr_drivingdistance seems to be excluding nodes that should fall within the cost parameters set

I am getting a result that I don't understand and I am not sure if its my lack of understanding of OSM. I am using the pgrouting functions pgr_drivingdistance to get the list nodes reachable within ...
1
vote
3answers
212 views

Strange results in pgRouting

I get results using pgRouting I cannot explain. I created a topology using osm2pgrouting. I then want to find the shortest way through this topology, for someone walking on foot. To calculate the ...
0
votes
1answer
235 views

How can I cluster a small area (say a circle of 20 meters diameter) in OSM to check the different node Ids in the area

I have a node ID(Say Z) which will be in the road/way. How do I find the node IDs around this point Z in certain radius.
2
votes
1answer
238 views

How can I get the length of segments from the output of pgr_dijkstra?

I created a topology from OSM data with osm2pgrouting. I use a very simple Query SELECT * FROM pgr_dijkstra(' SELECT gid AS id, source, target, cost_s AS cost, ...
1
vote
0answers
92 views

After loading osm data using osm2pgrouting how can I add my point data for kdijikstra

I have imported osm data to postgis by osm2pgrouting. Now I want to add point data of my locations, to find distance from one point to multiple points through the osm ways data. I am new to pgrouting. ...
2
votes
1answer
192 views

pgRouting from geocoded user input

have created database by tool osm2pgrouting. On my website can user enter start and end point. How can I find ids of nodes? Because I have only text value of nodes which enter user, but tables ...
0
votes
2answers
389 views

Cannot create pgr_PointsAsPolygon from pgr_DrivingDistance function?

I have successfully build a pgr_DrivingDistance query, select id::int4, lon::float8 as x, lat::float8 as y from pgr_DrivingDistance( 'select gid as id, source, target, length as ...
2
votes
0answers
105 views

Exported OSM database do not contains node names

I've used osm2pgrouting tool to export data from osm file to my postgresql database. Now I have database with this schema: osm_node: -node_id -osm_id -lon -lat -numofuse -the_geom ...
2
votes
1answer
959 views

How can I find route between two points over pgrouting? [closed]

I have imported osm file to postgresql with this table schema(under question). I used osm2pgrouting tool to create this. How can I find route between two points (for example between NY and Detroid). I ...
0
votes
1answer
204 views

How to quick-fix drive time in residential area with Osm2PgRouting?

I'm currently testing pgRouting using OpenStreempMap XML dataset loaded via Osm2PgRouting. My goal is to solve shortest path problems using time driven costs instead of path length. I noticed that ...
1
vote
1answer
298 views

Changing projection of PostGIS data? [duplicate]

I have exported osm data using osm2pgrouting in the database, it has SRID 4326. I want to change projection of all the tables created to a particular SRID in UTM. I read the post FIrst and Second, ...
1
vote
2answers
207 views

May I use OSM in pgRouting to determine TSP solution?

I have a TSP problem that I'd to determine if my solution path is correct. As stated, a classic TSP, I have a number of locations (bikeshare stations) within a city centre (Glasgow, Scotland) that I'd ...
3
votes
1answer
1k views

How are cost and reverse cost computed in pgrouting?

I downloaded the nyc osm metro extract from Mapzen. I then used osm2pgrouting to import that data into postgis, pgrouting and now I have all these columns cost and reverse_cost, but I'm not sure how ...
0
votes
1answer
247 views

Topology processing after osm2pgrouting? [closed]

I imported an OSM dataset using osm2pgrouting, and checked the topology like this: pgr_sfbay=# select pgr_analyzegraph('ways', 0.001, id:='gid'); NOTICE: PROCESSING: NOTICE: pgr_analyzeGraph('ways',...
0
votes
2answers
82 views

Creating Drive Time Polygons Across State Boundaries Using OSM?

I am using pgRouting on OpenStreetMaps to create drive time polygons. The challenge is that at state boundaries, these polygons effectively stop, since the roads in OSM are segmented at the state ...
1
vote
1answer
116 views

Importing information on bridges into postgis-table using OSM2PGROUTING

In OpenStreetMap (OSM) road data there is information about whether or not a road feature is a bridge or not (boolean). However, when importing into a postgreSQL data base for routing (pgrouting), ...
1
vote
1answer
440 views

osm2pgrouting --> option '--conf' cannot be specified more than once

I'm attempting to import some OSM files using osm2pgrouting via command line on a windows 10. When I specify the mapconfig.xml with the -c switch, I am getting the following error: option '--conf' ...
1
vote
1answer
139 views

Retrieving the data from PgRouting

Currently i have created the layer in Geoserver by configuring a native SQL statement, there i am getting the route geometry details from DB by following query SELECT ST_MakeLine(route.geom) FROM (...
-2
votes
1answer
579 views

I need detailed direction to use osm2po or osm2pgrouting [closed]

I am a very beginner with osm2po and osm2pgrouting. I read lots of materials (e.g., http://anitagraser.com/2011/12/15/an-osm2po-quickstart/) regarding these two software, but I can't even start how to ...
1
vote
1answer
85 views

unknown parameter: -conf Error in osm2pgrouting

I was just going through the following tutorial HERE. I have extracted all the files succesfully using the below commands: cd ~/Desktop/pgrouting-workshop/ tar -xvzf data.tar. But when i run the ...
0
votes
2answers
420 views

Incomplete data - lines missing from osm2pgrouting

I am importing OSM data into PostGIS using osm2pgrouting but some data is missing/did not import. I am using the default mapconfig.xml and this appears to work for most roads. For example in below ...