59442 Commits

Author SHA1 Message Date
Alessandro Pasotti
0abb481249 Forbid slashes in stored expression labels labels
... because labels become part of the QSettings key
2019-12-17 13:57:22 +01:00
Alessandro Pasotti
403972dedd Capitalize window title 2019-12-17 12:09:28 +01:00
David Signer
3da65e0296 doc 2019-12-17 11:25:46 +01:00
Alessandro Pasotti
9e2f9c06b3 Remove this 2019-12-17 11:14:47 +01:00
Matthias Kuhn
ead3b62c1e
Merge pull request #33435 from m-kuhn/vectorlayerref_header
Install missing header
2019-12-17 10:42:31 +01:00
signedav
4cbd9a1ee3
Merge pull request #33197 from signedav/searchtags_functions
Search tags on expression functions
2019-12-17 09:28:26 +00:00
Alessandro Pasotti
e4b4459af0 Use QStringLiteral 2019-12-17 10:19:16 +01:00
Alessandro Pasotti
3759c6ae8e Load stored at start in fieldcalc 2019-12-17 10:09:56 +01:00
nirvn
c9453343cb fix test 2019-12-17 15:15:49 +07:00
nirvn
3404dff67e [labelling] Fix masked symbol layers loss when
- opening layer properties window; or
- changing label settings in style dock
2019-12-17 15:15:49 +07:00
Matthias Kuhn
cde49d5b66 No sip 2019-12-17 08:50:28 +01:00
Hugo Mercier
fa20ebd8d9 Use manual label positions for some selective masking tests 2019-12-17 08:18:52 +01:00
Hugo Mercier
d6ee3ed520 Fix rendering regression
In parallel rendering, make sure mFinalImage exists before drawing
labels.
2019-12-17 08:18:52 +01:00
Hugo Mercier
5d8899bd66 Fix selective masking control images 2019-12-17 08:18:52 +01:00
Matthias Kuhn
cfb4ff5322 Install missing header 2019-12-17 07:37:33 +01:00
Matthias Kuhn
98f8a89704
Merge pull request #33204 from olivierdalang/feature_random_seed_squashed
[FEATURE][expressions] allow to seed random functions
2019-12-17 07:31:26 +01:00
Nyall Dawson
30b2919c81 Make custom projection validation button work on proj < 6 2019-12-17 11:59:40 +10:00
Nyall Dawson
84af693557 Fix build on proj < 6 2019-12-17 11:59:40 +10:00
Nyall Dawson
759ba8d7c3 Fix sqlite errors when trying to save an updated custom projection through the custom projection dialog 2019-12-17 11:59:40 +10:00
Nyall Dawson
aa864dcff8 Fix test calculations in custom projection dialog under proj 6
Refs #33038
2019-12-17 11:59:40 +10:00
Nyall Dawson
c24f79da26 When the custom projection dialog is blocked from closing due to an invalid projection, automatically
select that projection in the list for the user
2019-12-17 11:59:40 +10:00
Nyall Dawson
aa0b9b0547 [needs-docs] Add a "Validate" button to custom projection dialog
to allow users to validate the currently edited CRS definition
without having to accept the whole dialog

If the validation fails, the proj error messages are shown
to help the user determine why the string is invalid
2019-12-17 11:59:40 +10:00
Nyall Dawson
c2b55ebb1f Better messagebox titles 2019-12-17 11:59:40 +10:00
Nyall Dawson
4991a27ddb Use correct message box icons in custom projection alerts 2019-12-17 11:59:40 +10:00
Nyall Dawson
308eae9a33 Allow deleting multiple custom projections at once 2019-12-17 11:59:40 +10:00
Nyall Dawson
10e0910557 Update a test result for proj 6 2019-12-17 11:58:55 +10:00
Nyall Dawson
3efae69f10 Add test results for proj < 6 2019-12-17 11:58:55 +10:00
Nyall Dawson
4275e7d12f Refine logic relating to syncing project ellipsoid choice to CRS selections
in project properties dialog

Keep the existing logic which dictates that we should never overwrite
a user-set "NO ellipsoid" setting when the project CRS is changed, BUT
add a condition that if the project goes from NO CRS to A CRS, we
DO sync the ellipsoid choice for that first change only and overwrite
the default NO ellipsoid which is forced for projects with no crs.

Add unit tests to protect this logic, and hopefully see the last of
this crappy fragile dialog handling...

Fixes #33358
2019-12-17 11:58:55 +10:00
Nyall Dawson
5375fdf58c Fix loss of crs set for QgsProjectionSelectionWidget if widget is never
shown, fix missing signals and duplicate signals
2019-12-17 11:58:55 +10:00
Nyall Dawson
1dde86a70e Remove some unused/empty code 2019-12-17 11:58:55 +10:00
Nyall Dawson
c2441caa9b Ensure output of QgsCoordinateReferenceSystem::ellipsoidAcronym() matches
the acronyms and format user in QgsEllipsoidUtils

Refs #33358
2019-12-17 11:58:55 +10:00
Nyall Dawson
c7ee6e93a6 remove_temporary_files should also remove .temp files 2019-12-17 11:58:55 +10:00
Nyall Dawson
296f78f3b8 Update test results to reflect proj master 2019-12-17 11:58:55 +10:00
Nyall Dawson
a0280f7cb5 Update test result for proj 6 2019-12-17 11:58:55 +10:00
Nyall Dawson
24d773c8e0 Add unit tests that project ellipsoid survives the trip through the project properties dialog
(test needs adapting for proj 6)
2019-12-17 11:58:55 +10:00
Nyall Dawson
2cc64f9cc7 Fix initial selection in project ellipsoid list is reset whenever the dialog
is reopened

Refs #33358
2019-12-17 11:58:55 +10:00
Matthias Kuhn
78ad518e9a
Merge pull request #33427 from m-kuhn/fix_crash_with_invalid_raster_layer
Fix crash with invalid layer
2019-12-16 21:44:54 +01:00
David Signer
fe9a7ee5bd function to get info about available values to avoid duplicate code 2019-12-16 19:01:12 +01:00
David Signer
83be397f8d menu action to only display the used values if formatter can provide available values 2019-12-16 18:28:18 +01:00
David Signer
8e0b9388b8 make const and better variablenames 2019-12-16 18:28:18 +01:00
David Signer
5e6e75662f available values in value relations 2019-12-16 18:28:18 +01:00
David Signer
54f4efbd86 available values of value map 2019-12-16 18:28:18 +01:00
David Signer
a02cdbc39a CanProvideAvailableValues as a flag on fieldformatter 2019-12-16 18:28:18 +01:00
David Signer
6baaae5340 get availableValues over the fieldFormatter 2019-12-16 18:28:18 +01:00
David Signer
f2dbb2e2ca label text and comment 2019-12-16 18:28:18 +01:00
David Signer
bfde9609b1 check if referencedLayer available 2019-12-16 18:28:18 +01:00
Alessandro Pasotti
09345b5130 Add QgsExpressionStoreDialog 2019-12-16 17:29:30 +01:00
Alessandro Pasotti
2ab794bcc5 Add tests and utility methods 2019-12-16 17:29:30 +01:00
Alessandro Pasotti
e8d76e2a92 Stored expressions initial implementation 2019-12-16 17:29:30 +01:00
Matthias Kuhn
8e791807e4 Fix crash with invalid layer 2019-12-16 16:36:08 +01:00