2

I am printing maps using the atlas to display layers with point data. Some of the areas have no points in them.

Is it possible to suppress these using the filter options. I could not figure out how.

i.e. don't generate the map unless the area contains one or more points in the area.

3
  • Are you aware that you can use an expression to filter the atlas? If so, what filters have you tried that didn't work? – csk Apr 23 '18 at 19:13
  • Yes, i saw that but could not figure out how to constuct an appropriate filter – Russell Fulton Apr 25 '18 at 18:43
  • How many areas containing points do you have? If 'not too many' then you could filter by the area feature. For example if your Coverage feature is 'County' with field 'COUNTYCODE', you could set the filter like this: "COUNTYCODE"='3' OR "COUNTYCODE"='8' OR "COUNTYCODE"='12' ... etc. – cm1 Apr 25 '18 at 20:47
2

Install the plugin: refFunctions

Plugin description: "install the plugin to provide a 'Reference' group under field calculator with function for analytical or spatial reference to features in other layers"

Now set up a filter with this expression:

intersecting_geom_count('PointsLayerName')>0

0

Another idea is you could do a quick 'Join' of your polygon feature to a common field of your point feature then set the 'Filter With' in the Atlas tab to an expression using the joined field where the "joined_field" > 0 or "joined_field" is not null or similar.

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.