omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
723 stars 158 forks source link

Force geometry type to 'Geometry' on generalized table #262 #263

Closed frodrigo closed 2 years ago

frodrigo commented 3 years ago

Geometry column type of generalized table if left to Postgres on CREATE TABLE ... AS based on content.

But when the table initially created for polygon and a multi-polygon come up in the update, it fails with Geometry type (MultiPolygon) does not match column type (Polygon).

So force the type of the geometry column to Geometry to accept polygon and multipolygon. The same is already done for imported table from OSM polygons.