QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Layers: Export → Save Selected Features As... saves an empty file

Open kristianrl opened this issue 1 year ago • 3 comments

What is the bug or the crash?

Layers: Export → Save Selected Features As... results in a file without the selected features. image

Steps to reproduce the issue

  1. Load a polygon layer image

  2. Select a single feature using Select Features By Area or Single Click image

  3. Right click on the layer in the Layers list, click Export and Save Selected Features As. image

  4. Select the output format (we usually deselect the Geometry column). I have tested using GeoJSON, Shapefile and Geopackage. image

  5. After the export is succesful, the selected polygon is not present in the saved file image

The exported GeoJSON file contains the following:

{
"type": "FeatureCollection",
"name": "mettre",
"features": [

]
}

Versions

The bug can be recreated using 3.28-3 and 3.30.3 - but the bug did not exist in 3.14. Version 3.14 still exports a usable file.

Supported QGIS version

  • [X] I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Cc: @GeodataInformatik @InformatikSilkeborg

kristianrl avatar Jun 20 '23 12:06 kristianrl