I generated a polygon layer using line to polygon conversion。enter image description here

enter image description here But the one with the largest area is at the top, so I cannot select other polygon elements。

To do this, open the layer properties, head to the Symbology tab, scroll down to the Layer rendering group box on this page, where you find a Control feature rendering order checkbox. Once this is checked, there is a A->Z button on which you can define which attribute(s) should define the sort order and if it should be in descending or ascending order.

I found this method, but it is only a display effect and cannot truly place polygon features with smaller areas on top。

I also tried Vector -> Geoprocessing tools -> UniondifferenceMerge, but it will divide the polygon into a circular shape

How to place smaller elements on larger ones

  • 1
    One workaround is to use the Identify Features tool; it will identify multiple overlapping features, so go through clicking on the relevant features in the Identify Results panel until the one you want is highlighted in the canvas. Then right click that feature in the panel and click 'Toggle Feature Selection'. Each time you do this you add to the selection (doesn't reset). Tedious but does work.
    – she_weeds
    Jan 20 at 5:29
  • 1
    If it is only about visualization, check the Control feature rendering order with a corresponding expression, that contains e.g. $area. cadlinecommunity.co.uk/hc/en-us/articles/…
    – Taras
    Jan 20 at 8:18
  • 1
    Do your initial lines and thus your polygons have any property like the altitude they correspond to ? If so you can order the display by that value, otherwise use the answers below
    – Kasper
    Jan 20 at 8:21

1 Answer 1

  1. you can use the Order by expression processing tool and use $areaas expression. But this would result in a new dataset.

enter image description here

  1. you can use a virtual layer with the following definition:

    select * from polygonlayer order by st_area(geometry) desc

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.