Nyall Dawson
8f9f975ed6
[processing] Show complete expression context in expression builder
...
for pre-calculated expressions
Correctly exposes ALL the variables and functions available for use
in pre-calculated expressions so that users actually know they can
use these in their models!
2018-09-22 05:26:29 +10:00
Nyall Dawson
8e49e94d92
Tweak processing algorithm scope -- parameters should be available even if algorithm is unset
2018-09-22 05:26:29 +10:00
Nyall Dawson
2d3b8c8ee3
Highlight 'to_dms' and 'to_dm' functions in map annotation expression builder
2018-09-22 05:26:29 +10:00
Nyall Dawson
0e64d9295b
Fix warnings
2018-09-22 05:26:29 +10:00
Nyall Dawson
8e1c437e02
Allow expression contexts to specify a list of highlighted functions
...
as well as just variable names
In some cases contexts may provide specific functions of use
to that context, or more generally there may be functions we want
to highlight for a particular expression builder (e.g. highlighting
to_dms in the grid annotation builder)
2018-09-22 05:26:29 +10:00
Nyall Dawson
5cf04334d7
First steps towards expression context
2018-09-22 05:26:29 +10:00
Nyall Dawson
7af13f62c0
Set widget context for widget wrappers
2018-09-22 05:26:29 +10:00
Nyall Dawson
55e22b9de9
Allow setting the context for widget wrappers
...
The context contains settings which reflect the context ini
which a Processing parameter widget is shown, e.g., the
parent model algorithm, a linked map canvas, and other relevant
information which allows the widget to fine-tune its behavior.
2018-09-22 05:26:29 +10:00
Nyall Dawson
33eb295b1e
Distance parameter unit tests
2018-09-22 05:26:29 +10:00
Nyall Dawson
11667683b4
Distance
2018-09-22 05:26:29 +10:00
Nyall Dawson
ee8389afee
Unit tests
2018-09-22 05:26:29 +10:00
Nyall Dawson
c406ec3be2
Start on numeric wrapper
2018-09-22 05:26:29 +10:00
Juergen E. Fischer
e85c09254c
translation string fix
2018-09-21 15:51:34 +02:00
Juergen E. Fischer
c5cac98179
debian packaging: add saga as build dependency for Processing tests
2018-09-21 15:51:34 +02:00
Blottiere Paul
2807c2f883
Merge pull request #7961 from tudorbarascu/fix_sld
...
fix stroke Width sld import
2018-09-21 15:32:49 +02:00
Alessandro Pasotti
2869681367
Merge pull request #7976 from elpaso/bugfix-19895-gpkg-vacuum
...
[browser] GPKG VACUUM menu item
2018-09-21 12:16:59 +02:00
Alessandro Pasotti
b81da8504a
GPKG vacuumGeoPackageDb non-gui method and gui action
...
Also moved non-gui things together
2018-09-21 11:38:39 +02:00
Alessandro Pasotti
0ee119f72b
Merge pull request #7969 from elpaso/bugfix-19901-relation-reference-NULL
...
QgsFeatureListComboBox nullRepresentation instead of hardcoded "NULL"
2018-09-21 10:56:34 +02:00
Alessandro Pasotti
6609e651a8
GPKG: do not run vacuum after raster deletion
...
See my previous commit, for consistency
we do not run VACUUM automatically when
a raster is deleted.
A menu item allows the user to run VACUUM
manually
A possible UX improvement would be to add
a button to the success dialog that
offers the user the option to run VACUUM
after a successful layer deletion.
2018-09-21 10:41:47 +02:00
Alessandro Pasotti
b51cb21d1a
GPKG Browser VACUUM menu item
...
Fixes #19895 - Garbage-collection is not performed after deletion of vector layer from geopackage
By design, VACUUM (being a potentially time-consuming operation)
was automatically performed only after deleting a raster
while when deleting a vector layer it was not executed.
This commit adds a menu item in the browser that allows
the user to perform this operation on the DB.
2018-09-21 10:38:25 +02:00
Nyall Dawson
30b757b184
More in-place support tweaks, add tests
2018-09-21 18:15:46 +10:00
Nyall Dawson
8951e153f0
Difference and split with lines can be used in in-place mode
2018-09-21 18:15:46 +10:00
Nyall Dawson
b4883eecba
Support in-place drop edit geometry operation
2018-09-21 18:15:46 +10:00
Nyall Dawson
a764b4bd93
Boundary alg requires geometry for in-place edits
2018-09-21 18:15:46 +10:00
Nyall Dawson
df657d4fd3
Fix some exceptions when running in-place edit on geometry-less layer
2018-09-21 18:15:46 +10:00
Nyall Dawson
4b24552097
Change QgsProcessingAlgorithm::supportInPlaceEdit to use QgsMapLayer, not QgsVectorLayer
...
Because at some stage in the future we may allow in-place edits to raster layers,
and we don't want to have to break API for this.
2018-09-21 18:15:46 +10:00
Nyall Dawson
e2068b8c1f
[processing] Pass a copy of the feature to processFeature, not
...
the original layer's feature
Otherwise python processFeature implementations may return a
modified shallow copy of this feature, which means that the
test for modifications fails, since we're comparing against
the same feature which was modified.
Fixes some python algorithms do not modify features when used
in-place mode.
2018-09-21 18:02:21 +10:00
Alessandro Pasotti
1b2d885a03
Merge pull request #7966 from elpaso/bugfix-19843-dbmanager-quoted-sql
...
[dbmanager] Fix Update SQL Layer converts query to table name
2018-09-21 09:56:35 +02:00
Tudor Bărăscu
1955ebb7c9
server disabled test for failing getmap req with Line sld
2018-09-21 10:14:38 +03:00
Nyall Dawson
936b0c1d4f
Fix messed up collapse icon in measure dialog
2018-09-21 15:13:52 +10:00
nirvn
16106860e4
further improve icon
2018-09-21 11:41:32 +07:00
nirvn
7b1bd3da6e
[ui] add a dedicated icon for style manager & align toolbar icons
2018-09-21 11:41:32 +07:00
Nyall Dawson
66f82530bd
[processing] Correctly make extent selection combo box non-editable
...
The choice is supposed to be only from the listed options, and
shouldn't allow free-form user text
2018-09-21 13:16:13 +10:00
Nyall Dawson
f44be44ca9
[processing] Fix capitalization, ellipsis in extent parameter widget
2018-09-21 13:16:13 +10:00
Matthias Kuhn
68dc6984da
Fix build with sip pre 4.19
2018-09-21 01:22:19 +02:00
Luigi Pirelli
6e02f9f4fa
test for update of parameterLayerList managing QgsProcessingOutputLayerDefinition
2018-09-21 09:00:56 +10:00
Luigi Pirelli
d641b306d3
fix lack of management of input as QgsProcessingOutputLayerDefinition
2018-09-21 09:00:56 +10:00
Luigi Pirelli
006553f9d3
fix correct string list representation of QgsProcessingOutputLayerDefinition
2018-09-21 09:00:56 +10:00
Loïc Bartoletti
a2db44c383
Welcome back mSettings->setValue ... snap_invisible_feature ...
2018-09-21 07:33:45 +10:00
Tudor Bărăscu
f125d3f792
add image mask and make travis happy
2018-09-20 20:42:13 +03:00
Alessandro Pasotti
5378e37cf9
QgsFeatureListComboBox nullRepresentation instead of hardcoded "NULL"
...
Fixes #19901 - Relation Reference Widget: Representation for NULL values is not respected
2018-09-20 16:30:02 +02:00
Denis Rouzaud
7b5afb953f
use qreal overloads of painter methods in advanced digitizing canvas item ( #7967 )
...
* use qreal overloads of painter methods in advanced digitizing canvas item
* better use of existing variables
2018-09-20 06:01:04 -08:00
Tudor Bărăscu
7a9d08eddf
add test for Point SLD highlight on server
2018-09-20 14:06:38 +03:00
Alessandro Pasotti
a8bf1b8f05
[dbmanager] Fix Update SQL Layer converts query to table name
...
Fixes #19843
2018-09-20 12:43:59 +02:00
Alessandro Pasotti
f208191824
Merge pull request #7946 from elpaso/bugfix-19617-processing-checkvalidity
...
Fix processing algorithm checkvalidity reason
2018-09-20 10:17:12 +02:00
Alessandro Pasotti
b62048d93f
Merge pull request #7963 from elpaso/bugfix-17967-19893-gpkg-raster-delete-win
...
Fix cannot delete GPKG from raster on windows
2018-09-20 10:02:50 +02:00
Alessandro Pasotti
e62c4eb941
Fix cannot deletete GPKG from raster on windows
...
Fixes #17967 #19893
2018-09-20 09:17:28 +02:00
nirvn
5ec3d5d990
[processing] improve in-place feature editing icon & toolbar position
2018-09-20 11:55:46 +07:00
Denis Rouzaud
3ceecbf806
no override in SIP
2018-09-19 20:13:29 -04:00
Denis Rouzaud
637f716929
Merge pull request #7962 from 3nids/remove_stupid_casts
...
convert old style cast
2018-09-19 16:10:15 -08:00