46950 Commits

Author SHA1 Message Date
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
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
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
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
97615515c5 Remove plugin builder code
Plugin builder is an external plugin which is maintained very well through the plugin repository, while the script in here lacks this attention.
The script in here is targetted at C++ code in which plugins are nowadays very rarely written (and doing so is even discouraged) and if someone still wants to do that he will likely just copy another existing C++ plugin as template.
2018-04-09 09:43:14 +02:00
Matthias Kuhn
bff8976f3a
Merge pull request #6753 from m-kuhn/textbrowser
Allow clicking hyperlinks in HTML text edit widget
2018-04-09 09:23:42 +02:00
Matthias Kuhn
4a14a36034 Remove leftover method getCustomModelerParametersDialog 2018-04-09 09:15:15 +02:00
Nyall Dawson
e627b84fae Address clazy warnings in qgsgeometry.cpp 2018-04-09 17:12:11 +10:00
Nyall Dawson
0156656882 [processing] Throw exceptions when sources/sinks cannot be loaded
Instead of silently indicating algorithm success
2018-04-09 16:52:41 +10: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
Nyall Dawson
887db6e7b2 Better SVG downloading icon 2018-04-09 12:43:05 +10:00
Nyall Dawson
9c28c910ad Spelling 2018-04-09 12:43:05 +10:00
Nyall Dawson
3bfcbaa163 Update unit tests 2018-04-09 12:43:05 +10:00
Nyall Dawson
2e6a69bdfd Update symbol selector when svg cache fetches remote images 2018-04-09 12:43:05 +10:00
Nyall Dawson
969b129b6e Also update symbol previews when a remote SVG is fetched 2018-04-09 12:43:05 +10:00
Nyall Dawson
45c400c25c QgsSvgCache fetches remote SVG files in a background task
Previously QgsSvgCache would often try to fetch remote images
using a network request on the main thread, by calling
processEvents repeatedly until the request was complete.

This caused lots of bugs, since the main thread processEvents
would proceed with all kinds of stuff assuming that the
svg fetch operation was complete, leading to frequent crashes
and deadlocks and making remote svg use impossible (it's
likely that the SVG cache remote fetching code was written
in the pre-multi-threaded rendering era).

There's no way to fix this with async svg fetching - we
HAVE to remove the processEvents call, and a QEventLoop
won't help either (since the method may be called on the
main thread). Accordingly the only solution is to
fetch the requested svg in the background, and return
a temporary "downloading" svg for use in the meantime.
We use a QgsNetworkContentFetcherTask to do this, so it's
nicely integrated with task manager.

A request task is fired up when a remote svg is requested
for the first time, with the temporary downloading svg
returned for use by the caller asynchronously. QgsSvgCache
then emits the remoteSvgFetched signal when a previously
requested remote SVG has been successfully fetched,
triggering a map canvas redraw with the correct SVG
graphic.

Fixes #18504
2018-04-09 12:43:05 +10:00
Nyall Dawson
3dec1755b6 [processing][grass] Allow operation on only selected vector features
Fixes #18218
2018-04-09 10:58:41 +10:00
Nyall Dawson
92634a9d92 [processing][grass] Allow use of feature sources as vector inputs 2018-04-09 10:58:41 +10:00
Nyall Dawson
b28e580a79 Indentation 2018-04-09 10:58:41 +10:00
Nyall Dawson
8b04188230 Don't use hardcoded paths in test 2018-04-09 10:58:41 +10:00