828 Commits

Author SHA1 Message Date
Nyall Dawson
3253cdc2fb Unit tests for displacement and cluster renderer 2016-09-30 08:42:16 +10:00
Alessandro Pasotti
949241d3ac Merge pull request #3540 from elpaso/auth-integration-test
Auth integration test + more reliable server tests
2016-09-29 12:18:13 +02:00
Alessandro Pasotti
49ae0206f4 [Server 3.0] Tests reliability + new auth test
- Local server searches for a free port before binding
- Server tests now ignore attributes order
- Updated reference docs
- Renamed projects ("+" -> "_")
- Added a smoke test for auth manager and WMS/WFS providers
2016-09-29 11:47:32 +02:00
Nyall Dawson
67d5e19303 Update test masks (Qt5 on Fedora) 2016-09-29 12:23:02 +10:00
Alessandro Pasotti
76d1e8a8ea [Server 3.0] migrate more tests 2016-09-26 19:32:14 +02:00
Nyall Dawson
10ee1c3c26 Update test masks 2016-09-23 13:58:14 +10:00
Nyall Dawson
e4f44722a1 Server access control test masks (Qt5) 2016-09-19 10:20:25 +10:00
Nyall Dawson
e7f8e0e04f Update test masks (ubuntu 16.04 qt5) 2016-09-19 09:45:16 +10:00
Nyall Dawson
8746932193 Merge pull request #3467 from pvalsecc/arrays
[FEATURE] Add support for array attributes
2016-09-16 06:13:34 +10:00
Nyall Dawson
25125b089e Remove deprecated composer methods 2016-09-14 07:20:17 +10:00
Patrick Valsecchi
abc55f4c42 Add support for arrays in PostgresQL
Fix parsing of PostgresQL hstore. Had problems when the key or values were
containing comas.
2016-09-12 10:33:00 +02:00
Nyall Dawson
e3313fac95 Test masks 2016-09-10 14:42:33 +10:00
Nyall Dawson
570e6936b6 Add a bunch of tests for legend grouping into columns 2016-09-10 14:42:33 +10:00
Patrick Valsecchi
3d6e7c8bdb Add hstore support to the postgres provider 2016-09-08 09:51:46 +02:00
Patrick Valsecchi
7169079f91 Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.

Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.

I took the opportunity to remove a few deprecated method in relation to
this.
2016-09-05 14:22:17 +02:00
Nyall Dawson
6dbdd4c24b Update test masks for qt5 2016-09-05 13:44:41 +10:00
Andrea Aime
a25b0257a5 Export map level scale based dependencies in most vector symbology 2016-09-01 07:40:56 +02:00
Patrick Valsecchi
5ee97adc16 Add heuristic to not simplify geometries for nothing
Tested with a release binary and Swiss OSM roads in PostGIS at several zoom
levels (the higher, the less features), values in ms (average over at
least 100 queries):

Level | Before | After | % improvement
-------------------------------------------
7     |  37    |  36   | 2.7
6     |  41    |  38   | 7.32
5     |  48    |  46   | 4.17
4     |  70    |  64   | 8.57
3     | 114    | 109   | 4.39

