7209 Commits

Author SHA1 Message Date
Blottiere Paul
3f38365d4d Add unit test for json exporter and alias 2019-01-28 11:42:14 +00:00
Blottiere Paul
562215c4cd Add unit test 2019-01-28 11:42:14 +00:00
Nyall Dawson
18f04fb4c3 Refactor to simply and avoid QObject based QgsSslErrorHandler 2019-01-28 15:21:40 +11:00
Nyall Dawson
0f0ee9bd51 More SSL error handling tests 2019-01-28 15:21:40 +11:00
Nyall Dawson
b23f08f270 Test ssl errors in background thread 2019-01-28 15:21:40 +11:00
Nyall Dawson
c707df7d15 Improve QgsNetworkAccessManager tests 2019-01-28 15:21:40 +11:00
Nyall Dawson
ca06d407a0 Add custom QNetworkRequest::Attributes for initiator network request class name and internal id
And allow these to be retrieved from QgsNetworkRequestParameters.
This allows logging code to identify the area of code where a request
originated from, making debugging much easier!

Tag all requests created with appropriate class name and IDs
2019-01-25 23:47:05 +11:00
Nyall Dawson
431861a468 [processing] Add a better API for specifying that outputs are temporary
Instead of requiring clients to generate temporary file names themselves,
(or use the cryptic "memory:" string!), this PR adds a static constant

    QgsProcessing.TEMPORARY_OUTPUT

If a layer/sink output parameter is set to QgsProcessing.TEMPORARY_OUTPUT,
then the temporary output filename will be generated automatically at
algorithm run time. This means callers don't need to mess around with
finding appropriate temporary folders and paths.

Another benefit is that TEMPORARY_OUTPUT is stored in the processing
history, so if you re-run a previous algorithm which was set to
output to a temporary file, it no longer tries to use that same
previous temporary path and instead generates a new one.
2019-01-25 23:27:08 +11:00
Alessandro Pasotti
ee0e0e1d5d
Merge pull request #8970 from elpaso/bugfix-21077-value-relation-wfs
Fix WFS context fields variable
2019-01-25 09:38:26 +01:00
Alessandro Pasotti
4d134b391b Indentation 2019-01-25 08:18:50 +01:00
Nyall Dawson
60f252c2f2 [layouts] Fix attribute table filtering not utilising expression context
Fixes #21078
2019-01-25 17:02:25 +11:00
Nyall Dawson
009ee572d8 Allow access to content of POST requests in QgsNetworkReplyContent 2019-01-25 11:06:31 +11:00
Alessandro Pasotti
38f05b5974 Fix WFS context fields variable
because the fields in the (spatialite) cached
iterator are not the same as the main iterator.

