[postgis-users] Creating a boundary of an aggregate of buildings
Tomas Straupis
tomasstraupis at gmail.com
Mon Jan 18 05:38:38 PST 2021
2021-01-18, pr, 15:05 Luca Bertoncello rašė:
> UPDATE city_boundaries SET way =
> ST_Makevalid(ST_Multi(ST_SimplifyPreserveTopology(ST_Buffer(ST_Buffer(way,
> 10, 'quad_segs=1'), -500, 'quad_segs=1'), 500))) WHERE res = 10;
This statement has problems.
You're adding a buffer of 10 then removing a buffer of 500 (so
basically leaving only very large polygons and they are eroded by
500meters). Then you're simplifying the result with a 500m value (a
lot).
Try this:
UPDATE city_boundaries
SET way = ST_Makevalid(ST_Multi(ST_Buffer(ST_Buffer(way, 400,
'quad_segs=1'), -400, 'quad_segs=1')));
More information about the postgis-users
mailing list