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

In Qgis 3.34.4 / 3.38.3 vector layer saved as KML does not allow deleting of polygon features. #58780

Closed
2 tasks done
beng-tang opened this issue Sep 17, 2024 · 2 comments · Fixed by OSGeo/gdal#10840
Closed
2 tasks done
Assignees
Labels
Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)

Comments

@beng-tang
Copy link

What is the bug or the crash?

In Qgis 3.34.4 / 3.38.3 vector layer saved as KML does not allow deleting of polygon features.
When a polygon feature is selected, the dustbin icon is greyed out. Pressing the delete key results in an error message saying Provider does not support deletion.

Steps to reproduce the issue

  1. Open Qgis 3.34.4 / 3.38.3

  2. Create a new scratch layer using the icon in the toolbar to do so. My layer settings are shown in the image below.
    kmlbug1

  3. Draw some polygons using the icon in the toolbar to open the draw polygon function.

  4. Save the layer as a KML file.
    kmlbug3

  5. Select one of the polygons you drew in the layer you just saved as a KML file while the layer is still in edit mode.

  6. Try to delete it by pressing Del.
    kmlbug5

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.38.3-Grenoble QGIS code revision 37f9e6e
Qt version 5.15.13
Python version 3.12.3
GDAL/OGR version 3.8.4
PROJ version 9.4.0
EPSG Registry database version v11.004 (2024-02-24)
GEOS version 3.12.1-CAPI-1.18.1
SQLite version 3.45.1
PostgreSQL client version 16.4 (Ubuntu 16.4-0ubuntu0.24.04.2)
SpatiaLite version 5.1.0
QWT version 6.1.4
QScintilla2 version 2.14.1
OS version Linux Mint 22
       
Active Python plugins
Group_and_Sort_Layers 1.2
DigitizingTools 1.5.2
MetaSearch 0.3.6
db_manager 0.1.20
grassprovider 2.12.99
processing 2.12.99
QGIS version 3.38.3-Grenoble QGIS code revision [37f9e6e](https://github.com/qgis/QGIS/commit/37f9e6efeec) Qt version 5.15.13 Python version 3.12.3 GDAL/OGR version 3.8.4 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.45.1 PostgreSQL client version 16.4 (Ubuntu 16.4-0ubuntu0.24.04.2) SpatiaLite version 5.1.0 QWT version 6.1.4 QScintilla2 version 2.14.1 OS version Linux Mint 22

Active Python plugins
Group_and_Sort_Layers
1.2
DigitizingTools
1.5.2
MetaSearch
0.3.6
db_manager
0.1.20
grassprovider
2.12.99
processing
2.12.99

Supported QGIS version

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

New profile

Additional context

This happens in Qgis 3.34.4 (the Linux Mint repository version) and 3.38.3, running in Linux Mint 22

@beng-tang beng-tang added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 17, 2024
@agiudiceandrea agiudiceandrea added the Data Provider Related to specific vector, raster or mesh data providers label Sep 18, 2024
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Sep 18, 2024

Not sure if it is an actual missing capability of the GDAL/OGR LIBKML driver or if it is a bug in the QGIS OGR provider.

rouault added a commit to rouault/gdal that referenced this issue Sep 18, 2024
@rouault rouault added Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) and removed Data Provider Related to specific vector, raster or mesh data providers Bug Either a bug report, or a bug fix. Let's hope for the latter! labels Sep 18, 2024
@rouault
Copy link
Contributor

rouault commented Sep 18, 2024

Not sure if it is an actual missing capability of the GDAL/OGR LIBKML driver

It was indeed lacking. Queue for GDAL 3.10 in OSGeo/gdal#10840

rouault added a commit to rouault/gdal that referenced this issue Sep 18, 2024
@rouault rouault self-assigned this Sep 18, 2024
rouault added a commit to rouault/gdal that referenced this issue Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)
Projects
None yet
3 participants