Hi there, I am trying to import an osm planet file in .pbf format into PostGIS and it appears to have just stopped after about 5 days of running. I've read through quite a few of the posts in this forum and not found an answer that seems to explain what has happened. As far as I understand it I should get some information about how long it has taken once it has finished but the last thing it shows me is: 'Processing: Node<1929394k 225.9k/s> Way<186904k 1.37k/s> Relation<477740 9.65/s>' I've checked the event logs and I can't see anything that says I've run out of memory or space and when I look in PostgreSQL there is only one table called spatial_ref_sys. I also read somewhere that PostgreSQL has to run indexing and what not, so I'm not sure if that is what is happening at the moment. My server set up is thus:
The command I used to set osm2pgsql running was: osm2pgsql -S "C:/Program Files/cygwin-package/default.style" -U postgres -d maps C:/Users/jordane/Desktop/Maps/planet-130614.osm.pbf -W --port 5432 --host localhost -s --flat-nodes flat-nodes.bin Can anyone tell me what happened and how to fix it or is it still running in the background? UPDATE: So, I figured I may as well run it again and see what happens, in case a process had stopped last time and so killed it. I got exactly the same issue happen again and it stopped at exactly the same point. I was keeping an eye on how much space I had available as it was running and it didn't come anywhere close to filling my disk. It finished overnight so I can't say how much space it was taking up when it stopped but I got no warnings to say it ran out of space. I have however noticed that the used space on my disk has gone down by about 40-50GB since it stopped running, so I can only assume that it has hit a problem and cleaned up the partially converted data. Am I missing something obvious here? Is there a load of data that it has dumped somewhere other than PostgreSQL? I would really appreciate some pointers as I am all out of ideas bar downloading a new planet file and just trying it again. Thanks asked 11 Apr '16, 12:54 Elea J |
I think that it's fair to say that there are far fewer people using osm2pgsql on Windows than on e.g. Linux - that's probably why you didn't get any answers here. There has been some Windows activity at https://github.com/openstreetmap/osm2pgsql/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+windows (your question there is at the top of the list). My first thought is "are you running out of memory?". Have you tried a much smaller data extract (a city or very small country)? My second is "what do you want to do with the data afterwards"? Your question at https://help.openstreetmap.org/questions/49457/ways-of-loading-a-planet-file-into-a-gui-and-exporting-tiles-from-it suggests that you want to generate tiles. I'm unaware of a well-documented software stack that will do this on Windows. My suggestions are:
answered 27 Apr '16, 14:14 SomeoneElse ♦ Thanks I'll try those. Could I really be running out memory with 24GB of RAM? I kept an eye on it (during the days) and I only ever used about 10-15% of the available RAM.
(27 Apr '16, 14:21)
Elea J
Depending on where you got osm2pgsql from, I wouldn't assume that it could address all 24Gb of RAM on Windows.
(27 Apr '16, 14:29)
SomeoneElse ♦
|