Martin Dobias
49b02bf562
[FEATURE] Legend: optional text on top of symbols for vector layers
...
In some cases it is useful to add extra information to the symbols in the legend.
This work allows definition of additional labels in vector layer properties > Legend tab.
2018-04-18 21:52:56 +02:00
Martin Dobias
721c536185
Merge branch 'master' into overlay-alg-fixes-1
2018-04-18 14:16:50 +02:00
Martin Dobias
45b264db08
Fixes after review
2018-04-18 13:04:05 +02:00
Nyall Dawson
0e0e133c7d
[FEATURE][processing] Add sort order option to Add Incremental Field alg
...
This allows users to optionally set a sort order to use when
assigning values in the Add Incremental Field algorithm.
Previously values were always added using the original feature
order. With this change users can control the order in which
features are assigned values.
2018-04-18 20:50:37 +10:00
Matthias Kuhn
eab76e85c7
Merge pull request #6335 from Fanevanjanahary/crs_widget
...
use crs widget picker in db_manager
2018-04-18 12:12:26 +02:00
Martin Dobias
4f829fde62
Port Intersection algorithm to C++, cleanups and tests
...
Finally starting a suite of unit tests for overlay algorithms:
- overlay1 - layers that cover various basic overlay situations
- overlay2 - layers where one input has self-intersecting polygons
- overlay3 - layers where intersections return different geometry types
2018-04-17 19:12:58 +02:00
Alexander Bruy
90c65405fd
[processing] use parameter description instead of name when retrieving
...
parameter from the registry
2018-04-17 11:09:30 +03:00
Martin Dobias
322bc78755
Merge pull request #6782 from wonder-sk/required-layers
...
Mark layers as required in the project
2018-04-13 11:31:43 +02:00
Nathan Woodrow
76843be62d
[BUGFIX][needs-docs] Allow expression parser to report better error location
...
We return the line and column to allow builder to highlight
that location for the user.
2018-04-13 07:45:48 +10:00
matteo
b6242b4a58
rename algorithm name in template script
2018-04-13 06:47:56 +10:00
Martin Dobias
42517f8b58
[FEATURE] Mark layers as required in the project
...
Required layers are not allowed to be removed from the project.
This adds extra safety to protect project users from removing layers
they may think are not needed (e.g. used in joins, relations, expressions).
Users can set/unset layers that are required in project properties dialog.
2018-04-11 15:48:49 +02:00
Martin Dobias
3400199eb8
[FEATURE] Map themes: store also expanded/collapsed state of nodes
...
Each map theme will also record which layers, groups and legend items are expanded,
so when a map theme is selected, the expanded/collapsed states get applied in the layer tree.
2018-04-11 09:04:23 +02:00
Matthias Kuhn
29b080fce3
Merge pull request #6754 from m-kuhn/processing_filter_algorithm
...
[FEATURE] Feature filter algorithm for processing models
2018-04-11 08:29:12 +02:00
Nyall Dawson
d5573a5a7b
[processing] Use silent feedback by default in processing.run
...
Relying on the iface messagebar feedback as a fallback is not
safe for standalone scripts. If callers want to use a message
bar feedback they should specify this feedback object specifically
when calling processing.run
2018-04-11 09:47:34 +10:00
Matthias Kuhn
ffb2817afb
Protect the const-ituional correctness
2018-04-10 23:10:35 +02:00
Nyall Dawson
37295ec48e
Expose extra arguments to QgsGeometry::transform
...
Previously these were only available via the raw QgsAbstractGeometry
API.
Also add more unit tests for QgsGeometry::transform
2018-04-10 17:49:18 +10:00
Nyall Dawson
405d8f29d4
[processing] Skip more unnecessary geometry checks
2018-04-10 12:27:46 +10:00
Nyall Dawson
0a1a6769d2
Fix build with Qt 5.5
2018-04-10 10:15:19 +10:00
Nyall Dawson
f66993edbb
More hash updates
2018-04-10 09:57:58 +10:00
Nyall Dawson
fc133ef578
Update tests for travis
2018-04-10 09:57:58 +10:00
Nyall Dawson
7544cdb2ee
[processing][grass] Disable some failing tests
2018-04-10 09:57:58 +10:00
Nyall Dawson
e83cd6155f
[processing] Better debugging for failed tests
2018-04-10 09:57:58 +10:00
Nyall Dawson
20bbef3800
[processing][grass] Fix broken r.lake algorithm
2018-04-10 09:57:58 +10:00
Nyall Dawson
cba395e8c4
[processing][grass] Fix broken r.his algorithm
2018-04-10 09:57:58 +10:00
Nyall Dawson
89a3dd5e15
[processing][grass] Fix broken r.cost algorithm
2018-04-10 09:57:58 +10:00
Nyall Dawson
f03baa871a
[processing][grass] Don't try to create skipped optional outputs
2018-04-10 09:57:58 +10:00
Nyall Dawson
ee185cce4d
[processing] Fix python runAlgorithm when algorithm has missing optional outputs
2018-04-10 09:57:58 +10:00
Nyall Dawson
60efbb539e
[processing][grass] Fix broken r.li.renyi.ascii alg
2018-04-10 09:57:58 +10:00
Nyall Dawson
1fc5a0e597
[processing][grass] Fix broken r.statistics alg
2018-04-10 09:57:58 +10:00
Nyall Dawson
41a27f700f
Attempt SAGA tests on Travis
2018-04-10 09:57:58 +10:00
Nyall Dawson
ea24847adf
[processing] Try to resurrect grass tests
2018-04-10 09:57:58 +10:00
Matthias Kuhn
02da420ea4
Add a remaining docstring
2018-04-09 22:24:12 +02:00
Matthias Kuhn
d7b75d1e99
Immediately apply configuration after change
2018-04-09 13:10:49 +02:00
Matthias Kuhn
f06f65285d
Fix api doc and sip issues
2018-04-09 13:10:48 +02:00
Matthias Kuhn
641cbe3765
fixup testdata
2018-04-09 13:10:48 +02:00
Matthias Kuhn
af18f46c85
Add filter feature processing test
2018-04-09 13:10:48 +02:00
Matthias Kuhn
ef676cffc8
Make models available in processing tests
2018-04-09 13:10:48 +02:00
Matthias Kuhn
dbced352b8
Fix use before assign
2018-04-09 13:10:48 +02:00
Matthias Kuhn
3d9b8bbd69
Add missing docstring
2018-04-09 13:10:48 +02:00
Matthias Kuhn
2378a37dc1
API doc and typo fixes
2018-04-09 13:10:48 +02:00
Matthias Kuhn
eb39d2379c
Move processing algorithm configuration code to gui lib
2018-04-09 13:10:47 +02:00
Matthias Kuhn
3be4324d60
Move processing algorithm configuration widget to gui library
...
This way we can also use all the fancy widgets like a QgsExpressionLineEdit.
2018-04-09 13:10:47 +02:00
Matthias Kuhn
147f6e71c4
[FEATURE] Add feature filter algorithm
...
Adds a new "feature filter" algorithm. This algorithm takes a list of expressions and
creates an output for each of them. Matching features from the input layer are sent
to the outputs.
This allows for an algorithm to only handle a subset of incoming features or to send
different features to different outputs.
The algorithm is only available in the modeler.
2018-04-09 13:10:47 +02:00
Matthias Kuhn
e6ef7639cb
[processing] Allow algorithms to provide additional configuration widgets
2018-04-09 13:10:46 +02:00
Matthias Kuhn
9e8c995ac8
[processing] Pass algorithm configuration on run
...
Because if it's not passed here, it's basically like writing it to /dev/null right from the beginning.
2018-04-09 12:34:35 +02:00
Matthias Kuhn
5b7b7be6e7
Merge pull request #6755 from m-kuhn/minimal_processing_fixes
...
Some fixes for processing
2018-04-09 12:34:03 +02:00
Martin Dobias
f378a23ed8
[FEATURE] Projects in PostgreSQL
...
Merge of pull request #6752
2018-04-09 09:53:16 +02:00
Matthias Kuhn
4a14a36034
Remove leftover method getCustomModelerParametersDialog
2018-04-09 09:15:15 +02:00
Matthias Kuhn
e2bf9b9db1
Merge pull request #6716 from signedav/fix_embeddedrelation
...
Use always id as identification on drag&drop form creator for relations
2018-04-09 08:52:01 +02:00
Nyall Dawson
7fa9d4120a
[processing] Fix Distance Matrix alg considers distances to
...
same points
Add more unit tests
Fixes #17350
2018-04-09 12:48:50 +10:00