532 Commits

Author SHA1 Message Date
Matthias Kuhn
5cd2319c3f Also retrieve generated values for pktInt 2016-04-07 21:26:43 +02:00
Matthias Kuhn
eecd77a324 Fix postgres unit test 2016-04-07 21:24:01 +02:00
Matthias Kuhn
e98e16f1b2 Unit test for 4ec97c33 2016-04-07 15:59:22 +02:00
Nyall Dawson
d464f86290 [FEATURE] Null ("No symbol") renderer
Using this renderer no symbol will be drawn for features, but labeling,
diagrams and other non-symbol parts will still be shown.

Selections can still be made on the layer in the canvas and selected
features will be rendered with a default symbol. Features being edited
will also be shown.

This is intended as a handy shortcut for layers which you only want
to show labels or diagrams for, and avoids the need to render
symbols with totally transparent fill/border to achieve this.

(fix #12131)
2016-04-06 20:55:26 +10:00
Nyall Dawson
86ec27e08e Use real values when interpolating color components in gradients 2016-04-06 20:55:26 +10:00
Patrick Valsecchi
f696b0a34d Allow relative links in composer labels
Now labels and HTML boxes can contain relative URLs. If we don't have
a base URL, the project file will be used as a base URL (closes #7236).

Remove the exception for the labels where the images where not
loaded (unless in in PDF or image mode). It was because of a crash. Qt didn't
like having the HTML loading to be done synchronously during painting.

Fix a leak when rendering labels.
2016-04-04 11:05:30 +02:00
Mathieu Pellerin
541463718d [FEATURE] add outline join style to ellipse markers 2016-04-04 14:38:52 +10:00
David Adler
5fe19c5f15 merged DB2 updates
[FEATURE] New vector data provider for DB2 sources
2016-04-04 07:55:50 +10:00
nirvn
3a2a099c59 add simple marker join style tests 2016-04-03 11:56:47 +07:00
Blottiere Paul
7a8a5411e0 [FEATURE][composer] Add tools for drawing polygon and polylines 2016-04-01 11:05:03 +11:00
Nyall Dawson
befa962b30 Update legend test mask images for Windows build 2016-03-31 16:46:30 +11:00
Nyall Dawson
9dd791da01 Fix composer_label tests under Windows 2016-03-31 16:44:43 +11:00
Nyall Dawson
9104704f59 [composer] Set base stylesheet of composer labels to match the
label font and margins when rendering as HTML.

This allows interactive choice of font, margins and colors and
avoids the need to manually set these with CSS within the
label HTML code.
2016-03-30 19:35:34 +11:00
Nyall Dawson
68f0e832ec Add qt5 test masks for compositions tests 2016-03-18 16:32:44 +11:00
Nyall Dawson
6b4f60970d Add masks for qt5 and enable atlas test 2016-03-18 16:32:44 +11:00
Nyall Dawson
81d4d086d6 Merge pull request #2862 from nyalldawson/server_test_gdal
Fix PyQgsServer test on GDAL >= 2.0 and fix handling of longlong types
2016-03-18 09:12:51 +11:00
Hugo Mercier
f9c736c9f8 Only filter legend nodes that are checked.
Keep unchecked legend items when filtered by expression
2016-03-14 14:17:43 +01:00
Nyall Dawson
ed3cb12008 [FEATURE] Parameterized svg support for composer svg images
This makes it possible to change SVG fill/outline color and outline
width when using parameterised SVG files such as those included
with QGIS (fix #10542)
2016-03-08 08:15:04 +11:00
Nyall Dawson
a89b51076c Merge indidividual regression1141.cpp and regression1141.cpp checks
into testqgsrasterlayer and testqgsvectorfilewriter

(slightly speeds up compiling and running tests)
2016-03-07 09:39:48 +11:00
Juergen E. Fischer
d1743a99f9 update qgis_labelingenginev2 test mask for ubuntu xenial 2016-03-06 22:18:47 +01:00
Nyall Dawson
dc2f1523cd Update test mask images 2016-03-03 15:32:44 +11:00
Nyall Dawson
0780527428 Fix PyQgsServer test on GDAL >= 2.0
Also fix handling of longlong types in wfs_describefeaturetype
2016-03-03 14:06:07 +11:00
Nyall Dawson
527fe9d234 Fix mssql provider test data 2016-03-03 10:31:59 +11:00
Nyall Dawson
3f62cd46e7 New class QgsOgrUtils w/helper functions for working with OGR features
Also includes handy function for converting a string to a QgsFeatureList
or QgsFields by using OGR to parse the string. This allows eg conversion
of GeoJSON to QgsFeatures.
2016-03-01 15:02:02 +11:00
Nyall Dawson
87145f753c Test mask update 2016-02-27 09:43:08 +11:00
Nyall Dawson
b8c620a317 update test mask 2016-02-26 22:48:08 +11:00
rldhont
36b0c3c10a [BUGFIX][QGIS Server] WFS DescribeFeatureType Geometry element type
In the OGR provider, we can read:
```
Some ogr drivers (e.g. GML) are not able to determine the geometry type of a layer like this.
In such cases, we use virtual sublayers for each geometry if the layer contains
multiple geometries (see subLayers) otherwise we guess geometry type from first feature
```
It means that in DescribeFeatureType Geometry element can be describe as simple and the GML contains
simple and multi. It's not XML valid.
To fix it, for OGR provider Geometry element type is set to `gml:GeometryPropertyType`

For the next release, it will be interesting to allow users to specify whether the geometries are multi.
2016-02-26 10:08:07 +01:00
Nyall Dawson
58c85bb8c0 Tweak vertical position of labels under points in "cartographic"
label placement mode

Previously labels were being drawn too low
2016-02-26 19:36:20 +11:00
Martin Dobias
b34105d812 Fix test mask for labelingenginev2 tests so they do not fail on my laptop 2016-02-23 13:07:47 +08:00
Nyall Dawson
ab73c0364c Add unit tests for WMS server access control with request filters 2016-02-23 11:48:10 +11:00
Alessandro Pasotti
bf583c7236 Merge pull request #2830 from elpaso/server-fix-info_format2
[bugfix][server] text/plain as default info_format
2016-02-22 22:28:25 +01:00
elpaso
82cee03057 Added test data for GetFeatureInfo 2016-02-22 18:52:53 +01:00
Hugo Mercier
3dea491ded Fix text encoding in request filter expression 2016-02-22 15:03:45 +01:00
Nyall Dawson
ba7dc0d7e7 Add unit tests for #13919 2016-02-22 10:20:22 +11:00
Sandro Santilli
034b5c0be5 Make PG initialization scripts work with PostgreSQL 9.1
- Remove lock_timeout setting
   See https://travis-ci.org/qgis/QGIS/jobs/109844438#L942

 - Remove CREATE SCHEMA IF NOT EXISTS
   See https://travis-ci.org/qgis/QGIS/jobs/109891682#L1016
2016-02-17 18:13:45 +01:00
Sandro Santilli
cdf05acac8 Add script to create and initialize postgis test database 2016-02-17 11:08:18 +01:00
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