496 Commits

Author SHA1 Message Date
Juergen E. Fischer
294f033b81 adapt wfs capabilities test data to d11c689e 2016-02-10 09:54:40 +01:00
Nyall Dawson
0a64c16e98 Add polygon test for mssql provider 2016-02-03 08:38:00 +11:00
Nyall Dawson
96d8986b9f Add polygon layers to provider tests, so we can test ExactIntersect
feature requests
2016-01-31 20:42:11 +11:00
Nyall Dawson
49e45675ee Correct handling of date and time values in mssql provider 2016-01-30 08:33:09 +11:00
Nyall Dawson
7dc5eac8bd Improve handling of time values in attributes
- make QgsVectorFileWriter respect QTime field values and only
convert to string if required by output format
- list time types as native types for memory, postgres and OGR
providers (OGR support depends on file format)
2016-01-28 22:14:25 +11:00
Nyall Dawson
7fcc7ab195 Add specific test for QgsMultiBandColorRenderer
The raster blend mode test, which uses QgsMultiBandColorRenderer
fails occasionally for no obvious reason. This additional test
is an attempt to narrow down whether the issue lies in
rendering multi band images or elsewhere.
2016-01-25 19:05:13 +11:00
Nyall Dawson
39e1f68ccc Fix filtering legend content by map when renderer contains
duplicate symbols (fix #14131)

Now, we don't test for map content using the symbols but instead
use the legend key during the hit test
2016-01-25 14:43:54 +11:00
Nyall Dawson
88a9f99a5d Add mask for adjacent line fill test image 2016-01-24 08:16:55 +11:00
Nyall Dawson
41f320f771 Remove rubbish file 2016-01-22 18:53:21 +11:00
Matthias Kuhn
8d72f13a57 [25d] Improve convertability to other layers
* Move height and angle expressions for 2.5D renderer to layer
 * Apply color based on main symbol color

This makes the transition to other renderers easy.

Fixes #14132
2016-01-21 22:37:51 +01:00
Nyall Dawson
c38ee41f5b Fix rendering of CurvePolygons without curved segments (fix #14028) 2016-01-21 21:44:40 +11:00
Nyall Dawson
1a7dede155 Add TestQgsSymbolV2 with tests for rendering different geometry types 2016-01-21 21:44:34 +11:00
Nyall Dawson
03df709eb9 Enable and cleanup adjacent tiles test 2016-01-21 17:57:24 +11:00
Denis Rouzaud
bdf659faa1 Merge pull request #2699 from 3nids/test_join_pg
Add postgres provider to join test
2016-01-20 13:43:45 +01:00
Denis Rouzaud
13ccf70e1a test vector join: add PostgreSQL provider 2016-01-20 12:00:46 +01:00
mhugent
f4bdaad59f Merge pull request #2666 from mhugent/symbology_brush_transform
Symbology brush transform
2016-01-19 16:19:09 +01:00
Nyall Dawson
ed5284f1df Update test mask 2016-01-17 08:52:50 +11:00
Sebastian Dietrich
52442f5ed9 added a test for loading QLR files 2016-01-16 02:01:10 +01:00
Nyall Dawson
c452c3d85f Fix some warnings and test failures on nightlies 2016-01-15 08:32:56 +11:00
Marco Hugentobler
a91b685685 Yet another slightly different control image... 2016-01-14 18:11:47 +01:00
Marco Hugentobler
d416b14cf7 Generate test images on newer system and use tolerance of 100 pixels 2016-01-14 16:58:33 +01:00
Marco Hugentobler
561690c9ee Use render job in unit test instead of vector renderer 2016-01-14 13:26:47 +01:00
Matthias Kuhn
4e9afcec4c Expression variable for the currently rendered part
During rendering, two new variables will be available:

  * `geometry_part_count`
  * `geometry_part_num` (1-based index)

Useful to apply different styles to different parts of multipart
features
2016-01-13 08:17:49 +01:00
Nyall Dawson
f0d8efbdd4 Update test mask 2016-01-13 16:16:39 +11:00
Matthias Kuhn
04919963f7 Merge pull request #2616 from SebDieBln/FixLayerCountAttribute
Remove the 'layercount' attribute in a project file
2016-01-12 10:46:17 +01:00
Nyall Dawson
e26ef82890 Update test mask image 2016-01-12 20:07:58 +11:00
Nyall Dawson
8779091225 Fix failing tests 2016-01-12 08:24:56 +11:00
Nyall Dawson
8b28c040d1 [FEATURE] Add mode to apply label distance from symbol bounds
(only works with Cartographic point label placement). When this
setting is active, the label distance applies from the bounds
of the rendered symbol for a point, instead of the point itself.
It's especially useful when the symbol size isn't fixed, eg if
it's set by a data defined size or when using different symbols
in a categorised renderer.

Sponsored by Andreas Neumann
2016-01-12 08:24:39 +11:00
Nyall Dawson
6499439cc5 Fix failing tests, add tests for ordered placement
Sponsored by Andreas Neumann
2016-01-12 08:24:38 +11:00
rldhont
e276f170c7 [Feature][QGIS Server] Add WMS INSPIRE Capabilities
In the project properties the user can:
* activate INSPIRE capabilities
* select language of the service, 24 EU official languages + 5 regionals
* choose the scenario for service metadata and specify them

The WMS 1.3.0 capabilities reflects the INSPIRE configuration.
2016-01-11 21:12:09 +01:00
Nyall Dawson
19a47fec29 Test mask update 2016-01-10 18:48:37 +11:00
Nyall Dawson
3496f08a8d Update test mask image 2016-01-10 07:37:23 +11:00
Juergen E. Fischer
4e1cf3c081 add missing copyright headers 2016-01-08 21:32:11 +01:00
Sebastian Dietrich
d26bd46d99 remove 'layercount' attribute from project file
The 'layercount' attribute was not used anyway and the calculated number could already be outdated when loading the project file again due to changes to embedded projects.
2016-01-08 16:10:58 +01:00
Marco Hugentobler
886fd725a3 Add test for rendering of adjacent tile images 2016-01-07 13:27:43 +01:00
Nyall Dawson
bd9d41c6ee Update test masks 2016-01-07 10:17:18 +11:00
Nyall Dawson
d9bb22a370 Update test mask images 2016-01-06 16:12:18 +11:00
Nyall Dawson
5e4c14cd40 [FEATURE] Control over label rendering order
A new control for setting a label's "z-index" has been added to
the labeling properties dialog. This control (which also accepts
data-defined overrides for individual features) determines the order
in which label are rendered. Label layers with a higher z-index
are rendered on top of labels from a layer with lower z-index.

Additionally, the logic has been tweaks so that if 2 labels have
matching z-indexes, then:
- if they are from the same layer, a smaller label will be drawn
above a larger label
- if they are from different layers, the labels will be drawn in
the same order as the layers themselves (ie respecting the order
set in the legend)

Diagrams can also have their z-index set (but not data defined)
so that the order of labels and diagrams can be controlled.

Note that this does *NOT* allow labels to be drawn below the
features from other layers, it just controls the order in which
labels are drawn on top of all the layer's features.

Fix #13888, #13559
2016-01-05 22:27:22 +11:00
Martin Dobias
7b2298e574 Fix failing labeling test on my ubuntu 14.04 box (12 mismatched pixels) 2016-01-04 23:13:18 +01:00
rldhont
a32587bcd1 [FEATURE][QGIS Server] Add short name to layers, groups and project
A number of elements have both a <Name> and a <Title>. The Name is a text string used for machine-to-machine
communication while the Title is for the benefit of humans. For example, a dataset might have the descriptive Title
“Maximum Atmospheric Temperature” and be requested using the abbreviated Name “ATMAX”.

User can already set title for layers, groups and project. OWS name is based on the name used in layer tree. This name is more a label for humans than a name for machine-to-machine communication.

To add the capability to users to define Name as a text string for machine-to-machine communication, this pull-request adds:
* short name line edits to layers properties
* WMS data dialog to layer tree group (short name, title, abstract)
* short name line edits to project properties
* add a regexp validator "^[A-Za-z][A-Za-z0-9\._-]*" to short name line edit accessible through a static method
* add a TreeName element in the fullProjectSettings

If a short name has been set for layers, groups and project it is used by QGIS Sever as the layer name.
2015-12-23 10:03:04 +01:00
Matthias Kuhn
e00815db33 Add test for rendering order 2015-12-22 09:12:32 +01:00
Nyall Dawson
809c925581 [FEATURE] Support Z/M dimensions in delimited WKT files 2015-12-22 13:37:51 +11:00
Nyall Dawson
f994e71d39 [FEATURE] Delimited text provider supports curved WKT geometries 2015-12-22 13:37:51 +11:00
Hugo Mercier
e60712e7cf Add a provider for virtual layers 2015-12-18 19:45:58 +02:00
Matthias Kuhn
b855b0f7b3 Fix csv test dataset 2015-12-18 18:38:19 +01:00
rldhont
e2d1320295 [BUGFIX] WFS GetCapabilities respons misses <keywords> key
Fixes #13037 WFS GetCapabilities respons misses <keywords> key

Replace KeywordList by Keywords in WFS Getcapabilities and keywords in WCS GetCapabilities.
2015-12-18 12:20:12 +01:00
rldhont
9e8e868a0f [TEST][QGIS Server] Add WFS GetFeature STARTINDEX test 2015-12-15 17:18:41 +01:00
AsgerPetersen
3d937e1deb Simple python tests of WFS responses 2015-12-15 13:51:11 +01:00
Matthias Kuhn
c9fa33410d Fix rendering geometry generators for line layers
And add more tests
2015-12-11 11:41:41 +01:00
Nyall Dawson
8602a91a1d Add provider test for mssql 2015-12-11 07:14:03 +11:00