[openstreetmap/openstreetmap-website] Adding osm extract (#1545)
Matt Amos
notifications at github.com
Sat May 20 10:03:53 UTC 2017
Osmosis is able to read both XML and PBF files, but you need to change the command line to use `--read-xml` rather than `--read-pbf`. For example:
```
osmosis --read-xml greater-london-latest.osm \
--write-apidb host="localhost" database="openstreetmap" \
user="openstreetmap" password="" validateSchemaVersion="no"
```
However, the error in your example is:
```
The server requested password-based authentication, but no password was provided.
```
Which would suggest that you need to check that your database authentication is set up correctly. The most common reason for this is that the database user has no password set up at all and is using "ident" authentication over a local socket. Please read the [PostgreSQL documentation on authentication](https://www.postgresql.org/docs/current/static/auth-methods.html#AUTH-PASSWORD) and make sure you can login using `psql -h localhost -u openstreetmap openstreetmap`, then use the same credentials for Osmosis.
Please also have a look at the conversation around #282, which might have some useful tips. And, if you plan to edit the data afterwards, then update the primary key sequences to avoid issues such as #1542.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1545#issuecomment-302863653
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170520/c7fccbf8/attachment.html>
More information about the rails-dev
mailing list