30794 Commits

Author SHA1 Message Date
Nyall Dawson
9b6fa0d5c4 Fix @value is overwritten for some symbol properties (fix #14148) 2016-01-27 12:41:10 +11:00
Nyall Dawson
39f0035246 Improve preview of current variable value in expression builder 2016-01-27 11:36:56 +11:00
Nyall Dawson
0356752c64 DateTime is also a native type for postgres provider 2016-01-27 11:36:16 +11:00
Nyall Dawson
a665b7d72e Don't crash when using raster calculator with huge raster (refs #13336)
Now we abort and advise the user if insufficient memory is available
to perform the calculation.

At some future stage it would be nice to perform the calculations
in blocks to allow this scenario, but for now it's better not to
crash.
2016-01-27 10:48:12 +11:00
Sebastian Dietrich
560007846a [DbManager] allow to delete materialized views
(refs #13829)
2016-01-27 00:28:22 +01:00
Sebastian Dietrich
990261331d [DbManager] give materialized views their own icon 2016-01-27 00:28:22 +01:00
Sebastian Dietrich
50878114a7 [DbManager] fetch type of view (materialized or not) and show in info
(refs #13829)
2016-01-27 00:28:22 +01:00
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
Nyall Dawson
7b01b414fd Mark some inbuilt expression variables with missing read-only flag 2016-01-27 10:22:30 +11:00
Nyall Dawson
3744ac2fc4 Fix categorised renderer does not store changes to the source symbol
Avoids the frustrating situation where changes to a symbol in the
categorised renderer are lost when the layer properties window
is reopened

Also improve docs and fix a leak in the Python bindings
2016-01-27 09:58:47 +11:00
Nyall Dawson
1eedb06d35 Fix crash when opening new virtual layer dialog 2016-01-27 09:13:30 +11:00
Nyall Dawson
36b6a16603 Merge pull request #2723 from mhugo/fix_vlayer_ui
Fix virtual layer creation GUI
2016-01-27 09:13:00 +11:00
volaya
99b9a495b8 [processing] fixed autodetection of grass folder
Fix provided by Stefan Blumentrath
2016-01-26 19:43:06 +01:00
Hugo Mercier
f8d593855f Fix virtual layer creation GUI 2016-01-26 16:47:34 +01:00
Alexander Bruy
beaa45e557 Merge pull request #2705 from SebDieBln/FixVectorGridLock
[fTools] restore 1:1 ratio when checking 'Lock 1:1 ratio' checkbox
2016-01-26 13:10:58 +02: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
Martin Dobias
492c1a9ff0 Improve documentation for renderer registry metadata (refs #13973) 2016-01-25 18:16:32 +01:00
Martin Dobias
83eed1109c Improve renderer class documentation (refs #14025) 2016-01-25 18:16:32 +01:00
Matthias Kuhn
b5ee06dc28 Merge pull request #2702 from alexbruy/styles-bindings
fix SIP bindings for listStylesInDatabase() method (fix #11210)
2016-01-25 17:39:20 +01:00
Martin Dobias
82eabb1976 Fix crash in vector layer properties when changing renderer type (fixes #14164) 2016-01-25 13:16:05 +01:00
Hugo Mercier
3418dd003d Fix QgsGeometry wkbType() 2016-01-25 10:35:02 +01:00
volaya
73bef58470 [processing] correctly initialize lastools settings before loading algs 2016-01-25 10:12:04 +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
a20d50340d Swap QString::replace using trivial QRegExp expressions with simple
QString variants

Rationale:
1. It's *much* faster
2. I managed to get a valgrind report from the intermittently crashing
PyQgsRulebasedRenderer test, which indicated the crash related to
the use of QRegExp in qgsexpressionlexer.ll. Let's see if this has
any impact on that crash....
2016-01-25 18:50:17 +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
cf3c55bdfc [travis] Warn on unintentional switch fallthrough
Intentional fallthrough should be annotated with

"FALLTHROUGH;"
2016-01-25 14:41:07 +11:00
Nyall Dawson
f6c0d8dd63 Use QVector instead of QList in some private contexts 2016-01-25 12:36:27 +11:00
Juergen E. Fischer
5574d40022 fix warnings 2016-01-25 01:35:35 +01:00
Juergen E. Fischer
ae52aabd70 more spelling fixes 2016-01-24 20:16:28 +01:00
Matthias Kuhn
265f53ceea Fix wording and add warning 2016-01-24 17:35:56 +01:00
Nyall Dawson
ac033cfc9d Refactor and optimise certain QgsWKBTypes functions
Given how frequently these functions are called throughout QGIS,
it makes sense for them to be written in a way that makes it easy
for the compiler to optimise them/inline them.
2016-01-24 20:26:56 +11:00
Matthias Kuhn
ba530a0f1c Merge pull request #2715 from SebDieBln/FixWarnDualViewLayout
Fix warning when a QLayout is already present in QgsDualView.
2016-01-24 10:25:33 +01:00
Juergen E. Fischer
bbfcbcae10 snapping:
* skip index build if snapping is off
* use feature request limit when creating the snapping index
2016-01-24 07:21:23 +01: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
Jürgen Fischer
1dc8fc3c4e Merge pull request #2716 from SebDieBln/LoadShowPlusSign
[Bugfix] Correctly load the labeling-setting to show a plus-sign next to numbers (fixes #13474)
2016-01-24 02:50:56 +01:00
Sebastian Dietrich
df4c0c1247 fix loading the labeling-setting to show a plus-sign next to numbers
(fixes #13474)
2016-01-24 01:13:05 +01:00
Juergen E. Fischer
764c649842 potential fix for PyQgsAppStartup by avoiding cloudflare 2016-01-23 22:40:31 +01:00
Nyall Dawson
88a9f99a5d Add mask for adjacent line fill test image 2016-01-24 08:16:55 +11:00
Martin Dobias
fc086adb34 Remove too much debug output when loading attribute table (refs #14041)
This makes debug version much faster, probably not much difference in release version
2016-01-23 20:40:59 +01:00
Martin Dobias
a618f85a96 Hide extra encoding option from the vector "save as" dialog
There is already another combo box for encoding selection.
2016-01-23 20:27:18 +01:00
Martin Dobias
5512d5443f Fix regression in vector "save as" that saved shapefiles as .dbf only (fixes #14158) 2016-01-23 20:21:05 +01:00
Salvatore Larosa
8346601174 [processing] remove unused code: followup e7e8451 2016-01-23 15:03:34 +01:00
Sebastian Dietrich
da43fb70e7 Fix warning when a QLayout is already present in QgsDualView. 2016-01-23 14:59:53 +01:00
Salvatore Larosa
09ce8004fd avoid messages warning: this also avoids the warning like:
```
QObject::connect: Cannot connect (null)::repaintRequested() to LayerPreview::refresh()
QObject::connect: Cannot connect (null)::layerCrsChanged() to LayerPreview::layerCrsChange()
```

from dbmanager when changing layer preview.
2016-01-23 13:21:29 +01:00
Nyall Dawson
bfad753f37 Fix coverity issues 2016-01-23 10:31:00 +11:00
Marco Hugentobler
e83a7c869f Follow up 200ce04b88c515d9880615d7254e45d1a50049a4 2016-01-22 20:01:22 +01:00
unknown
200ce04b88 Fix shapes not deleted on windows 2016-01-22 18:16:22 +01:00
Alexander Bruy
9193d8f5a0 [processing] drop GdalScriptAlgorithm as it is not used
Also remove OgrAlgorithm base class at it almost completely duplicates
GdalAlgorithm class. All affected algorithms updated accordingly.
2016-01-22 15:47:20 +02:00