1692 Commits

Author SHA1 Message Date
Sandro Santilli
824fd7bf32 Fix endpoint swap on negative marker line offset
Fixes #13811
Includes testcase
2015-11-13 15:29:44 +01:00
Nyall Dawson
dfb1585c49 Bump QgsStatisticSummary test coverage 2015-11-12 20:29:06 +11:00
Nyall Dawson
bb339f7a5b 100% test coverage for QgsFeature 2015-11-11 19:51:43 +11:00
Nyall Dawson
87168c14a5 100% test coverage for QgsWKBTypes, add missing docs 2015-11-11 19:51:42 +11:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
Nyall Dawson
452e61c8e0 More test mask updates for windows 2015-11-10 17:15:43 +11:00
Nyall Dawson
ebaa26f373 Drop missing documentation/sip thresholds 2015-11-10 17:10:17 +11:00
Nyall Dawson
18744b4123 Fix crash with malformed WKT 2015-11-10 17:08:48 +11:00
Nyall Dawson
0853076eef [expressions] Allow conversion of features/geometries to bool
Where geometry = false if empty, feature = false if not valid.
Allows expressions like "case when $geometry then ... else ..."
and "case when get_feature(...) then ... else ... "
2015-11-10 17:08:41 +11:00
Nyall Dawson
719ff408a5 Add some missing SIP bindings, comment some classes as not available
in Python
2015-11-10 17:08:27 +11:00
Nyall Dawson
b1b20af8fb Ignore typedefs and deprecated members in sip coverage test 2015-11-10 17:08:03 +11:00
Nyall Dawson
1b28984ecc Ignore friend classes in doc/sip coverage test 2015-11-10 17:07:57 +11:00
Nyall Dawson
da627e9b90 Fix sip coverage test detection of member variables 2015-11-10 17:07:51 +11:00
Nyall Dawson
bbf58fd5f9 Rearrange outputs in SIP test, so that missing list is always printed 2015-11-10 17:07:37 +11:00
Nyall Dawson
7c149d77a9 Update atlas test mask image for Win 2015-11-10 06:26:55 +11:00
Nyall Dawson
2988dbdd18 Update legend test mask images for debian builds 2015-11-10 06:24:41 +11:00
Nyall Dawson
b6717b6175 Followup b5794b2, fix calculation of acceptable limits 2015-11-09 09:13:31 +11:00
Nyall Dawson
26dbb42a71 Resolve coverity issues 2015-11-09 09:00:22 +11:00
Juergen E. Fischer
b5794b2f2d sip coverage fixes:
* make sip coverage test aware that there are less classes where QSci sip
  headers are not available
* exclude properties from members
* fix QgsFeatureIds typedef (fixes missing signal
  QgsVectorLayer.featuresDeleted and others)
