5194 Commits

Author SHA1 Message Date
Nyall Dawson
82182040ab Port Create Constant Raster to new API and add test 2017-07-27 16:02:52 +10:00
Nyall Dawson
e23617a83d Port split with lines to new API
Improvements:
- handle transparent reprojection if layer and lines are in different CRS
2017-07-27 15:38:55 +10:00
Nyall Dawson
516249cea7 Port Explode algorithm to new API
Improvements:
- Keep Z/M values if present
- Add unit tests
2017-07-27 15:21:56 +10:00
Nyall Dawson
9b3f8a8b09 Port Polygonize to new API 2017-07-27 14:56:39 +10:00
Nyall Dawson
504cc1f390 Port Truncate alg to new API 2017-07-27 14:43:42 +10:00
Nyall Dawson
856125d366 Port create spatial index algorithm to new API 2017-07-27 14:30:40 +10:00
Nyall Dawson
f7b25a17b1 Allow setting layer type filter for QgsProcessingParameterVectorLayer
Turns out this is required for some algorithms
2017-07-27 14:30:04 +10:00
Nyall Dawson
558580588c Port merge lines algorithm to new API 2017-07-27 12:30:38 +10:00
Nyall Dawson
95be6d17b5 Restore text to float algorithm
And add test
2017-07-27 12:14:28 +10:00
Nyall Dawson
ab70e050a6 Port export geometry info to new API 2017-07-27 11:21:24 +10:00
Nyall Dawson
6ae2ddaa87 Remove some unrequired iface usage from processing algs
Flip to context.project().crs() use instead
2017-07-27 10:54:02 +10:00
Nyall Dawson
2e8d940f2d Use context.project() instead of QgsProject.instance() 2017-07-27 10:49:52 +10:00
Nyall Dawson
18dd09762b Remove vector.simpleMeasure
It's quite a confusing function - instead use optimised versions
of the measurement calculations in its place
2017-07-27 10:46:53 +10:00
Nyall Dawson
6cb9fa80f6 Astyle 2017-07-27 10:17:45 +10:00
Nyall Dawson
a48c146916 Fix vector file formats show in processing options for raster output
extension (fix #16894)
2017-07-26 10:22:57 +10:00
Nyall Dawson
a95cbe9d2f Move 'Run as batch' button to bottom of algorithm dialog
Inserting it into the tab widget doesn't work well cross
platform/between hidpi/lowdpi displays. So instead add
it as a normal button in the button box.

Also fix capitalization of button text

Fixes #16767
2017-07-26 09:45:27 +10:00
volaya
c5371b64cb added new SAGA descriptions
(cherry picked from commit a3bb3f13902638ee38f85c25c57d68b34b33bfbc)
2017-07-25 14:01:06 +03:00
Giovanni Manghi
ecd2c650ca master: fix SAGA cluster analysis for rasters 2017-07-24 14:56:41 +01:00
Alexander Bruy
c440ade2d8 [processing] remove Z/M addition from "random" algorithms 2017-07-24 09:20:47 +03:00
Alexander Bruy
c7645a3884 [processing] port Random points along lines 2017-07-24 09:20:47 +03:00
Alexander Bruy
f8b0c06942 [processing] port Random points in polygons 2017-07-24 09:20:47 +03:00
Alexander Bruy
ae2e32b36e [processing] restore Random points in layer bounds 2017-07-24 09:20:47 +03:00
Alexander Bruy
eb9f45cbb0 [processing] port Random points within extent 2017-07-24 09:20:47 +03:00
Giovanni Manghi
dfc9285121 master: fix SAGA LTR mosaiking tool 2017-07-21 14:42:14 +01:00
Nyall Dawson
eb5ac44b27 Update test 2017-07-21 11:28:43 +10:00
Giovanni Manghi
5e03f579d1 mater: fix SAGA LTR Catchement Area tools 2017-07-20 12:15:09 +01:00
Nyall Dawson
96cf6612d3 Port geometry by expression to new API 2017-07-20 15:28:50 +10:00
Nyall Dawson
c0669d4fd2 Port extend lines to new API 2017-07-20 15:28:50 +10:00
Nyall Dawson
1cac3bb635 Port single sided buffer to new API 2017-07-20 15:28:50 +10:00
Nyall Dawson
4a935c1090 Resurrect Translate algorithm 2017-07-20 15:28:50 +10:00
Nyall Dawson
d4af76150f Flip some more algorithms to feature based algorithms 2017-07-20 15:28:50 +10:00
Sandro Santilli
9efd666e48 Test that PostGIS query can be passed as both unicode and string literal
See https://issues.qgis.org/issues/16833
2017-07-19 19:05:39 +02:00
Sandro Santilli
2a572be73e Add test for #16833
Tested to pass with Python 2.7.13
2017-07-19 16:48:36 +02:00
Nyall Dawson
29855b3942 Change signature of processFeature so that features are no longer modified in place 2017-07-18 19:56:42 +10:00
Nyall Dawson
dd0f18355b [FEATURE] Followup addition of set Z/M values algs with Drop Z/M Values algorithm
Allows easy access to drop any z or m values present in a layer (e.g. if
required for compatibility with a database destination, etc)
2017-07-18 19:41:33 +10:00
Nyall Dawson
340cf93f93 [FEATURE] New algorithms to add Z/M values to existing geometries
Allows upgrading geometries to include these dimensions, or
overwriting any existing Z/M values with a new value.

Intended mostly as a test run for QgsProcessingFeatureBasedAlgorithm
2017-07-18 19:41:33 +10:00
Nyall Dawson
b9f225905a Port a single python algorithm to QgsProcessingFeatureBasedAlgorithm 2017-07-18 19:41:33 +10:00
Nyall Dawson
7e3c435dd6 Port some existing algorithms to QgsProcessingFeatureBasedAlgorithm 2017-07-18 19:41:33 +10:00
Alexander Bruy
f3f74a9ddf [processing] adapt network analysis algorithms to latest API changes 2017-07-17 11:32:12 +03:00
Alexander Bruy
4a6ceffc54 [processing] make service area outputs optional 2017-07-17 11:09:28 +03:00
Alexander Bruy
bee5683643 [processing] allow diferent CRS for point layers and network layer 2017-07-17 11:09:28 +03:00
Alexander Bruy
95de3a414a [processing] add cancellation support where possible 2017-07-17 11:09:28 +03:00
Alexander Bruy
5af177e963 [processing] restore Service area from layer 2017-07-17 11:09:28 +03:00
Alexander Bruy
abd14e8b94 [processing] restore Service area from point 2017-07-17 11:09:28 +03:00
Alexander Bruy
1e795960b6 [processing] restore Shortest path from layer to point 2017-07-17 11:09:28 +03:00
Alexander Bruy
494ceff3b4 [processing] restore Shortest path from point to layer 2017-07-17 11:09:28 +03:00
Alexander Bruy
c5ed53942c [processing] restore Shortest path from point to point 2017-07-17 11:09:28 +03:00
Matthias Kuhn
246685b0cb [processing] Better error reporting in point on surface 2017-07-17 08:38:01 +02:00
Nyall Dawson
3a2710efe5 Merge pull request #4870 from nyalldawson/algs3
Port 4 more algs to new API
2017-07-17 07:51:47 +10:00
Nyall Dawson
6487fbb2d1 Port Reverse Line Direction to new API, add test 2017-07-17 07:24:33 +10:00