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

Editing KML with PyQGIS fails #44558

Closed
Mazur93 opened this issue Aug 4, 2021 · 6 comments
Closed

Editing KML with PyQGIS fails #44558

Mazur93 opened this issue Aug 4, 2021 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@Mazur93
Copy link

Mazur93 commented Aug 4, 2021

What is the bug or the crash?

Updating an existing kml feature fails. On commitChanges() there is only an error message which is not very helpful 'Layer edges_kml : OGR error setting feature 1178:'. The same script works if the underlying layer is a geojson.
SampleScriptAndData.zip

Steps to reproduce the issue

  1. Load both layers from the sample data folder
  2. Open the python console
  3. Open the sample script
  4. Run the script with the json file -> Success
  5. Run the same script with the kml file -> OGR errors

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.14.15-Pi QGIS code revision d5114d2
Compiled against Qt 5.11.2 Running against Qt 5.11.2
Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4
Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3
Compiled against SQLite 3.29.0 Running against SQLite 3.29.0
PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0
QWT Version 6.1.3 QScintilla2 Version 2.10.8
Compiled against PROJ 6.3.2 Running against PROJ Rel. 6.3.2, May 1st, 2020
OS Version Windows 10 (10.0)
Active python plugins coordinate_capture; coordinator; QuickWKT; quick_map_services; db_manager; MetaSearch; processing

Additional context

No response

@Mazur93 Mazur93 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 4, 2021
@gioman
Copy link
Contributor

gioman commented Aug 4, 2021

Can OGR update KMLs?

@gioman gioman added the Feedback Waiting on the submitter for answers label Aug 4, 2021
@Mazur93
Copy link
Author

Mazur93 commented Aug 4, 2021 via email

@nicogodet
Copy link
Member

3.14.15-Pi

Try on latest version.

I can't reproduce on 3.20.1

@nicogodet
Copy link
Member

No OGR error but it does nothing...
Still NULL values

@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Aug 19, 2021
@github-actions
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

3 participants