Skip to content


When using destination CRS in a feature request and a transform
Browse files Browse the repository at this point in the history
exception occurs, clear the feature's geometry before returning

We never want to return features with mixed CRS geometries.
  • Loading branch information
nyalldawson committed Jun 11, 2017
1 parent 31162ad commit ad6c46f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ void QgsAbstractFeatureIterator::geometryToDestinationCrs( QgsFeature &feature,
mRequest.transformErrorCallback()( feature );
// remove geometry - we can't reproject so better not return a geometry in a different crs
Expand Down

0 comments on commit ad6c46f

Please sign in to comment.