46988 Commits

Author SHA1 Message Date
Martin Dobias
45b264db08 Fixes after review 2018-04-18 13:04:05 +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
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
Denis Rouzaud
9dc3ee4fa0
fix logical block with mis-matching arguments 2018-04-10 20:45:29 -04: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
fbb4ef5ad7 Add processing gui tests 2018-04-10 23:11:17 +02:00
Matthias Kuhn
ffb2817afb Protect the const-ituional correctness 2018-04-10 23:10:35 +02:00
Nyall Dawson
bf0c4f9413 [processing] Accept strings of form "(1,2") for point parameters too
Since the help text above a point parameter indicates the acceptable
format is "(x, y)", it can be confusing for users to know whether
the brackets should be entered here. So be forgiving and accept
strings with or without brackets.

Refs https://gis.stackexchange.com/questions/278765/how-do-i-enter-start-point-in-shortest-path-algorithm-in-qgis-3-0-1
2018-04-11 04:56:12 +10:00
rldhont
c625f95bef [BUGFIX][Server] Segfault in WFS GetCapabilities 2018-04-10 13:55:50 +02:00
Martin Dobias
4a885e6e9c Misc project storage fixes from Nyall's testing
- fix a crash when opening a project from unavailable connection
- make some messages in postgresql project storage translatable
- show the reason why a project was not read/written in storage if there is a message available
- push a message when reading a project that does not exist in postgresql storage
2018-04-10 11:28:34 +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
1357a4716a [processing] Fix Select/Extract by Location algs with PostGIS layers
Fixes #18038
2018-04-10 16:55:41 +10:00
Nyall Dawson
b8e8541f0b Fix build on Qt 5.5 2018-04-10 16:53:43 +10:00
Matthias Kuhn
1aa7bbc285
Merge pull request #6604 from 3nids/prefixpath
fix QgsApplication::setPrefixPath
2018-04-10 06:43:54 +02: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
3455c13fa0 Don't remove python 2 from docker build-deps
Since grass package still depends on it
2018-04-10 09:57:58 +10:00
Nyall Dawson
7d66f034ad Add saga to docker build-deps 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
3f7042d104
Merge pull request #6768 from m-kuhn/remove_plugin_builder
Remove plugin builder code
2018-04-09 22:33:23 +02:00
Matthias Kuhn
02da420ea4 Add a remaining docstring 2018-04-09 22:24:12 +02:00
Matthias Kuhn
925d9af93f [processing] Remove some unrequired geometry checks 2018-04-10 06:09:54 +10:00
Matthias Kuhn
605ef7d829 Remove plugin_template 2018-04-09 18:02:35 +02:00
Denis Rouzaud
810241ffca one level deeper 2018-04-09 10:27:31 -04:00
Denis Rouzaud
304275ab01 fix QgsApplication::setPrefixPath
setPrefixPath was useless outside of the app since mPrefixPath was overwritten by env variables
2018-04-09 10:23:47 -04:00
Matthias Kuhn
41b47a297f Add more feature filter algorithm tests 2018-04-09 13:10:49 +02:00
Matthias Kuhn
6dd89b5675 Really do not care about invalid geometries
in feature filter algorithm. We just leave the geometry alone in whatever
state it may be. If the consumers of our features have a problem with that,
let them take care of it. Just because THEY do not like invalid geometries
does not mean WE have to adjust our behavior here.
2018-04-09 13:10:49 +02:00
Matthias Kuhn
d7b75d1e99 Immediately apply configuration after change 2018-04-09 13:10:49 +02:00
Matthias Kuhn
8d9a978e9f Properly initialize filter configuration table 2018-04-09 13:10:49 +02:00
Matthias Kuhn
4462dbae12 Do not complain on invalid geometries 2018-04-09 13:10:49 +02:00
Matthias Kuhn
ae1ea91801 Better error reporting 2018-04-09 13:10:49 +02:00
Matthias Kuhn
080c5804e7 Rename "Filter" to "Feature Filter" 2018-04-09 13:10:49 +02:00
Matthias Kuhn
17b537249b Show expression builder and checkbox in filter configuration 2018-04-09 13:10:49 +02:00
Matthias Kuhn
bb9154963a Plug memory leak 2018-04-09 13:10:48 +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
4ee7f3c5f4 for : in 2018-04-09 13:10:48 +02:00