qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.54k stars 2.99k forks source link

Layer Sorting in Geometry Checker plugin #54329

Open DrRichLangford opened 1 year ago

DrRichLangford commented 1 year ago

What is the bug or the crash?

I am using 3.32.1 Lima under Windows 10. I have seen the closed post "Layer Sorting in Toolbox Multiple Selection #32963" saying the issue was fixed in 3.14. I have read about a possible solution to the sorting issue using QgsMapLayerModel in Python, but without detailed instructions find this difficult to understand. Using Check Geometries, part of the list is sorted, and part is random, so hunting for one layer to check can be slow. Is this an issue that was fixed in 3.14, but no longer works, or is it an entirely different problem? The screenshot shows the bottom of the sorted list and top of the random list. 2023-08-23_114033

Steps to reproduce the issue

2023-08-23_114033

Versions

QGIS version | 3.32.1-Lima | QGIS code revision | 4a078ecf63 -- | -- | -- | -- Qt version | 5.15.3 Python version | 3.9.5 GDAL/OGR version | 3.7.1 PROJ version | 9.2.1 EPSG Registry database version | v10.088 (2023-05-13) GEOS version | 3.12.0-CAPI-1.18.0 SQLite version | 3.41.1 PDAL version | 2.5.5 PostgreSQL client version | 15.2 SpatiaLite version | 5.0.1 QWT version | 6.1.6 QScintilla2 version | 2.13.1 OS version | Windows 10 Version 2009   |   |   |   Active Python plugins HCMGIS | 23.7.19 processing_saga_nextgen | 0.0.7 splitmultipart | 1.0.0 SwapVectorDirection | 0.9 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 mmqgis | 2021.9.10 QGIS version 3.32.1-Lima QGIS code revision [4a078ecf63](https://github.com/qgis/QGIS/commit/4a078ecf63) Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.7.1 PROJ version 9.2.1 EPSG Registry database version v10.088 (2023-05-13) GEOS version 3.12.0-CAPI-1.18.0 SQLite version 3.41.1 PDAL version 2.5.5 PostgreSQL client version 15.2 SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 OS version Windows 10 Version 2009 Active Python plugins HCMGIS 23.7.19 processing_saga_nextgen 0.0.7 splitmultipart 1.0.0 SwapVectorDirection 0.9 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99 mmqgis 2021.9.10 ### Supported QGIS version - [ ] I'm running a supported QGIS version according to [the roadmap](https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule). ### New profile - [ ] I tried with a new [QGIS profile](https://docs.qgis.org/latest/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles) ### Additional context _No response_
agiudiceandrea commented 1 year ago

Hi @DrRichLangford, thanks for reporting. It seems to me the issue you are reporting is about a different dialog window and tool than the one reported at https://github.com/qgis/QGIS/issues/32963.

DrRichLangford commented 1 year ago

I now see what the issue is in the Check Geometries box. The upper part is a list of SHP files, sorted, and the lower part is a list of GPKG files, unsorted. The listing is keeping SHP and GPKG separate, not sorted as one.

lbartoletti commented 1 week ago

@DrRichLangford seems ok in master:

image

Can you confirm it, please?

DrRichLangford commented 1 week ago

No change after reinstalling LTR. No obvious reason for the sort order. Not based on file type (point, line polygon, shp, gpkg) or date, and not by order in Layer listing. Some parts are sorted, then nothing is sorted, shown by the top and bottom parts of the list. 2024-10-21_152223 2024-10-21_151957 2024-10-21_151912