* add missing notes for PyNames
* include some missing new methods in bindings
2015-11-08 19:30:39 +00:00
Nyall Dawson
de1540357b [expressions] Add make_line and make_polygon functions 2015-11-06 20:09:48 +11:00
Nyall Dawson
fccf54b2d7 Fix crash on malformed WKT strings 2015-11-06 20:09:39 +11:00
Nyall Dawson
12e34f2672 [expressions] Allow make_point to accept z/m values, add new
make_point_m for creation of PointM geometries. Also add
m(point) and z(point) functions for retrieving z/m value of
a point or node.
2015-11-06 20:09:13 +11:00
Nyall Dawson
7439643934 Fix delimited text layers set to unknown geometry type if first row has
null geometry (fix #13749)
2015-11-06 20:08:30 +11:00
Vincent Mora
700fc043a4 Merge pull request #2414 from vmora/varying_width_assistant
[FEATURE] assistant for varying line width
2015-11-05 16:48:43 +01:00
vmora
6d1d213973 [FEATURE] assistant for varying line width
The qgssizescalewidget as been modified to handle line symbols as well
as markers.
The scale expression has been enhanced to support general exponentials
(i.e. eponents different from Flanery .57 and Area .5a)
The assistant as been modified to disply the exponent when Exponential
scaling is required.
2015-11-05 14:14:36 +01:00
Juergen E. Fischer
e497e8b1c0 fix precise build 2015-11-04 08:30:27 +01:00
Nyall Dawson
da942233e7 Add DE-9IM variant which tests against a specified pattern
(available in PyQGIS/expression engine)
2015-11-04 16:03:55 +11:00
Nyall Dawson
9e84fcafd8 Followup 2ac5933 with more data defined fixes
2ac5933 fixed the regression in 2.12, but there were more underlying
issues from <2.8 causing sub symbols with data defined properties
to be ignored.

Add some tests.

(refs #13707)
2015-11-04 16:03:46 +11:00
Hugo Mercier
d16cdcf449 Add more options for filtering legend elements
This introduces two new options to filter legend elements:
- filter by expression: a boolean expression can be set. Only symbols of
features that make the expression evaluated to true will be kept in the legend
- filter by polygon: only symbols of features that are inside the given
polygon will be part of the legend.

The polygon filtering is used in particular for a new option in the
composer legend that allows to filter out anything that is not included
in the current atlas polygon.
2015-11-03 10:39:09 +01:00
rldhont
a9e567060d [QGIS-Server] Test: more ISO compatibility for WxS capabilities 2015-11-02 22:24:42 +01:00
Radim Blazek
f3d9e752b2 [GRASS] added (disabled) test for #13739 2015-11-02 19:42:54 +01:00
Landry Breuil
03eaafe603 Fix build on 32-bits archs using LL for large constants 2015-11-02 11:49:01 +01:00
Nyall Dawson
c445ac1eef Fix expression get_feature function was not fetching feature's
geometry

Fix #13695
2015-11-02 20:40:29 +11:00
Matthias Kuhn
353c0db745 Add test for filter expression on non provider fields 2015-11-02 10:13:31 +01:00
Nyall Dawson
4f7509530a Remove some unnecessary trailing ;
(Gets rid of annoying squiggle warnings from Qt Creator!)
2015-11-02 18:07:04 +11:00
Nyall Dawson
b7e1cae4f0 Switch double quoted single character to single quotes for some
QString methods

Using single quotes is a significant performance boost. Rough
benchmarks indicate the QString single quote methods take
about 15% of the time the double quote variants take.
2015-11-02 17:55:08 +11:00
Radim Blazek
5f9611e37c [GRASS] add test for #13726 (new line attributes lost) 2015-11-01 21:01:23 +01:00
Radim Blazek
968e55cb11 [GRASS] fixed test 2015-11-01 20:24:14 +01:00
Nyall Dawson
2b17c2283d Add tests for get_feature expression function 2015-10-31 16:58:53 +11:00
Radim Blazek
16e902b3c1 [GRASS] coverity fixes 2015-10-30 11:20:21 +01:00
Juergen E. Fischer
d9c8e73fa2 'fix' PyQgsRulebasedRenderer test (followup 08185c9a) 2015-10-29 15:21:05 +01:00
Juergen E. Fischer
0799e09a67 fix qgsauthmanager test on windows 2015-10-28 01:08:10 +01:00
Nyall Dawson
fc49f8dfa9 Add test for coverage of SIP bindings
Not perfect, but good for a quick warning if a new class or member
has been added to the public API without Python bindings. The test
only considers the name of members, since it seems to be impossible
to test for the signature of a Python member. (So adding a new
overloaded method without bindings will still unfortunately pass).

You can avoid the test where bindings are not applicable:
- for a whole class by placing "@note not available in Python bindings"
in the class' Doxygen comments
- or by placing the @note inside a member's Doxygen comments for a
specific member

Additionally, classes which aren't included in the API docs
will not be tested.
2015-10-28 09:54:27 +11:00
Nyall Dawson
9d4e995de6 [FEATURE] Add geometry relation DE-9IM expression function 2015-10-26 22:46:53 +11:00
Nyall Dawson
f7f659be0b Avoid some clazy detaching temporary warnings 2015-10-26 22:46:05 +11:00
Nyall Dawson
d56dcdb02f Fix composer scale bar when crs units are non-meters and OTF is off (fix #13610) 2015-10-23 17:03:34 +11:00
Juergen E. Fischer
bf64f8d0a0 spelling fixes and indentation update 2015-10-22 21:56:54 +02:00
Radim Blazek
86505e0fb8 [GRASS] more edit tests 2015-10-21 20:02:22 +02:00
Hugo Mercier
c7aeb774ce PostGIS: Allow to load TIN, PS and Triangle layers
The postgres provider is modified so that layers with
TIN, PolyhedralSurface and Triangle geometries can be loaded.
Geometries are converted to MultiPolygons (and Polygons for Triangles).

The postgres test is completed to cover the loading of different types
of layers
2015-10-21 09:41:49 +02:00
Nyall Dawson
1969e09b6f Also avoid detaching QgsFields and QgsAttributes where possible 2015-10-20 20:36:08 +11:00