0

We can customise the OSM data in two ways. First one is directly download the shapefile and edit the shapefiles easily. Another way is to import OSM pdf file through osm2pgsql to postgresql and edit the data through QGIS. As the second method is little bit complex gone through the first method. We downloaded the OSM shapefile and customise it with few proprietary data. If we take road data as an example there are 10 attribute columns. which are almost same to the table found in postgresql through osm2pgsql except fclass which is highway in planet_osm_line. After completion of editing I want to convert the data again to pbf format which I can use in OSRM without any changes in lua file of profiles. I used OSMOSIS which return there is no migration table or schema. Then I used ogr2osm.py to convert shapefiles to OSM and osmctools for converting the osm file into pbf for using OSRM. If I test the file with JOSM its showing the data but its not importing to postgres again through osm2pgsql or can not using pbf file with OSRM. In which portion I am doing the wrong?

  • I guess the shapefile already misses some crucial data required for OSRM. Also "reverse engineering" is the wrong wording. These formats are open, not proprietary. It is a simple conversion. – scai Apr 8 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.