omniscale / imposm3

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

Unexpected behaviour if "type" is not specified for table #131

Closed russss closed 7 years ago

russss commented 7 years ago

If you accidentally omit the "type" (geometry type) key in your mapping file, you get the postgres error Invalid type name "(2)", as imposm3 tries to execute this command:

SELECT AddGeometryColumn('import', 'osm_tablename', 'geometry', '3857', '', 2);

I'd say ideally the mapping file schema should be validated on import to avoid this failing halfway through a long -import -write job.

olt commented 7 years ago

It is now an error if type is not set and it will exit immediately.