You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: