53462 Commits

Author SHA1 Message Date
Alessandro Pasotti
de5171ac89 Code style (I had autopep8 installed btw) 2019-02-05 08:38:40 +01:00
Alessandro Pasotti
cd6ce76480 Quick and dirty patch to DB-Manager after PR 8831
The "comments" PR 8831 added support for postgres only
(and broke all the others backends).

I'd be in favor of a revert of the whole original PR but
this patch restores functionality and could be an acceptable
temporary fix until the comments PR is reworked in a more
maintainable and elegant way.

Fixes #21151 btw
2019-02-04 18:26:24 +01:00
Juergen E. Fischer
9a8c0d2898 avoid OSRFixup with GDAL >= 2.5 2019-02-02 00:35:36 +01:00
Etienne Trimaille
122d5c3efd fix some PEP8 in Processing Model as python code 2019-02-02 09:29:58 +11:00
Etienne Trimaille
6a8ba52cb3 fix typo and HIG 2019-02-02 09:29:58 +11:00
Martin Dobias
54daf1ac98 Enable/disable actions for mesh layer in main app window 2019-02-01 19:29:41 +01:00
Martin Dobias
c1d1068923 Add #spellok for a false positive in spelling test 2019-02-01 15:58:34 +01:00
Martin Dobias
cfa40ed522 Improvements to the right-click behavior to pick locked feature
- unlock feature on right-click in an empty area
- allow selection of locked feature by right-click on polygon interior
  (in addition to polygon rings)
- highlight polygons when mouse moves in their interior - this should also
  decrease the blinking effect as the highlight is more consistent
2019-02-01 15:58:34 +01:00
Martin Dobias
39887e72bf Small code cleanup to warm up 2019-02-01 15:58:34 +01:00
Matthias Kuhn
495568ae5f
Merge pull request #9059 from daniviga/grass76-rpm
[RPM] GRASS 7.6 support for F30+
2019-02-01 15:45:31 +01:00
Peter Petrik
3103b00f00
fix identify for mesh layers (#9047) 2019-02-01 15:18:26 +01:00
Nyall Dawson
4495699bfe Fix blocking request cancelation after a redirect occurs 2019-02-01 21:44:53 +11:00
Nyall Dawson
150668dda8 Remove leftover buffer size code (credit to @nirvn) 2019-02-01 21:44:53 +11:00
Nyall Dawson
8bcd46c42b Only show host (not lengthy url) in message bar timeout messages 2019-02-01 21:44:53 +11:00
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
Daniele Viganò
3425b7c3c2
[RPM] Add a TODO about deprecated scriptlets 2019-02-01 09:43:07 +01:00
Daniele Viganò
8f9377dc93
[RPM] Add support for GRASS 7.6 as required by F30+ 2019-02-01 09:12:19 +01: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