1948 Commits

Author SHA1 Message Date
Nyall Dawson
e42819d442 Merge pull request #2713 from nirvn/fix_memory_layer_datetime
[memorylayer] fix missing datetime field type
2016-01-27 10:27:54 +11:00
Hugo Mercier
21b095d7a3 Merge pull request #2719 from mhugo/fix_wkbtype
Fix QgsGeometry wkbType()
2016-01-26 10:13:12 +01:00
Nyall Dawson
24d9c65494 Fix more classes which violate the rule-of-three
Also remove some empty destructors
2016-01-26 14:24:45 +11:00
Hugo Mercier
3418dd003d Fix QgsGeometry wkbType() 2016-01-25 10:35:02 +01:00
Nyall Dawson
7fcc7ab195 Add specific test for QgsMultiBandColorRenderer
The raster blend mode test, which uses QgsMultiBandColorRenderer
fails occasionally for no obvious reason. This additional test
is an attempt to narrow down whether the issue lies in
rendering multi band images or elsewhere.
2016-01-25 19:05:13 +11:00
Nyall Dawson
7400ca9c87 Fix issues with conversion of renderers to rule based renderer
- expressions were not correctly translated and always treated
as a single field
- string values were not correctly escaped, resulting in a broken
renderer
2016-01-25 15:17:03 +11:00
Nyall Dawson
39e1f68ccc Fix filtering legend content by map when renderer contains
duplicate symbols (fix #14131)

Now, we don't test for map content using the symbols but instead
use the legend key during the hit test
2016-01-25 14:43:54 +11:00
Nyall Dawson
f6c0d8dd63 Use QVector instead of QList in some private contexts 2016-01-25 12:36:27 +11:00
Nyall Dawson
8ad6ca08fe Fix some memory leaks identified by Coverity
Also improve the API for QgsExpressionContextUtils::updateSymbolScope
Previously it was hard to predict if the method would create storage,
which caused issues for the python bindings (eg, they had a choice of
either leaking or being crashy).
2016-01-24 15:17:17 +11:00
Nyall Dawson
88a9f99a5d Add mask for adjacent line fill test image 2016-01-24 08:16:55 +11:00
nirvn
9c0aaa9dbe [memorylayer] fix missing datetime field type 2016-01-22 17:32:36 +07:00
Nyall Dawson
ac22e9be06 Dropped threshold too far, fix Travis build 2016-01-22 20:45:14 +11:00
Nyall Dawson
576469aff3 Drop missing doc threshold 2016-01-22 18:54:35 +11:00
Nyall Dawson
41f320f771 Remove rubbish file 2016-01-22 18:53:21 +11:00
Nyall Dawson
62429e1305 Add some tolerance to PyQgsSymbolExpressionVariables test 2016-01-22 18:52:23 +11:00
Matthias Kuhn
8d72f13a57 [25d] Improve convertability to other layers
* Move height and angle expressions for 2.5D renderer to layer
 * Apply color based on main symbol color

This makes the transition to other renderers easy.

Fixes #14132
2016-01-21 22:37:51 +01:00
Nyall Dawson
c38ee41f5b Fix rendering of CurvePolygons without curved segments (fix #14028) 2016-01-21 21:44:40 +11:00
Nyall Dawson
1a7dede155 Add TestQgsSymbolV2 with tests for rendering different geometry types 2016-01-21 21:44:34 +11:00
Juergen E. Fischer
00633811c9 spelling fixes 2016-01-21 10:42:25 +01:00
Nyall Dawson
03df709eb9 Enable and cleanup adjacent tiles test 2016-01-21 17:57:24 +11:00
Denis Rouzaud
bdf659faa1 Merge pull request #2699 from 3nids/test_join_pg
Add postgres provider to join test
2016-01-20 13:43:45 +01:00
Denis Rouzaud
13ccf70e1a test vector join: add PostgreSQL provider 2016-01-20 12:00:46 +01:00
Nyall Dawson
44559fee3b Increase tolerance on blend modes test 2016-01-20 21:34:01 +11:00
Martin Dobias
9fda6aaf53 [tracing] fix the case when OTF reprojection is disabled 2016-01-20 09:44:24 +01:00
Nyall Dawson
bac3b3001f Add some tolerance to font marker test 2016-01-20 17:05:03 +11:00
mhugent
f4bdaad59f Merge pull request #2666 from mhugent/symbology_brush_transform
Symbology brush transform
2016-01-19 16:19:09 +01:00
Nyall Dawson
7e642df52b Followup 8435fee, fix filtering of NULL values 2016-01-19 15:06:44 +11:00
Nyall Dawson
8435fee4a4 Correctly quote field name in categorized filters (fix #14118) 2016-01-19 11:38:52 +11:00
Nyall Dawson
ed5284f1df Update test mask 2016-01-17 08:52:50 +11:00
Sebastian Dietrich
52442f5ed9 added a test for loading QLR files 2016-01-16 02:01:10 +01:00
Sebastian Dietrich
0ca359e4e5 make QLR files containing non-vector layers work again
This was a regression introduced in ff3200fd6c507429b50c56b8307869d62cce6dcf.
(fixes #14091)
2016-01-15 22:35:32 +01:00
Matthias Kuhn
a2030d53fe Fix 2.5D renderer problem when order of walls matters
E.g. when the walls have different styles
2016-01-15 16:23:13 +01:00
Marco Hugentobler
9c5029ba2e Add whitespace to trigger another travis build 2016-01-15 10:34:49 +01:00
Denis Rouzaud
c063838f52 rename QgsFilePickerWidget to QgsFileWidget 2016-01-15 10:08:34 +01:00
Marco Hugentobler
7be304c34c Disable unit tests and add enum value to sip 2016-01-15 09:29:26 +01:00
Nyall Dawson
91f3005f80 [FEATURE] Expression variables relating to QGIS environment
New variables for:
- @qgis_os_name: eg 'linux','windows' or 'osx'
- @qgis_platform: eg 'desktop' or 'server'
- @user_account_name: current user's operating system account name
- @user_full_name: current user's name from os account (if available)

Sponsored by Andreas Neumann
2016-01-15 18:14:23 +11:00
Nyall Dawson
275eb9463d [FEATURE] Add closest_point and shortest_line expression functions
closest_point: returns closest point a geometry to a second geometry
shortest_line: returns the shortest possible line joining two
geometries
2016-01-15 12:50:17 +11:00
Nyall Dawson
c452c3d85f Fix some warnings and test failures on nightlies 2016-01-15 08:32:56 +11:00
Marco Hugentobler
a91b685685 Yet another slightly different control image... 2016-01-14 18:11:47 +01:00
Marco Hugentobler
d416b14cf7 Generate test images on newer system and use tolerance of 100 pixels 2016-01-14 16:58:33 +01:00
Marco Hugentobler
561690c9ee Use render job in unit test instead of vector renderer 2016-01-14 13:26:47 +01:00
Matthias Kuhn
542541007c Add extrude function to QgsGeometry 2016-01-14 12:28:31 +01:00
Nyall Dawson
45eeb95d83 Revert 13f4081 and 2b7c5c1
Ensures that Travis is testing the same documentation coverage as
the actual docs are built using.
2016-01-14 12:22:19 +11:00
Nyall Dawson
884c3ba8dd Use constGeometry to avoid some QgsFeature detachments 2016-01-14 09:58:23 +11:00
Martin Dobias
b83f6e359a Merge pull request #2665 from wonder-sk/auto-trace
[FEATURE] Tracing of features (digitizing)

Tracing can be now used in various capturing map tools (add feature, add part, ...) including reshape and split tools.

Tracing is simply a new mode for these tools - when tracing is not enabled, the tools work as usual. When tracing is enabled (by clicking the new magnet icon or pressing T key), tools switch to tracing behavior:
- first click on a vertex/edge (must be snapped!) will start tracing - moving mouse on top of the map continuously updates the trace
- next click will confirm the trace and mark start of a new trace Tracing can be enabled/disabled anytime even while digitizing one feature, so it is possible to digitize some parts of the feature with tracing enabled and other parts with tracing disabled.

Tracing respects snapping configuration for the list of traceable layers.

If there are too many features in map display, tracing is disabled to avoid potentially long tracing structure preparation and large memory overhead. After zooming in or disabling some layers the tracing is enabled again.

Internally, things work like this:
- when tracing is requested, linestrings are extracted from vector layers, then noded (using GEOSNode to resolve all intersections) and finally a simple planar graph is built (vertices + edges)
- when tracing, endpoints are temporarily added to the graph (if not equal to one of existing vertices already) and Dijkstra's algorithm is run to get shortest path

Original specs for the curious ones (the interaction with QGIS is slightly improved from what has been specified): http://www.lutraconsulting.co.uk/crowdfunding/autotrace-phase-2/specification.pdf
2016-01-13 12:18:00 +01:00
Hugo Mercier
b0bfa5feb5 Merge pull request #2662 from mhugo/vlayer_expr
Support for expression functions in virtual layers
2016-01-13 12:03:46 +01:00
Denis Rouzaud
488b41f5c5 add test for QgsFilePickerWidget 2016-01-13 11:49:25 +01:00
Matthias Kuhn
b7170b82d3 Add azimuth function 2016-01-13 11:14:25 +01:00
Matthias Kuhn
4e9afcec4c Expression variable for the currently rendered part
During rendering, two new variables will be available:

  * `geometry_part_count`
  * `geometry_part_num` (1-based index)

Useful to apply different styles to different parts of multipart
features
2016-01-13 08:17:49 +01:00
Nyall Dawson
3da051b989 More debugging output for raster layer test 2016-01-13 16:19:06 +11:00