I'm using Osmosis to load an extract of OSM data for the USA into a Postgresql database. I have previously used osm2pgsql.exe to load data into a postgresql database, but it is taking an extremely long time to load on my computer (Win 7 64 bit) using osm2pgsql 32 bit with the
I changed this line to the following, and tried adding a port argument
The error message I got was the following:
Where I can I pass the port-number? While I am using localhost, my port-number is 5436 for this database. More generally, what does a I am also trying to use
When I ran this, I got an error message saying that bzip.dll was not on my system. I just saved the file linked on this page and tried running that but it seems not to work. asked 19 Mar '12, 15:24 djq |
First off osm2pgsql is importing to a postgis scheme usfull for rendering, osmosis is importing to a different postgresql scheme that is used by the api. The rails port is the implementation of the api and website at osm.org. These two schemes are not the same. You are dealing with huge data here and you should give osm2pgsql lots of memmory, compile it in 64 bit mode, tune your database and use fast disks. As for the dll problems you have, osmosis --read-xml and --write-xml have the option compressionMethod that can be set to gzip, bzip2, none or auto. The default is auto so your command should be
Most of the tools in osm are not tested in windows and linux is prefered for development and hosting. You should try out a common linux distro like Ubuntu if you run into more problems. answered 19 Mar '12, 15:54 Gnonthgol ♦ 1
Thank you, that fixed the dll/extract problem (it is running, anyway). I realize this is much easier on Linux (and have used it for similar tasks in the past), but unfortunately that is not an option for me at the moment. I can't find an osm2pgsql for Win 64 bit and I'm not familiar enough with MinGW to be able to build it (in a reasonable time frame). I am fortunate to have a fast computer and fast disks though....
(19 Mar '12, 16:17)
djq
|