Skip to content

Commit b0c13da

Browse files
committedNov 15, 2017
Fix exception in find projection algorithm
1 parent dd15d4e commit b0c13da

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed
 

‎python/plugins/processing/algs/qgis/FindProjection.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,15 @@ def processAlgorithm(self, parameters, context, feedback):
121121
except:
122122
continue
123123

124-
if engine.intersects(transformed_bounds.constGet()):
125-
feedback.pushInfo(self.tr('Found candidate CRS: {}').format(candidate_crs.authid()))
126-
f = QgsFeature(fields)
127-
f.setAttributes([candidate_crs.authid()])
128-
sink.addFeature(f, QgsFeatureSink.FastInsert)
129-
found_results += 1
124+
try:
125+
if engine.intersects(transformed_bounds.constGet()):
126+
feedback.pushInfo(self.tr('Found candidate CRS: {}').format(candidate_crs.authid()))
127+
f = QgsFeature(fields)
128+
f.setAttributes([candidate_crs.authid()])
129+
sink.addFeature(f, QgsFeatureSink.FastInsert)
130+
found_results += 1
131+
except:
132+
continue
130133

131134
feedback.setProgress(int(current * total))
132135

0 commit comments

Comments
 (0)
Please sign in to comment.