53446 Commits

Author SHA1 Message Date
Nyall Dawson
742acf1923 [afs] Don't render in preview jobs
These servers can be sloooooooow, and unpredictable.
The previous preview job may have been fast to render,
but the next may take minutes or worse to download...
2019-02-01 21:44:53 +11:00
Nyall Dawson
03a2a03dcf Dox 2019-02-01 21:44:53 +11:00
Nyall Dawson
630cd02121 Update WFS request to accomodate changes in QgsNetworkAccessManager
Because the manager now handles waking up worker threads after
an authentication request, the WFS request handler no longer needs
to do this itself.
2019-02-01 21:44:53 +11:00
Nyall Dawson
4908ef1641 Revert "Revert QgsBlockingNetworkRequest"
With recent changes in QgsNetworkAccessManager this should be
safe to resurrect (fingers crossed!). Also simplify code a lot,
because now QgsNetworkAccessManager handles waking the worker
thread after the auth request is handled.

Add a lot more tests
2019-02-01 21:44:53 +11:00
Nyall Dawson
c03ce93011 Allow use of local httpbin instances in unit tests 2019-02-01 21:44:53 +11:00
Nyall Dawson
f1040efc03 Nicer API for network timeouts 2019-02-01 21:44:53 +11:00
Nyall Dawson
dcb6104f47 Dox++ 2019-02-01 21:44:53 +11:00
Nyall Dawson
18941a1aa2 Fix timeout in network timeout tests 2019-02-01 21:44:53 +11:00
Nyall Dawson
d0c24edf7d Import more useful libraries into console by default 2019-02-01 21:44:53 +11:00
Nyall Dawson
cc6d88e265 Add signal for logging after network authentication details have been added 2019-02-01 21:44:53 +11:00
Nyall Dawson
8ee2e793f8 Make network authentication request handling thread safe, avoid
races and crashes when auth requests occur in non-main thread

Like the recent SSL error handling, this commit abstracts out
the network authentication handling into a thread safe approach.
2019-02-01 21:44:53 +11:00
Nyall Dawson
6fa3bf8e8b Allow vector rendering cancelation to also cancel feature iteration for that request
Connect the cancel rendering signal to the iteration cancelation.
This allows providers (e.g. WFS, AFS) to abort slow network requests
when they have been triggered by a render request and that request
is no longer required.

Allows much faster quit, render cancelation when using WFS/AFS layers.
2019-02-01 21:08:56 +11:00
Nyall Dawson
4f8e2317d7 [processing][saga] Fix definition of Multiple regression points/grids alg
Fixes #21146
2019-02-01 21:06:16 +11:00
Nyall Dawson
56e465cc8a [processing][needs-docs] Resurrect ability to convert models to scripts
Brings back QGIS 2.18's ability to directly convert a Processing model
to an equivalent Processing Python script algorithm, correctly
updated and working in the 3.x API.

Available from the model dialog, and from the right-click context
menu on an existing model.

