4

In QGIS 3.22.11 I have a model with around 15 output, and a majority of them are empty most of the time. Is there a way to prevent layers with no entities to show up in QGIS after the model?

I tried with conditional branches, but i can't find anything to count entities in an output of an algorithm in the modeler.

I see how I could do this with Python, but I'd rather keep it as a graphical model.

4
  • Empty output, like null geometries or like a feature with no records in the attribute table ?
    – Taras
    Nov 8, 2022 at 13:47
  • No record at all. It's an extract by expression, where the condition is never met.
    – f.hin
    Nov 8, 2022 at 14:17
  • Does it work in a normal mode ?
    – Taras
    Nov 8, 2022 at 14:19
  • It is the way it is supposed to work. That is a check on the data. If the condition is met ( = the data is not valid), the data comes up in the table, shows up on Qgis and can be handled by the user. If all data is valid, the table is empty, and no further investigation is needed. But the model still makes an output, the empty table, that I have to delete evrytime. I want only the non empty table to show up.
    – f.hin
    Nov 8, 2022 at 14:55

1 Answer 1

0

My easier solution was "Split Layer by". And the output will write just layers who has at least one feature. TIP: FME Safe Software could help you a lot!

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jul 26, 2023 at 7:39

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.