polygon_smooth library

Functions

polygonSmooth(GeoJSONObject inputPolys, {int iterations = 1}) FeatureCollection<GeometryObject>
Smooths a Polygon, MultiPolygon, also inside Features, FeatureCollections, or GeometryCollection. Based on Chaikin's algorithm. Warning: may create degenerate polygons. The optional parameter iterations is the number of times to smooth the polygon. A higher value means a smoother polygon. The functions returns a FeatureCollection of Polygons and MultiPolygons.