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
0answers
9 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
28 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
24 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
0answers
9 views

Seeking approach to simulate taxi on NYC map data? [duplicate]

I am new to GIS field. As part of my class project we want to simulate 100-1000 taxi agents on NYC map.We plan to write java application which fetches road network information and moves these agents ...
0
votes
2answers
27 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 ...
3
votes
1answer
46 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
73 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 ...
0
votes
2answers
63 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
389 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
113 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
90 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
116 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
121 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 ...
1
vote
2answers
114 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
260 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
60 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
67 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
348 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
94 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
136 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 ...
1
vote
0answers
240 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 ...
4
votes
2answers
373 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
56 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
32 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
407 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
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 ...
4
votes
0answers
111 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
179 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
175 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
198 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
76 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
152 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
304 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
89 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
718 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
189 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
210 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
164 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 ...
2
votes
1answer
989 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
217 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
79 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 ...
0
votes
1answer
108 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
351 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
131 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
528 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
82 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
337 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 ...
0
votes
1answer
146 views

How to set the target schema using osm2pgrouting

Is it possible to set the target database schema using osm2pgrouting? After some debate and troubleshooting, I've decided to host my OSM-based pgRouting data in the same database as the rest of my ...
0
votes
1answer
100 views

Importing map information with osm2pgrouting?

I'm importing the cartography of Spain with osm2pgrouting. I want to import address information, that is, the tag addr = *. I modified the file mapconfig.xml follows: <type name="junction" id="...