Nyall Dawson
b1cadb1822
Use generic algorithm icon for qgis algorithms which do not
...
have specific icons, instead of generic qgis icon
We consider these 'top level' algorithms, and using the
standard algorithm icon should help reflect this and
differentiate them from 3rd party algorithms.
2017-06-24 12:01:20 +10:00
Nyall Dawson
81855a715b
Use FastInsert when adding features from processing
2017-06-23 14:34:38 +10:00
Nyall Dawson
99cfb8faf3
Fix processing algs crash when no source features exist
...
Instead we output an empty layer - this may be critical for
multi-step models where there is validly no features present
in a source layer
2017-06-23 13:49:32 +10:00
Nyall Dawson
f64f74fb63
Fix incorrect import
2017-06-06 13:41:42 +10:00
Nyall Dawson
4cb7d18b1c
Push parameters into processAlgorithm and related functions
2017-06-06 07:41:19 +10:00
Nyall Dawson
77ab933788
Move alg character definitions to __init__
2017-06-06 07:41:19 +10:00
Nyall Dawson
168f16276c
Remove help related methods from GeoAlgorithm
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
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
adc7cf0ec2
Add context argument to vector.features
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
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
a0bd464232
Use formatted name for algorithm names
...
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00
Nyall Dawson
6987d7b37c
Port handling of algorithm names to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
dc729c1b5a
Move algorithm group handling to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
faa8a653b2
Move algorithm icon handling to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a
update translation strings
2017-03-05 10:21:24 +01:00
Nyall Dawson
af0d68b882
Implement QgsGeometry::isEmpty()
...
Faster than QgsGeometry::isGeosEmpty() because it avoids the
conversion to GEOS geometries and just uses the QgsAbstractGeometry
subclasses directly.
Also implements faster isEmpty() overrides for specific
QgsAbstractGeometry subclasses.
2017-01-31 07:15:51 +10:00
Nyall Dawson
ede452be85
[processing] Port feedback object to c++
...
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
arnaud.morvan@camptocamp.com
4184934b9a
[processing] Apply 2to3 on changes
2016-10-05 12:39:01 +02:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00
Alexander Bruy
65db336eaf
[processing] move some constants to the dataobjects module
2016-09-02 09:28:45 +03:00
Alexander Bruy
e7fe61e6b9
[processing] load algorithms only when requred 3rd party modules are
...
available or compatible QGIS version is used
Some housekeeping in QGIS algorithms provider
2016-02-17 14:46:02 +02:00
arnaud.morvan@camptocamp.com
3bc11b1947
Revert crs.ImportFromProj4(unicode(...)) to crs.ImportFromProj4(str(...))
2015-10-20 17:19:27 +02:00
Juergen E. Fischer
b39055b39c
indentation update (now including autopep8)
2015-08-22 14:29:41 +02:00
Matthias Kuhn
9fc1b48bf3
Replace str() with unicode() and some PEP 8
2015-08-16 20:58:43 +02:00
Juergen E. Fischer
66a3d02240
integrate processing into update_ts.sh (also includes all translations
...
in the repository and none outside of it).
2015-07-26 04:28:37 +02:00
pcav
7dacddc08a
Uniform and informative output names for Processing (QGIS, Take #1 )
2015-05-22 15:56:45 +02:00
Juergen E. Fischer
f9c6302f6e
translation string fix
2015-03-01 14:41:44 +01:00
Alexander Bruy
a41094d42e
[processing] correctly handle tiny polygons smaller than raster cell
...
size in Hypsometric curves algorithm (fix #12278 )
2015-02-26 21:06:59 +02:00
Juergen E. Fischer
956c155e8f
fix python pep8 warnings and fix some revealed errors
...
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
--exclude="ui_*.py,debian/*,python/ext-libs/*" \
.
2015-02-01 20:46:47 +01:00
Alexander Bruy
ad758aa8db
[processing] i18n for qgis provider
2015-01-17 11:24:54 +02:00
Alexander Bruy
1c6aa9b373
[processing] add hypsometric curves calculation algorithm
2014-11-19 12:02:20 +02:00