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
94619d0df3
Fix incorrect layer source from widget wrapper
2017-06-27 08:33:13 +10:00
Nyall Dawson
8af308d277
Fix creation of widget wrappers via metadata parameters
2017-06-22 18:19:26 +10:00
Nyall Dawson
a9f97fc478
Port create attribute index alg to new api
2017-06-21 22:22:37 +10:00
Nyall Dawson
0da3652257
Rename some parameter classes for consistency
2017-06-21 22:13:16 +10:00
Nyall Dawson
f6358b2118
Begin port of modeler algorithm to c++
2017-06-20 14:45:13 +10:00
Nyall Dawson
efe8bba006
Work on resurrecting modeler
2017-06-20 14:45:13 +10:00
Nyall Dawson
d8302a26f2
Fix feature source widget returns source even when not set
2017-06-12 10:38:40 +10:00
Nyall Dawson
c52e6a72ba
Fix raster layers showing as input choices for vector algs
2017-06-12 10:35:22 +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
74ffdb1187
Fix field widget wrapper
2017-06-06 15:21:09 +10:00
Nyall Dawson
2f28736e8e
Remove some unused code
2017-06-06 14:38:52 +10:00
Nyall Dawson
d53fa8d2af
Port another alg to new API
2017-06-06 12:36:10 +10:00
Nyall Dawson
7683b25f81
Move getFileFilter from params to gui wrappers
2017-06-06 07:41:20 +10:00
Nyall Dawson
7f687345f8
[FEATURE][processing] Add checkbox for each vector input layer
...
to control whether selected features only are to be used
Replaces the old global setting and makes it immediately obvious
to users when the selection will be respected
2017-06-06 07:41:20 +10:00
Nyall Dawson
770c45da12
Rename QgsProcessingParameterVectorLayer to QgsProcessingParameterFeatureSource
...
Helps abstract away sources to allow non vector layer sources in future
2017-06-06 07:41:20 +10:00
Nyall Dawson
a951424287
QgsProcessingParameterVectorLayer accepts lists of vector layer types
2017-06-06 07:41:19 +10:00
Nyall Dawson
28f7a8b7e1
Move expression context generation out of parameters
2017-06-06 07:41:19 +10:00
Nyall Dawson
416770b197
Remove no longer required _resolveLayers method
2017-06-06 07:41:19 +10:00
Nyall Dawson
c1d9d57dd2
First working pure c++ algorithms
2017-06-06 07:41:19 +10:00
Nyall Dawson
4cb7d18b1c
Push parameters into processAlgorithm and related functions
2017-06-06 07:41:19 +10:00
Nyall Dawson
9997ab6e1e
Partially port wrappers to QgsProcessingParameterDefinition
...
And create a new WidgetWrapperFactory for creating a suitable wrapper
corresponding to a parameter
2017-06-06 07:41:19 +10:00
Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +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
Denis Rouzaud
be9a51c42d
sipify QgsMapLayerModel, QgsMapLayerProxyModel
2017-04-19 16:44:36 +02:00
Nyall Dawson
377b181c4e
Port more processing dataobjects methods to c++
...
Also
- simplify and add tests
- remove large memory leak (persistant store of all non-project layers)
- remove broken support for direct loading postgres/virtual layers
by string (Python version was very broken and would never match
a postgres/virtual layer)
2017-04-05 19:50:46 +10:00
Nyall Dawson
8ffdb362cc
Port some processing dataobjects routines to c++
2017-04-05 15:27:17 +10:00
Nyall Dawson
ce7180ca64
[processing] Default to current layer in layer selection combos
...
Makes things easier for large projects and avoids scrolling through
a large list of layers
2017-03-21 10:26:58 +10:00
Matteo Ghetta
3bcf287a7e
Processing tests ( #4259 )
...
* [processing] qgis regular points test
* [processing] qgis shape buffer variable tests
* [processing] qgis create grid lines test
* [processing] qgis convert geometry test
* [processing] qgis extract by location test
* [processing] qgis add field test
* [processing] trying to fix travis failing
* [processing] trying to fix travis failing/2
* trying to fix travis failing/3
* [processing] Add new default option "ProjectCrs" to ParameterCrs
* [processing] RegularPoints tests shouldn't rely on iface
* [processing] Fix regular points test
* [processing] RandmPointsExtent new CRS parameter
* [processing] qgis random point in extent test
* [processing] qgis random point in extent test/2
* [processing] remove qgis random point in extent test
* no output random points in extent test
* remove useless output
2017-03-16 16:42:53 +01:00
Juergen E. Fischer
ecc5bb508e
pep8/pyflakes3 cleanups
2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Nyall Dawson
5312965e61
Rename projection selection widgets and cleanup API
...
The current names for QgsProjectionSelector and
QgsGenericProjectionSelector are confusing
2017-02-28 09:45:31 +10:00
Alexander Bruy
441f6e6e6e
Merge pull request #4120 from arnaud-morvan/processing_fix_boolean_wrapper
...
[processing] fix boolean widget wrapper in batch dialog
2017-02-16 14:45:25 +02:00
volaya
cdb35d6288
Merge pull request #4119 from arnaud-morvan/processing_postgis_wrappers
...
[processing] Add PostGIS widget wrappers
2017-02-16 11:12:30 +01:00
Alexander Bruy
cc1adc528e
[processing] handle case when default CRS is None and parameter is not optional
2017-02-10 17:39:45 +02:00
arnaud.morvan@camptocamp.com
f07154b613
[processing] Remove obsolete GeometryPredicateWidgetWrapper
2017-02-10 11:16:38 +01:00
arnaud.morvan@camptocamp.com
337d1889b8
[processing] Use ExpressionWidgetWrapperMixin in StringWidgetWrapper
2017-02-10 11:14:34 +01:00
arnaud.morvan@camptocamp.com
c768edf9d1
[processing] Add postgis widget wrappers
2017-02-10 11:01:41 +01:00
arnaud.morvan@camptocamp.com
dda667023a
[processing] Add class ExpressionEnabledWidgetWrapper
2017-02-09 17:04:58 +01:00
arnaud.morvan@camptocamp.com
482aadc495
[processing] Add possibility to pass additionnal parameters to widget wrapper
2017-02-09 16:12:16 +01:00
arnaud.morvan@camptocamp.com
3a12f2a0b6
Fix Boolean widget wrapper in batch dialog
2017-02-09 11:14:05 +01:00
Juergen E. Fischer
a61b9222de
Qt 5.2 has QComboBox::currentData
2017-01-25 03:28:53 +01:00
nirvn
c365439140
[processing] fix error in MultipleInputWidgetWrapper
2016-12-20 14:38:52 +07:00
volaya
0035c97f5b
Merge pull request #3725 from arnaud-morvan/processing_geometry_predicate
...
[processing] Remove parameter geometry predicate
2016-12-13 15:58:16 +01:00
arnaud.morvan@camptocamp.com
322a565b8b
[processing] Remove ParameterGeometryPredicate
2016-12-12 15:21:16 +01:00
arnaud.morvan@camptocamp.com
65a4e97a75
[processing] Support options as (value, text) in ParameterSelection
2016-12-12 15:12:55 +01:00
Nyall Dawson
bef5b5ed68
[processing][heatmap] custom parameter/widget for output resolution
...
Matches current behaviour of c++ heatmap plugin
2016-12-07 12:23:58 +10:00
Alexander Bruy
2fea23f1e5
Merge pull request #3779 from volaya/rastercalculator
...
[processing] add native raster calculator
2016-12-05 20:03:23 +02:00
volaya
16da906398
[processing] allow multiple selection of tables
2016-12-05 13:39:38 +01:00
volaya
fcc343724e
[processing] some fixes and changes in parameters and parameters panel
2016-12-01 12:50:27 +01:00