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

--table-prefix support #27

Closed
heffergm opened this issue Jun 24, 2014 · 7 comments
Closed

--table-prefix support #27

heffergm opened this issue Jun 24, 2014 · 7 comments

Comments

@heffergm
Copy link

Hi,
Would love to have an equivalent functionality to imposm2 for support of --table-prefix.

@olt
Copy link
Member

olt commented Jun 24, 2014

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

@heffergm
Copy link
Author

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

@olt
Copy link
Member

olt commented Jun 25, 2014

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

@heffergm
Copy link
Author

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

@olt olt closed this as completed in 1753bbc Jun 25, 2014
@olt
Copy link
Member

olt commented Jun 25, 2014

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

@heffergm
Copy link
Author

Awesome, thx!

@heffergm
Copy link
Author

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

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

2 participants