193 Commits

Author SHA1 Message Date
Blottiere Paul
5ef11399aa Update testdata with layers' names 2019-01-28 11:42:14 +00:00
Blottiere Paul
e4cdd7c254 Add unit test for GetFeatureInfo on raster layer in xml 2019-01-28 11:42:14 +00:00
Blottiere Paul
45399d72b4 Add unit test for with_geometry and json export 2019-01-28 11:42:14 +00:00
Blottiere Paul
101cd73125 Add unit test for excluded attributes 2019-01-28 11:42:14 +00:00
Blottiere Paul
62f77629b0 Add unit test for getfeatureinfo with alias in json 2019-01-28 11:42:14 +00:00
Blottiere Paul
562215c4cd Add unit test 2019-01-28 11:42:14 +00: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
mhugent
b5febe5189
Merge pull request #8922 from mhugent/server_datasource_error
Server: catch datasource error
2019-01-24 17:27:13 +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
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
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
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
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
Alessandro Pasotti
9b7e1912d4 Add tests for WFS GetFeature EXP_FILTER
Fixes #20927 - QGIS Server: WFS issue using the EXP_FILTER parameter
2019-01-21 12:37:21 +01:00
rldhont
81aa143923 [Server][Feature][needs-docs] WMTS tile matrices configuration
In QGIS Server 3.4, the WMTS API has been added in which the tile matrices are calculated except fro EPSG:3857 and EPSG:4326.

This commit adds the capability to select the tile matrices to use with the project and to configure the top-left corner and the last level of the tile matrix. In the case of EPSG:3857 and EPSG:4326, the user can only choose the last level of the tile matrices.

Funded by Ifremer.
2019-01-17 15:29:30 +01:00
Alessandro Pasotti
1ba6b97f74
[server] Fix layer order rendering when layers are in groups (#8796)
* [server] Fix layer order rendering when layers are in groups

Fixes #20810

* Update test images

* [server] Fix order of layers in subgroups

basically: layers in WMS is specified in a comma separated
list where leftmost layer is drawn first (it's at the bottom)
and QGIS layer order is exactly the opposite: first layer
in the TOP (topmost) is drawn last (it is at the top).

For this reason the server reverses the list before passing
it to the renderer.

* Fix order of layers in test

* Update src/server/services/wms/qgswmsrenderer.cpp
2019-01-07 13:13:30 +01:00
Nyall Dawson
089a2f1c17 [FEATURE][layouts] Add new setting to control whether map items
should show partial labels

Layout map items no longer respect the default project setting
for "show partial labels", and instead have their own, per map
setting for this option. (Under the map item properties,
labeling settings button).

The map item setting always defaults to off (unlike the canvas
setting, which defaults to true for a new project) as layouts
should always default to the settings which produce the highest
quality cartographic outputs.

In general I suspect that most users would always want to avoid
rendering partial labels in layouts, but this setting was
previously so deeply hidden that most are unaware of how to
change it. (And previous discussion about changing the canvas
setting to hide partial labels deemed this default undesirable
for the canvas, where showing even a small part of a label
on the map border can help identify what sits just on/off
the edges of the map)
2018-12-18 15:32:29 +10:00
Blottiere Paul
51a27b31b1 Update tests 2018-11-29 11:49:58 +00:00
Alessandro Pasotti
0d696ef1e5 [server] Fix invalid xml in getfeatureinfo
Fixes #20549 - error in parsing WMS GetFeatureInfo as XML

Also s/meta/META/ for consistency with all other tags
2018-11-20 18:26:49 +01:00
Matthias Kuhn
dc334ac028
Merge pull request #8223 from signedav/json_tests
QgsServer Tests for JSON fields
2018-10-25 16:41:40 +02:00
signedav
ba1fe9de0e remove username/password in db connection in test project 2018-10-25 11:40:44 +02:00
Blottiere Paul
e25a452d17 Add unit test 2018-10-24 00:21:53 +02:00
signedav
c7c7204252 put extra default back 2018-10-18 15:37:31 +02:00
signedav
4f55e9d8a2 server tests for json types in postgres 2018-10-18 09:18:28 +02:00
Blottiere Paul
c3a41bc2fa Add unit test for polygon tolerance 2018-10-15 13:29:25 +01:00
Blottiere Paul
5765d49465 Add unit test for line tolerance 2018-10-15 10:40:27 +01:00
Blottiere Paul
6fce7853ca Add unit test for point tolerance 2018-10-15 09:30:59 +01:00
Blottiere Paul
d64303fdda
Merge pull request #7950 from pblottiere/server_wfs_if_capabilities
[server] Fixes Filter_Capabilities element in WFS GetCapabilities document
2018-09-19 11:18:56 +02:00
Blottiere Paul
f65deeb5c0 Update unit tests 2018-09-18 16:16:36 +01:00
Blottiere Paul
f1ea78312f Update unit test 2018-09-18 15:39:25 +01:00
Tudor Bărăscu
a0e8be590a fix qgz test project
from qgis 3.1 to qgis 3.3 the qgz project lost the relation reference

While reporting issues on the bug tracker I noticed that the test project
lost it's relation. I recreated the qgz file.
2018-09-12 13:23:51 +03:00
rldhont
ba246532b1 [Server][Feature][needs-docs] Enhancing TileMatrixSetLimits 2018-08-24 15:05:52 +02:00
rldhont
2075141af9 [Server] Fixing tests 2018-08-21 15:11:51 +02:00
rldhont
385de9db00 [Server][Feature][needs-docs] Create WMTS service Tests 2018-08-20 11:23:50 +02:00
rldhont
ad7417a5cc Merge pull request #7462 from tcoupin/fix-wms
[server] Multiples fixes for wms server
2018-08-01 17:15:49 +02:00
rldhont
906022e839 Fix indentation and spelling 2018-08-01 17:14:25 +02:00
Blottiere Paul
d3670de1bc Update unit tests 2018-07-27 08:24:55 +01:00
Thibault Coupin
1feb971daf [WMSServer] Fix QgsServerWMS and remove absolute path in qgs files 2018-07-26 21:51:25 +02:00
Thibault Coupin
0c18d3bc0a [WMSServer] Add unit test for non queryable layer in getfeatureinfo operation, add special case for group. 2018-07-26 12:10:10 +02:00
Thibault Coupin
fd5c8e7fbf [WMSServer] Add unit test for group short name for getcapabilities and getmap operations 2018-07-26 11:10:39 +02:00
Blottiere Paul
3141bb596b Update unit test 2018-07-26 08:40:24 +01:00
Blottiere Paul
8b14a5b900 Update unit tests 2018-07-24 08:22:13 +01:00
Tudor Bărăscu
deb9f590fd add disabled server test for gpkg getfeatureinfo filter 2018-06-28 08:07:35 +03:00
Tudor Bărăscu
52664b6b66 rework server test to use geopackage and qgz 2018-06-20 11:22:52 +03:00
Tudor Bărăscu
0b9df82268 remove redundant test 2018-06-19 14:16:01 +03:00
Tudor Bărăscu
05fad59b26 enable test for getfeatureinfo value relation widget values 2018-06-19 12:08:02 +03:00