Bug report #16806
Non valid VRT logic due to GDAL changes in QgsGdalDataItems
|Affected QGIS version:||2.18.0||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24705|
According to Even the logic here:
isn't working anymore for GDAL2:
Quote: " Actually L246 shows a particular case for VRT. But I think this logic is now invalid since GDAL 2.0, since
GDALIdentifyDriver() will now retun "VRT" for a raster VRT, and "OGR_VRT" for a vector VRT (in GDAL 1.X era GDALIdentifyDriver() only worked on raster drivers)"
So probably this code should be updated.
[Browser] Fix invalid detection of OGR VRT by GDAL provider, and fix broken detection of OGR VRT (fixes #16806)