8478 Commits

Author SHA1 Message Date
Nyall Dawson
67f25fed0e Update test to reflect changes in proj library 2019-12-18 12:44:17 +10:00
Alessandro Pasotti
89cacd7180
Merge pull request #33437 from elpaso/stored-expressions
[feature] Stored expressions
2019-12-17 20:13:32 +01:00
Alessandro Pasotti
fd6075e80b Renamed stored expressions to user expressions 2019-12-17 17:10:43 +01:00
nirvn
c9453343cb fix test 2019-12-17 15:15:49 +07:00
Hugo Mercier
fa20ebd8d9 Use manual label positions for some selective masking tests 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
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
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
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
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
Alessandro Pasotti
2ab794bcc5 Add tests and utility methods 2019-12-16 17:29:30 +01:00
olivierdalang
3eeaddd99f followup : better test output 2019-12-16 15:59:20 +01:00
Matthias Kuhn
b42a31ec2f
Merge pull request #32472 from troopa81/feature_selectionwidget_in_featureselectiondialog
Selection widget in feature selection dialog
2019-12-16 11:32:25 +01:00
olivierdalang
e14d77c9b8 (still fiddling with tests) 2019-12-16 09:53:40 +01:00
Matthias Kuhn
3b4437bcf8
Merge pull request #33333 from lbartoletti/expression-is_empty
Add expressions is_empty(geom)  is_empty_or_null(geom)
2019-12-16 08:06:58 +01:00
Nyall Dawson
0d84e35839 Update test images 2019-12-15 10:18:47 +10:00
Alessandro Pasotti
7464290ae3
Merge pull request #33379 from elpaso/widget-dependencies-move-to-formatter
Move layerDependencies to formatter
2019-12-14 09:00:08 +01:00
Nyall Dawson
cf95f1452e Fix another test under proj6 2019-12-14 05:33:59 +10:00
Nyall Dawson
da92b3fe8d Fix another test under proj 6 2019-12-14 05:33:59 +10:00
Nyall Dawson
526963efb2 Fix a test under proj 6 2019-12-14 05:33:59 +10:00
Nyall Dawson
05eaa65737 Fix transform differences vs proj < 6 when using custom CRS via proj definition
By being more selective about when we force convert to a single crs

Fixes #32928
2019-12-14 05:33:59 +10:00
Nyall Dawson
9be6b333d0 Fix build 2019-12-14 05:33:59 +10:00
Nyall Dawson
51046d98f6 Fix incorrect reverse coordinate transforms are created when using a
PROJ 6+ build and a project has manual coordinate operation pathways
set

Refs #33121
2019-12-14 05:33:59 +10:00
Nyall Dawson
a1ac77877f Add a method to determine if the coordinate operation string returned
by QgsCoordinateTransformContext.calculateCoordinateOperation corresponds
to the reverse of what's actually required.

Gross API, but it's the best we can do until proj has a method to
invert a coordinate operation so that we can return the proper
inverse operation proj string from calculateCoordinateOperation
(without resorting to fragile proj string parsing/mangling)
2019-12-14 05:33:59 +10:00
Nyall Dawson
ef19797997 Add method to retrieve the details of the coordinate operation which is
actually being used by a QgsCoordinateTransform object
2019-12-14 05:33:59 +10:00
Nyall Dawson
8994a4b994 Update test results for proj < 6 2019-12-14 05:32:55 +10:00
Nyall Dawson
8de83c5133 When saving and restoring CRS definitions to XML, save wkt
definition too, and prefer rebuilding the CRS from the WKT
definition whenever it's available

Proj strings are lossy, so prefer WKT
2019-12-14 05:32:55 +10:00
olivierdalang
111a9eb1b8 (still fiddling with tests) 2019-12-13 17:37:13 +01:00
Julien Cabieces
55c8434872 fix test : the feature selection dlg is not modal anymore 2019-12-13 17:34:22 +01:00
Julien Cabieces
d224a7ce99 [FEATURE][needs-docs] Add feature filtering and selection actions in feature selection
dialog
2019-12-13 17:33:40 +01:00
olivierdalang
65112f83e5 followup: do not use uniform_real_distribution as it's platform dependant 2019-12-13 15:01:19 +01:00
Alessandro Pasotti
a368e4483e Add tests for field formatter dependencies 2019-12-13 13:49:37 +01:00
Alessandro Pasotti
a977343944 Test for relationreference field formatter deps 2019-12-13 13:36:06 +01:00
Alessandro Pasotti
4ad62aa6ff Move layerDependencies to formatter
... from the widget
2019-12-13 11:54:25 +01:00
lbartoletti
c7bc3af96c add expression is_empty_or_null 2019-12-13 07:21:53 +01:00
Sandro Santilli
ae130d84d6 Add test for handling NULL values in PostgreSQL connector
See https://github.com/qgis/QGIS/pull/33225#issuecomment-564446756
2019-12-12 14:18:55 +01:00
Alexander Bruy
0219d0019e
Merge pull request #33290 from alexbruy/port-algorithms
[processing] port some algorithms to C++
2019-12-12 08:21:57 +02:00
Nyall Dawson
bc41f145e1 Fix infinite recursion on proj < 6 builds 2019-12-12 14:44:50 +10:00
Nyall Dawson
b6e46325d3 Fix travis build 2019-12-12 14:44:50 +10:00
Nyall Dawson
187b8f3325 When saving a user crs, if a WKT representation of the CRS is available,
then store and save that

Proj string representations of CRSes are lossy, so we should always prefer
WKT when it's available
2019-12-12 14:44:50 +10:00
Nyall Dawson
3d4b5fb09a Don't flag CRSes created from a WKT which doesn't correspond to any
known authorities as invalid

If proj is happy to accept the WKT string, then it's valid
2019-12-12 14:44:50 +10:00
Nyall Dawson
b613830491 Skip mesh calculator test on CI
This test is fragile and fails > 50% of the time
2019-12-12 09:29:58 +10:00
Nyall Dawson
b1bbc8511b [labeling] Move settings related to removing labels (e.g. max no
of labels, min size for labels) to a new class QgsLabelThinningSettings

This new class is designed to contain settings related to how the label
engine removes candidate label positions and reduces the number of
displayed labels.
2019-12-12 07:44:11 +10:00
lbartoletti
23c9a61a99 Add expression is_empty(geom) 2019-12-11 12:07:07 +01:00
Nyall Dawson
df9ede3d29 Fix build 2019-12-11 14:05:44 +10:00