44231 Commits

Author SHA1 Message Date
Nyall Dawson
4689537842 Fix build warning 2017-12-05 08:30:52 +11:00
Nyall Dawson
13614dc4bb Readability fix 2017-12-05 08:03:28 +11:00
Nyall Dawson
11f610b7ba Fix build using mingw
Credit to t-hey
2017-12-05 08:01:49 +11:00
Borys Jurgiel
f180ea4454 [Plugin manager] Use raw string for zip file path to avoid escaping '\U' in C:\Users. Fixes #17624 2017-12-04 18:37:30 +01:00
Borys Jurgiel
053fec89a2 Fix untranstatable strings 2017-12-04 15:44:46 +01:00
Matthias Kuhn
1cef982614 Fix build warning 2017-12-04 14:57:32 +01:00
Matthias Kuhn
5d8783f96e Hide aggregate button in non-aggregate context 2017-12-04 14:57:32 +01:00
Alessandro Pasotti
e4dabe57df Don't leak memory in bookmarks delegate 2017-12-04 09:40:11 +01:00
Nathan Woodrow
57dc9deb06
Add API to ease saving and restoring widget geometry. (#5615)
Usage:
 - QgsGui::instance()->enableAutoGeometryRestore( this ); just
after setupUi in your widgets to enable.
 - Remove any calls to saveGeometry() and restoreGeometry() in your
widgets.
2017-12-04 13:41:42 +10:00
Nyall Dawson
21fe98d5f0 Sipify 2017-12-04 13:10:28 +10:00
Nyall Dawson
d3e561fced Fix build warning 2017-12-04 11:35:58 +10:00
Mathieu Pellerin
d0e927a84f
Fix rubber band handing of curved geometries (#5790) 2017-12-02 15:42:12 +07:00
Martin Dobias
f8788b9185 [3d] Fix style copy/paste for 3D renderer (fixes #17540) 2017-12-02 09:32:23 +01:00
Martin Dobias
be76e23896 [3d] Disable 3D view for unprojected (lat/lon) CRS
The fact that the map units are in degrees instead of meters means that various bits of the code
(e.g. tolerances) are not behaving correctly due to changes in coordinate values being several
orders of magnitude lower. So for the time being it is safer to disable 3D view for unprojected
CRS and just let the user choose a projected CRS for the project.
2017-12-02 09:29:13 +01:00
nirvn
02d9e1453b Enable preview jobs to improve projection map UX when dragging around 2017-12-02 14:43:25 +07:00
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