Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error writing osm features into database #49

Open
mattdornfeld opened this issue Jun 5, 2016 · 0 comments
Open

Error writing osm features into database #49

mattdornfeld opened this issue Jun 5, 2016 · 0 comments

Comments

@mattdornfeld
Copy link

mattdornfeld commented Jun 5, 2016

I'm following along with this tutorial. I am to read a pbf file into imposm.

imposm --read germany.osm.pbf

However, when I try to write to the database with

imposm --write --database osm --host localhost --user osm --port 5432

I get this error

Traceback (most recent call last): File "/usr/local/bin/imposm", line 9, in <module> load_entry_point('imposm==2.6.0', 'console_scripts', 'imposm')() File "/usr/local/lib/python2.7/dist-packages/imposm/app.py", line 265, in main db = DB(db_conf) File "/usr/local/lib/python2.7/dist-packages/imposm/db/config.py", line 25, in DB return PostGISDB(db_conf) File "/usr/local/lib/python2.7/dist-packages/imposm/db/postgis.py", line 42, in __init__ if self.is_postgis_2(): File "/usr/local/lib/python2.7/dist-packages/imposm/db/postgis.py", line 59, in is_postgis_2 cur.execute('SELECT postgis_version()') psycopg2.ProgrammingError: function postgis_version() does not exist LINE 1: SELECT postgis_version() ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

Know what might be causing it? I've already added in postgis extensions with this tutorial http://wiki.openstreetmap.org/wiki/PostGIS/Installation#Create_database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant