2065 Commits

Author SHA1 Message Date
Nyall Dawson
0afcb0f364 Make test render checker work correctly in non-Firefox browsers 2016-01-07 10:17:05 +11:00
Juergen E. Fischer
f5b615acdd fix virtuallayer tests on windows 2016-01-06 23:52:28 +01:00
Nyall Dawson
f76bbeba76 More debugging for server access control tests 2016-01-07 07:20:11 +11:00
Hugo Mercier
62cdb27160 Fix virtual layer definition parsing 2016-01-06 16:05:54 +01:00
Hugo Mercier
b46a593e32 Merge pull request #2617 from SebDieBln/FixLayerDefVectorJoins
Make vector joins work within layer-definition-files
2016-01-06 09:50:38 +01: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
Nyall Dawson
d10680c5fc Followup 881074 2016-01-05 12:18:02 +11:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Martin Dobias
215ba22597 Fix failing composer scale bar test on less common locales 2016-01-04 23:46:08 +01: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
mhugent
cbd29e5fd5 Merge pull request #2632 from mhugent/nodetool_remove_lines
Remove all vertices if removing second to last line point / fourth to last ring point
2016-01-04 13:42:00 +01:00
mhugent
164739f205 Merge pull request #2606 from nyalldawson/close_rings
Ensure that rings are closed when adding to polygons
2016-01-04 11:43:45 +01:00
Marco Hugentobler
7f978d96e3 Update test_qgsgeometry 2016-01-04 11:23:04 +01:00
Nyall Dawson
2eb95f081f Fix more warnings when building under clang with -wEverything 2016-01-02 11:08:03 +11:00
Sebastian Dietrich
c136f9f550 added a test for vector joins in layer definition files 2016-01-01 23:06:06 +01:00
Sebastian Dietrich
836ea81b77 added a test for memory layer fields being saved to XML 2016-01-01 15:28:58 +01:00
Nyall Dawson
766bfa1a7f Fix some more old style cast and float comparison warnings 2015-12-31 07:27:58 +11:00
Marco Hugentobler
d01990058a Unit tests 2015-12-28 19:29:16 +01:00
Juergen E. Fischer
71dc339106 more stl to qt ports and size_t => int fixups 2015-12-26 00:59:09 +01:00
Matthias Kuhn
d746a94273 Expressions: test prepare() and fix segfault 2015-12-25 09:10:18 +01:00
Matthias Kuhn
4b72357875 Expressions, fix WhenThen crash and more tests
* Fix a crash with WhenThenList
* Check implicit sharing with all test expressions.
2015-12-24 17:53:37 +01:00
Michael Kirk
afcf567ebb [Processing] fixup parameters test
- Broke into per class testcase
- Each method tries to test only one aspect of behavior
- Use unittest assertions for better error output
- Removed non-existant serialize functionality from tests
- Test BooleanParameter

Conflicts:
	python/plugins/processing/core/parameters.py
2015-12-24 15:14:02 +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
Matthias Kuhn
3f1db6d550 Add test for combination orderby / subset of attributes 2015-12-22 09:12:32 +01:00
Nyall Dawson
856be9ba44 Ensure that rings are closed when adding to polygons 2015-12-22 16:51:41 +11: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
rldhont
f7566710af [Doc] Update QgsMapLayer documentation
Add documentation string to 10 QgsMapLayer methods.
2015-12-21 17:33:47 +01:00
Nyall Dawson
013d6d3331 Fix more warnings 2015-12-21 19:30:32 +11:00
Matthias Kuhn
483ef3c75a Merge pull request #2599 from nyalldawson/order_by
Order by fixes and Mssql provider implementation
2015-12-21 09:13:31 +01:00
Sebastian Dietrich
c28c493b65 fix all occurrences of multiple statements in a single line
This was accomplished by running scripts/astyle-all.sh.
2015-12-21 01:21:06 +01:00
Nyall
f24105968d Add provider order by tests where expression compilation will fail 2015-12-21 10:49:15 +11:00
Nyall Dawson
ec35dbee92 Fix some warnings when building with clang and -Weverything 2015-12-20 21:43:51 +11:00
Hugo Mercier
6ffec81b53 Fix sip coverage test to skip constructors of nested classes 2015-12-18 19:47:00 +02:00
Hugo Mercier
e60712e7cf Add a provider for virtual layers 2015-12-18 19:45:58 +02:00
Matthias Kuhn
13f4081d07 Remove .cpp files from doxymentation
Remove .cpp files from the doxymentation. They are not
considered to be part of the public API, so no reason to scan them for
symbols which are not exported anyway.
2015-12-18 18:38:40 +01:00
Matthias Kuhn
b855b0f7b3 Fix csv test dataset 2015-12-18 18:38:19 +01:00
Matthias Kuhn
f2ac1e8ee4 Add order by test 2015-12-18 18:38:18 +01:00
Matthias Kuhn
b9f0c0625a More use of implicit sharing of QgsExpression 2015-12-18 18:36:26 +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
Nyall Dawson
e9cd82902b Fix incorrect symbols appearing for categorized and graduated renderers
This was triggered by 18614e11, which revealed a deeper bug in the handling
of symbols by these renderers. For both renderers a const method returns
a non-const pointer to a symbol and is used to modify this symbol in place.

Because both renderers store their classes in a QList (implicitly shared)
this means that all shared class lists were being updated when a clone of
a renderer has its symbols altered in this way. Prior to 18614e these
class QLists were being detached and copied in random ways.

Work around this by forcing a deep copy of the class lists when a renderer
is cloned.
2015-12-18 16:02:49 +11:00
Juergen E. Fischer
8214608169 more nullptr updates (folloup 320c696) 2015-12-16 16:29:29 +01:00
Nyall Dawson
18614e11e3 Avoid container detachments by using const methods wherever possible
eg QList::at() instead of QList:[], constFind instead of find, ...
2015-12-16 20:15:46 +11:00
Nyall Dawson
a66a8eae59 Drop documentation test threshold 2015-12-16 06:10:33 +11:00
rldhont
9e8e868a0f [TEST][QGIS Server] Add WFS GetFeature STARTINDEX test 2015-12-15 17:18:41 +01:00
Matthias Kuhn
0eb36d5047 Add debug output to csv test
To debug timeout:

Timed out log:
http://dash.orfeo-toolbox.org/testDetails.php?test=35623737&build=211129

Good log for comparison:
http://dash.orfeo-toolbox.org/testDetails.php?test=35617301&build=211079

Failing test:
test_039_issue_13749 which references https://hub.qgis.org/issues/13749

Mailing list discussion:
http://lists.osgeo.org/pipermail/qgis-developer/2015-December/thread.html#40581
2015-12-15 16:17:44 +01:00
rldhont
0a7e3f5e2b Merge branch 'AsgerPetersen-wfstests' 2015-12-15 16:01:01 +01:00
Asger Skovbo Petersen
7101b5beb0 Remove unsupported SRSNAME 2015-12-15 14:52:37 +01:00