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.09k stars 2.93k forks source link

"Merge selected features" tool and non spatial layer #43738

Open DelazJ opened 3 years ago

DelazJ commented 3 years ago

Given a geometryless layer, put it into edit mode and select two features In the Edit menu, the "Edit geometry --> Merge selected features" is available to use. Should it be? If yes, then I would suggest to move it out of the "Edit geometry" menu. Select the "Merge selected features" tool, fill in the dialog and apply. You get an error:

CRITICAL Merge failed : An error occurred during the merge operation.

So, either we disable the "Merge selected features" when a geometryless layer is selected or we make it work with them and move it in the menu

QGIS version 3.19.0-Master QGIS code revision 85345ee12b
Qt version 5.12.8
Python version 3.8.5
GDAL/OGR version 3.0.4
PROJ version 6.3.1
EPSG Registry database version v9.8.6 (2020-01-22)
Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1
SQLite version 3.31.1
PostgreSQL client version 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1)
SpatiaLite version 4.3.0a
QWT version 6.1.4
QScintilla2 version 2.11.2
OS version Ubuntu 20.04.2 LTS
       

This copy of QGIS writes debugging output.   |   |   |   Active Python plugins | trackable_project_files MapsPrinter MemoryLayerSaver plugin_reloader db_manager MetaSearch processing

Pedro-Murteira commented 2 years ago

Can still confirm this on QGIS 3.16.14 and 3.22.1. Merge selected features is still enabled when editing a layer with no geometry, after trying to merge, the same error appears, as mentioned.