Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting a table in composer comboined with limit records does sort after limit (which does not make sense) #26299

Closed
qgib opened this issue Mar 11, 2018 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@qgib
Copy link
Contributor

qgib commented Mar 11, 2018

Author Name: Marco Lechner (Marco Lechner)
Original Redmine Issue: 18410
Affected QGIS version: 2.18.17
Redmine category:map_composer/printing


Hi,
what I have done:

  • loading a buildings layer (from OSM data)
  • creating a map composition to create an atlas iterating over buildings with "type"='hotel'
  • in the map composition adding a attribute table for the buildings layer with an expression based additional colum caclculating the distance etween the hotel-record in the attribute table an the atlas-object
  • setting the column as sort criteria for the attribute table
  • setting feature filtering of the attribute table in map composer to a maximum rows of five (to only show the 5 nearest hotels around the atlas feature hotel)

Expecting to see only the five nearest hotels around atlas feature (after eliminating the hotel with distance 0 which is the atlas feature hotel
Instead I get the first five records in the table (which are always the same) sorted by the added column.

Expected behaviour is that the attribute table is sorted first and then limited. But QGIS seems to limit first (the unsorted table) and sort then. Which is ok for an almost static table, but does conflict with virtual fields (columns) that are depending on atlas feature!

Marco

@qgib
Copy link
Contributor Author

qgib commented Mar 11, 2018

Author Name: Marco Lechner (Marco Lechner)


  • version was changed from 2.18.7 to 2.18.17

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

Author Name: Jürgen Fischer (@jef-n)


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2019

Author Name: Giovanni Manghi (@gioman)


Closing for lack of feedback.


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Mar 8, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

1 participant