Commit 9e76230e authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

some small fixes

parent ab52684f
Pipeline #11331 failed
......@@ -516,8 +516,6 @@ class OutputImageModel(QAbstractTableModel):
wavelength.append(stack.wavelength())
VRT.addVirtualBand(vrtBand)
pathVSITmp = '/vsimem/temp.vrt'
dsVRT = VRT.saveVRT(pathVSITmp)
dsVRT.SetMetadataItem('acquisition date', 'XML_REPLACE_DATE')
......
......@@ -458,8 +458,10 @@ class VRTRaster(QObject):
:return:
"""
if isinstance(crs, osr.SpatialReference):
auth = '{}:{}'.format(crs.GetAttrValue('AUTHORITY',0), crs.GetAttrValue('AUTHORITY',1))
crs = QgsCoordinateReferenceSystem(auth)
wkt = crs.ExportToWkt()
crs = QgsCoordinateReferenceSystem()
crs.createFromWkt(wkt)
if isinstance(crs, QgsCoordinateReferenceSystem):
if crs != self.mCrs:
extent = self.extent()
......
......@@ -292,10 +292,11 @@ class TestLabeling(EOTSVTestCase):
dockWidgets = EOTSV.ui.findChildren(LabelDockWidget)
self.assertEqual(1, len(dockWidgets))
lyr.setName('Layer B')
self.assertTrue('Layer B' in dockWidgets[0].windowTitle().startswith())
self.assertTrue('Layer B' in dockWidgets[0].windowTitle())
self.showGui(EOTSV.ui)
if __name__ == "__main__":
unittest.main(testRunner=xmlrunner.XMLTestRunner(output='test-reports'), buffer=False)
exit(0)
Supports Markdown
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