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
11667683b4
Distance
2018-09-22 05:26:29 +10:00
Juergen E. Fischer
e85c09254c
translation string fix
2018-09-21 15:51:34 +02:00
Even Rouault
ea2cc365db
[OGR provider] Make sure to use layername= syntax in URI of multilayer datasources ( fixes #19885 )
2018-09-21 15:32:19 +02:00
Even Rouault
9e9ddb587e
SIP: fix typemap for QVector<Type*> that was wrongly dropping a Python reference (refs #19885 )
2018-09-21 15:31:28 +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
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
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
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
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
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
Alessandro Pasotti
82a5c8f170
Move test from tests to processing folder
2018-09-19 18:29:26 +02:00
Matthias Kuhn
fde813ca82
Merge pull request #7948 from m-kuhn/final
...
It's the `final` countdown
2018-09-19 16:34:54 +02:00
Matthias Kuhn
3cb82a58c8
Merge pull request #7959 from m-kuhn/geometryOptions
...
Add a new QML category "Geometry Options"
2018-09-19 15:52:38 +02:00
Matthias Kuhn
1c359f8acd
Add a new QML category "Geometry Options"
...
And rename QgsGeometryFixes to QgsGeometryOptions
2018-09-19 13:51:00 +02:00
Matthias Kuhn
b2072d8298
Add missing sip magic
2018-09-19 13:48:47 +02:00
Martin Dobias
1390198c37
Fix doxygen link
2018-09-19 13:20:31 +02:00
Martin Dobias
2da705864b
Fix search tolerance when doing identification in 3D map view
...
Until now the identification from 3D map view used tolerance based
on the current view of the main 2D map canvas - that was giving often
unexpected results if the 2D map canvas had significantly different
zoom level from the 3D map view.
2018-09-19 13:20:31 +02:00
Alessandro Pasotti
826056e42c
Merge pull request #7951 from elpaso/bugfix-19802-dbmanager-saved-queries
...
Bugfix 19802 dbmanager saved queries
2018-09-19 11:44:18 +02:00
Matthias Kuhn
b65f725cfa
Rename SIP_FINAL to FINAL
2018-09-19 08:42:44 +02:00
Matthias Kuhn
8d9c96c911
Add final
for sip >= 4.19
2018-09-19 07:47:02 +02:00
Nyall Dawson
17326541cd
[processing] Add method to attempt to reattach model children to linked algorithms
...
Refs #19857
2018-09-19 05:04:09 +10:00
Matthias Kuhn
ddaa8ea4af
inline and virtual are no good friends
2018-09-18 18:53:48 +02:00
Alessandro Pasotti
a74b6262df
[dbmanager] Fix stored queries retrieve
...
Fixes #19802 - DB Manager saved SQL statements are saved empty
2018-09-18 18:22:58 +02:00
Matthias Kuhn
9f407d0b41
Make methods in QgsVectorLayer finally final
2018-09-18 18:04:50 +02:00
Alessandro Pasotti
42573f7476
Merge pull request #7933 from nyalldawson/edit_in_place_feedback
...
[processing] Show a message bar success message after running in-place, parameterless alg
2018-09-18 17:14:58 +02:00
Alessandro Pasotti
001a81bc46
Fix processing algorithm checkvalidity reason
...
Fixex #19617 - Check validity algorithm returns empty reason in attribute table
2018-09-18 16:36:30 +02:00
Alessandro Pasotti
d179635b92
[bugfix] Allow empty null representation in spinboxes
...
Fixes #18583 - Widget "Range": Representation for NULL value is NOT always displayed correctly
2018-09-18 12:54:17 +02:00
Nyall Dawson
e005d6e2b9
[processing][gdal] Strip newlines from custom proj CRS definitions
...
before passing to GDAL commands
Fixes #19855
2018-09-18 14:57:22 +10:00
nirvn
fb80835911
[processing] fix history dialog alg. execution with CRS params
2018-09-18 14:56:52 +10:00
Nyall Dawson
335a696d87
Dox
2018-09-18 14:54:36 +10:00
nirvn
f160847ebc
[processing] allow geometryless layers as input in aggregate alg.
2018-09-18 11:08:28 +07:00
Nyall Dawson
209b6ee853
Cleaner messagebar item popping
2018-09-18 09:41:09 +10:00
Nyall Dawson
bfc5a1754f
[processing] Show a message bar success message after running an
...
in-place alg if no parameter dialog is shown
Allows users to know that the algorithm has actually run in case
there's no visible changes
2018-09-18 09:40:28 +10:00
Nyall Dawson
f51487551b
[processing] Use display name, not alg ID in undo history for in-place mode
2018-09-18 08:27:33 +10:00
nirvn
9f51a4c7d1
[processing] fix large points in polygon count overflow by using an int64 field
2018-09-17 18:54:06 +07:00
Juergen E. Fischer
144dd158c5
fix d67958183
2018-09-17 09:32:18 +02:00
Juergen E. Fischer
239e93deeb
run gdal_calc on Windows and gdal_calc.py on othes platforms ( fixes #19482 )
2018-09-17 02:34:36 +02:00
Juergen E. Fischer
d67958183e
Initialize translations before application members ( fixes #19853 )
2018-09-17 02:34:36 +02:00
olivierdalang
953ea96bfb
fixes #19825
2018-09-15 14:56:45 +10:00
olivierdalang
77d7d666d1
add tests for #19824
2018-09-15 14:53:40 +10:00
olivierdalang
340631f850
fix #19824 where modifications to project models were not saved
...
Models definitions are now stored in a dict rather than list
which allows for less verbose code to reference models by name
2018-09-15 14:53:40 +10:00
Denis Rouzaud
3724f9e9e2
use a model for select map layer style categories ( #7907 )
...
this avoids cluttering QgsMapLayer and reduces a bit code redundancy
2018-09-14 09:38:52 -08:00