TransWikia.com

Layer styling with feature 1 but atlas pages generated by feature 2

Geographic Information Systems Asked on April 17, 2021

How can I tell the atlas-composer to display on one page only all geometries with feature two and all the other geometries should be hidden?

  1. I have four geometries with two feature-attributes: (1) "Kategorie" and (2) "Merkmal" in the layer with the name "Test".
  2. The layer-style in the map is made with categorised by feature one ("Kategorie").
  3. The atlas-composer should display on one page only all the geometries which compare the same value in feature two ("Merkmale") and all the other geometries should be hidden.

I think I can write some SQL in the atlas-parameters but I’m not that experienced. When I use e.g., dissolve() which generates a new layer, then I am not able to hide the other geometries. Any further help is welcome.

enter image description here

One Answer

You can use a rule based styling and take the current atlas feature into the rule. When defining the rule, your features will disapear in the mapcanvas until you created your atlas since the atlas feature is not created before. Yor rules should be like this:

 "kategorie"  =  'Wohnen' and  "merkmal"  = attributes( @atlas_feature )['merkmal']

This will only show features in the atlas with the same 'merkmal' as the current atlas feature.

enter image description here

Correct answer by eurojam on April 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP