0

I'am trying to make an atlas composer to get export for each line of a specific layer. Those lines are portions or roads.

In the print composer I have 2 maps, a picture frame and 3 attribute tables

I would like to only show in those attribute tables the specific line of the feature concerned by each page of the atlas. Actualy even with the "show only features intersecting atlas feature" option I got sometimes 3 lines in those tables.

Any idea on how to deal with this?

  • Maybe they are indeed intersecting atlas feature? Intersect != covers != crosses – Jendrusk Mar 1 '18 at 8:46
  • Yes I think so, as they are shown in the canvas. Bus how could I get only one feature at a time? – Arthur Mar 1 '18 at 8:55
  • 1
    Yes, you can. You can filter out to single atlas feature using filtering by expression... you've got few variables to get reference to atlas feature – Jendrusk Mar 2 '18 at 13:16
  • Ok, then I tried this: filter with expression "@atlas_feature )" But got 0 result. I also tried " @atlas_featureid " but alsway got the 1st feature as a result for every page of the atlas. Any tips? – Arthur Mar 2 '18 at 13:38
  • 1
    expression... you need operator, like 4 eg. 'id = @atlasfeatureid' – Jendrusk Mar 2 '18 at 14:10
2

You're getting more than one line because other lines also in intersects this atlas feature. To do this you have to use filtering by expression (button with epsilon). There is few variables to get actual atlas feature properties. You can use: id_from_altasFeatureLayer = @atlas_feature or @atlasfeatureid

  • The one that worked for me was: "ID" = @atlas_pagename Don't know why but as I said earlier in the topic, "atlas_feature" and "atlas_featureid" gave me bad result (no result at all or many lines) Thank you for the answer I hope that will help some people – Arthur Mar 5 '18 at 12:51

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.