44421 Commits

Author SHA1 Message Date
Mathieu Pellerin
bec099ea33
Fix displayed extent for US National Atlas CRS (and others) on projection map (#5738) 2017-12-02 14:36:33 +07:00
Nyall Dawson
389435e1a0
Merge pull request #5729 from nyalldawson/proc_dyanmic
[processing] Expose dynamic ("data defined") numeric parameters to gui
2017-12-02 14:32:45 +11:00
Nyall Dawson
65a0c069b9
Merge pull request #5430 from nyalldawson/raster_formats
[FEATURE] More output format choices in raster save as dialog
2017-12-02 12:46:58 +11:00
Nyall Dawson
9378f392c8 Show closest vertex attributes in identify tool for multipoint layers 2017-12-02 11:17:19 +10:00
Nyall Dawson
1625d1fa2c Disable direct parameter value input when data defined override is set 2017-12-02 11:17:19 +10:00
Nyall Dawson
8c9147eabd [processing] Make set m value accept dynamic m values 2017-12-02 11:17:19 +10:00
Nyall Dawson
c5f65359d8 Cache field lookup when evaluating field-based property values 2017-12-02 11:17:19 +10:00
Nyall Dawson
d1a71f0971 Update algorithms for new API 2017-12-02 11:17:19 +10:00
Nyall Dawson
86958937ad Tweak processing API to better handle dynamic properties 2017-12-02 11:17:19 +10:00
Nyall Dawson
58ab507717 Fix failing test 2017-12-02 11:17:18 +10:00
Nyall Dawson
4b464f3d68 [processing] Allow data defined z value for "set z value" algorithm
Allows easy setting of z from an existing height attribute!
2017-12-02 11:17:18 +10:00
Nyall Dawson
b782fab59d [processing] Make buffer distance a dynamic property
Data defined buffer distance through the processing toolbox!
2017-12-02 11:17:18 +10:00
Nyall Dawson
901dae1110 [processing] Expose data defined button for dynamic numeric parameters
When running algorithms through the toolbox, which have dynamic
numeric parameters, add a data defined property override button
next to the widget so that users can set the overrides for these
parameters.

Previously this was available only in the backend, but not
exposed anywhere in the GUI.

Note that currently no algorithms support dynamic parameters,
so don't expect to see this everywhere. It's also only available
in toolbox/batch processing modes, not in models.
2017-12-02 11:17:18 +10:00
Nyall Dawson
ecbc4718d4 [processing] Some more framework for dynamic (data defined) parameters 2017-12-02 11:16:26 +10:00
Nyall Dawson
618baf925d Small refactor of QgsPropertyOverrideButton 2017-12-02 11:13:31 +10:00
Nyall Dawson
5f77a48e10 Remember window geometry for raster save dialog 2017-12-02 11:11:45 +10:00
Nyall Dawson
9e4518fe42 [FEATURE] More output format choices in raster save as dialog
Previously only geotiff format was available, even though the
underlying QgsRasterFileWriter/GDAL libraries support other
formats.

This commit exposes those other formats to the dialog so that
users can directly save rasters to them (including everyone's
new BFF, geopackage).
2017-12-02 11:11:45 +10:00
Nyall Dawson
6b23e1f299
Merge pull request #5600 from Gustry/sortby
add order by expression algorithm
2017-12-02 11:43:48 +11:00
Nyall Dawson
b8b8c1ae93
Merge pull request #5787 from nyalldawson/index
Fix OGR provider cannot create attribute or spatial indexes for GeoPackage/SQLite layers
2017-12-02 11:43:19 +11:00
Nyall Dawson
aaa18e0b89 Address review comments 2017-12-02 09:01:25 +10:00
Nyall Dawson
791eb91b9b Fix OGR provider cannot create attribute or spatial indexes for
GeoPackage/SQLite layers

Previously this capability was only exposed for shapefiles,
but was available in the spatialite provider. We don't use that
for GeoPackages, so I've ported the functionality across to
the OGR provider for these data sources.

Includes unit tests
2017-12-02 08:27:49 +10:00
Alessandro Pasotti
31c79da523 Don't crash when project has no layers
This only crashes when Qt is built in
debug mode because there is an assert
in the item model class that checks for
index range validity.
2017-12-01 18:23:19 +01:00
Alessandro Pasotti
19b062c304
Merge pull request #5766 from Gustry/file_downloader
Display the downloaded size in QgsFileDownloaderDialog
2017-12-01 14:30:34 +01:00
Alessandro Pasotti
b22825a41d
Merge pull request #5779 from elpaso/bugfix-17003-16350-bookmarks
[bugfix] Bookmarks: fix a crash and show 6 digits
2017-12-01 14:30:10 +01:00
Alessandro Pasotti
6c897b6b1e [bugfix] Bookmarks: fix a crash and show 6 digits
Fixes #17003 Spatial bookmarks keyboard navigation:
right-arrow causes a row to appear below the current
one and looks like a tree expansion (actually crashes
master)

Fixes #16350 Spatial Bookmark Panel: precision gets
trimmed
2017-12-01 12:07:18 +01:00
Alessandro Pasotti
0e2207ab3c
Merge pull request #5776 from elpaso/bugfix-17005-bookmarks-sorting
[bugfix] Bookmarks sorting with a proxy model
2017-12-01 11:53:43 +01:00
Nyall Dawson
1c1de3a88b [processing] Fix optional numeric parameters cannot be cleared
Without this change optional numeric parameters have no way to
be cleared in the GUI - they are always forced to have a value

Fixes #17471 - but I've noticed that many optional numeric
GRASS parameters have a non-null default value. These may
need to be investigated and manually changed to None defaults
in the description files.
2017-12-01 20:42:38 +11:00
Nyall Dawson
db855029de Fix not-set defaults for numeric parameters were converted to 0 2017-12-01 20:42:38 +11:00
Nyall Dawson
297e8561a0 Bump lowest possible min for numeric parameters to -DBL_MAX + 1
We need to reserve -DBL_MAX as a special value, to allow it to
work correctly in QDoubleSpinBoxes (limitation of QDoubleSpinBox)
2017-12-01 20:42:38 +11:00
Nyall Dawson
6b56565f89 Show nicer tooltips for numeric processing parameters
With min/max and default values (when set)
2017-12-01 20:42:38 +11:00
Nyall Dawson
8303b94685 [processing] Fix optional layer parameters are filled by default
Refs #17471

Not a full fix for 17471 - that requires handling of optional
numeric values too
2017-12-01 20:42:38 +11:00
Nyall Dawson
0fcbeb7867 Add missing qHash for older Qt versions 2017-12-01 20:42:38 +11:00
Nyall Dawson
8026008ae7 [processing] group option for autoincrement field algorithm 2017-12-01 20:42:38 +11:00
Alessandro Pasotti
62ff88af03
Merge pull request #5737 from elpaso/hidpi-cursors
[bugfix][hidpi] Scalable SVG theme cursors
2017-12-01 09:52:32 +01:00
Nyall Dawson
f6e63d7f4c Fixes and cleanups to algorithm dialogs 2017-12-01 18:15:40 +11:00
Nyall Dawson
ce170918c9 Start moving processing algorithm dialog to c++
In an attempt to avoid Python global interpreter locks which
block the UI thread.
2017-12-01 18:15:40 +11:00
Nyall Dawson
3c238a2ba4 Add missing overrides 2017-12-01 15:47:53 +10:00
Nyall Dawson
bcc1b91b74
Merge pull request #5717 from nyalldawson/layout_next4
[layouts] Port/adapt all remaining item types
2017-12-01 13:43:58 +11:00
Nyall Dawson
c12770d041 Indentation 2017-12-01 10:00:42 +11:00
Nyall Dawson
d7111b7849 Standardise some algorithm names 2017-12-01 10:00:42 +11:00
Nyall Dawson
e1ce7dda70 Show algorithm ID in tooltip in toolbox 2017-12-01 10:00:42 +11:00
Alessandro Pasotti
8233a8fbdc [bugfix] Bookmarks sorting with a proxy model
Fixes #17005 spatial bookmarks can't be sorted

I believe that this has been broken since https://github.com/qgis/QGIS/pull/2661
2017-11-30 18:37:07 +01:00
Martin Dobias
306b3fac30 [3d] Rename "Reset view" to "Zoom Full" (fixes #17568) 2017-11-30 18:20:08 +01:00
Alessandro Pasotti
43fd35127d
Merge pull request #5772 from elpaso/bugfix-17584-bookmarks-sync
[bugfix] Bookmark project sync
2017-11-30 18:03:01 +01:00
Martin Dobias
8aa05735de
Merge pull request #5768 from wonder-sk/fix-17514-crs-change
Fix 3D view if terrain DEM is in different CRS
2017-11-30 17:30:30 +01:00
Alexandre Neto
95e40c2499 Adds missing tooltips 2017-11-30 16:21:49 +00:00
Etienne Trimaille
133051a174 add warning about sort algorithm might not work as expected 2017-11-30 15:24:10 +01:00
Etienne Trimaille
7303297d7f add some notes in processing test readme 2017-11-30 15:22:13 +01:00
Etienne Trimaille
1b8faa2a79 add sort by expression algorithm 2017-11-30 15:22:13 +01:00
Etienne Trimaille
88054a3744 display the downloaded size in QgsFileDownloaderDialog 2017-11-30 14:29:24 +01:00