Skip to content

Error writing osm features into database #49

Open

Description

@mattdornfeld

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions