Tuesday 17 November 2015

Smoothing/generalizing polygon in QGIS?


Is it possible to smooth or generalize a polygon in QGIS, perhaps by using a plugin like the generalizer-plugin for lines?


I could convert my polygons to lines, smooth them and convert them back to polygons but this is not working for my polygons because of several reasons.



Answer



you can use:


Vector menu -> Geometry tools -> Simplify Geometries

.


simp



Beside this you can use Douglas-Peucker algorithm in postgis too, so you can use in postgis then adding postgis layer to qgis. you can find some info here about Simplify: Reduce the weight of a geometry.


SELECT simplify(the_geom,500) as simpgeom 
FROM neighborhoods

simplfy


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...