1

My coverage layer is streets and I want to have only certain objects shown on my additional layer according to which street is shown. The QGIS Atlas page name is the name of the street which also appears in the attributes table of my additional layer.

Is there a way to simply have this connected so that i can export my desired results automatically?

I have multiple objects in the additional layer and they do not intersect geographically with the coverage layer.

3
  • Welcome to Geographic Information Systems! Welcome to GIS SE! We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour for more about how the site works
    – Ian Turton
    Mar 2, 2023 at 9:31
  • It's not 100% clear what you are trying to achieve (even if it looks like it is perfectly feasible). Provide more details/screenshots and you should get an answer
    – Kasper
    Mar 2, 2023 at 11:19
  • Do this help? gis.stackexchange.com/questions/173399/…
    – John
    Mar 2, 2023 at 12:02

1 Answer 1

2

This can be achieved with a rule based renderer for your additional layer with a rule like this one:

 "fk" = attribute(@atlas_feature,'name')

where "fk" is a field in your additional layer with the foreign key to your street layer (the atlas feature layer).

When you enter the rule, all the features from your additional layer will disapear because the @atlas_feature will not be evaluated in the map view.

enter image description here

finally within the atlas the expression can be evaluated and only the features with the same name in the foreign key field will be shown.

enter image description here

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.