dimanche 1 mars 2015

Only points when importing from OSM to Postgresql


This is my very first time working with OpenStreetMap data so feel free to tell me if I am forgetting important information.


I am trying to import some data from OpenStreetMap into PostGreSQL. I have been downloading the data using the following query :



wget 'http://ift.tt/1EC7ONd;' -O utrecht2.osm


Then, I have imported the resulting file into PostgreSQL using osm2pqsql:



osm2pgsql -c -d utrecht -C 1000 --flat-nodes /home/me/Documents/01_perso/28_routing --hstore -S default.style utrecht2.osm


Everything seem to run without any error (that I can see at least).


I am using the default.style file that can be found here for the import.


Finally, I am looking at the data that has been imported into my Postgresql table. What annoys me is that only the planet_osm_point table contains information. All other tables are empty.


When looking at the area using the OSM website, it is clear to me that there should be way more information available, in terms of polygons, roads, etc


I have tried to reduce my search area several times, wondering if I hadn't reached the overpass API limits but without success so far.


Could someone point me towards the reason why I don't get any road, polygon, line information into my database?


Thanks!





Aucun commentaire:

Enregistrer un commentaire