34511 Commits

Author SHA1 Message Date
Matthias Kuhn
9215fca239 Merge pull request #3481 from GeoCat/master
- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings
2016-09-13 21:09:04 +02:00
Chris Crook
92ed3befa6 Merge pull request #3483 from nirvn/fix_delimited_text_file
[delimitertext] fix watcher check ignored and harmful watcher created for iterator (fixes #15558)

@nirvn Many thanks for fixing this
2016-09-14 06:53:25 +12:00
Martin Dobias
717e7162f3 [FEATURE] Preview of WMTS layers + add XYZ tile layers (PR #3473)
This introduces live preview when rendering WMTS layers - as soon as individual tiles are loaded, they are shown in map canvas... no need to wait with a blank map until all tiles are fully downloaded. Additionally, if there are already locally cached tiles of other zoom levels, they may be used in the preview while the tiles with best matching zoom level are being downloaded. This greatly improves the user experience when working with WMTS layers.

Additionally, I have added native support for XYZ tile layers into WMS provider (based on existing implementation of WMTS tiling). This allows loading of various new raster tile sources (e.g. OpenStreetMap tiles) that were before available only with QuickMapServices or OpenLayers plugins. To use XYZ tile layers, open the browser dock in QGIS and look for "Tile Servers (XYZ)" root entry. Right-clicking will open a menu to add connections. For example for OpenStreetMap the URL would be http://c.tile.openstreetmap.org/{z}/{x}/{y}.png

The work on WMTS live preview has been funded by Land Information New Zealand.

The work on XYZ tile layers has been funded by Lutra Consulting.
2016-09-13 23:37:05 +08:00
Alexander Bruy
1f715c1acd add tests for Plugin Manager version compare function 2016-09-13 15:28:42 +03:00
volaya
d265f33341 [processing] cache icons to speed up toolbox rendering
fixes #15550
2016-09-13 10:09:01 +02:00
Martin Dobias
adc88f247a Bump up the tile request limit in WMS provider
Max. 100 tiles is just too low. The max request area is currently 2000x2000 pixels
which boils down to approx 8x8 tiles of size 256x256, therefore max 64 tiles.
However this is the ideal case if the view scale matches the scale of tiles.
If the map view scale is approx in between two levels, we may need 12x12 tiles
to serve the request, so bumping the maximum to 256 should be enough.
2016-09-13 14:38:59 +08:00
nirvn
b3e3108718 [delimitertext] fix watcher check ignored and harmful watcher created for iterator
(fixes #15558)
2016-09-13 11:07:03 +07:00
Martin Dobias
02599356a0 Fix crash on QMap iteration in Qt5 2016-09-13 00:37:01 +08:00
Martin Dobias
4fa3191a85 Fix tile previews with Qt5 2016-09-12 23:52:07 +08:00
mhugent
f55d7d329e Merge pull request #3469 from mhugent/fix_joins_over_several_tables2
Sort joins by dependency
2016-09-12 16:36:05 +02:00
doublebyte1
7d4d9ab46c - Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings 2016-09-12 11:52:55 +02:00
Juergen E. Fischer
93afbe12e0 fix build errors (followup 13e37d4) 2016-09-12 09:48:08 +02:00
Juergen E. Fischer
13e37d4b88 dxf export: segmentize curves
(forward ported from cc3a053)
2016-09-12 09:36:37 +02:00
volaya
074d22f6f4 Merge pull request #3471 from arnaud-morvan/processing_geometry_predicate_as_commandline
[Processing] Fix ParameterGeometryPredicate.getValueAsCommandLineParameter
2016-09-12 08:32:13 +02:00
Juergen E. Fischer
6b8130d54d remove pngs which are available as svg
(cherry picked from commit 1cbb842feb393b7bab2b31b2e970c48816c58d3c)
2016-09-11 22:33:41 +02:00
Nyall Dawson
648b779d6f Merge pull request #3477 from nyalldawson/legend_col_align
Fixes to multicolumn legends
2016-09-10 15:51:55 +10:00
Nyall Dawson
e3313fac95 Test masks 2016-09-10 14:42:33 +10:00
Nyall Dawson
52eef90061 Make sure items in legend always occupy the set number of columns
In some cases (eg a legend with 4 items and 3 columns) less
columns were being created
2016-09-10 14:42:33 +10:00
Nyall Dawson
a673fa8393 Fix multi column legends with odd number of items would place
more items in rightmost columns instead of leftmost columns

Eg a 2 column legend with 3 items would put 1 item in
the first column and 2 in the second. This was ugly, and now
it places 2 in the first column and 1 in the second.

The legend column assigner was incorrectly adding padding above
the first item in a column during column size calculation
(padding which is not present when actually rendering the column)
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
Nyall Dawson
4d0453eb52 Fix test try #5 2016-09-10 14:41:52 +10:00
Matthias Kuhn
5980165706 Testing the new online IDE github 2016-09-10 00:22:21 +02:00
Matthias Kuhn
fa67c55a6f One more try to get green light 2016-09-10 00:04:08 +02:00
Matthias Kuhn
f2fa09343e Fix tabwidget test for Qt5 2016-09-09 16:08:05 +02:00
Matthias Kuhn
b20d3b7e2d Less debug noise 2016-09-09 14:26:28 +02:00
Matthias Kuhn
9d9ce200ae Some doxymentation updates 2016-09-09 14:26:28 +02:00
Matthias Kuhn
9631688c85 [tests] Accept brief tags with <ref>erences 2016-09-09 14:26:27 +02:00
Matthias Kuhn
ac503770be Fix python bindings for QgsExpression::checkExpression 2016-09-09 14:26:27 +02:00
Matthias Kuhn
aa87113995 Bindings and API docs 2016-09-09 14:26:27 +02:00
Matthias Kuhn
1882cabea9 [Feature] conditional visibility for tabs and groupboxes
This adds a new configuration option to conditionally show or hide
tabs and groupboxes in drag and drop designer forms.

Configuration is done via a double click in the designer tree in the
fields configuration interface.

An expression can be entered to control the visibility. The expression
will be re-evaluated everytime values in the form change and the tab or
groupbox shown/hidden accordingly.
2016-09-09 14:26:27 +02:00
Matthias Kuhn
ac41436de3 Add QgsTabWidget
This is almost like the QTabWidget but has additional methods for
showing and hiding individual tabs
2016-09-09 14:26:27 +02:00
Matthias Kuhn
9626f589fb Add all applicable scopes for editor widget constraint validation 2016-09-09 14:26:27 +02:00
Matthias Kuhn
2e9715386d Small code beautification 2016-09-09 14:26:26 +02:00
Matthias Kuhn
8cf0ef93c4 Add QgsOptional and QgsOptionalExpression 2016-09-09 14:26:24 +02:00
Matthias Kuhn
760816bb41 Public default constructor and comparison operator for QgsExpression 2016-09-09 14:25:58 +02:00
Martin Dobias
03671eb29d Fix a warning in release build 2016-09-09 17:29:57 +08:00
Martin Dobias
b025e3a336 Add missing SIP bits 2016-09-09 17:01:02 +08:00
Martin Dobias
04b2239dde Use QgsDebugMsg instead of qDebug 2016-09-09 16:35:23 +08:00
Martin Dobias
f6a2a5e744 Clean up QgsRasterBlockFeedback class 2016-09-09 16:02:18 +08:00
Martin Dobias
267f263351 Move tile cache to a new file 2016-09-09 15:31:10 +08:00
Martin Dobias
02a9211687 Use cached tiles from other resolutions if available
This makes it easier to get at least basic preview without having to wait
until new tiles are downloaded. The strategy is to use tiles up to two levels
lower resolution tiles and one level higher resolution tiles.
2016-09-09 14:41:24 +08:00
Nyall Dawson
5e2a25119c Use tooltips in identify results dialog for values
Makes it possible to see full value even when columns are too
narrow to display the value
2016-09-09 16:13:33 +10:00
Nyall Dawson
f52a9a00d8 Merge pull request #3468 from nyalldawson/spin_box_v2
Rework Qgs(Double)SpinBox clear handling
2016-09-09 07:02:28 +10:00
arnaud.morvan@camptocamp.com
d85de7ccd8 Fix ParameterGeometryPredicate.getValueAsCommandLineParameter 2016-09-08 19:44:45 +02:00
Marco Hugentobler
7335482030 Indentation 2016-09-08 14:53:07 +02:00
Nyall Dawson
f16b3870fa Use QgsFilterLineEdit for Qgs(Double)SpinBox
Fixes issues with the current approach:
- poor appearance on certain environments (esp OSX)
- large area on spin boxes' right which "swallows" clicks
and blocks interactivity

Fix #12920
2016-09-08 22:10:36 +10:00
Nyall Dawson
228ff23d81 Fix cursor not always reset when clearing widget 2016-09-08 21:48:25 +10:00
Nyall Dawson
d959384c8b Allow hiding clear button in QgsFilterLineEdit 2016-09-08 21:48:25 +10:00
Nyall Dawson
d71453d84a Add ability to set default values for QgsFilterLineEdit
and have clearing the widget reset to default rather than
null
2016-09-08 21:48:25 +10:00
Nyall Dawson
edcc247c3e Add unit tests for QgsFilterLineEdit, improve docs, add clearValue slot 2016-09-08 21:48:25 +10:00