Sponsored by Solspec
2019-02-01 17:54:28 +11:00
Nyall Dawson
bc76678e74 Fix multiline description strings 2019-02-01 17:54:28 +11:00
Nyall Dawson
f77cf4fae4 [processing] Formalise object design for ContextAction, allow icons to be set 2019-02-01 17:54:28 +11:00
Nyall Dawson
9b2e60130f [processing] Update QgsProcessingModelAlgorithm::asPythonCode for 3.x API 2019-02-01 17:54:28 +11:00
Nyall Dawson
fb519ead46 Update QgsProcessingModelChildAlgorithm::asPythonCode for 3.x API 2019-02-01 17:54:28 +11:00
Nyall Dawson
946687c87b Update QgsProcessingModelChildParameterSource::asPythonCode 2019-02-01 17:54:28 +11:00
Nyall Dawson
37774f9aa9 [processing] Add util to convert QVariant value to Python literal 2019-02-01 17:54:28 +11:00
Nyall Dawson
ffa49df9fb Fix misleading dox 2019-02-01 17:54:28 +11:00
Alexander Bruy
ecd306e079
Merge pull request #9046 from alexbruy/grass-v-net
fix GRASS v.net modules (fix #19904) [processing]
2019-02-01 08:03:23 +02:00
Denis Rouzaud
f66d1999af add SIP_DEPRECATED 2019-01-31 15:27:50 -05:00
Denis Rouzaud
2fbdac09ea remove Q_FOREACH 2019-01-31 15:27:50 -05:00
Denis Rouzaud
3d57a93ffe fix typo in method name
rename method but keep old one in Python for API compatibility
2019-01-31 15:27:50 -05:00
Peter Petrik
7a12f11392 fix when GDALGetRasterScale returns 0 (gdal 2.3 affected for some datasets) 2019-02-01 06:56:26 +11:00
Alexander Bruy
85e3b2db6e [processing] fix v.net.report and v.net.nreport 2019-01-31 16:31:35 +02:00
Alexander Bruy
b9f559ee04 [processing] fix broken stdout handling in GRASS algs (fix #21142) 2019-01-31 15:54:08 +02:00
Alexander Bruy
a911ef3367 [processing] fix output generation in v.net and add test 2019-01-31 15:54:08 +02:00
Alexander Bruy
dbe2cb73ad [processing] add test for v.net.distance algorithm 2019-01-31 15:54:08 +02:00
Alexander Bruy
3abea36000 [processing] snap points to network by default (fix #19904)
Kudos to Pedro Venâncio for finding solution for this bug
2019-01-31 15:54:08 +02:00
Hugo Mercier
c3819e88dc
Merge pull request #9036 from mhugo/fix_19909
Fix vertex marker display for multipolygon (fixes #19909)
2019-01-31 10:21:28 +01:00
Nyall Dawson
679b60e366 [processing][needs-docs] Extract binary field algorithm should use
an expression parameter instead of string for destination file name

It makes no sense to enter a constant string value here!
2019-01-31 19:29:47 +11:00
Peter Petrik
ebcc694ab1
fix #18954 add&rename vector fields (#8982)
fix #18954 add&rename vector fields at the same time
2019-01-31 09:20:49 +01:00
Peter Petrik
44c4e8cca0 fix #17652 Impossible to rename a layer style from the Styling Panel 2019-01-31 08:39:50 +01:00
Nyall Dawson
4f6df2980f [processing] Fixes to distance inputs for models
- fix parameter can get converted to plain number parameter after edits
- allow parameter to be linked to parent parameters, so that the
correct distance unit and choices are shown for the parameter
2019-01-31 17:53:25 +11:00
Nyall Dawson
5bfec27938 [processing] do not show geometryless layers in extent selector
Fixes #21129
2019-01-31 17:52:29 +11:00
Nyall Dawson
e670371fa3 [layouts] Show an explicit warning when exporting a layout which contains a broken image 2019-01-31 10:02:18 +11:00
Shahzad Lone
4559d9e496 Reserve vector - to minimize reallocation costs
Reserving vector to save on reallocation costs, where we know the size in advance.
2019-01-31 09:56:48 +11:00
lbartoletti
2e92dabd20 [Processing][Grass] Add the possibility to return a shp if ogr is not compiled with gpkg 2019-01-31 09:55:29 +11:00
Hugo Mercier
389149c8dc Fix vertex marker display for multipolygon (fixes #19909)
The i == 0 test was wrong, and a test is actually not needed.
2019-01-30 15:31:23 +01:00
Alexander Bruy
662af5cf79
Merge pull request #9003 from alexbruy/grass-vector-export
[processing][needs-docs] allow to exclude features without category from GRASS export
2019-01-30 14:35:08 +02:00
Hugo Mercier
fa1f8762d5
Merge pull request #9033 from mhugo/fix_20831
Fix "Allow null" in range widget (fixes #20831)
2019-01-30 13:32:00 +01:00
Hugo Mercier
eb5a3367b6 Fix "Allow null" in range widget (fixes #20831)
By default a range widget is built with a minimum value set to the
minimal integer that is possible to represent. When "allow null" is
enabled, a new value (minvalue - 1) is inserted. With the default
value, we then had an integer overflow.
2019-01-30 10:39:47 +01:00
Martin Dobias
3769faa86b [vertex tool] Fix vertex addition to polygon's first segment (fixes #20774)
With topo editing mode enabled, addition of extra points to keep the topology
correct wasn't working correctly because for the first segment we were getting
two matches due to duplicated first and last vertex in the ring. The fix
ensures that only one match will be returned for the first duplicated vertex.
2019-01-30 10:23:36 +01:00
Alexander Bruy
19dcfb987b don't export features without category by default 2019-01-30 10:40:29 +02:00
Peter Petrik
606359117b
allow to drop 2dm files from system file browser (#8987)
* allow to drop 2dm files from system file browser
* support non-ascii files for mesh layer
2019-01-30 08:49:37 +01:00
Alessandro Pasotti
1686f0d084 Followup 1f8708f, fix src / scheme detection
Thanks @nirvn for finding this bug
2019-01-30 08:12:33 +01:00
Alexander Bruy
0cc483f621 set default value for newly added parameter 2019-01-30 08:12:22 +02:00
Alexander Bruy
67bc586036 fix formatting 2019-01-30 08:12:22 +02:00