12176 Commits

Author SHA1 Message Date
Faneva
77ca11e6c0 Display project crs 2018-02-20 11:23:46 +03:00
Faneva
c50e4f27c9 review HIG import vector dialog 2018-02-20 09:06:30 +03:00
Faneva
2d2390dc73 use crs widget picker in db_manager 2018-02-20 09:06:30 +03:00
Nyall Dawson
1da2da219a Fix build 2018-02-20 11:31:33 +10:00
Nyall Dawson
3d4f6f82bb Followup 0548f4, fixes to layer metadata and metadata widget
Address outstanding review requests so that this PR can be merged
2018-02-20 11:10:55 +10:00
mj10777
0548f4267e Added QgsLayerMetadata logic to QgsDataProvider. Added setMetadata in QgsVector/RasterLayer::setDataProvider. Corrections in QgsMetadataWidget with added get/setMetadata and hasChanged functions plus checking for set mLayer pointer before use. 2018-02-20 11:06:57 +10:00
Nyall Dawson
206f22b9c7 [processing] Fix algorithm help link in modeler
Fixes #18147
2018-02-20 10:03:27 +11:00
Nyall Dawson
fdebddd13a [processing] Fix raster layers shown as inputs for certain vector algs
Fixes #18148, #18149
2018-02-20 10:03:27 +11:00
Nyall Dawson
c07f37a5cb [processing] Select by expression/attribute can run on geometryless layers 2018-02-20 10:03:27 +11:00
Juergen E. Fischer
f14b729e3b fix some references to PROJ.4 2018-02-19 22:12:09 +01:00
Denis Rouzaud
1a1b197ced use Qgsettins::enumSettingValue where possible 2018-02-19 05:55:09 -09:00
Denis Rouzaud
9e2e99fe42 snapToCurrentLayer correctly handles Area type 2018-02-19 02:08:36 -09:00
Denis Rouzaud
965a4e87aa revert adding tolerance to QgsSnappingUtils::snapToCurrentLayer
since it already uses digitizing settings
2018-02-19 02:08:36 -09:00
Alessandro Pasotti
39e1c46beb
Merge pull request #6167 from DelazJ/DBManagerQueryDialog
[DB Manager]Allow preset query combobox to expand
2018-02-19 09:42:52 +01:00
Nyall Dawson
0e3af9c6a9 [layouts] Remove use of QStyleOptionGraphicsItem from QgsLayoutItem API
Turns out the useful methods in QStyleOptionGraphicsItem were deprecated
in Qt 5.10. To future protect our API this replaces all public
use of QStyleOptionGraphicsItem, so that we're free to revise
the internals of how we use QStyleOptionGraphicsItem without breaking
the public QGIS API.
2018-02-19 19:18:24 +11:00
Nyall Dawson
d830821b13 Remove QgsInterruptionChecker and replace with QgsFeedback use
There's little need for two classes with similar goals here.
2018-02-19 10:18:00 +10:00
Juergen E. Fischer
2c53630747 add missing copyright headers 2018-02-18 20:53:40 +01:00
Juergen E. Fischer
dcfe5ca63f update translation strings 2018-02-18 17:35:34 +01:00
Blottiere Paul
323e75c029
Merge pull request #5823 from pblottiere/bugfix_curvedstrings_z
[bugfix] Fixes #17576 and #17574 Add Z support and fixes crashes
2018-02-18 10:58:09 +00:00
Denis Rouzaud
f1123501d4 make QgsTolerance a Q_GADGET
to use Q_ENUM
2018-02-17 09:33:35 -09:00
Denis Rouzaud
2f385da9c8 [offset tool] handle rings and allow selecting by area
* correctly handles rings and parts
* allow to select polygon by area (not only edge)
2018-02-17 09:33:35 -09:00
Denis Rouzaud
37f180c59e
Merge pull request #6365 from 3nids/geom_gadget
make QgsGeometry a Q_GADGET
2018-02-17 06:56:46 -09:00
Salvatore Larosa
a8a449f8c1 [processing] fix variable name 2018-02-17 16:50:43 +01:00
Denis Rouzaud
f31ba78ccd
Merge pull request #6364 from 3nids/setting_enum_value
[settings] add method to get value for a setting associated to an enum
2018-02-17 06:28:35 -09:00
Denis Rouzaud
91e98ef5a5 run sip_include.sh 2018-02-17 11:16:47 -04: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
Denis Rouzaud
1198dbad24 [settings] add method to get value for a setting associated to an enum
this will make sure the returned value is actually an existing entry of the enum
2018-02-16 21:37:05 -04:00
Blottiere Paul
53aafb4803 Z value from snapped point is kept 2018-02-16 12:57:12 +00:00
Blottiere Paul
a6a3e0b1d4 Fix spelling check and sip binding 2018-02-16 10:06:42 +00:00
Blottiere Paul
35d0f57807 Update documentation 2018-02-16 10:06:42 +00:00
Blottiere Paul
76a57b8345 The first point in 3D is used to propagate Z dimension 2018-02-16 10:06:42 +00:00
Blottiere Paul
d3b9c98383 Rename pointFromPointXY to fromPointXY 2018-02-16 10:06:41 +00:00
Blottiere Paul
7a698f234d Fixes #17574 Add Z support in AddCircularString map tools 2018-02-16 10:06:41 +00: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
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
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
nirvn
4aef3b719f [processing] fix python error with OSM vector layers 2018-02-15 15:56:53 +07:00
Alessandro Pasotti
79a924ef5c Spelling and docs 2018-02-15 09:25:26 +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
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
8697c79993 [needs-docs][ui] harmonize title of panels 2018-02-15 11:43:19 +07:00
Nyall Dawson
2defaff796 [processing] Much faster random points in polygon by using
prepared geometries
2018-02-15 09:14:01 +11:00
Nyall Dawson
81aa2f956e [processing] Misc fixes and improvements to Random Points in Polygons
- Fix missing format call for string when calculated number
of points is 0
- Fix incorrect progress reports which were spamming the dialog
and causing UI hangs, and slow algorithm execution
2018-02-15 09:14:01 +11:00
Nyall Dawson
e0cf578096 [processing] Add some missing sources to expression contexts 2018-02-15 09:14:01 +11:00
Nyall Dawson
8154a85f29 Fix Python exception in Random Points in Polygon alg
Fixes #18103
2018-02-15 09:14:01 +11:00