Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-23 Thread Albin Blaschka
mars 2016 15:59 Till: qgis-user@lists.osgeo.org Ämne: Re: [Qgis-user] Atlas: Filter Empty Pages Hello! So, finally, I was successful: The idea with the virtual layer made it simple, as the point data is a postgis layer anyway, after storing the grid in the database, I created a view, where I ha

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-22 Thread Karl-Magnus Jönsson
0733-13 54 16 │karl-magnus.jons...@kristianstad.se www.kristianstad.se -Ursprungligt meddelande- Från: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] För Albin Blaschka Skickat: den 22 mars 2016 15:59 Till: qgis-user@lists.osgeo.org Ämne: Re: [Qgis-user] Atlas: Filter Empty Pages

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-22 Thread Albin Blaschka
Hello! So, finally, I was successful: The idea with the virtual layer made it simple, as the point data is a postgis layer anyway, after storing the grid in the database, I created a view, where I have my grid and the count of points per cell, which I use for the creation of the atlas. Brings

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-21 Thread Andreas Neumann
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( $geome

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-21 Thread Andreas Neumann
hm - actually, I was wrong. It is not so easy to filter dynamically - as $geometry equals @atlas_geometry and you don't have a relation with the points. My next try would be to use a "Virtual Layer" and add a spatial relationship between your atlas coverage layer (the grid) and a column cont

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-21 Thread Joris Hintjens
Use Spatial Query to select the non-empty elements. 1) Give the non-empty elements a new property (with table editor) (1 as opposed to 0 for the empty ones) 2) Or save the selected elements as a new layer if 1) then filter these elements in the filter option in the atlas configuration hope it w

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-21 Thread Albin Blaschka
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 At

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-21 Thread Uwe Fischer
Hello Albin, you need to filter out the empty elements (grid cells) in the coverage layer (those ones that have no overlap to the points). After that you can swap the selection set to get the non-empty grid cells that are to be printed and give those (as memory layer if no repeated use) to the

Re: [Qgis-user] Atlas: Filter Empty Pages

2016-03-21 Thread Bernd Vogelgesang
Hi Albin, 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 c