omniscale / imposm3

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

Specific geometry column for polygon tables #144

Open rouen-sk opened 7 years ago

rouen-sk commented 7 years ago

All the tables mapped as "polygon" have resulting column type geometry(Geometry,3857). Since only polygons and multipolygons are allowed here, I think it would be better to make it "strongly typed" as geometry(MultiPolygon,3857). First, it would act as constraint against unexpected geometries, and secondly - various tools (including QGIS i.e.) try to scan tables to determine actual geometry types, which can take really long time for large extracts or planet database.