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

DBManager uses deprecated constructor for QgsCoordinateReferenceSystem #54916

Closed
2 tasks done
PaulvanderKroft opened this issue Oct 11, 2023 · 0 comments · Fixed by #55968
Closed
2 tasks done

DBManager uses deprecated constructor for QgsCoordinateReferenceSystem #54916

PaulvanderKroft opened this issue Oct 11, 2023 · 0 comments · Fixed by #55968
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin

Comments

@PaulvanderKroft
Copy link

What is the bug or the crash?

line 284 in db_manager\db_plugins\vlayers\connector.py states:
crs = QgsCoordinateReferenceSystem(srid)
which throws a deprecation warning (Message log: Python warning).
This could (for example) be fixed with:
crs = QgsCoordinateReferenceSystem("EPSG:" + str(srid))
but other constructors might apply as well.

Steps to reproduce the issue

In a freshly started Qgis session, open DB Manager, expand "Virtual Layers", "Project layers", and select any vector layer. A deprecation warning will be added to the message log.

Versions

Any Qgis version > 3.10

Supported QGIS version

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

New profile

Additional context

No response

@PaulvanderKroft PaulvanderKroft added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 11, 2023
@agiudiceandrea agiudiceandrea added the DB Manager Relating to the DB Manager core plugin label Oct 11, 2023
alexbruy added a commit to alexbruy/QGIS that referenced this issue Jan 24, 2024
alexbruy added a commit to alexbruy/QGIS that referenced this issue Jan 24, 2024
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! DB Manager Relating to the DB Manager core plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants