2065 Commits

Author SHA1 Message Date
Juergen E. Fischer
b1b7b65771 add missing include (followup a89b510) 2016-03-07 16:35:18 +01: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
Nyall Dawson
eb31e01a2f Move QgsCompositionChecker to core, speeds up compilation with
tests enabled
2016-03-07 09:38:36 +11:00
Juergen E. Fischer
d1743a99f9 update qgis_labelingenginev2 test mask for ubuntu xenial 2016-03-06 22:18:47 +01:00
Sandro Mani
1e90786be7 Extend TestQgsGeometry::isEmpty to also test empty geometry collection 2016-03-06 12:29:48 +01:00
Nyall Dawson
1e7eae77e1 Add extra checks to provider test:
- test that fetching subset of attributes results in nulls for
all other fields
- test that geometry is fetched by default, but empty when
NoGeometry flag is passed
2016-03-05 14:32:04 +11:00
Nyall Dawson
98a216e032 Fix handling of longlong fields in memory provider 2016-03-04 10:51:30 +11:00
Nyall Dawson
dc2f1523cd Update test mask images 2016-03-03 15:32:44 +11:00
Nyall Dawson
30449e577f Fix fetching subset of attributes with mssql (fix #14402), add test 2016-03-03 10:34:32 +11:00
Nyall Dawson
527fe9d234 Fix mssql provider test data 2016-03-03 10:31:59 +11:00
Nyall Dawson
11cebff60a Add test for clipboard logic 2016-03-01 15:02:02 +11:00
Nyall Dawson
0d2df8097b Fix clipboard handling on OSX
Clipboard was wrongly using QClipboard::Selection for storage/retrieval
when this is not available on OSX

Also improve docs
2016-03-01 15:02:02 +11:00
Nyall Dawson
7f6446afd0 [FEATURE] Use OGR to parse clipboard text so that GeoJSON (and others) can be
directly pasted into QGIS (fix #9727)
2016-03-01 15:02:02 +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
Juergen E. Fischer
143f3d6e53 run PyQgsDistanceArea in C locale 2016-02-29 10:29:40 +01:00
Nyall Dawson
b2235938e6 [FEATURE] Add km, yards and miles to distance unit options 2016-02-28 11:24:41 +11:00
Nyall Dawson
36b1db0488 Bump tolerance in distance area test 2016-02-27 09:44:14 +11:00
Nyall Dawson
87145f753c Test mask update 2016-02-27 09:43:08 +11:00
Matthias Kuhn
c79aeba0db Python unittest.expectedFailure improvements
Raises an _UnexpectedSuccess exception
Takes a boolean parameter with a condition under which the test is
expected to fail
2016-02-26 13:40:53 +01:00
Matthias Kuhn
d8ad5a3d53 The app startup / plugin path test succeeds again 2016-02-26 13:40:39 +01: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
Hugo Mercier
8fc5381b72 Merge pull request #2845 from pvalsecc/column_name_validation
Remove column name validation from virtual layers queries
2016-02-26 09:50:39 +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
Nyall Dawson
ae347bfd89 Followup fb7c683, 4e4743 2016-02-26 19:05:46 +11:00
Patrick Valsecchi
3a714ccb27 Remove column name validation from virtual layers queries
The query already went through the Sqlite query parser. So why not
trusting it? This was in the way of group by queries with count(*)
in the output fields.
2016-02-26 08:04:07 +01:00
Nyall Dawson
fb7c683969 Temporarily disable test which unexpectedly fails on Travis 2016-02-26 16:29:13 +11:00
Nyall Dawson
4e4743a2cd Fix saving vector layers with z dimension (fix #14006, #12373) 2016-02-26 15:07:35 +11:00
Juergen E. Fischer
76fcb1f7c9 PyQgsVectorFileWriter: fix comment (followup 17f20bb) 2016-02-26 02:01:17 +01:00
Juergen E. Fischer
17f20bbb36 PyQgsVectorFileWriter: adapt to a3f03f02 2016-02-25 20:31:20 +01:00
Nyall Dawson
d11e66749b Quote fields in size/width assistant (fix #14257) 2016-02-24 11:32:54 +11:00
Martin Dobias
98713a94d4 Fix tests where locale-dependent formatting of numbers is used 2016-02-23 13:49:28 +08: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
3df100f9a0 Removed debug code 2016-02-22 22:03:21 +01:00
elpaso
82cee03057 Added test data for GetFeatureInfo 2016-02-22 18:52:53 +01:00
elpaso
0a9063b42b [bugfix][server] text/plain as default info_format
Added deafult info_format (text/plain) as per specs.
Fixed error message when info format was not set or wrong.
Added test for GetFeatureInfo.
2016-02-22 18:49:55 +01:00
Hugo Mercier
0e704523b7 Fix text encoding issues in virtual layers (fixes #14350) 2016-02-22 15:03:45 +01:00
Hugo Mercier
3dea491ded Fix text encoding in request filter expression 2016-02-22 15:03:45 +01:00
Nyall Dawson
a1672da17c Fix some test failures, warnings in nightlies
Add more tolerance to distance area tests, fix doxygen param option
2016-02-22 13:48:10 +11:00
Nyall Dawson
ba7dc0d7e7 Add unit tests for #13919 2016-02-22 10:20:22 +11:00
Juergen E. Fischer
e503c705a1 change QgsAbstractGeometryV2::coordinateSequence() to return a
implicitly shared copy of an internal cache instead of recreating the
coordinate sequence again and again.

Improves performance of the nodetool on large features a lot (refs #13963)

Also introduce Qgs(Coordinate|Ring|Point)SequenceV2 typedefs.
2016-02-21 21:49:51 +01:00
Nyall Dawson
6116fdcdb4 Add a bunch of missing geometry cache clears 2016-02-21 19:55:15 +11:00
Juergen E. Fischer
5c4bf99ce2 debian packaging update: manually merge some changes from PR#2818 and
some spelling fixes.
2016-02-20 16:55:16 +01:00
Nyall Dawson
4285d70b6c Fix "feature rendering order" checkbox is not honored (fix #14323) 2016-02-19 10:11:43 +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
Nyall Dawson
87661a03cd Move field icon calculation to QgsFields, show correct field type
icons in attribute table column filter menu (instead of new
attribute icon) and in field table in vector properties
2016-02-17 21:39:58 +11:00
Sandro Santilli
cdf05acac8 Add script to create and initialize postgis test database 2016-02-17 11:08:18 +01:00
Sandro Santilli
2bd7f446b4 Fix signed 32bit integer overflow in PostgreSQL provider
Fixes #13958
Includes test for signed integer attributes
2016-02-16 17:40:34 +01:00