Nyall Dawson
6b4ddb3b0d
Add temporary layer store to processing context
...
This temporary layer store (a QgsProject) is used as a
store for layers that are added if a parameter that
is evaluated to a layer requires that a new, non-active-project
layer is loaded. It means that these layers will remain accessible
for the duration of the algorithm's execution (or models
execution if an algorithm is run as part of a model), before
being automatically discarded when the QgsProcessingContext
used to run the algorithm/model goes out of scope.
This approach has several benefits:
- it means that algorithms (including c++ algorithms) are able
to use both project and non-project layers without needing
to handle any memory management themselves.
- it means that layers are guaranteed to last for the duration
of a model execution. This is currently an issue where models
which use memory layers as intermediate outputs do not
function correctly as the memory layers are destroyed before
the model has finished executing
- there should be no leakage of layers remaining open
after an algorithm exits
2017-04-26 14:06:59 +10:00
..
2017-04-24 07:39:30 +02:00
2017-04-11 15:00:29 +02:00
2017-04-26 11:46:51 +10:00
2017-01-22 21:29:23 +10:00
2017-03-01 07:29:35 +10:00
2017-03-25 16:23:29 +10:00
2016-12-20 01:20:08 +01:00
2017-04-24 07:39:30 +02:00
2017-03-24 09:36:46 +10:00
2017-04-25 13:28:01 +02:00
2017-04-26 14:06:59 +10:00
2017-04-24 07:39:30 +02:00
2017-04-26 11:47:06 +10:00
2017-03-25 16:23:29 +10:00
2017-03-05 10:21:24 +01:00
2016-01-08 21:32:11 +01:00
2017-02-14 05:49:23 +10:00
2017-04-26 12:53:35 +10:00
2017-02-22 19:22:45 +10:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2017-04-25 13:46:56 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 09:35:09 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 09:32:39 +02:00
2017-04-24 09:32:39 +02:00
2016-09-15 18:34:15 +10:00
2017-01-16 16:39:20 +01:00
2016-11-15 14:03:49 +10:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 09:32:39 +02:00
2017-04-24 09:32:39 +02:00
2017-04-24 07:39:30 +02:00
2017-04-24 09:32:39 +02:00
2017-04-24 09:32:39 +02:00
2017-04-24 09:32:39 +02:00
2017-04-24 13:06:03 +02:00
2017-04-24 13:06:03 +02:00
2015-06-11 19:19:00 +02:00
2017-03-19 12:52:35 +01:00
2015-03-05 00:13:05 +07:00
2016-12-28 16:59:03 +10:00
2017-02-21 18:14:58 +01:00
2017-04-25 13:46:56 +02:00
2017-04-24 13:06:03 +02:00
2017-04-24 13:06:03 +02:00
2017-02-07 09:32:05 +10:00
2017-02-22 19:22:45 +10:00
2017-04-25 13:46:56 +02:00
2016-12-20 01:20:08 +01:00
2016-12-20 01:20:08 +01:00
2017-04-25 13:46:56 +02:00
2017-02-21 18:14:58 +01:00
2017-03-25 16:23:29 +10:00
2017-03-25 16:23:29 +10:00
2016-08-15 09:02:30 +10:00
2017-01-14 15:53:45 +10:00
2017-04-24 07:39:30 +02:00
2015-11-20 10:38:34 +11:00
2016-04-15 07:52:02 +10:00
2017-04-25 16:47:52 +10:00
2017-04-26 11:58:19 +10:00
2017-04-26 11:32:34 +10:00
2017-04-24 09:32:39 +02:00
2016-12-30 00:03:22 +01:00
2016-11-02 13:42:22 +10:00
2016-12-20 01:20:08 +01:00
2016-12-20 01:20:08 +01:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2016-10-01 15:39:03 +02:00
2017-01-16 16:39:20 +01:00
2016-02-14 03:50:49 +01:00
2016-08-29 06:55:52 +02:00
2016-10-05 13:17:55 +10:00
2016-08-04 09:10:08 +02:00
2016-01-26 14:24:45 +11:00
2017-02-22 11:16:54 +10:00
2016-10-24 10:36:23 +10:00
2016-09-20 13:18:32 +02:00
2017-04-24 07:39:30 +02:00
2016-01-22 18:45:45 +11:00
2017-02-16 09:56:11 +08:00
2016-12-12 03:23:02 +08:00
2017-02-22 19:22:45 +10:00
2017-04-24 07:39:30 +02:00
2017-02-21 18:14:58 +01:00
2017-04-24 07:39:30 +02:00
2016-08-10 12:12:28 +02:00
2017-04-24 07:39:30 +02:00
2016-10-24 10:36:23 +10:00
2014-09-01 10:10:37 +07:00
2017-04-24 07:39:30 +02:00
2017-04-24 07:39:30 +02:00
2016-07-24 23:16:33 +02:00
2015-01-19 18:39:03 +07:00
2017-02-06 11:27:42 +10:00
2017-03-02 12:39:57 +10:00
2017-03-02 12:39:57 +10:00
2017-03-02 12:39:57 +10:00
2017-03-02 12:39:57 +10:00
2017-04-24 07:39:30 +02:00
2017-04-21 18:04:09 +08:00
2017-03-13 13:40:48 +10:00
2016-10-03 11:19:04 +10:00
2016-09-01 08:04:39 +10:00
2017-01-16 16:18:58 +10:00
2017-01-30 10:50:48 +10:00
2017-04-24 07:39:30 +02:00
2016-02-14 03:50:49 +01:00
2016-08-22 10:38:10 +08:00
2017-02-21 18:14:58 +01:00
2017-02-21 18:14:58 +01:00
2016-02-14 03:50:49 +01:00
2016-01-05 11:16:15 +11:00
2017-04-24 07:39:30 +02:00
2016-08-12 12:44:02 +02:00
2017-01-16 16:39:20 +01:00
2017-02-21 18:14:58 +01:00
2016-07-24 22:40:52 +02:00
2017-04-21 18:04:09 +08:00
2017-02-16 09:56:11 +08:00
2017-01-16 16:39:20 +01:00
2016-12-28 16:59:03 +10:00
2017-02-24 16:02:25 +01:00
2017-02-24 11:27:45 +08:00
2017-04-21 18:04:09 +08:00
2017-01-04 20:29:53 +08:00
2015-10-07 12:02:04 +11:00
2017-01-02 15:20:08 +10:00
2016-12-20 01:20:08 +01:00
2017-04-24 08:09:13 +02:00
2017-03-09 20:54:44 +01:00
2017-04-24 07:39:30 +02:00
2016-02-14 03:50:49 +01:00
2017-01-14 15:53:45 +10:00
2015-11-05 21:06:44 +01:00
2017-04-19 18:45:17 +10:00
2017-04-24 07:39:30 +02:00
2017-01-14 15:53:45 +10:00
2017-02-21 18:14:58 +01:00
2017-01-22 21:29:23 +10:00
2017-01-16 16:39:20 +01:00
2016-11-23 14:03:25 +10:00
2016-07-26 08:29:24 +10:00
2015-07-29 11:52:14 +02:00
2017-04-24 07:39:30 +02:00
2016-05-25 22:50:28 +02:00
2017-01-16 16:39:20 +01:00
2017-02-28 12:13:41 +01:00
2015-10-07 12:02:04 +11:00
2017-01-16 16:39:20 +01:00
2017-01-16 16:39:20 +01:00
2016-12-30 00:03:22 +01:00
2016-12-30 00:03:22 +01:00
2017-03-25 16:23:29 +10:00
2017-03-25 16:23:29 +10:00
2016-09-15 18:34:15 +10:00
2017-03-01 07:29:35 +10:00
2016-11-15 11:28:47 +01:00
2016-02-14 03:50:49 +01:00
2016-01-18 13:11:43 +01:00
2017-03-08 11:36:28 +01:00
2017-02-24 16:02:25 +01:00
2017-04-26 11:58:19 +10:00
2017-04-26 11:32:34 +10:00
2017-02-13 08:30:29 +10:00
2017-04-26 11:32:35 +10:00
2017-03-05 12:01:46 +10:00
2017-04-03 08:55:07 +10:00
2016-10-24 10:36:23 +10:00
2017-04-19 11:24:20 +08:00
2017-04-24 08:21:06 +10:00
2017-01-16 22:27:14 +01:00
2017-01-31 09:33:02 +08:00
2017-01-31 09:33:02 +08:00
2017-01-12 22:01:50 +01:00
2016-10-24 10:36:23 +10:00
2017-01-16 16:39:20 +01:00
2016-10-24 10:36:23 +10:00
2016-08-04 09:10:08 +02:00
2016-01-07 16:34:34 +01:00
2016-12-20 01:20:08 +01:00