Skip to content
Permalink
Browse files

Fix exception in find projection algorithm

  • Loading branch information
nyalldawson committed Nov 14, 2017
1 parent dd15d4e commit b0c13da8546c4ad9399fc6764a8d051ee35d7b65
Showing with 9 additions and 6 deletions.
  1. +9 −6 python/plugins/processing/algs/qgis/FindProjection.py
@@ -121,12 +121,15 @@ def processAlgorithm(self, parameters, context, feedback):
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))

0 comments on commit b0c13da

Please sign in to comment.
You can’t perform that action at this time.