609 Commits

Author SHA1 Message Date
Nyall Dawson
07315bfedd Add tests for data defined diagram properties 2017-01-23 12:45:21 +10:00
Nyall Dawson
4a800a13c2 Fix tests 2017-01-22 21:29:23 +10:00
rldhont
d1f233d083 [Server] SELECTION tests
Update GetMap SELECTION test
Add GetPrint SELECTION test

!GetPrint SELECTION has to be fixed!
2017-01-19 16:41:43 +01:00
Nyall Dawson
9a6d714061 [FEATURE][composer] Allow choice of CRS for map items
This allows the CRS for map items to differ from the canvas/project
CRS. It also allows different map items to have different CRS,
eg an overview map can be set to a different CRS to the main map.

An unfortunate side effect of this change and the ongoing work
to separate compositions from canvas is that datum transforms
are no longer supported in composer. This cannot be fixed until
the datum transform store is rewritten to not depend on canvas
(ie, it's also broken for upcoming multi-canvas work)
2017-01-17 19:18:47 +10:00
rldhont
bf73e2c240 [BUGFIX][Server] Re-enable Transparent and Bgcolor parameter for GetMap
Fixed #15990 wms png transparency not honoured

And add tests for transparent and bgcolor in GetMap and GetLegendGraphic
2017-01-11 09:48:10 +01:00
rldhont
454df31b17 [BUGFIX][Server] WMS compliance: stretched, distort, increase, decrease
The commit d44f1eba2fed18b3fef8d8865d79b3b6d8bc4d69 seems to break some WMS 1.3.0 client and WMS compliancy.
The commit d44f1eba2fed18b3fef8d8865d79b3b6d8bc4d69 has been written to fix an issue with QGIS WMS Client and to render image like other WMS Server.

This commit has been written to fix issue introduce by d44f1eba2fed18b3fef8d8865d79b3b6d8bc4d69.
It is based on MapServer code:
* https://github.com/mapserver/mapserver/blob/master/mapdraw.c#L115
* https://github.com/mapserver/mapserver/blob/master/HISTORY.TXT#L3768

And take account of axis invertion for output CRS.
2017-01-03 14:55:00 +01:00
Alexander Bruy
81e2f87fd0 update test masks 2016-12-14 13:46:19 +02:00
rldhont
287ed2d39c Fix test for WMS 1.3. compliance: distort image if width/height ratio of bbox is different to WIDTH/HEIGHT of requested image 2016-12-13 20:10:40 +01:00
rldhont
e59bad53fb Fix test for WMS 1.3. compliance: distort image if width/height ratio of bbox is different to WIDTH/HEIGHT of requested image 2016-12-13 16:40:05 +01:00
Mathieu Pellerin
a8b9723cbc [FEATURE] allow customization of line spacing for legend item labels (#3632)
* [FEATURE] allow customization of line spacing for legend item labels
* add test for legend line spacing and update control images
2016-12-13 12:09:13 +07:00
Blottiere Paul
8cda1bbb79 fix getLegendGraphics when BBox parameter is used 2016-12-12 08:16:18 +01:00
Blottiere Paul
f3a5c98178 remove QgsMapRenderer 2016-12-12 07:50:22 +01:00
nirvn
769c82b579 [pal] fix curved labels failure with zero-width characters
(fixes 15801)
2016-11-03 13:35:51 +07:00
Martin Dobias
b798040040 Fixed legend renderer expected images 2016-11-01 11:41:23 +08:00
Nyall Dawson
a5356011fc Test masks 2016-10-24 12:02:00 +10:00
Nyall Dawson
08143475ed [FEATURE] QgsTextRenderer class for rich text rendering
Moves all the drawing code out of labeling into a new class
which just handles rendering text. This allows other parts
of the code to utilise all the advanced formatting options
that labeling supports, eg rendering text with shadows,
buffers and backgrounds.
2016-10-24 12:02:00 +10:00
nirvn
455874258c [legend] insure multi-line labels are vertically centered with tall symbols 2016-10-19 10:02:43 +07:00
rldhont
a51ef42924 [BUGFIX][QGIS Server] GetLegendGraphic: if LAYERTITLE is false disable layer name in legend
If the layer has only one legend node, it is embedded in parent.
In QGIS Server the user can specify no layer title, so the layer title has not be displayed.
2016-10-18 12:17:45 +02:00
Nyall Dawson
a6148deb30 [FEATURE] Data defined symbol layer visibility
Adds a data defined override to control a symbol layer's
visibility. Allows users to disable drawing certain symbol layers
for matching features.
2016-10-18 13:22:22 +10:00
Nyall Dawson
b8c2e68fc5 [FEATURE] Allow symbol layers to be temporarily disabled
Adds a new checkbox at the bottom of each symbol layer's
properties which allows you to control whether the layer is
enabled or not.

Disabled layers are not drawn, but are saved and can be
enabled at a later stage.

This makes it easier to tweak symbol appearance without
having to totally delete a symbol layer.
2016-10-18 13:22:22 +10:00
nirvn
ec2d7fea0c [FEATURE] control over drawing of composer table grid horizontal & vertical lines 2016-10-14 13:20:59 +07:00
Nyall Dawson
ddfe91f763 Fix @geometry_point_num and @geometry_point_count for marker lines
Fixes #15673
2016-10-10 19:53:15 +10:00
Nyall Dawson
748d8acddb Fix first marker is drawn twice for marker line interval mode 2016-10-10 19:53:15 +10:00
Nyall Dawson
19f6b62cd8 Fix layers with layer wide opacity "flashing" by rendering
intermediate states without opacity
2016-10-04 09:22:40 +10:00
Nyall Dawson
fbdc93fb2e Add missing test images 2016-09-30 08:42:16 +10:00
Nyall Dawson
3253cdc2fb Unit tests for displacement and cluster renderer 2016-09-30 08:42:16 +10:00
Nyall Dawson
67d5e19303 Update test masks (Qt5 on Fedora) 2016-09-29 12:23:02 +10:00
Nyall Dawson
10ee1c3c26 Update test masks 2016-09-23 13:58:14 +10:00
Nyall Dawson
e4f44722a1 Server access control test masks (Qt5) 2016-09-19 10:20:25 +10:00
Nyall Dawson
e7f8e0e04f Update test masks (ubuntu 16.04 qt5) 2016-09-19 09:45:16 +10:00
Nyall Dawson
25125b089e Remove deprecated composer methods 2016-09-14 07:20:17 +10:00
Nyall Dawson
e3313fac95 Test masks 2016-09-10 14:42:33 +10:00
Nyall Dawson
570e6936b6 Add a bunch of tests for legend grouping into columns 2016-09-10 14:42:33 +10:00
Nyall Dawson
6dbdd4c24b Update test masks for qt5 2016-09-05 13:44:41 +10:00
Patrick Valsecchi
5ee97adc16 Add heuristic to not simplify geometries for nothing
Tested with a release binary and Swiss OSM roads in PostGIS at several zoom
levels (the higher, the less features), values in ms (average over at
least 100 queries):

Level | Before | After | % improvement
-------------------------------------------
7     |  37    |  36   | 2.7
6     |  41    |  38   | 7.32
5     |  48    |  46   | 4.17
4     |  70    |  64   | 8.57
3     | 114    | 109   | 4.39

Not much improvement (I'm quite dispointed, here), but not much change in
the code.
2016-08-16 12:48:35 +02:00
Juergen E. Fischer
b08a9e7951 rename test images 2016-08-10 12:12:28 +02:00
Juergen E. Fischer
eeebf4be08 rename QgsComposerSymbolItem::symbolV2() to symbol() 2016-08-10 12:12:28 +02:00
Nyall Dawson
863c73db8f Label test mask updates 2016-08-09 16:55:13 +10:00
Nyall Dawson
c3f720f80b [pal] Only apply distance from line midpoint penalty to non closed linestrings
Sponsored by Andreas Neumann
2016-08-09 16:55:12 +10:00
Nyall Dawson
dc0cc32046 Further tweaks to line labeling, add tests
Sponsored by Andreas Neumann
2016-08-09 16:55:11 +10:00
Nyall Dawson
01e6c04980 Labeling tests 2016-08-09 16:55:11 +10:00
Nyall Dawson
3d6688cce5 Add labeling tests for letter/word spacing 2016-07-27 06:37:16 +10:00
Nyall Dawson
5228de353c Update curved label test reference images 2016-07-27 06:37:16 +10:00
Nyall Dawson
92eec0e338 Revert "[labeling] Curved labels are now angled per character"
This reverts commit f6d07a33b71a9b19579d19dadbe777b1f14c6842.
2016-07-20 19:44:13 +10:00
Nyall Dawson
4bcae0693d Revert "Update labeling reference images"
This reverts commit 1aec78145f7553ca62584a9bb626b8a531a01a8e.
2016-07-20 19:44:04 +10:00
Nyall Dawson
fc88336a62 Revert "Add labeling tests for letter/word spacing"
This reverts commit 9dfdfc645f327b38ef90974751104c4b1523736e.
2016-07-20 19:43:57 +10:00
Nyall Dawson
9dfdfc645f Add labeling tests for letter/word spacing 2016-07-20 13:04:50 +10:00
Nyall Dawson
1aec78145f Update labeling reference images 2016-07-20 13:04:50 +10:00
Frits van Veen
f6d07a33b7 [labeling] Curved labels are now angled per character
...instead of shifted along base line (fix #15210)
2016-07-20 13:04:50 +10:00
Nyall Dawson
7f2bdcf342 Update legend test masks, fix for PyQt5 2016-07-14 07:12:15 +10:00