45933 Commits

Author SHA1 Message Date
Jürgen Fischer
030714c8f3
Merge pull request #6329 from DelazJ/QMessageBoxTitles
Fix some message boxes titles
2018-02-17 11:33:05 +01:00
Felis Pimeja
dedfb5ccb6 Updated and vectorized several icons (#6362)
mActionFileExit
repositoryUnavailable
repositoryDisabled
repositoryConnected
mActionRefresh
mIconDelete
mActionRemoveSelectedFeature
mActionFromSelectedFeature
2018-02-17 15:42:53 +07:00
Harrissou Sant-anna
b3b17b6557 More message box fixes 2018-02-17 09:41:11 +01:00
Nyall Dawson
7e4cdc024b Update test 2018-02-17 19:10:46 +11:00
Nyall Dawson
1f3ee0501a [processing] Always report errors if features cannot be written
to a destination

Before we silently ignored these - now algorithms will automatically
push errors to the log if a feature cannot be written to a sink (no
changes to algorithms or special handling required)
2018-02-17 19:10:46 +11:00
Nyall Dawson
84d2443b0a Try to fix postgres provider handling of missing attributes 2018-02-17 19:10:04 +11:00
Nyall Dawson
877efca82e Correct test 2018-02-17 19:10:04 +11:00
Nyall Dawson
141caddb62 Add test that providers always accept features with null geometry 2018-02-17 19:10:04 +11:00
Nyall Dawson
0e68a3e775 Rollback rejection of features with too many attributes
Turns out editable joins rely on this situation. Instead change
the providers to warn on this occurance, and make the memory
provider alone truncate the extra attributes (since it doesn't
have an external backend or disk based format which natively
applies this truncation)
2018-02-17 19:10:04 +11:00
Nyall Dawson
5ee54e095d Fix test 2018-02-17 19:10:04 +11:00
Nyall Dawson
453c56e070 Fix adding features with geometry to geometryless memory layer 2018-02-17 19:10:04 +11:00
Nyall Dawson
0a5d48612c Add provider test to ensure providers reject adding features
with geometry type mismatch
2018-02-17 19:10:04 +11:00
Nyall Dawson
7187ae3544 Ensure ogr, postgis and memory providers reject features
with too many attributes
2018-02-17 19:10:04 +11:00
Nyall Dawson
4ae476da99 Add provider test to ensure that adding features to a provider
with MORE attributes than expected results in a failure

We need to flag these and not silently discard the extra
attributes resulting in loss of information -- if thisi
situation occurs there's a deeper bug present whic
 needs to be addressed.
2018-02-17 19:10:04 +11:00
Juergen E. Fischer
17039ff195 Adapt packaging to c988dd291 2018-02-17 07:41:20 +01:00
Alessandro Pasotti
bbcd332a78 Fix raster layer names in geopackage browser data items 2018-02-16 15:00:40 +01:00
Nyall Dawson
52585cf226 Fix memory provider handling of missing attributes when adding features
Ensure that features added to a memory provider (and returned when
fetching features from a memory provider) always have the correct
number of attributes present.

Fixes many random behavior bugs when working with memory providers.
2018-02-16 22:36:23 +11:00
Nyall Dawson
6d3b37a85e Add provider test to ensure that features added with missing attributes
are transparently padded out with NULL attributes to the required fields
length

Currently the behavior is inconsistent - some providers reject these
features, others pad them out, and worse -- some add them with
missing attributes (memory provider), causing ALL sorts of flow-on,
difficult to debug issues.
2018-02-16 22:36:23 +11:00
Alessandro Pasotti
8628ba1bdd
Merge pull request #6356 from elpaso/bugfix-17721-color-picker
[bugfix] Restore color picker from layer styling panel
2018-02-16 11:47:11 +01:00
Alessandro Pasotti
f3349616fa Change button color when picking around
So that we have a consistent behavior with the
Sample Color action.
2018-02-16 10:18:30 +01:00
Alessandro Pasotti
0310c1d253
Merge pull request #6354 from elpaso/NathanW2-settings_17670
Nathan w2 settings 17670
2018-02-16 09:57:58 +01:00
Nyall Dawson
14787ffb32 [processing] Add easy method to retrieve layers from context
Allows python algorithms to call

layer = context.getMapLayer(other_alg_results['OUTPUT'] )
2018-02-16 19:49:30 +11:00
Juergen E. Fischer
ceee370bf7 debian nightlies: ignore dash submission errors 2018-02-16 09:13:26 +01:00
Alessandro Pasotti
26edd8ac8e Check for application instance before calling init 2018-02-16 09:11:26 +01:00
nirvn
3836cd32f0 followup 6dfedc3, fix processing tests 2018-02-16 10:33:53 +07:00
Nyall Dawson
a6a36acc14
Merge pull request #6316 from nyalldawson/locator_thread
Make QgsLocator more thread safe
2018-02-16 12:36:09 +11:00
Nyall Dawson
838bde33ab [dbmanager] Workaround Python error when vacuuming spatialite table
Workaround https://bugs.python.org/issue28518

Fixes #18079
2018-02-16 12:34:16 +11:00
Nyall Dawson
d380c61096
Merge pull request #6353 from nyalldawson/proc_normalize
[processing] Don't replace " with ' when handling layer paths
2018-02-16 12:33:50 +11:00
Juergen E. Fischer
b6111d296e fix 6dfedc38 2018-02-16 01:34:58 +01:00
Juergen E. Fischer
6dfedc38e9 translation string fixes and cleanups 2018-02-15 22:31:15 +01:00
Alessandro Pasotti
948452b78a [bugfix] Restore color picker from layer styling panel
Fixes #17721

Successfully tested on Windows 10 and Linux with Qt 5.10
2018-02-15 15:24:50 +01:00
Alessandro Pasotti
f1f1c3d155 [server] Stop messing with app initialization paths 2018-02-15 14:39:53 +01:00
Alessandro Pasotti
e4407c6bb4 Remove debug output from stdout 2018-02-15 14:39:21 +01:00
Alessandro Pasotti
6701371b80 Add init() to QGSTEST_MAIN
Now that it's not called from ctor anymore
2018-02-15 12:23:42 +01:00
Marco Hugentobler
fa815f023f Fix warning 2018-02-15 11:17:35 +01:00
nirvn
4aef3b719f [processing] fix python error with OSM vector layers 2018-02-15 15:56:53 +07:00
Alessandro Pasotti
f8f877021c
Merge pull request #6344 from elpaso/bugfix-18084-save-as-titles
[bugfix] Homogenize the vector and raster dialog titles
2018-02-15 09:48:24 +01:00
Alessandro Pasotti
79a924ef5c Spelling and docs 2018-02-15 09:25:26 +01:00
Werner Macho
19ab0c86ec
Merge pull request #6352 from OSGeo-jp/tr30
[tr] Add a Japanese translator
2018-02-15 08:57:50 +01:00
Juergen E. Fischer
aa8b629682 osgeo4w: remove explicit setting of QGISDEBUG 2018-02-15 08:54:43 +01:00
Alessandro Pasotti
0e14a46ec8 ... -> Ellipsis 2018-02-15 08:39:15 +01:00
Nyall Dawson
46dc2f6e5b [processing] Avoid losing static, user-entered parameter values
in model child algorithms

Prior to this change if you edited an algorithm in a model and
tried to enter a preset string for certain parameter types, this
string would get silently discarded on closing the dialog. E.g.
with a dissolve algorithm it was not possible to have a fixed
field name within the model to dissolve by.

This was caused by WidgetWrapper.comboValue  returning the customData
for these manually entered values in the parameters combo box,
yet manually entered values never have custom data.

To work around this we only return the custom data if its
set for the selected item - otherwise we return the text unchanged.
In order to handle the "[not set]" options, a new static custom
data value of WidgetWrapper.NOT_SET_OPTION is added to that
comboValue can detect this and return the appropriate None value.
2018-02-15 17:45:19 +11:00
Nyall Dawson
12fcfac0d5 [processing] Ensure algorithms which add attributes to features
always add a consistent amount of attributes regardless of the
code paths taken

Some algorithms were adding features to data providers with
different number of attributes vs the layer's fields - this is
not supported and depending on the data provider will have
different (bad) results.
2018-02-15 17:45:00 +11:00
Nyall Dawson
5c40975fe7 [processing] Don't replace " with ' when handling layer paths
Since netcdf, and possibly other gdal drivers, use layer uris
of the format NETCDF:"/tmp/test.nc":var1 we can't safely
remove or reformat these quotations.
2018-02-15 16:43:21 +10:00
Minoru Akagi
dd5448f8bf Add a Japanese translator 2018-02-15 14:48:52 +09:00
Nyall Dawson
a8110369a8 [processing] Don't throw an exception if an expression cannot
be prepared

There's cases where this happens without reflecting an invalid
expression. So we can try to prepare, but not abort if the
preparation fails.

Fixes #18103
2018-02-15 15:43:26 +11:00
nirvn
e0b1d37cac [ui] sort items in the view > panels sub-menu 2018-02-15 11:43:19 +07:00
nirvn
8697c79993 [needs-docs][ui] harmonize title of panels 2018-02-15 11:43:19 +07:00
Nyall Dawson
bc23f1d677 Ensure QgsMapLayer private QObject members are correctly parented
to the layer
2018-02-15 12:11:01 +11:00
Nyall Dawson
2defaff796 [processing] Much faster random points in polygon by using
prepared geometries
2018-02-15 09:14:01 +11:00