Nyall Dawson
18b2b5240b
Add some base classes for layouts
2017-06-30 17:01:52 +10:00
Nyall Dawson
cd979d8ab0
[layout] Create a page size registry for layout
...
Adds a new QgsPageSize class and QgsPageSizeRegistry registry
(attached to QgsApplication), which stores and manages known
page sizes
2017-06-30 16:23:18 +10:00
Nyall Dawson
77588b9b61
Convert model child algorithm parameter sources to a list
...
So that multiple input type parameters are correctly handled,
allowing models with child algorithms like merge to correctly
use any combination of static layers/model inputs/child outputs
as their input parameter
2017-06-30 12:50:38 +10:00
Nyall Dawson
8d6d097ad8
Add conversion for QMap< QString, QList< TYPE > > for Python bindings
2017-06-30 12:50:38 +10:00
Nyall Dawson
bf3d55c9e5
Move flushBuffer method up to QgsFeatureSink
...
Allows calling flushBuffer on QgsFeatureSink objects, ensuring
that any internal buffer the sink may have is flushed
2017-06-30 09:20:56 +10:00
nirvn
26d9c74bc4
[processing] keep only one zonal statistics algorithm
2017-06-29 11:53:04 +07:00
nirvn
58f6f93cb6
[zonal statistics] add variance statistic
2017-06-29 11:53:04 +07:00
Nyall Dawson
8379f9bb98
Merge pull request #4791 from nyalldawson/reproj_test
...
Use native projection algorithm for unit test
2017-06-29 09:30:16 +10:00
Nyall Dawson
468e44dc3a
Use native projection algorithm for unit test
2017-06-29 08:33:34 +10:00
Nyall Dawson
144d733b12
Use a QgsFeedback instead of QProgressBar for QgsNineCellFilter
...
Gives progress reports and allows cancelation of processing
aspect algorithm
2017-06-29 08:03:57 +10:00
Nyall Dawson
d2b9652d4b
Fix use of direct map layers as inputs for source parameters
2017-06-29 08:00:47 +10:00
Nyall Dawson
e3dedbd74a
Merge pull request #4786 from nyalldawson/algs4
...
Restore points layer from table algorithm
2017-06-28 20:38:15 +10:00
Denis Rouzaud
54c6291378
script to write include SIP files
2017-06-28 10:45:51 +02:00
Nyall Dawson
d1a93e0e13
Restore points layer from table algorithm
2017-06-28 17:38:17 +10:00
Nyall Dawson
9f5e33af72
Merge pull request #4767 from nyalldawson/layouts3
...
[layouts] Add layout measurement and size classes
2017-06-28 08:58:41 +10:00
Juergen E. Fischer
0f83a5f52d
fix windows build
2017-06-27 13:31:27 +02:00
Mathieu Pellerin
a6b14a0b40
[processing] restore zonal statistics (qgis) alg ( #4784 )
2017-06-27 18:09:44 +07:00
Denis Rouzaud
182fe3ca8a
fix qt version in comment
2017-06-27 10:43:14 +02:00
Juergen E. Fischer
51fde8e08f
spelling fixes
2017-06-27 10:34:12 +02:00
Nyall Dawson
7f7842a11d
Merge pull request #4783 from nyalldawson/script
...
processing: restore script algorithm provider and tests
2017-06-27 14:15:36 +10:00
Nyall Dawson
4f096a6f8b
Feature source parameters cannot be used for vector layer algorithm
...
parameters in models
There's not a 1:1 correlation here - vector layers can be used
as inputs for sources, but sources cannot be used when a
full vector layer is required.
2017-06-27 13:18:22 +10:00
Nyall Dawson
e171fe30c0
Restore script based algorithm tests
2017-06-27 13:18:22 +10:00
Nyall Dawson
ae829857ca
Restore select by expression algorithm
2017-06-27 13:18:22 +10:00
Nyall Dawson
f98bcb2b81
Update processing.run() for new API
2017-06-27 13:18:22 +10:00
Nyall Dawson
14347a431e
Also add results to results dock when running through algorithm dialog
2017-06-27 13:18:22 +10:00
Nyall Dawson
1e5d773e57
Fix use of temporary files for outputs
2017-06-27 13:18:22 +10:00
Nyall Dawson
3a9a0efc33
Resurrect select by attribute algorithm
2017-06-27 11:42:58 +10:00
Nyall Dawson
4e93f8d038
Don't set override cursor in processing.run
...
Callers may not want this, so leave it up to them to set
an override caller if desired
2017-06-27 11:24:59 +10:00
Nyall Dawson
3286ebb470
Explicit parameters, feedback, context arguments for processing.run
2017-06-27 11:24:33 +10:00
Nyall Dawson
2a1cdead51
processing.run requires a dictionary for parameters
2017-06-27 11:19:29 +10:00
Nyall Dawson
792a252ef8
Fix script algorithm centroids tests
2017-06-27 11:12:20 +10:00
Nyall Dawson
96c5453ae2
Restore save selected features algorithm
2017-06-27 11:11:54 +10:00
Nyall Dawson
449d8f8c0b
Restore script algorithm provider
2017-06-27 10:50:07 +10:00
Nyall Dawson
0b4bb9e998
Remove manually set tab bar height in algorithm dialog
...
Breaks dialog layout on hidpi screens
2017-06-27 10:49:31 +10:00
Nyall Dawson
1468eef635
Merge pull request #4781 from nyalldawson/centroid_tests
...
Reenable centroid algorithm tests
2017-06-27 10:34:23 +10:00
Nyall Dawson
11f42eb432
Reenable centroid algorithm tests
2017-06-27 09:46:56 +10:00
Nyall Dawson
86d33c1875
Restore frequency analysis script
...
This script has been changed to use a sink output, not the previous
TableWriter csv output.
All algorithms which output flat tables should now still output
feature sinks, to allow correct use in later model steps.
2017-06-27 08:33:13 +10:00
Nyall Dawson
d49114cfc1
Correct parameter evaluation for multiple field types
2017-06-27 08:33:13 +10:00
Nyall Dawson
dbf21d1969
Reorder arguments in parameterAsSink to avoid requiring wkb type and crs
2017-06-27 08:33:13 +10:00
Nyall Dawson
a72eea2256
Fix auto creation of variables when running script algorithms
2017-06-27 08:33:13 +10:00
Nyall Dawson
94619d0df3
Fix incorrect layer source from widget wrapper
2017-06-27 08:33:13 +10:00
Nyall Dawson
11d35821c0
Fix setting number inputs to algorithms in modeler
2017-06-27 08:33:13 +10:00
Nyall Dawson
53e9538ad3
Restore keep n biggest parts script
2017-06-27 08:33:13 +10:00
Nyall Dawson
3bf9ea3682
Restore ability to run script algorithms
2017-06-27 08:33:13 +10:00
Nyall Dawson
df329bceab
Start restoring creation of outputs from string
2017-06-27 08:33:13 +10:00
Nyall Dawson
f13920bb19
First steps in resurrecting script algorithms
2017-06-27 08:33:13 +10:00
Nyall Dawson
60f80f9355
Mark QgsProcessingModelAlgorithm as non-stable API
...
We want to be able to extend this in future without any
stable API contract.
2017-06-27 08:33:13 +10:00
Nyall Dawson
0a32add69e
Port exporting model as python code to c++
2017-06-27 08:33:13 +10:00
Nyall Dawson
d16f117b6c
Port conversion to/from script code to c++
2017-06-27 08:33:13 +10:00
Nyall Dawson
178a415c9f
Port parameter conversion to script code to c++
2017-06-27 08:33:13 +10:00