Rule Based layer Symbology & Labeling in QGIS (Latest versions)

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 7

  • @musanxele2281
    @musanxele2281 2 роки тому +1

    Great tutorial Thank you!

  • @pertoor
    @pertoor 11 місяців тому +1

    Very cool video, thanks!

  • @musanxele2281
    @musanxele2281 2 роки тому +1

    I have a question please. What expression can be use if, under symbology, you want to make an item equal to two names, rather than one name? The AND operator or the OR operator does not express what I want. My specific example is I have a mining joint partnership with two projects. I want to be able to say "Project" = "x" AND "y", so that when I test it, I get two features returned. Can this be done or do I need to make it one by one?

    • @WanjohiKibui
      @WanjohiKibui  2 роки тому +1

      I'm not sure I fully get your question, but in this last example you can do "Project" == "x" AND project=="y"

    • @musanxele2281
      @musanxele2281 2 роки тому

      @@WanjohiKibui Thank you so much your answer clarified where I am going wrong and how to solve the problem. I created a new field under the attribute table and named it Project. This means all projects under this Project can have the same name. Then I followed your labelling rules. So now the map legend has one Project...The main point is you helped me a lot. Very many thanks!

  • @ДанилКушнер-ж8у
    @ДанилКушнер-ж8у 8 місяців тому

    Thank you, but what if I want to do random colors for each object? For example, "if '"institute" ILIKE '%sec%' then color = random"? Doesn't it?

    • @WanjohiKibui
      @WanjohiKibui  8 місяців тому

      You can do that too. Problem is when you have too many items, you might run out of color codes 😄