[Tile-serving] [openstreetmap/osm2pgsql] Error when import data (#1577)

Kazantcev Andrey notifications at github.com
Sat Oct 9 16:47:51 UTC 2021


## What version of osm2pgsql are you using?

2021-10-09 19:45:03  osm2pgsql version 1.5.1 (1.5.1-24-ga50c54e2)
Build: RelWithDebInfo
Compiled using the following library versions:
Libosmium 2.17.0
Proj [API 4] Rel. 6.3.1, February 10th, 2020
Lua 5.3.3

## What operating system and PostgreSQL/PostGIS version are you using?

Database version: 13.4 (Debian 13.4-4.pgdg110+1)
PostGIS version: 3.1

## What did you do exactly?

I tried to [this example](https://osm2pgsql.org/examples/buildings/) with central-fed-district-latest.osm.pbf
command `osm2pgsql -W -U postgres -H postgres -O flex -S script.lua central-fed-district-latest.osm.pbf`

## What did you expect to happen? All good.


## What did happen instead?
```
2021-10-09 19:43:45  Database version: 13.4 (Debian 13.4-4.pgdg110+1)
2021-10-09 19:43:45  PostGIS version: 3.1
2021-10-09 19:44:23  Reading input files done in 38s.
2021-10-09 19:44:23    Processed 86421144 nodes in 4s - 21605k/s
2021-10-09 19:44:23    Processed 9460833 ways in 33s - 287k/s
2021-10-09 19:44:23    Processed 308728 relations in 1s - 309k/s
2021-10-09 19:44:26  ERROR: DB copy thread failed: Ending COPY mode for 'buildings' failed: ERROR:  Geometry type (MultiPolygon) does not match column type (Polygon)
CONTEXT:  COPY buildings, line 4433155, column geom: "0106000020110F0000020000000103000020110F0000020000001000000089832B72A5DB4F4155EB70831F985C41C84AF345..."
..
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1577
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20211009/f6412532/attachment.htm>


More information about the Tile-serving mailing list