Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +10:00
Nyall Dawson
df1ead5ed4
[processing] Remove vector.spatialindex()
...
Use QgsProcessingUtils.createSpatialIndex() instead.
2017-05-02 13:39:36 +10:00
Nyall Dawson
bde1bf457b
[processing] Remove unused vector.duplicateInMemory() function
2017-05-02 13:29:42 +10:00
Nyall Dawson
7eb7a7aa01
[processing] Remove vector.bufferedBoundingBox()
...
Use QgsRectangle.grow() instead
2017-05-02 13:27:01 +10:00
Nyall Dawson
8e5565413f
[processing] Remove unused dataobjects.loadList method
2017-05-02 13:20:29 +10:00
Nyall Dawson
0fbf1c2f54
[processing] Remove unused dataobjects.extent method
2017-05-02 13:18:47 +10:00
Nyall Dawson
fa8f667b3e
Fix failing test
2017-05-02 13:15:58 +10:00
Nyall Dawson
b1eecfdba4
Fix resolving memory layers when multiple memory layers are used in model
2017-05-02 12:45:54 +10:00
Nyall Dawson
11fb72eef7
Only expose a single mapLayerFromString method in QgsProcessingUtils
2017-05-02 12:33:22 +10:00
Nyall Dawson
f84d703234
Add method QgsProcessingUtils::mapLayerFromString
...
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.
This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Jürgen Fischer
1ed8880c47
Merge pull request #4434 from arnaud-morvan/db_manager_fix_schema_g
...
Db manager fix schema g
2017-05-01 13:32:31 +02:00
Alexander Bruy
12252030ac
[processing] uncheck Z-coordinate on layer change in Interpolation
...
algorithm (fix #10010 )
2017-05-01 13:00:23 +03:00
Alexander Bruy
7ee1cbfaae
Revert "[processing] handle NULL values in the Singleparts to multiparts ( fix #15822 )"
...
This reverts commit a944f7c4c1010767abb811200686e327040c2d32.
2017-05-01 10:53:15 +03:00
Alexander Bruy
5c8365c544
Revert "Merge pull request #4458 from arnaud-morvan/processing_fix_single_to_multi_test"
...
This reverts commit 77d95905a51db6c2d938c736e34da246ad6e0f50, reversing
changes made to 6fd45f0ef5968e2471421a21f81017c9c86f3fb7.
2017-05-01 10:53:08 +03:00
Nyall Dawson
b34ee28cd8
[processing] Fix refreshing alg list does not refresh toolbox
...
Fix #16455 , #16463
2017-05-01 17:29:40 +10:00
Nyall Dawson
ac84326464
[processing] Fix executing models
2017-05-01 17:29:40 +10:00
Nyall Dawson
dde48b5597
[processing] Fix invalid logging error
2017-05-01 17:29:40 +10:00
Nyall Dawson
79d79d6c07
[processing] Fix some regressions following algorithm refactoring
2017-05-01 17:29:40 +10:00
Nyall Dawson
636a37f4f7
[processing] Fix editing existing model has no algorithms shown
2017-05-01 17:29:40 +10:00
arnaud.morvan@camptocamp.com
adf5b6f0c5
[processing] Fix qgis:singlepartstomultipart test
2017-04-30 22:41:42 +02:00
Alexander Bruy
80c8875275
fix failing test
2017-04-30 20:29:39 +03:00
Alexander Bruy
a944f7c4c1
[processing] handle NULL values in the Singleparts to multiparts ( fix #15822 )
2017-04-30 14:31:52 +03:00
Alexander Bruy
3f669140d5
[processing] fix GRASS commands logging
2017-04-30 14:31:52 +03:00
Alexander Bruy
ed103e59e2
Merge pull request #4445 from arnaud-morvan/processing_fix_rasterize
...
[processing] fix rasterize dialog openning (fix #16061 )
2017-04-30 10:33:29 +03:00
Juergen E. Fischer
b29a10eeb7
hub.qgis.org moved to issues.qgis.org
2017-04-29 23:34:27 +02:00
arnaud.morvan@camptocamp.com
bc09875866
[processing] Fix rasterize dialog openning
...
Fix #16061
Do not pass in getConsoleCommand just to get commandName for shortHelp.
This avoid errors with non initialized parameters.
2017-04-29 21:09:05 +02:00
Alexander Bruy
3450a9ff89
[processing] add multithreading option to warp ( fix #15340 )
2017-04-29 15:39:49 +03:00
arnaud.morvan@camptocamp.com
44731f2314
[db_manager] Fix postgis plugins loading
...
Fix infinite recursion on load calls
2017-04-28 18:47:43 +02:00
rldhont
856046c5f0
[BUGFIX][Processing] Fix spatialite version comparison: import re
2017-04-28 13:47:19 +02:00
arnaud.morvan@camptocamp.com
cfe8dfedae
[db_manager] Fix DBConnector.getSchemaTableName
...
Fix #15910
2017-04-28 12:11:04 +02:00
Alexander Bruy
eeba0efc36
followup 1ac053fc26
2017-04-27 10:59:46 +03:00
Alexander Bruy
1ac053fc26
[processing] prevent division by zero in save selected features
...
algorithm (fix #16431 )
2017-04-27 10:54:07 +03:00
Nyall Dawson
0b0ccc9e9d
Rename QgsVectorLayer::selectedFeaturesIterator to getSelectedFeatures
...
It's more in line with QgsVectorLayer::getFeatures, hence a more
discoverable API
2017-04-27 11:16:10 +10:00
Nyall Dawson
fd2c18ee16
Refactor processing writer to use QgsFeatureSink, and to store
...
temporary output layers in the provided processing context
Should fix loss of intermediate memory layers when running
a multi-step model
2017-04-26 17:38:40 +10:00
Nyall Dawson
e9f13d1ea3
Just use standard QgsMessageLog functionality instead of a dedicated
...
method for processing
2017-04-26 13:57:06 +10:00
Nyall Dawson
93c32e68ef
Fix logging from GDAL
2017-04-26 13:56:30 +10:00
Nyall Dawson
1394c28d13
[processing] Move some log handling to c++ class
2017-04-26 13:56:29 +10:00
Nyall Dawson
a4cd66f8d8
Port some more code to new API
2017-04-26 13:13:08 +10:00
Nyall Dawson
f247a7cda3
Add c++ optimised uniqueValues method which respects processing context
...
Remove processing vector.uniqueValues/vector.getUniqueValues
and port usage to c++ method
Should be much faster than the python method, as the c++ method takes
advantage of handing off the unique values calculation to the
provider source whenever possible
2017-04-26 12:53:35 +10:00
Nyall Dawson
91679b3cbd
[processing] Don't use config values for invalid geometry handling in tests
2017-04-26 12:53:35 +10:00
Nyall Dawson
845027d0a3
Fix failing tests
2017-04-26 12:53:35 +10:00
Nyall Dawson
86002f3b6f
Move createContext to dataobjects
2017-04-26 12:53:35 +10:00
Nyall Dawson
b067bd786a
Rename UseSelection -> UseSelectionIfPresent, clarify docs
2017-04-26 12:53:35 +10:00
Nyall Dawson
427c3b1684
Remove vector.features
...
Use QgsProcessingUtils.getFeatures instead
2017-04-26 12:53:35 +10:00
Nyall Dawson
6397386fda
Remove len method from vector.features
...
Use QgsProcessingUtils::featureCount instead
2017-04-26 12:53:35 +10:00
Nyall Dawson
f4f4ca3d83
Raise GeoAlgorithmExecutionException when encountering invalid
...
geometries in QgsProcessingUtils::getFeatures
2017-04-26 12:53:35 +10:00
Nyall Dawson
8cf1617f5d
Use context to control vector.features()
2017-04-26 12:53:35 +10:00
Nyall Dawson
3f137e123d
Add context argument to other vector methods
2017-04-26 12:53:35 +10:00
Nyall Dawson
adc7cf0ec2
Add context argument to vector.features
2017-04-26 12:53:35 +10:00
Nyall Dawson
f3cfb8b759
Add invalid geometry handling method to processing context
2017-04-26 12:53:35 +10:00