Skip to content

Commit dc728f6

Browse files
committedJan 29, 2013
update calls to new api
1 parent 94491b8 commit dc728f6

File tree

65 files changed

+338
-284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+338
-284
lines changed
 

‎src/analysis/interpolation/qgsinterpolator.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ int QgsInterpolator::cacheBaseData()
6767
attList.push_back( v_it->interpolationAttribute );
6868
}
6969

70-
vlayer->select( attList );
7170

72-
QgsFeature theFeature;
7371
double attributeValue = 0.0;
7472
bool attributeConversionOk = false;
7573

76-
while ( vlayer->nextFeature( theFeature ) )
74+
QgsFeatureIterator fit = vlayer->getFeatures( QgsFeatureRequest().setSubsetOfAttributes( attList ) );
75+
76+
QgsFeature theFeature;
77+
while ( fit.nextFeature( theFeature ) )
7778
{
7879
if ( !v_it->zCoordInterpolation )
7980
{

‎src/analysis/interpolation/qgstininterpolator.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ void QgsTINInterpolator::initialize()
113113
{
114114
attList.push_back( layerDataIt->interpolationAttribute );
115115
}
116-
layerDataIt->vectorLayer->select( attList );
117-
while ( layerDataIt->vectorLayer->nextFeature( f ) )
116+
117+
QgsFeatureIterator fit = layerDataIt->vectorLayer->getFeatures( QgsFeatureRequest().setSubsetOfAttributes( attList ) );
118+
119+
while ( fit.nextFeature( f ) )
118120
{
119121
if ( mShowProgressDialog )
120122
{

2 commit comments

Comments
 (2)

NathanW2 commented on Jan 29, 2013

@NathanW2
Member

Sometimes it's scary how quick you work Jurgen.

wonder-sk commented on Jan 29, 2013

@wonder-sk
Member

Thanks a lot for this update!

Please sign in to comment.