DBManager uses deprecated constructor for QgsCoordinateReferenceSystem #54916
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
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
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: