[Qgis-user] Atlas: Filter Empty Pages

Andreas Neumann a.neumann at carto.net
Mon Mar 21 08:41:44 PDT 2016


Hi Albin,

You can do this dynamically. The Atlas filter also accepts geometry 
relationship functions. Have a look at the QGIS expression editor.

You can try with the intersects / within / overlaps tests and test 
$geometry against @atlas_geometry.

Your filter could look like:

within( $geometry,  @atlas_geometry )

Can you please report back if that works?

Greetings,
Andreas



On 21.03.2016 14:47, Albin Blaschka wrote:
> Am 21.03.2016 um 14:20 schrieb Bernd Vogelgesang:
>> sounds maybe to easy, but why don't you just make a spatial query on 
>> your coverage grid to select and save those elements which do have 
>> points inside (Grid Layer Contains Points Layer e.g.) and then use 
>> that new coverage layer to produce your Atlas?
>>
>> Or do you search for a more clever approach?
>>
>> Cheers
>> Bernd
>
> Hello Bernd, Joris & List!
>
> Ah, yes - that would be a possibility, which I did not think of - 
> Thank you both!
> ...but in general I was on the quest for a "more clever" meaning here 
> "dynamic" approach, I have to admit: So, the aim would be in future, 
> just opening the project, printing the atlas without further 
> intervention and getting an "up-to-date" atlas...
> But in the meanwhile, it should be ok with the "manual" approach.
>
> Thanks and greetings!
> Albin
>
>> Am 21.03.2016, 13:53 Uhr, schrieb Albin Blaschka 
>> <albin.blaschka at standortsanalyse.net>:
>> Hello List!
>>
>> I am starting to use the Atlas feature for the first time and had the 
>> following problem:
>> I have a coverage-layer (a vector grid) and a point layer (collection 
>> sites). At the moment, there are grid cells in which no site (point) 
>> is located.
>> My problem is: I would like to filter those "empty" 
>> atlas-elements/pages out. In other words, if the atlas-page contains 
>> no element of the point layer, it should not get printed/produced.
>> I tried myself and failed, I googled and failed...
>>
>> Is this possible and if yes, how?
>>
>> Thanks in advance,
>> Albin
>




More information about the Qgis-user mailing list