1824 Commits

Author SHA1 Message Date
Nyall Dawson
11c82045b7 More test mask updates 2015-11-21 18:39:36 +11:00
Juergen E. Fischer
ff3a622e53 4 more pixels... (followup ca3da4c) 2015-11-21 00:52:33 +01:00
Juergen E. Fischer
ca3da4ceee adapt render tests to c6460a3 2015-11-20 23:23:50 +01:00
Matthias Kuhn
d795e508cc Merge pull request #469 from olivierdalang/SanitizeEntryNames
Warning about invalid entry names
2015-11-20 18:03:44 +01:00
rldhont
00ea968347 [BUGFIX] Multipoint asJSON
Fixes #13855
Multipoint asJSON made MultiPoint as Multilinestring with only 1 point by linestring.

This bugfix adds tests.
2015-11-20 11:01:27 +01:00
Nyall Dawson
4203a7c1f4 Add method to determine approximate rendered symbol bounds for markers
Sponsored by City of Uster
2015-11-20 19:55:02 +11:00
Nyall Dawson
4d02e48f16 Update test mask images for windows 2015-11-20 11:29:09 +11:00
Sebastian Dietrich
174fbb97ce added a test for makeKeyTokens_() 2015-11-19 14:01:39 +01:00
Juergen E. Fischer
c40a764f5c indentation update 2015-11-19 13:30:25 +01:00
Juergen E. Fischer
2a557db39d [FEATURE] expression: align strpos behaviour with postgres 2015-11-19 10:38:27 +01:00
mhugent
422abbde5e Merge pull request #2056 from sbrunner/qgis-server-security
[Feature] Add an interface in QGIS Server for access control plugins
2015-11-19 10:23:04 +01:00
Nyall Dawson
8c0fe47d8e Add tests for QgsPointV2, fix some issues:
- prevent creation of a QgsPointV2 with a non-point WKB type
- fix bounding box was not invalidated for some modification routines
- if WKT type is PointZ/M/ZM and not enough coordinates specified,
initialise extra coordinates to 0
2015-11-19 19:48:42 +11:00
Jürgen Fischer
8e5ba3bf92 Merge pull request #2458 from SebDieBln/Postgres_GeomTypeDirect
[postgresprovider] Determine geometry type and srid directly from column type
2015-11-18 22:46:09 +01:00
Stéphane Brunner
c9f0d83aaf The plugin define the following methods:
* layerFilterExpression
  Return an additional filter, used in
  WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature to filter the features
* layerFilterSubsetString
  Return an additional the subset string (typically SQL) filter.
  Faster than the layerFilterExpression but not supported on all the
  type of layer
* layerPermissions
  Change the rights on the layer per user (known by the plugin)
  Concern rights: publish, insert, update, delete.
  Mostly used in WFS/Transaction, and the publish in all requests.
* authorizedLayerAttributes
  Be able to show some attributes only for a subset of user
  Used in: WMS/GetFeatureInfo, WFS/GetFeature
* allowToEdit
  Be able to don't allow to edit a particular feature, in our case base
  on the Geometry
  Used in: WFS/Transaction
* cacheKey
  Cache key to used to create the capabilities cache, "" for no cache,
  shouldn't contains any "-", default to ""
2015-11-18 14:49:43 +01:00
Nyall Dawson
e0bedc2b17 Drop SIP/documentation test thresholds 2015-11-18 23:05:36 +11:00
Matthias Kuhn
146b15a1f8 Merge pull request #2460 from nyalldawson/ogr_compiler
[FEATURE] Compiler for OGR and Spatialite expressions
2015-11-18 07:51:43 +01:00
Nyall Dawson
2623abc71c Fix detection of python related notes in Sip coverage test
In certain cases test was not correctly detecting "not available in
Python bindings" notes
2015-11-18 16:23:59 +11:00
Nyall Dawson
91571736a8 Make expression compilation optional, but enabled by default
Remove the previous postgres specific option and replace with an
enabled-by-default option which applies to all expression
compilation.
2015-11-18 15:16:38 +11:00
Nyall Dawson
982490f636 Add some more expression compilation tests, fix <> string for OGR 2015-11-18 14:31:36 +11:00
Nyall Dawson
3d947e82aa Add provider expression filter tests for TVL 2015-11-18 06:30:42 +11:00
Nyall Dawson
26f7683cf5 OGR expression compiler fixes
- Allow simple operators as supported by OGR (+, -, * )
- Only return a partial compilation success if expression contains
"column"="column2". Since OGR SQL performs case insensitive
comparisons, we need to double check the result using QGIS'
expressions to ensure that case matches. Add unit tests for this
to provider tests.
2015-11-18 06:30:42 +11:00
Nyall Dawson
d19adfe851 [FEATURE] Compiler for OGR expressions
Allows much faster retrieval of features when a FilterExpression
feature request is used.

OGR SQL supports only basic expressions, so this is really only
enabled for "attribute"='value' type expressions.
2015-11-18 06:30:41 +11:00
alexbruy
f184ec9794 Merge pull request #2471 from nyalldawson/processing_fixes
[processing] misc improvements
 - use QgsStatisticalSummary for statistic calculations
 -  faster expression request for ExtractByAttribute alg
2015-11-17 18:54:55 +02:00
Matthias Kuhn
9ff6e1d499 Migrate first python test to be compatible with PyQt4 and PyQt5 2015-11-16 07:42:48 +01:00
Matthias Kuhn
26ce3cc6d2 [py3] Some python3 compatibility fixes 2015-11-16 07:42:48 +01:00
Matthias Kuhn
768bab8644 Merge pull request #2470 from SebDieBln/postgrestest
[postgresprovider] make the test more portable
2015-11-16 07:05:17 +01:00
Nyall Dawson
e15962eea9 [processing] Use QgsStatisticalSummary for statistic calculations
For BasicStatisticssNumbers and StatisticsByCategories algorithms.
Adds extra stats (minority, majority, 1st/3rd quartile and IQR) while
avoiding custom statistics calculation code.
2015-11-16 15:04:34 +11:00
Sebastian Dietrich
ebf132edb8 Changed the documentation of the postgres test to match the actual behavior. 2015-11-15 22:39:02 +01:00
Sebastian Dietrich
6ee90c32ec replaced COPY with INSERT INTO 2015-11-15 21:51:33 +01:00
Sebastian Dietrich
cfa308d5ac Added a test for the direct determination of geometry type/srid 2015-11-15 21:31:18 +01:00
Nyall Dawson
e6d495a2d6 Update test mask images 2015-11-15 14:48:45 +11:00
Nyall Dawson
d699569b86 Add initial tests for marker symbol layers 2015-11-14 20:17:54 +11:00
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