-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
LIBKML: report XML id attribute as 'id' field; implement SetFeature() and DeleteFeature() for regular layers #10840
Conversation
6410c57
to
36ee31a
Compare
… and DeleteFeature() for regular layers Fixes qgis/QGIS#58780
36ee31a
to
518c2e2
Compare
@rouault, I've tested this PR using QGIS 3.39.0-Master bb9a7165e6 GDAL/OGR 3.10.0dev-4e28921731 (OSGeo4W) on Windows 10: it seems to me it doesn't actually fix qgis/QGIS#58780. To reproduce the issue:
|
the issue here was rather at the step where you export a KML file from the selected polygons. This uses the "KML" driver (not the "LIBKML" one), which up to know generated Placemark without an id. But LIBKML edition requires placemarks to have id. I've addressed the issue on the KML driver side with #10991 |
Thanks again! It's the same step described in the original issue report. So, I suppose the issue will still occur using any kml file exported by QGIS till now and any kml file exported by Google Earth, even with QGIS + GDAL/OGR 3.10. Isn't that so? (I wonder why QGIS uses the KML driver to export a layer instead of / alongside LIBKML) |
…rk has no id Adresses OSGeo#10840 (comment)
…rk has no id Addresses OSGeo#10840 (comment)
yes. There isn't a good way of having reliable editing without Placemark.id, or would complicate implementation a bit too much for my taste.
That's not enough. For the writing side of QGIS, the list of OGR driver is hardcoded in src/core/qgsvectorfilewriter.cpp Having both KML and LIBKML would be confusing to users. |
@jratike80, AFAIK, that is not the case:
|
In this case also reading with LIBKML and writing with KML has also made some confusion. |
Indeed, as written in a previous comment, when the KML driver is disabled and the LIBKML driver only is enabled in QGIS, then ... it is not possible to export a layer to the kml format (using the Save Vector Layer functionality) |
Fixes qgis/QGIS#58780