Hi, I’ve been attempting to import the planet.bz2 file into my GIS database but the import fails when my VM aborts during the Processing: Way stage of the import. Details:
Is my machine capable of completing the planet file import? I’ve also asked about this on the VirtualBox forum but I’m asking here in case it’s an OSM-related issue. Any help or advice would be greatly appreciated! Thanks, Alpha asked 06 Dec '13, 18:01 Alpha47 |
At least on paper you should be able to import a full planet (no claims about how fast/slow it will be). It would however seem to be rather unlikely that the machine will actually continue to run if the VM starts using the 32GB of memory. You are using both an old postgresql version and command line options that might have been appropriate 3 years ago, but are more than outdated today (three years ago the planet file contained less than half the nodes it has today). You will need to specify at least -C 18000 and likely it would make sense to use the flat file node store. See for example switch2osm.org for updated information. Without further information on any errors displayed during the abort it will be difficult to help you with the specific problem. In general it is a good idea to import a small extract first to check that everything works before embarking on a full planet import. answered 06 Dec '13, 20:29 SimonPoole ♦ Thanks for the response! Smaller files (a world extract and a couple continent files) all worked successfully, which is nice in light of the inferior commands and postgres database I was using. I'll upgrade and adjust my command line options and update this ticket when I have more information.
(06 Dec '13, 21:01)
Alpha47
1
BTW you should be importing the data in PBF format, it is quite a bit faster.
(06 Dec '13, 23:05)
SimonPoole ♦
|
How fast is access to the external drive? When you ran with extracts did it appear to be IO-bound?
At the time it didn't seem to be but I may not have noticed because these were smaller files that I was able to import much more rapidly than the planet file. I'll update this ticket when I have more information.
Thanks for the response!