I try to load this WFS
https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_lor_plr_2021 into PostGIS using QGIS.
However, I always get the following error
Error: 6 Object writing error: Object create error: from #-9223372036854775808 to #-9223372036854775808. FError was: PostGIS-Error on adding attributes: FEHLER: Geometry type (MultiPolygon) does not match column type (Polygon)
Only 0 from 542 Objects written
Whats going wrong?
polygon
instead ofmultipolygon
PostGIS
into which I import theWFS
. The table is created upon import. I never setpolygon
anywhere...ALTER
its geometry type toMULTIPOLYGON
, uncheckZieltabelle ersetzen
and reimport - and hope for the WFS not to serve even other types.ALTER TABLE "fis:s_lor_plr_2021" ALTER COLUMN geom type geometry(MultiPolygon, 102689) using ST_Multi(geom);
. However, when I uncheckReplace table if exists
I get the errorRelation »fis:s_lor_plr_2021« exists already