Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API to QgsProviderRegistry to obtain user friendly warning messages
for when a URI cannot be opened in a QGIS install, but the URI matches a format which could potentially be opened in a different QGIS install. This can be used to show user-friendly warning messages advising user why a particular uri cannot be opened on their QGIS install. For example, if a QGIS install is built without the PDAL library then las/laz files are unusable, and this method can be used to retrieve a user-friendly warning as to why the las/laz files cannot be used on their QGIS build. Instead of just showing the user a generic "not a valid or recognized data source" error, we can use this api to show more helpful URIs about the specific uri. Initially intended to help advise users why LAS/LAZ files cannot be opened on their QGIS install, but also could be used e.g. by mdal to advise users about missing third party libraries preventing them from opening certain mesh files, etc....
- Loading branch information
1 parent
4ada839
commit 4240e20
Showing
4 changed files
with
286 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters