I am using QGIS 2.18.

I've got a layer consisting of 40+ features (lines of movement per day). And I'd like to automatically create maps that always show exactly the same area. But the difference is that I want to show only one feature per map (one day). Is that possible?

I already tried the atlas functionality, but it doesn't provide displaying only one feature and leaving out the remaining, right?

  • Did you read that (part 1) gisunchained.wordpress.com/2014/11/09/… and (part 2) gisunchained.wordpress.com/2014/11/18/… – J.R Sep 26 '18 at 14:34
  • I did now, it's about the atlas usage to get different formats or different shown areas. But in my case, both should be fix, only the content (displayed features) should vary. – Maja Ott Sep 26 '18 at 14:43
  • That' why it's not an answer, the goal was to give you exemple of how to make expression relative to the atlas page being displayed so you could filter your data – J.R Sep 26 '18 at 14:45
  • If you read through other questions with the [atlas] tag, you'll find other examples of using the variables $atlasgeometry and $atlasfeature to control which features are displayed in each atlas page. – csk Sep 26 '18 at 16:32

In print composer, set up an atlas using the desired layer as the atlas coverage layer. Choose a field for the page name.

In the map canvas, turn on rule-based symbology for the layer. Add a single rule with this filter:

"fieldname" = @atlas_pagename

The syntax provided should work in QGIS 2.18 and 3.x. If you're using a different version, use the syntax shown in the expression builder in your version of the program.

Once you enable this symbology, the layer will disappear from the map canvas. It will only display when have the atlas preview open.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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