Created
September 30, 2011 17:56
-
-
Save oeon/1254501 to your computer and use it in GitHub Desktop.
imposm error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/imposm --overwrite-cache --read --write -d osm ~/osm_data/slo.california.osm | |
Enabling Shapely speedups. | |
[10:53:11] ## reading /Users/sloale/osm_data/slo.california.osm | |
[10:53:11] coords: 1427k nodes: 28k ways: 203k relations: 1k (estimated) | |
[10:53:25] coords: 1437k nodes: 0k ways: 66k relations: 0k | |
[10:53:25] reading took 14s | |
[10:53:25] ## dropping/creating tables | |
[10:53:25] ## writing data | |
Traceback (most recent call last): | |
File "bin/imposm", line 8, in <module> | |
load_entry_point('imposm==2.3.2', 'console_scripts', 'imposm')() | |
File "/Users/sloale/vimposm/lib/python2.7/site-packages/imposm/app.py", line 232, in main | |
db.create_views(mappings, ignore_errors=True) | |
File "/Users/sloale/vimposm/lib/python2.7/site-packages/imposm/db/postgis.py", line 234, in create_views | |
PostGISUnionView(self, mapping).create(ignore_errors=ignore_errors) | |
File "/Users/sloale/vimposm/lib/python2.7/site-packages/imposm/db/postgis.py", line 322, in create | |
cur.execute('DELETE FROM geometry_columns WHERE f_table_name = %s', (self.view_name, )) | |
psycopg2.NotSupportedError: cannot delete from a view | |
HINT: You need an unconditional ON DELETE DO INSTEAD rule. |
ahh - thanks Oliver! will close bitbucket ticket.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are running PostGIS 2? The geometry_columns table is read-only since 2.0, but Imposm manipulates it for the --deploy-production-tables feature. You need to downgrade to PostGIS 1.5 for now.