2956 Commits

Author SHA1 Message Date
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
rldhont
856046c5f0 [BUGFIX][Processing] Fix spatialite version comparison: import re 2017-04-28 13:47:19 +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
Nyall Dawson
06a20b935d Add UseSelection flag to QgsProcessingContext
Indicates whether only selected features should be used in
algorithms
2017-04-26 12:53:35 +10:00
Nyall Dawson
dd4f530cfb [processing] Pass context argument to processAlgorithm 2017-04-26 12:53:35 +10:00
Nyall Dawson
6b260ffee6 Remove deprecated assertEquals use 2017-04-25 19:00:13 +10:00
Nyall Dawson
ee777447a9 [processing] Remove special handling for invalid geometries
Instead rely on QgsFeatureRequest method. There's a temporary
loss of the feedback on encountering an invalid geometry
when abort on invalid is set, but that will be resurrected
when all of vector.features is moved to c++
2017-04-25 16:16:17 +10:00
Alexander Bruy
8c80a60c33 Merge pull request #4385 from volaya/remove_processing_commander
[FEATURE][processing] remove processing commander
2017-04-24 09:00:13 +03:00
rldhont
1bbc39e887 [BUGFIX][Processing] Fix spatialite version comparison 2017-04-20 15:16:55 +02:00
volaya
5b8c083da7 indentation fix 2017-04-20 14:47:02 +02:00
volaya
e5dd93663e [processing] fixed I/O of models 2017-04-20 14:03:09 +02:00
volaya
54e30b93f3 improvements for extracts within subsets 2017-04-20 14:03:08 +02:00
volaya
414772b6f4 [processing] removed commander 2017-04-20 10:37:50 +02:00
Denis Rouzaud
be9a51c42d sipify QgsMapLayerModel, QgsMapLayerProxyModel 2017-04-19 16:44:36 +02:00
Denis Rouzaud
0b0e8a6a89 move QgsFieldModel and QgsFieldProxyModel to core and sipify 2017-04-19 16:44:36 +02:00
Alexander Bruy
737906c55c [processing] add information message when feature skipped 2017-04-19 14:06:16 +03:00
Alexander Bruy
1016119468 [processing] prevent division by zero in random points in polygons fixed 2017-04-19 14:01:41 +03:00
Alexander Bruy
3b5b191730 [processing] fix parsing selection parameter in translate algorithm 2017-04-19 12:23:35 +03:00
Nyall Dawson
cc5b9bfe17 More QgsDistanceArea API cleanups and simplification
- setEllipsoidalMode() was removed. Ellipsoidal calculations are
now enabled whenever a valid ellipsoid() has been set. Set the
ellipsoid to 'NONE' to disable ellipsoidal calculations.

- ellipsoidalEnabled() was removed. Ellipsoidal calculations
are now enabled whenever a valid ellipsoid() is set. Check
willUseEllipsoid() to determine whether ellipsoidal
calculations will be performed.

- sourceCrs() and setSourceCrs() now always take and return
QgsCoordinateReferenceSystem objects. All string/ID based CRS
methods were removed.

- geographic() was removed. This was only used internally
in one place, so was replaced with sourceCrs().isGeographic() instead.

- some largely overlapping measurement functions were consolidated
2017-04-18 08:14:16 +10:00
matteo
16c8dac2ac travis fix 2017-04-12 21:07:30 +02:00
matteo
bca0ca25ee 2 new plots added 2017-04-12 21:07:30 +02:00
matteo
0c5b667986 fix category error and remove np dependency 2017-04-12 21:07:30 +02:00
Alexander Bruy
a82aba9cd6 Merge pull request #4338 from timlinux/processing-fixes
[processing] Added more error handling for cases when processing help causes an error
2017-04-07 08:46:20 +03:00
Alexander Bruy
2308b07671 fix indentation 2017-04-07 08:25:02 +03:00