Not much improvement (I'm quite dispointed, here), but not much change in
the code.
2016-08-16 12:48:35 +02:00
Denis Rouzaud
ea4e5cb7c0 additional fields should be placed at the end 2016-08-15 10:48:39 +02:00
Nyall Dawson
c2a232848c Add provider test for postgres with compound key 2016-08-15 10:48:33 +02:00
Juergen E. Fischer
b08a9e7951 rename test images 2016-08-10 12:12:28 +02:00
Juergen E. Fischer
d4bd17615b fix PyQgsSymbolLayer test 2016-08-10 12:12:28 +02:00
Juergen E. Fischer
eeebf4be08 rename QgsComposerSymbolItem::symbolV2() to symbol() 2016-08-10 12:12:28 +02:00
Nyall Dawson
863c73db8f Label test mask updates 2016-08-09 16:55:13 +10:00
Nyall Dawson
c3f720f80b [pal] Only apply distance from line midpoint penalty to non closed linestrings
Sponsored by Andreas Neumann
2016-08-09 16:55:12 +10:00
Nyall Dawson
dc0cc32046 Further tweaks to line labeling, add tests
Sponsored by Andreas Neumann
2016-08-09 16:55:11 +10:00
Nyall Dawson
01e6c04980 Labeling tests 2016-08-09 16:55:11 +10:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Nyall Dawson
3d6688cce5 Add labeling tests for letter/word spacing 2016-07-27 06:37:16 +10:00
Nyall Dawson
5228de353c Update curved label test reference images 2016-07-27 06:37:16 +10:00
Nyall Dawson
92eec0e338 Revert "[labeling] Curved labels are now angled per character"
This reverts commit f6d07a33b71a9b19579d19dadbe777b1f14c6842.
2016-07-20 19:44:13 +10:00
Nyall Dawson
4bcae0693d Revert "Update labeling reference images"
This reverts commit 1aec78145f7553ca62584a9bb626b8a531a01a8e.
2016-07-20 19:44:04 +10:00
Nyall Dawson
fc88336a62 Revert "Add labeling tests for letter/word spacing"
This reverts commit 9dfdfc645f327b38ef90974751104c4b1523736e.
2016-07-20 19:43:57 +10:00
Nyall Dawson
9dfdfc645f Add labeling tests for letter/word spacing 2016-07-20 13:04:50 +10:00
Nyall Dawson
1aec78145f Update labeling reference images 2016-07-20 13:04:50 +10:00
Frits van Veen
f6d07a33b7 [labeling] Curved labels are now angled per character
...instead of shifted along base line (fix #15210)
2016-07-20 13:04:50 +10:00
Nyall Dawson
7f2bdcf342 Update legend test masks, fix for PyQt5 2016-07-14 07:12:15 +10:00
Nyall Dawson
2f8c6f5207 [composer] Add a checkbox for legends to prevent automatic resizing
A new checkbox has been added to the legend settings to control
whether or not a legend should be automatically resized to fit
its contents.

If unchecked, then the legend will never resize and instead just
stick to whatever size the user has set. Any content which
doesn't fit the size is cropped out.

Refs #10556

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Nyall Dawson
4f31ab656e [composer] Fix setting legend content by map not resizing legend
When a legend was set to filter content by map, it wasn't
consistently being resized to fit the legend contents. This caused
issues for atlas exports where legends could grow but never
shrink.

Fix #14707

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Nyall Dawson
93f2eec711 [composer] Fix initial size of legend is wrong if symbol size in
map units is used (fix #11921)

On behalf of Faunalia, sponsored by ENEL
2016-07-13 17:35:44 +10:00
Nyall Dawson
f9d839fac5 [oracle] Fix handling of date/time types
Also add test for Oracle default values

On behalf of Faunalia, sponsored by ENEL
2016-07-07 22:17:45 +10:00
Nyall Dawson
38e65c3f75 [oracle] Implement provider test suite
On behalf of Faunalia, sponsored by ENEL
2016-07-06 16:35:58 +10:00
Alessandro Pasotti
b819f2baa8 Added multiple edit and attributes tests 2016-06-29 16:30:47 +02:00
Nyall Dawson
4080aad0ee [ogr] Read GPX elevation values as geometry Z values 2016-06-27 19:34:28 +10:00
Hugo Mercier
8976c9de02 Allow curved polygons to be inverted (fixes #15113) 2016-06-23 16:09:23 +02:00
Hugo Mercier
6fae6e22b0 Update arrow mask image 2016-06-21 11:18:19 +02:00
Hugo Mercier
36e7f920c2 Fix outline rendering in arrow symbol layer 2016-06-21 10:33:54 +02:00
Sandro Santilli
57ff59aa2d Ignore files generated during "make check" 2016-06-16 18:38:36 +02:00
Nyall Dawson
aa0e6d8944 Followup c78347, update test images 2016-06-16 18:30:22 +10:00
Nyall Dawson
2265115f80 Fix issues rendering SVG with text (fix #14644, #14794) 2016-06-08 18:46:01 +10:00