Skip to content
Permalink
Browse files

When using destination CRS in a feature request and a transform

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 ad6c46ffe0b59ad3ea1776aed6640891b3fcb7ed
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsfeatureiterator.cpp
@@ -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
feature.clearGeometry();
}
}
}

0 comments on commit ad6c46f

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