[postgis-users] Creating a boundary of an aggregate of buildings

Luca Bertoncello lucabert at lucabert.de
Thu Jan 28 07:55:29 PST 2021


Am 28.01.2021 16:45, schrieb Tomas Straupis:
> 2021-01-28, kt, 17:35 Luca Bertoncello rašė:
>> I get the error:
>> 
>> FEHLER:  Geometry type (Polygon) does not match column type
>> (MultiPolygon)
>> 
>> Could you say me how to correct the query?
> 
>   Add ST_Multi like this:
> 
>   UPDATE city_boundaries SET way =
> ST_Multi(ST_SimplifyPreserveTopology(way, 100));

OK, thank you!

A test looks like very good, pretty the same of the previous version, so 
I'll use it.

Regards
Luca Bertoncello
(lucabert at lucabert.de)


More information about the postgis-users mailing list