Fix #21077 - Form Value relation based on WFS layer (nothing to do with
value relations)
2019-01-24 17:48:55 +01:00
Alessandro Pasotti
861a8b7105
Merge pull request #8958 from elpaso/bugfix-20961-wfs-null-transactions
Fix NULL support in WFS server and client
2019-01-24 17:43:27 +01:00
Pierre-Eric Pelloux-Prayer
25f2aba44d Include qgis_sip.h instead of qgis.h where possible (#8961)
This PR continues the work started in PR #8951.

This commit replaces occurences of #include "qgis.h" by #include "qgis_sip.h",
where possible = when files only depends on SIP_XXX features.
2019-01-24 11:33:22 -05:00
Denis Rouzaud
ff20d1800e
Merge pull request #8925 from signedav/basic-values
Enable/disable value relation widget
2019-01-24 11:31:25 -05:00
mhugent
b5febe5189
Merge pull request #8922 from mhugent/server_datasource_error
Server: catch datasource error
2019-01-24 17:27:13 +01:00
Peter Petrik
c90905bd65 fix travis 2019-01-24 16:24:46 +01:00
Julien Cabieces
abda6c42ff fixes #18497 : Correct line size method when snapping multipolygon 2019-01-24 20:55:13 +11:00
signedav
237e0bcb4a additional test enable-state in multi-selection in valueRelation 2019-01-24 10:52:37 +01:00
Alessandro Pasotti
15a81bdf23 Fix OWS project property issue: couldn't unset project title
This is the right behavior, btw there are other issues
in the server component that ignores the main bool
setting WMSServiceCapabilities completely.
2019-01-24 10:15:11 +01:00
Alessandro Pasotti
33788c9416 Fix typo in error message (and related tests) 2019-01-24 09:08:37 +01:00
Alessandro Pasotti
83d5cb61ab Fix linker error in test 2019-01-23 22:45:26 +01:00
Alessandro Pasotti
d7484005e3 Fix WFS client NULL representation
This was nasty and only reproduceable when features
were cached (so, the second time you get them) and
was due to a QVariant( type ) default constructor
for numeric values being initialized to 0, yielding
0 instead of NULL.

Reported in #20961
2019-01-23 22:45:26 +01:00
Alessandro Pasotti
71e01168fe Server WFS NULL values support
- expose nillable in describefeaturetype
- serve xsi:nil="true" in getfeature
- check for NULL in transactions and report an error

Fixes #20961  - plus some other unreported
2019-01-23 22:45:26 +01:00
Alessandro Pasotti
847e7efdca GML parser set NULL values when parsing empty tags
This is part of a bigger fix to support NULL
values in WFS client and server components.
2019-01-23 22:45:25 +01:00
Nyall Dawson
c8fd4ed320 More unit tests for QgsNetworkAccessManager signals 2019-01-24 06:10:37 +11:00
Nyall Dawson
e50d9a1673 Make request a member of reply 2019-01-24 06:10:37 +11:00
Nyall Dawson
aa170ad524 Unit tests for QgsNetworkAccessManager signals 2019-01-24 06:10:37 +11:00
Denis Rouzaud
240f2d2d0c
Merge pull request #8951 from peppsac/compile_time
Compile time
2019-01-23 10:53:28 -05:00
Alessandro Pasotti
49096431bc
Merge pull request #8948 from elpaso/bugfix-20198-server-DescribeFeatureType-typename
Fix server WFS TYPENAME filter in describeFeatureType
2019-01-23 08:45:24 +01:00
Alessandro Pasotti
de29767351
Merge pull request #8950 from elpaso/bugfix-opengis-zug-wmsroot
Fix server WMS short name (unreported)
2019-01-23 08:44:21 +01:00
Julien Cabieces
bdf77ac75a fixes #20893 : Update virtual layer when referenced layer update its fields 2019-01-23 18:24:38 +11:00
Peter Petrik
af2501e73d support also mesh elements with >4 vertices 2019-01-23 07:49:33 +01:00
Pierre-Eric Pelloux-Prayer
1cd7bde104 Do not build images.qrc for tests
Before this commit the qrc_images.cpp was generated for each test listed in
tests/src/gui/CMakeLists.txt but the content is always the same (~300k lines).

The build time for this file is quite significant too: 15sec on my machine.

This commit removes it from the test build process to avoid all this work.
2019-01-22 21:45:38 +01:00
Nyall Dawson
7d7462c333 Fix loss of project when saving to QGZ format and path contains non-ascii chars
Fixes #19567
2019-01-23 03:37:24 +11:00
Nyall Dawson
cccd9766c2 Fix build 2019-01-23 03:37:00 +11:00
Nyall Dawson
85a6b1ac92 Followup map settings variable commit 2019-01-23 03:37:00 +11:00
Alex
f514516d07 Exposing more CRS variables 2019-01-23 03:37:00 +11:00
Nyall Dawson
cb7838badc Silently alias old "$scale" expression function to "@map_scale" (when available)
Allows older projects to open without change. We still hide $scale from the
builder UI, as we eventually want to clamp out its use.
2019-01-23 03:37:00 +11:00
Nyall Dawson
9cf2ff31d8 Fix evaluation of data defined properties for subsymbols of subsymbols
Fixes #18384
2019-01-23 03:36:41 +11:00
Marco Hugentobler
80e75342a7 Add test to ensure server throws exception if layer is invalid 2019-01-22 17:17:19 +01:00
Alessandro Pasotti
4e8898d408 Fix server WMS short name (unreported)
This patch fixes a WMS server bug when "Short name" was
set in project settings for service capabilities.

When the short name was set, it was not possible
to load the whole WMS by selecting the root
layer named after the short name.

With tests for both cases (with and without short name).

Funded by Kanton Zug
2019-01-22 14:36:43 +01:00
Alessandro Pasotti
59fd8df336 Fix server WFS TYPENAME filter in describeFeatureType
Fixes #20198

with tests
2019-01-22 14:28:36 +01:00
Alessandro Pasotti
b12985003b
Merge pull request #8929 from elpaso/bugfix-21059-server-post-request-issues
Fix POST requests for QGIS server
2019-01-22 13:59:53 +01:00
Nyall Dawson
e75a888256 Fix shortest path algorithm can "shortcut" when using network in geographic coordinates
Fixes #20997
2019-01-22 20:20:44 +11:00
Alessandro Pasotti
eef7f49a21 Fix test to use re instead of lxml (the simpler the better) 2019-01-22 08:21:53 +01:00
Alessandro Pasotti
0e0146d82d
Merge pull request #8924 from elpaso/bugfix-20927-server_exp_filter
Server WFS EXP_FILTER bugfixes
2019-01-22 08:05:32 +01:00
Nyall Dawson
ddd357c2ea Add API to QgsRasterBlock to obtain both pixel value AND no data
flag in a single call

This is much more efficient then making two calls, since the
QgsRasterBlock::isNoData() check internally calls QgsRasterBlock::value().
So by requiring API users to make the two separate calls individually,
we double the time this process takes...
2019-01-22 12:13:39 +11:00
Julien Cabieces
49cb397f89 Update layer statistics when adding column to table in order to be displayed by QGIS
fixes #13504
2019-01-22 07:54:12 +11:00