Package: quality-result-gui
quality-result-guiQGIS plugin for visualizing quality check results.PluginNot implemented yet.LibraryTo use this library as an external dependency in your plugin or other Python code, install it usingpip install quality-result-guiand use imports from the providedquality_result_guipackage. If used in a plugin, library must be installed in the runtime QGIS environment or useqgis-plugin-dev-toolsto bundle your plugin with runtime dependencies included.Minimal working example (with JSON file)For quality dock widget to work, a subclass of QualityResultClient needs to be first implemented. Instance of the created API client class is then passed to QualityErrorsDockWidget. For a real-world application, a separate backend application is needed for checking data quality and provide the quality check results for the QGIS plugin.Example of the expected api response can be seen inthis file.Example parser classfor json response is also provided for the following example to work:importjsonfromqgis.utilsimportifacefromquality_result_gui.api.quality_api_clientimportQualityResultClientfromquality_result_gui.api.types.quality_errorimportQualityErrorfromquality_result_gui_plugin.dev_tools.response_parserimportQualityErrorResponsefromquality_result_gui.quality_error_managerimportQualityResultManagerclassExampleQualityResultClient(QualityResultClient):defget_results(self)->Optional[List[QualityError]]:"""Retrieve latest quality errors from APIReturns:None: if no results availableList[QualityError]: if results availableRaises:QualityResultClientError: if request failsQualityResultServerError: if check failed in backend"""full_path_to_json="some-path/example_quality_errors.json"example_response=json.loads(Path(full_path_to_json).read_text())returnQualityErrorResponse(example_response).quality_resultsdefget_crs(self)->QgsCoordinateReferenceSystem:returnQgsCoordinateReferenceSystem("EPSG:3067")api_client=ExampleQualityResultClient()quality_manager=QualityResultManager(api_client,iface.mainWindow())quality_manager.show_dock_widget()Development of quality-result-guiSeedevelopment readme.License & copyrightLicensed under GNU GPL v3.0.This tool is part of the topographic data production system developed in National Land Survey of Finland. For further information, see:Abstract for FOSS4GGeneral news article about the projectCopyright (C) 2022National Land Survey of Finland.CHANGELOG2.0.7- 2024-01-17Fix: Process modifications in quality error tree correctly when multiple filters are present2.0.6- 2024-01-05Fix: Show correct results when user processed filter is toggled with map extent filter active2.0.5- 2023-12-12Fix: Filter newly inserted quality error rows correctly with user processed and map extent filters2.0.4- 2023-10-05Fix: Redraw map when an error is selected and errors are not visualized on map2.0.3- 2023-09-12Fix: Include .qm translation files to the zip generated by release workflow action2.0.2- 2023-09-06Fix: Make Finnish translations visible2.0.1- 2023-07-12Feat: Add Finnish translations2.0.0- 2023-07-11Refactor!: replace hierarchical representation of quality errors with a flat quality error list1.1.6- 2023-05-23Feat: Add functionality to display quality error feature type and attribute names from layer aliases.1.1.5- 2023-03-29Fix: Do not zoom to error when geometry is null geometry1.1.4- 2023-03-08Fix: Show correct error count when errors are filteredFix: Remove selected error visualization from map when error is removed from list1.1.3- 2023-03-03Feat: Add method to hide dock widget and functionality to recreate error visualizations1.1.2- 2023-03-01Fix: Do not hide filter menu when a filter is selectedFix: Fix missing marker symbol from line type annotationsFeat: Allow configuring quality layer stylesFeat: Add keyboard shortcut for visualize errors on map1.1.1- 2023-02-23Feat: Change Show user processed filter into checkbox selection1.1.0- 2023-02-16Feat: Add optional extra info field to quality error. Extra info is displayed in the tooltip of error description and may contain html formatted text.Refactor: Remove language specific description fields from quality error and include only a single field for description.1.0.0- 2023-02-14Feat: Added an API to add custom filters for errors.Fix: Hide empty branches from quality error list when user processed errors are hidden and user processes all errors for a featureFix: Error layer stays visible after minimizing QGIS.0.0.4- 2022-12-28Feat: Emit mouse event signal for selected error featureFeat: New filter to filter quality errors by error attribute valueFeat: Add tooltip for quality error descriptionFeat: Update data in tree view partially when data changesFix: Minor styling fixes of tree viewFix: Visualize error when description is clicked0.0.3- 2022-12-15Fix: Use glob paths for missing build resource files0.0.2- 2022-12-14Fix: Fix missing ui and svg files by including them in setuptools build0.0.1- 2022-12-14Initial release: QGIS dock widget for visualizing quality check results