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

remove deprecated QGIS API for writeAsVectorFormatV2 #2874

Merged
merged 1 commit into from Oct 25, 2023

Conversation

PeterPetrik
Copy link
Contributor

fix #1613

Replace deprecated QGIS API writeAsVectorFormatV2 with writeAsVectorFormatV3 (it has different position for error code in arguments)

also removed artificial call to QgsVectorFileWriter::create, it should not be used at all when writeAsVectorFormatV3 is used. This also removes bunch of warnings like ERROR 1: sqlite3_exec ... visible on desktop from the initial implementation #1103

https://github.com/qgis/QGIS/blob/1f1e8b5de70a8a1c1e6a639f08fd15b9aeea6f8b/src/core/qgsvectorfilewriter.h#L663

@PeterPetrik
Copy link
Contributor Author

unrelated test failures

@PeterPetrik PeterPetrik merged commit bb00c52 into master Oct 25, 2023
6 of 8 checks passed
@PeterPetrik PeterPetrik deleted the fix_1613_depr_create_layer branch October 25, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProjectWizard uses deprecated functions - compilation warning
2 participants