GUI main¶
The plugin main window class.
QgisCplusMain ¶
Bases: QDockWidget, WidgetUi
Main plugin UI class
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
add_priority_group ¶
Adds a new priority group into the plugin, then updates the priority list to show the new added priority group.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
add_priority_layer ¶
Adds a new priority layer into the plugin, then updates the priority list to show the new added priority layer.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
add_priority_layer_group ¶
Adds priority layer from the weighting layers into a priority group If no target_group or priority_layer is passed then the current selected group or priority layer from their respective list will be used.
Checks if priority layer is already in the target group and if so no addition is done.
Once the addition is done, the respective priority layer plugin settings are updated to store the new information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_group |
dict
|
Priority group where layer will be added to |
None
|
priority_layer |
dict
|
Priority weighting layer to be added |
None
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 | |
add_scenario ¶
Adds a new scenario into the scenario list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
analysis_complete ¶
Calls the responsible function for handling analysis results outputs
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task |
ScenarioAnalysisTask
|
Analysis task |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
can_clip_to_studyarea ¶
Return true if clipping layers by study area is selected
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
cancel_processing_task ¶
Cancels the current processing task.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
edit_priority_group ¶
Edits the current selected priority group and updates the group box list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
edit_priority_layer ¶
Edits the current selected priority layer and updates the layer box list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
enable_analysis_controls ¶
Enable or disable controls related to running the scenario analysis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable |
bool
|
True to enable else False to disable. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
fetch_default_layer_list ¶
Fetch default layer list from API.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
fetch_scenario_history_list ¶
Fetch scenario history list from API.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
get_studyarea_path ¶
Return the path of the study area
Returns: str: Study area path
group_value_changed ¶
Slot to handle priority group widget changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_name |
str
|
Group name |
required |
group_value |
int
|
Group value |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
has_trends_auth ¶
Check if plugin has user Trends.Earth authentication.
Returns:
| Type | Description |
|---|---|
bool
|
True if user has provided the username and password. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
initialize_priority_layers ¶
Prepares the priority weighted layers UI with the defaults.
Gets the store priority layers from plugin settings and populates them into the QListWidget as QListWidgetItems then fetches the priority groups and adds them to the QTreeWidget as QTreeWidgetItems with their corresponding priority layers as their child items.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
is_metric_configuration_valid ¶
Checks if the setup of the metric configuration for the scenario analysis report is correct.
Returns:
| Type | Description |
|---|---|
bool
|
True if the configuration is correct else False. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
load_layer_options ¶
Retrieve outputs scenarion layers selection from settings and update the releated ui components
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
load_report_options ¶
Load previously saved report options.
load_scenario ¶
Edits the current selected scenario and updates the layer box list.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 | |
main_task ¶
Serves as a QgsTask function for the main task that contains smaller sub-tasks running the actual processing calculations.
move_layer_to_group ¶
Moves a layer open in QGIS to another group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer |
QgsRasterLayer
|
Raster layer to move |
required |
group |
QgsLayerTreeGroup
|
Group to which the raster should be moved |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_aoi_source_changed ¶
Slot raised when the area of interest source button group has been toggled.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_fetch_scenario_history_list_finished ¶
Callback when plugin has finished pulling scenario history list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
success |
bool
|
True if API call is successful |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_generate_comparison_report ¶
Slot raised to generate a comparison for two or more selected scenario results.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 | |
on_log_message_received ¶
Slot to handle log tab updates and processing logs
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
The received message from QGIS message log |
required |
tag |
str
|
Message log tag |
required |
level |
MessageLevel
|
Message level enum value |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_manage_constant_raster_pwls ¶
Slot raised to show the Constant Raster manager dialog.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_manage_npv_pwls ¶
Slot raised to show the NPV PWL manager dialog.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 | |
on_manage_pwls_relative_impact_matrix ¶
Slot raised to show the dialog for managing relative impact matrix of PWLs.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_npv_pwl_created ¶
Callback that creates an PWL item when the corresponding raster layer has been created.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pathway_npv |
NcsPathwayNpv
|
NPV mapping for an NCS pathway. |
required |
npv_pwl_path |
str
|
Absolute file path of the created NPV PWL. |
required |
algorithm |
QgsProcessingAlgorithm
|
Processing algorithm that created the NPV PWL. |
required |
context |
QgsProcessingContext
|
Contextual information that was used to create the NPV PWL in processing. |
required |
feedback |
QgsProcessingFeedback
|
Feedback to update on the processing progress. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_npv_pwl_removed ¶
Callback that is executed when an NPV PWL has been removed because it was disabled by the user.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_online_task_check_finished ¶
Handler for view online task and generate report button.
The button itself will be shown when Cplus plugin becomes visible.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_profile_action_group_triggered ¶
Slot raised when the action group for profiles has been triggered.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action |
QAction
|
Action in the group that has been triggered. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_progress_dialog_cancelled ¶
Slot raised when analysis has been cancelled in progress dialog.
on_report_error ¶
Slot raised when report task error has occured.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_report_finished ¶
Slot raised when report task has finished.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
scenario_id |
str
|
Scenario analysis id |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_report_running ¶
Slot raised when report task has started.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
scenario_id |
str
|
Scenario analysis id |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_report_status_changed ¶
Slot raised when report task status has changed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
message |
str
|
Status message. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_reporting_progress_changed ¶
Slot raised when the reporting progress has changed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
progress |
float
|
Analysis progress value between 0 and 100 |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_scenario_list_selection_changed ¶
Slot raised when the selection of scenarios changes.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_show_metrics_wizard ¶
Slot raised to show the metric customization wizard for creating the scenario analysis report.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_tab_step_changed ¶
Slot raised when the current tab changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index |
int
|
Zero-based index position of new current tab |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 | |
on_use_custom_metrics ¶
Slot raised when use custom metrics has been enabled or disabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
checked |
bool
|
True to use custom metrics else False. |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
on_view_status_button_clicked ¶
Handler when view status report button in tab 4 is clicked.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
open_help ¶
open_settings ¶
outputs_options_changed ¶
Handles selected outputs changes
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
post_analysis ¶
Handles analysis outputs from the final analysis results. Adds the resulting scenario raster to the canvas with styling. Adds each of the activities to the canvas with styling. Adds each activities' pathways to the canvas.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenario_result |
ScenarioResult
|
ScenarioResult of output results |
required |
task |
ScenarioAnalysisTask
|
Analysis task |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 | |
prepare_aoi_box ¶
Initialize the Area of interest box
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
prepare_extent_box ¶
Configure the spatial extent box with the initial settings.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
prepare_input ¶
Initializes plugin input widgets
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 | |
prepare_message_bar ¶
Initializes the widget message bar settings
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
priority_groups_update ¶
Updates the priority groups list item with the passed selected layer items.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_item |
QTreeWidgetItem
|
The priority group tree widget item that is to be updated |
required |
selected_items |
list
|
Priority layers items from the list widget |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
processing_options_changed ¶
remove_priority_group ¶
Removes the current active priority group.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
remove_priority_layer ¶
Removes one or more of the selected priority layers.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
remove_priority_layer_group ¶
Remove the current select priority layer from the current priority group.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
remove_scenario ¶
Removes the current active scenario.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
report_job_is_for_current_scenario ¶
Checks if the given scenario identifier is for the current scenario result.
This is to ensure that signals raised by the report manager refer to the current scenario result object and not for old jobs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenario_id |
str
|
Scenario identifier usually from a signal raised by the report manager. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the scenario identifier matches the current scenario object in the results, else False. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
reset_reporting_feedback ¶
Creates a new reporting feedback object and reconnects the signals.
We are doing this to address cases where the feedback is canceled and the same object has to be reused for subsequent report generation tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
Returns:
| Type | Description |
|---|---|
QgsFeedback
|
Feedback instance to be used in storing processing status details. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
restore_scenario ¶
Update the first tab input with the last scenario details
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
run_analysis ¶
Runs the plugin analysis Creates new QgsTask, progress dialog and report manager for each new scenario analysis.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 | |
run_report ¶
Run report generation. This should be called after the analysis is complete.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
save_scenario ¶
Save current scenario details into settings
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
scenario_results ¶
Called when the task ends. Sets the progress bar to 100 if it finished.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task |
ScenarioAnalysisTask
|
Analysis task |
required |
report_manager |
ReportManager
|
Report manager used to generate analysis report_templates |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
selected_activities ¶
Gets the collection of selected activities.
Returns:
| Type | Description |
|---|---|
typing.List[Activity]
|
A list of selected activities. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
show_message ¶
Shows message on the main widget message bar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
Text message |
required |
level |
MessageLevel
|
Message level type |
Warning
|
duration |
int
|
Duration of the shown message |
0
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
show_scenario_info ¶
Loads dialog for showing scenario information.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
style_activities_layer ¶
Applies the styling to the passed layer that contains the passed list of activities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer |
QgsRasterLayer
|
Layer to be styled |
required |
activities |
list
|
List which contains the activities that were passed to the highest position analysis tool. |
required |
Returns:
| Type | Description |
|---|---|
QgsPalettedRasterRenderer
|
Renderer for the symbology. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
style_activity_layer ¶
Applies the styling to the layer that contains the passed activity name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer |
QgsRasterLayer
|
Raster layer to which to apply the symbology |
required |
activity |
Activity
|
activity |
required |
Returns:
| Type | Description |
|---|---|
QgsSingleBandPseudoColorRenderer
|
Renderer for the symbology. |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
task_terminated ¶
Handles logging of the scenario analysis task status after it has been terminated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task |
Union[ScenarioAnalysisTask, ScenarioAnalysisTaskApiClient]
|
Task that was terminated |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
transform_extent ¶
Transforms the passed extent into the destination crs
:param extent: Target extent
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source_crs |
QgsCoordinateReferenceSystem
|
Source CRS of the passed extent |
required |
dest_crs |
QgsCoordinateReferenceSystem
|
Destination CRS |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_message_bar ¶
Changes the message in the message bar item.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
Message to be updated |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_metric_button_profiles ¶
Updates the profiles in the metric button menu based on the existing metric configuration profiles.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_naturebase_carbon_impact ¶
Fetch the naturebase zonal stats based on the current extent.
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_priority_layers ¶
Updates the priority weighting layers list in the UI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
update_groups |
bool
|
Whether to update the priority groups list or not |
True
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_progress_bar ¶
Sets the value of the progress bar
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
value |
float
|
Value to be set on the progress bar |
required |
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_progress_dialog ¶
Run report generation. This should be called after the analysis is complete.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
progress_dialog |
ProgressDialog
|
Dialog responsible for showing all the analysis operations progress. |
required |
message |
ReportManager
|
Report manager used to generate analysis report_templates |
None
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_pwl_layers ¶
Updates the priority layers path available in the store activities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
notify |
bool
|
Whether to show message to user about the update |
False
|
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
update_scenario_list ¶
Fetches scenarios from plugin settings and updates the scenario history list
Source code in src/cplus_plugin/gui/qgis_cplus_main.py
zoom_pilot_area ¶
Zoom the current main map canvas to the pilot area extent.