32620 Commits

Author SHA1 Message Date
Alexander Bruy
555fe3d911 [processing] simplify variables handling in scripts 2016-05-13 09:34:25 +03:00
Alexander Bruy
0c8f6f7fbb fix indentation and typo 2016-05-13 09:32:13 +03:00
Alexander Bruy
730c5806aa Merge branch 'processing_exps' of https://github.com/volaya/QGIS into processing_exps
Conflicts:
	python/plugins/processing/gui/NumberInputPanel.py
	python/plugins/processing/gui/OutputSelectionPanel.py
2016-05-13 09:26:55 +03:00
Nyall Dawson
b51d70ab95 Correctly emit presetsChanged() from QgsVisibilityPresetCollection 2016-05-13 10:05:05 +10:00
Nyall Dawson
7b64feb7e1 Group add db layer actions together in toolbar
The add layer toolbar is very full and users are unlikely to be
connecting to more than one db provider type frequently (eg
at a workplace they will likely have access to a Postgres db
OR a MSSQL db, not both concurrently)
2016-05-13 08:05:34 +10:00
Nyall Dawson
1f59541b9c Fix flipped marker fill and outline color 2016-05-13 08:05:33 +10:00
Nyall Dawson
79b979458f [FEATURE] New map tool for interactively setting point symbol offset
Allows for setting a point's offset if it is bound to a field using
data defined overrides (fix #14738)

TODO: replace temporary icons

Sponsored by North Road
2016-05-13 08:05:23 +10:00
Even Rouault
65a37dbe07 Fix style of nullptr comparisons 2016-05-12 23:24:39 +02:00
Even Rouault
8259b3fcc9 QgsSQLStatement::quotedIdentifierIfNeeded(): make it quote SQL reserved keywords 2016-05-12 23:24:39 +02:00
Even Rouault
84a797ea86 [FEATURE] [WFS provider] Add support for WFS 2.0 joins and other improvements
Second part of qgis/QGIS-Enhancement-Proposals#53
(QEP 35: WFS provider enhancements)

- URI parameter with sql with SELECT / FROM / JOIN / WHERE / ORDER BY clauses
- handle WFS 2.0 joins
- handle DateTime fields
- enable "Only request features overlapping the view extent" by default (and memorize the settings)
- rework DescribeFeatureType parsing to handle responses with several documents, and some support for attribute types being complexType
- rework feature transfer between downloader and iterator so as to avoid uncontrolled RAM usage when the iterator cannot keep up with the downloader
- turn on WAL journaling for better reader / writer concurrency
- add retry logic based on the 'Max retry in case of tile request errors' setting (renamed 'Max retry in case of tile or feature request errors')
- error to MessageBar in case of failed download
- in progress dialog, add a "Hide" button to mask the dialog
- improve automated testing
- add testing of the GUI of QgsWFSSourceSelect
2016-05-12 23:24:39 +02:00
Even Rouault
e503ca82e2 QgsVectorLayer::setSubsetString(): call updateFields()
Useful for WFS provider whose setSubsetString() can potentially
modify fields if changing the SELECT fields
2016-05-12 23:24:39 +02:00
Even Rouault
1da1c278e7 QgsOgcUtils: add conversion from QgsSQLStatement to OGC filters 2016-05-12 23:24:39 +02:00
Even Rouault
84129604a9 Add a QgsSQLComposerDialog GUI to edit QgsSQLStatement 2016-05-12 23:24:39 +02:00
Even Rouault
9df19e0133 Add QgsSQLStatement class to parse SELECT statements 2016-05-12 23:24:39 +02:00
Even Rouault
12a630f050 QgsGML: extend to be able to parse WFS 2.0 GetFeature response with join layers
And also fix handling srsDimension=3 on main GML geometry objects and not only posList
2016-05-12 23:23:44 +02:00
Even Rouault
9aa2dea341 QgsCodeEditorSQL: make autocompletion case insensitive when APIs are set on the lexer 2016-05-12 23:23:44 +02:00
Even Rouault
4a761df9ff QgsCodeEditor: workaround 2 QScintilla bugs
- Fix one bug with Scintilla 2.8.X when focus out event does not
  disable blinking cursor
- Make QScintilla widget not capture Escape key so that it can
  propagate to parent.
2016-05-12 23:23:43 +02:00
Even Rouault
b38a16fe2e Implement representValue() for Relation Reference widget 2016-05-12 19:52:26 +02:00
Alexander Bruy
583eaeff7f [processing] don't crash if user canceled script loading 2016-05-12 16:27:24 +03:00
Nyall Dawson
6886ea0d0c [FEATURE] Redesigned interactive gradient editor
Uses new gradient editor widget and color controls for easier
manipulation of gradients. Also adds an interactive plot
for modifying gradient stops via the color HSV or RGB values.

Fix #8383

Sponsored by North Road
2016-05-12 21:03:59 +10:00
Nyall Dawson
881be0f365 [FEATURE] New reusable interactive widget for editing gradient ramps
Supports:

- drag to move color stops
- double clicking to add a new stop
- pressing delete will remove the selected stop
- pressing arrow keys will move the selected stop, shift+arrow= larger
  move
- drag and drop a color onto the widget to add a new stop

Sponsored by North Road
2016-05-12 21:03:51 +10:00
Nyall Dawson
79f3d4221b Add equality operator for gradients, ensure stops are always in order 2016-05-12 20:55:27 +10:00
Nyall Dawson
77fc122bed Move internals of QgsColorDialogV2 to new QgsCompoundColorWidget widget
This allows reuse of the full options from the color dialog when
required in a widget form.
2016-05-12 20:52:16 +10:00
Nyall Dawson
0332157d8a Partial revert 18b69d 2016-05-12 10:22:22 +10:00
Nathan
febd18eec7 [Style Dock] Attach widget changed for graduated widgets 2016-05-12 09:07:36 +10:00
Nyall Dawson
18b69d26ef Indentation 2016-05-11 23:02:34 +10:00
Nyall Dawson
88d3e2aa7f [FEATURE] Show stats for string and date fields in stats dock 2016-05-11 23:02:33 +10:00
Nyall Dawson
b053ad8769 New class QgsDateTimeStatisticalSummary
Calculates summary statistics on lists of datetime values, such
as count, count distinct, min, max and range
2016-05-11 23:02:33 +10:00
Matthias Kuhn
0d165e5621 Merge pull request #3058 from arnaud-morvan/processing_postgis_errors
Processing - Fix unicode/str error in postgis_utils
2016-05-11 12:30:14 +02:00
Matthias Kuhn
ab7a07a64e Migrate "Hidden" widgets to "Hidden" attribute table columns 2016-05-11 12:28:40 +02:00
arnaud.morvan@camptocamp.com
66b1416dfe Processing - Fix unicode/str error in postgis_utils 2016-05-11 11:27:58 +02:00
Matthias Kuhn
5a2ab50699 Followup d088fe0: Fix failing test 2016-05-11 11:09:38 +02:00
Matthias Kuhn
1e9a40fb62 Fix python bindings for QgsAttributeAction 2016-05-11 10:04:00 +02:00
Matthias Kuhn
d088fe072d Fix action widget on attribute table 2016-05-11 09:22:49 +02:00
Matthias Kuhn
604da1f24d Followup 59db4d0: Cleanup 2016-05-11 09:22:49 +02:00
Matthias Kuhn
86ccaff49a Merge pull request #3063 from DelazJ/fields
use same icons as in other dialogs for this task
2016-05-11 07:57:45 +02:00
Nyall Dawson
5177d93b5a Add time field filter option for QgsFieldComboWidget (also add docs) 2016-05-11 11:59:39 +10:00
Nyall Dawson
b4029dc7f0 Fix datetime fields not shown in QgsFieldComboWidget when set to date filter 2016-05-11 11:59:39 +10:00
Nyall Dawson
a389d237fc Fix QgsFieldComboWidget not updating fields when calling setFilter() 2016-05-11 11:59:39 +10:00
Nathan Woodrow
54e6eb3410 [Style Dock] Only disable the widget and not the dock 2016-05-11 10:55:59 +10:00
Nyall Dawson
ab288c6b12 Fix coverity mixed enum warning, switch 0 -> nullptr 2016-05-11 10:00:01 +10:00
Nyall Dawson
f4b63c6861 Fix coverity uninitialized variable warnings 2016-05-11 10:00:01 +10:00
Nathan Woodrow
4dde0c3dd3 Code style 2016-05-11 09:37:08 +10:00
Nyall Dawson
5306f552c9 Fix crash when selecting geometryless layer and style widget is open 2016-05-11 09:34:18 +10:00
Nyall Dawson
22acf3b1a3 Avoid refreshing canvas for every joined feature
Instead of setting the provider's subsetString to fetch joined
features, use a feature request with FilterExpression instead.
(Setting the subsetString results in a canvas refresh.)

Performance should be similar (if expression compilation is
enabled) and this also has the advantage of avoiding provider-
specific behaviour (eg case insensitive matching).

(fix #14800)
2016-05-11 09:34:11 +10:00
Stéphane Brunner
11a5a69e34 Be able to store the bookmarks in the project (#2661) 2016-05-11 09:01:58 +10:00
Nathan
d278b95906 [Style Dock] Use readStyle for undo 2016-05-11 08:48:18 +10:00
Nathan
1b63602545 Fix early return in writeSymbology
Talk about a noob error :)
2016-05-11 08:43:49 +10:00
Nyall Dawson
21c6486a26 Merge pull request #3056 from rouault/gdal_make_autowarpedvrt_for_rpc
[GDAL provider] Use GDALAutoCreateWarpedVRT() when the dataset has only RPC
2016-05-11 05:08:55 +10:00
Nyall Dawson
0f6838df2a Merge pull request #3034 from rouault/ogr_concurrent_opening
[BUGFIX / FEATURE] [OGR] Allow concurrent edition of Shapefiles and Tabfiles in QGIS & MapInfo
2016-05-11 05:07:57 +10:00