Commit 4efd0aca authored by Rabotin Michael's avatar Rabotin Michael
Browse files

Fixed deprecated method

parent 58ca96aa
......@@ -676,7 +676,8 @@ class HruDelinDockWidget(QtWidgets.QDockWidget, FORM_CLASS):
self.projNum = int(osrProj.GetAttrValue('AUTHORITY', 1))
self.proj = 'EPSG:%s' % self.projNum
self.projObj = QgsCoordinateReferenceSystem(self.projNum, QgsCoordinateReferenceSystem.EpsgCrsId)
# self.projObj = QgsCoordinateReferenceSystem(self.projNum, QgsCoordinateReferenceSystem.EpsgCrsId)
self.projObj = QgsCoordinateReferenceSystem.fromEpsgId(self.projNum)
self.demLayer = self.displayLayer({
'type': 'raster',
'path': self.demPath,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment