[OSM-dev] Osmosis import to postgis - speed
siliconfiend at gmail.com
Sat Dec 6 00:37:10 GMT 2008
On Fri, Dec 5, 2008 at 4:11 PM, S Knox <roxyknox at yahoo.co.uk> wrote:
> I'm using Osmosis to import a recent UK extract of the planet file into a
> database, and I used the simple schema here:
> This took around 1 hour.
> I then found that this schema didn't give way geometries so re-ran the
> query, adding a geometry column 'linestring' so that way objects would be
> This import has taken 24 hours so far and isn't yet finished. Is this
> normal or has something gone wrong? It would be useful to have some sort of
> counter to find out how far into the process osmosis is - for example
> roughly what line of the XML it is on, as a percentage of the whole file.
works on streams, so it can't know what percentage of the total is
You can use an external bzip to decompress the file to stdout and then pipe
it to Osmosis. Type a hyphen as the filename for Osmosis to indicate it
should read from stdin.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev