mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix exception in find projection algorithm
This commit is contained in:
parent
dd15d4ef59
commit
b0c13da854
@ -121,12 +121,15 @@ class FindProjection(QgisAlgorithm):
|
||||
except:
|
||||
continue
|
||||
|
||||
if engine.intersects(transformed_bounds.constGet()):
|
||||
feedback.pushInfo(self.tr('Found candidate CRS: {}').format(candidate_crs.authid()))
|
||||
f = QgsFeature(fields)
|
||||
f.setAttributes([candidate_crs.authid()])
|
||||
sink.addFeature(f, QgsFeatureSink.FastInsert)
|
||||
found_results += 1
|
||||
try:
|
||||
if engine.intersects(transformed_bounds.constGet()):
|
||||
feedback.pushInfo(self.tr('Found candidate CRS: {}').format(candidate_crs.authid()))
|
||||
f = QgsFeature(fields)
|
||||
f.setAttributes([candidate_crs.authid()])
|
||||
sink.addFeature(f, QgsFeatureSink.FastInsert)
|
||||
found_results += 1
|
||||
except:
|
||||
continue
|
||||
|
||||
feedback.setProgress(int(current * total))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user