Skip to content

Commit 9a99d2f

Browse files
committedJan 16, 2015
ogr provider: virtual format driver can also be named 'VRT' (fixes #11223)
1 parent 0fe17f7 commit 9a99d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/ogr/qgsogrfeatureiterator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource* source, bool
6666
// unless it's a VRT data source filtered by geometry as we don't know which
6767
// attributes make up the geometry and OGR won't fetch them to evaluate the
6868
// filter if we choose to ignore them (fixes #11223)
69-
if ( mSource->mDriverName != "OGR_VRT" || mRequest.filterType() != QgsFeatureRequest::FilterRect )
69+
if (( mSource->mDriverName != "VRT" && mSource->mDriverName != "OGR_VRT" ) || mRequest.filterType() != QgsFeatureRequest::FilterRect )
7070
{
7171
QgsOgrUtils::setRelevantFields( ogrLayer, mSource->mFields.count(), mFetchGeometry, attrs );
7272
}

0 commit comments

Comments
 (0)
Please sign in to comment.