I have been trying to make an atlas of cadasters, using different themes and rule-based symbolology, but one thing doesn't seem to work. On each atlas-page I want to put a table showing the coordinates of the vertices of the featured lot. The featured layer is a polygon layer of which I use one column with a unique cadastral code as the atlas page name. I made a separate point layer extracting the vertices from the polygons, deleted all the vertex 0's to not have any doubles and added columns for x and y. I also changed the symbolology so only the points whose cadastral code is equivalent to the page name are shown, this all works fine with the @atlas_pagename code. However if I use the same rule to filter the attribute table that I put in the print composer I get no entries when I filter it with the "code"=@atlas_pagename. It seems to work fine if I immediately put the value that @atlas_pagename is supposed to generate, but obviously I cannot do this for each page in a 1000 page atlas.

I have tried putting to_string(@atlas_pagename), to_real(...), to_int(...), all to no avail. And when I select the option to just show objects that are within the atlas feature there are too many as it also shows the vertices of bordering polygons.

Is there way to make @atlas_pagename work in the filter of the attribute table that is shown on each atlas page?

  • Have you tried using a "Definition Query" on the point layer, only showing the points that correspond to the Cadastre Name / ID? This will filter the attribute table to only show the points that match the name of the Cadastral Boundary shown on the page. – Keagan Allan Feb 17 at 23:50
  • I might be doing it wrong, but that also does not seem to have any effect. I put the same code in the query ("code"=@atlas_pagename) – Thomas Feb 18 at 10:54
  • I see the tag has been changed in the Question. I initially thought you were needing help with ArcMap. I am not sure how to do it in QGIS. Sorry. – Keagan Allan Feb 18 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.