Giter VIP home page Giter VIP logo

Comments (7)

olt avatar olt commented on June 19, 2024

Try -connect postgis://localhost/db?prefix=my_prefix_.

from imposm3.

heffergm avatar heffergm commented on June 19, 2024

I get a 'bad connection' error from the driver, but I am using the January binary release...

from imposm3.

olt avatar olt commented on June 19, 2024

Can you post your connection string (before and after)?

from imposm3.

heffergm avatar heffergm commented on June 19, 2024

Basically identical to a sample from the readme, using this build (http://imposm.org/static/rel/imposm3-0.1dev-20140624-cf8c196-linux-x86-64.tar.gz):

before:

imposm3 import -connection postgis://user:password@host/database -mapping mapping.json -read /path/to/osm.pbf -write

after:

imposm3 import -connection postgis://user:password@host/database?prefix=some_prefix_ -mapping mapping.json -read /path/to/osm.pbf -write

from imposm3.

olt avatar olt commented on June 19, 2024

Ok, I think lib/pq does not allow unknown parameters in the connection string anymore. Should work now!

from imposm3.

heffergm avatar heffergm commented on June 19, 2024

Awesome, thx!

from imposm3.

heffergm avatar heffergm commented on June 19, 2024

Were you expecting this build to contain the fix? http://imposm.org/static/rel/imposm3-0.1dev-20140624-cf8c196-linux-x86-64.tar.gz

Getting the same error.

root@extractor2:/tmp/imposm3-0.1dev-20140624-cf8c196-linux-x86-64# ./imposm3 import -connection postgis://user:password@localhost/osm?prefix=a_prefix_ -mapping mapping.json -read abuja.osm.pbf -overwritecache -write
[Jun 25 15:09:07] driver: bad connection

from imposm3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.