https://issues.qgis.org/https://issues.qgis.org/favicon.ico2006-10-28T19:21:42ZQGIS Issue TrackingQGIS Application - Feature request #182: Deal properly with multiple raster drivers supporting the same formathttps://issues.qgis.org/issues/182?journal_id=132142006-10-28T19:21:42ZGavin Macaulay -gavin@macaulay.co.nz
<ul></ul><p>As far as I can see, there is no easy way in the GDAL API to specify which driver to use to load a data source - it uses the first one in an internal list that fits, although drivers can possibly be removed from the list.</p>
<p>The qgsrasterlayer.cpp code has been modified since the problem reported above, and it no longer generates duplicated file filter lines for jpeg files in the 'open raster' dialog box.</p>
<p>Giving users the option of choosing which jpeg driver to use seems sensible, but is more of an enhancement in a future version of qgis.</p> QGIS Application - Feature request #182: Deal properly with multiple raster drivers supporting the same formathttps://issues.qgis.org/issues/182?journal_id=132152007-07-21T19:11:23ZTim Suttontim@linfiniti.com
<ul></ul>Changed to minor under the following scheme:
<ul>
<li>blocker - bugs that should block the release. Since we are going to release pretty much 'come what may' I would like no bugs</li>
<li>allocated to this category without consultation with me and / or PSC</li>
<li>critical - bugs that cause the application to crash or corrupt data</li>
<li>major - application features that do not function at all</li>
<li><strong>minor</strong> - features that function but imerfectly e.g. labels placing incorrectly</li>
<li>trivial - gui useability issues or small issues with the documentation, install notes etc.</li>
</ul> QGIS Application - Feature request #182: Deal properly with multiple raster drivers supporting the same formathttps://issues.qgis.org/issues/182?journal_id=132162008-08-06T18:26:21Zersts -ersts@foo.bar
<ul></ul><p>Tim</p>
<p>When multiple driver are available, GDAL uses the first successful driver. It is possible to deactivate drivers so I see a couple of options/enhancements</p>
<p>--When building the supported file list, put the names into a QMap<extension, description>, then only the first driver (which GDAL will use) will be displayed, this will also allow for the list to be sorted by extension so that it is more user friendly</p>
<p>--Add a raster driver tab to the "Settings->option" menu. This displays all possible drivers and the user can check which drivers to use (default to all on). Save these settings as QSettings</p>
<p>--QgsRasterLayer::registerGdalDrivers() will need to check the QSettings to see if the driver is listed for inclusion/exclusion, defaults to include</p>
<p>--Also means the supported file list will have to be generated each time the open dialog is open rather than once on initial load.</p>
<p>That should generally meet most of the needs/requests. Would be good to get Frank's opinion on this.</p> QGIS Application - Feature request #182: Deal properly with multiple raster drivers supporting the same formathttps://issues.qgis.org/issues/182?journal_id=132172008-08-07T06:49:43ZFrank Warmerdam -warmerdam@pobox.com
<ul></ul><p>It seems to me that the need to disable or otherwise mess with the list of registered drivers is fairly rare and esoteric. It can already be accomplished using the GDAL_SKIP environment variable. So I wonder if there is really a need to build dialogs for the user to control this.</p>
<p>I'm not too keen on the automatic population of the File Types list in the file selection dialog. The list is already so long and wide as to make the dialog quite unpleasant. I would instead suggest that it just be populated with a bunch of popular file types (dropping any out if that driver happens to be unavailable) rather than trying to comprehensively populate it.</p>
<p>However, the suggested approach with an options tab for disabling drivers would be quite plausible.</p> QGIS Application - Feature request #182: Deal properly with multiple raster drivers supporting the same formathttps://issues.qgis.org/issues/182?journal_id=256702011-09-13T00:47:04ZTim Suttontim@linfiniti.com
<ul><li><strong>Pull Request or Patch supplied</strong> set to <i>No</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Target version</strong> changed from <i>Version 1.7.0</i> to <i>Version 2.0.0</i></li></ul><p>Closed with <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/9561c3d696d44b83b63e446d5701fc2ece2268e0" title="Merge branch 'master' of github.com:qgis/Quantum-GIS">9561c3d696d44b83b63e446d5701fc2ece2268e0</a><br />I have implemented a list widget in QGIS options dialog for (de)selecting which drivers to use. This is probably more pallatable for Windows / GUI inclined users who don't want to dig around with environment vars.</p>
<p>Regards</p>
<p>Tim</p>