Skip to content
Permalink
Browse files

ogr provider: virtual format driver can also be named 'VRT' (fixes #1…

  • Loading branch information
jef-n committed Jan 16, 2015
1 parent 0fe17f7 commit 9a99d2f86fed3902e22cc051f711f3f5e577cd92
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -66,7 +66,7 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource* source, bool
// unless it's a VRT data source filtered by geometry as we don't know which
// attributes make up the geometry and OGR won't fetch them to evaluate the
// filter if we choose to ignore them (fixes #11223)
if ( mSource->mDriverName != "OGR_VRT" || mRequest.filterType() != QgsFeatureRequest::FilterRect )
if (( mSource->mDriverName != "VRT" && mSource->mDriverName != "OGR_VRT" ) || mRequest.filterType() != QgsFeatureRequest::FilterRect )
{
QgsOgrUtils::setRelevantFields( ogrLayer, mSource->mFields.count(), mFetchGeometry, attrs );
}

0 comments on commit 9a99d2f

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