mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
ogr provider: virtual format driver can also be named 'VRT' (fixes #11223)
This commit is contained in:
parent
0fe17f7573
commit
9a99d2f86f
@ -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
|
// 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
|
// attributes make up the geometry and OGR won't fetch them to evaluate the
|
||||||
// filter if we choose to ignore them (fixes #11223)
|
// 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 );
|
QgsOgrUtils::setRelevantFields( ogrLayer, mSource->mFields.count(), mFetchGeometry, attrs );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user