I have a layer with a lot of polygons. Now I want to filter all polygons that are very narrow. For example, the polygons show living space. But I'm only interested in large living spaces. Function $area does not help here, as there are also very long and narrow surfaces. Does anyone know a function in QGIS that comes to this output via filtering x and y?
1 Answer
If you want to ignore long, narrow polygons which, for example, have an average width of 10m, you could use a query like:
area( buffer($geometry, -5 )) > 0
This query creates a negative buffer (i.e. inwards) and if the area of the buffer is greater than 0 then that polygon has a greater width. You can change the value to set a threshold more suited for your needs.
point of inaccessibility
and its distance to the polygons border?area(buffer($geometry, -5)) > 0
. This query creates a negative buffer (i.e. inwards) and if the area of the buffer is greater than 0 then that polygon has a greater width.