Nyall Dawson
92397537fe
Check validity outputs counts of valid/invalid features
2017-06-12 07:26:02 +10:00
Nyall Dawson
e49cc78674
Make html output in basic stats algorithm optional
2017-06-12 07:26:02 +10:00
Nyall Dawson
cb41ef1adc
Output useful logging when running algorithms from toolbox
...
Now outputs the input parameters, execution time, and results
2017-06-12 07:26:02 +10:00
Nyall Dawson
1d6d4be556
Correctly reject algorithm dialog
...
Algorithm dialog was not being rejected when close button was
called (only hidden), leading to old dialogs and widgets
hanging around forever...
2017-06-12 07:26:02 +10:00
Nyall Dawson
aa544a14c0
Only use a temporary feedback object when running algorithms
...
Otherwise canceling a run causes all future runs to be canceled
2017-06-12 07:26:02 +10:00
Nyall Dawson
2d2c229332
Port checkInputCRS to c++, and allow algorithms to flag when they
...
require all input layers to be in the same CRS
The default behaviour is to assume that algorithms are well behaved
and can handle multi-CRS inputs, but algs have the option to
flag that they do not allow this and require the input CRS check.
Those algs should document that they require all inputs to have
matching CRS - processing 3.0 behaviour is to assume that algs
can handle this.
2017-06-12 07:26:02 +10:00
Nyall Dawson
386c4246b2
Merge algorithm reprojects layers so that all features are
...
in CRS of first input layer
2017-06-12 07:26:02 +10:00
Nyall Dawson
5ba0b5cd83
Port merge alg to new API
2017-06-12 07:26:02 +10:00
Nyall Dawson
ea18e8e9db
Resurrect grid polygon algorithm
2017-06-12 07:26:02 +10:00
Nyall Dawson
d8260b8c47
[FEATURE] Port Extract by Expression to new API, allow saving
...
non matching features to separate output
2017-06-12 07:26:02 +10:00
Nyall Dawson
a6a3027ea6
[processing] Clip alg allows mask in different CRS to clipped layer
2017-06-12 07:26:02 +10:00
Nyall Dawson
be2ec2f1a7
Fix running processing algs through locator
2017-06-11 20:54:03 +10:00
PedroVenancio
aedb95b1aa
Fixes GRASS 7 v.net.alloc #16672
2017-06-10 09:41:05 +01:00
Nyall Dawson
8c73bcbcfe
[FEATURE] Port CheckValidity alg to new API
...
Also make outputs optional from the alg - now you can select
which outputs you need for your model!
2017-06-09 14:24:27 +10:00
Nyall Dawson
6b55300fbc
If a feature sink parameter is optional and not set, don't create the sink
...
This adds a lot of flexibility to algorithms, as it makes output
sinks truely optional. For instance, the various "Extract by..."
algorithms could add a new optional sink for features which
'fail' the extraction criteria. This effectively allows these
algorithms to become feature 'routers', directing features onto
other parts of a model depending on whether they pass or fail
the test.
But in this situation we don't always care about these failing
features, and we don't want to force them to always be fetched
from the provider. By making the outputs truely optional,
the algorithm can tweak its logic to either fetch all features
and send them to the correct output, or only fetch
matching features from the provider in the first place (a big
speed boost).
2017-06-09 14:22:29 +10:00
Nyall Dawson
2d2dff9b4a
Restore basic stats alg
2017-06-09 13:17:48 +10:00
Harrissou Sant-anna
fcc06ce380
More typo fixes
2017-06-08 09:55:25 +02:00
Harrissou Sant-anna
a148a7890d
Typo fix and list ordering
2017-06-08 09:55:25 +02:00
Nyall Dawson
7d9cc131e8
Merge pull request #4657 from DelazJ/patch-1
...
Typo fix: Add missing spacing
2017-06-08 10:17:10 +10:00
Sandro Santilli
362d4f0697
Add DBManager test for service-only URI
...
Ref #16626
Also fixes runs with non-standard QGIS_PGTEST_DB env variable set
2017-06-06 14:56:40 +02:00
Nyall Dawson
de9e70e6ba
Merge pull request #4684 from nyalldawson/processing_pt3
...
Add sourceExtent method to QgsFeatureSource
2017-06-06 21:50:45 +10:00
Alexander Bruy
80911c6e74
Merge pull request #4675 from alexbruy/processing-help
...
[processing] improve help system
2017-06-06 13:08:22 +03:00
Alexander Bruy
e89502f43d
fix help opening
2017-06-06 11:50:28 +03:00
Nyall Dawson
448f019e1f
Port polygon from layer extent alg to new API
2017-06-06 18:29:09 +10:00
Sandro Santilli
7af47c2afa
Add a raster table to the test postgis setup, use it from dbmanager test
2017-06-06 09:51:30 +02:00
Sandro Santilli
3738798991
Add test for DBManager's PostGIS connector and plugin
...
Only enabled when ENABLE_PGTEST is set
Includes test for dbname-less URI (#10600 and #16625 and #16626 )
The test relies on default libpq accessed database containing
one raster table, but makes no effort to create such database yet.
2017-06-06 09:51:30 +02:00
Alexander Bruy
d859399ce5
[processing] use QGIS user manual as help source for all algorithms by
...
default.
NOTE: URL scheme should be adopted when documentation team decided how
manual will be scructured.
2017-06-06 10:51:22 +03:00
Alexander Bruy
0773e549f2
[processing] move collapse button to the top
2017-06-06 10:51:22 +03:00
Alexander Bruy
8af3707b18
[processing] use arrow cursor for collapse button
2017-06-06 10:51:22 +03:00
Alexander Bruy
f4853a2173
[processing] add button to collapse/expand short help
2017-06-06 10:51:22 +03:00
Alexander Bruy
ffac4f9648
[processing] simplify modeler algorithm dialog and use new help in it
...
too
2017-06-06 10:51:22 +03:00
Alexander Bruy
a137a7c0f3
[processing] open help in the default webbrowser to be consistent with
...
the rest of QGIS dialogs
2017-06-06 10:51:22 +03:00
Alexander Bruy
77fa17781e
[processing] save and restore geometry of the algorithm dialog
2017-06-06 10:51:22 +03:00
Alexander Bruy
dec9ecf41e
[processing] make short help panel resizable and replace Help tab with corresponding button
2017-06-06 10:51:22 +03:00
Nyall Dawson
1d2e54d1ba
Port delete columns alg to new API
2017-06-06 16:06:27 +10:00
Nyall Dawson
f1511a290c
Port clip algorithm to new API
2017-06-06 15:54:10 +10:00
Nyall Dawson
9038872200
Fix warning
2017-06-06 15:43:19 +10:00
Nyall Dawson
47a40edb7f
Port BarPlot alg to new API
2017-06-06 15:39:55 +10:00
Nyall Dawson
c1d35a043b
Port getHTMLOutputsCount to c++ API
2017-06-06 15:39:54 +10:00
Nyall Dawson
74ffdb1187
Fix field widget wrapper
2017-06-06 15:21:09 +10:00
Nyall Dawson
f0f0411e7b
Port addautoincrementalfield to new API
2017-06-06 14:46:55 +10:00
Nyall Dawson
dfb687bf64
Port aspect algorithm to new API
2017-06-06 14:39:07 +10:00
Nyall Dawson
2f28736e8e
Remove some unused code
2017-06-06 14:38:52 +10:00
Nyall Dawson
a27c22d9b1
Add raster layer output parameters
2017-06-06 14:38:24 +10:00
Nyall Dawson
b75a174780
Rename QgsProcessingFeatureSinkDefinition to QgsProcessingOutputLayerDefinition
...
Since it also applies to raster layer outputs, we need a more generic name
2017-06-06 13:43:55 +10:00
Nyall Dawson
f64f74fb63
Fix incorrect import
2017-06-06 13:41:42 +10:00
Nyall Dawson
d53fa8d2af
Port another alg to new API
2017-06-06 12:36:10 +10:00
Nyall Dawson
ab64428891
Add a cancel button for algorithms which support cancelation
2017-06-06 11:40:33 +10:00
Nyall Dawson
39d20a4cb4
Move algorithm expression context generation to QgsProcessingAlgorithm
...
Fix error when selecting "from expression" in algorithm parameter dialog
2017-06-06 11:25:09 +10:00
Nyall Dawson
607fed8c48
Restore ability to save outputs directly to Spatialite/PostGIS providers
2017-06-06 10:34:57 +10:00