59265 Commits

Author SHA1 Message Date
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
82a84ffd0d Don't try to normalize proj coordinate operations constructed directly
from the proj string via the transform context

This isn't possible -- only proj coordinate operations constructed
from a src/dest CRS pair can be normalized, not those constructed
from a proj string.

It was redundant in any case, since we always normalize the available
operations before giving users a choice of them.

So just add some big bold warnings to the dox in case anyone is
manually manipulating and adding custom operations, that these
also MUST be pre-normalized

Refs #33121, conversation in https://github.com/OSGeo/PROJ/issues/1794
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
Peter Petrik
6e2ef1544f push MDAL 0.4.93 RC1 for 3.12 release with fixed bug in reading of reference time 2019-12-14 05:31:53 +10:00
Matthias Kuhn
c2cde01cc8
Merge pull request #33378 from havatv/patch-4
Fix the label of the output parameter of the TPI algorithm
2019-12-13 15:39:33 +01:00
Peter Petrik
229245ce65 fix building on macos due to missing include of spatialite 2019-12-13 12:56:07 +01:00
Matthias Kuhn
6d7c8c2dd3
Merge pull request #33369 from rouault/fix_qgsdxfexport_compilation_error
Fix compilation error in qgsdxfexport.cpp
2019-12-13 12:28:22 +01:00
Håvard Tveite
512eb4d2b8
Fix the label of the output parameter of the TPI algorithm 2019-12-13 11:09:45 +01:00
Even Rouault
2c652040cd
Fix compilation error in qgsdxfexport.cpp
I'm not sure which of QT 5.9.0 or gcc 5.5.0 is not happy, but with both
of them, I get:
```
/opt/qt59/include/QtCore/qflags.h: In instantiation of ‘QFlags<T>& QFlags<T>::setFlag(Enum, bool) [with Enum = QgsDxfExport::DxfPolylineFlag]’:
/home/even/qgis/QGIS/src/core/dxf/qgsdxfexport.cpp:1102:68:   required from here
/opt/qt59/include/QtCore/qflags.h:153:46: error: no match for ‘operator~’ (operand type is ‘QgsDxfExport::DxfPolylineFlag’)
         return on ? (*this |= f) : (*this &= ~f);
```
2019-12-13 10:33:14 +01:00
Sandro Santilli
d20dd06334 Do not convert boolean NULL to false 2019-12-12 14:18:55 +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
Peter Petrik
6febf38e10 [mesh] support active flag capability of MDAL. mesh layers for datasets that does not support active flags should not take less memory and load faster 2019-12-12 08:37:55 +01:00
Peter Petrik
4988468e26 update to MDAL 0.4.92, second beta release for QGIS 3.12. it speeds up and optimize memory usage by allowing QGIS to check if driver/dataset uses active flag or not 2019-12-12 08:37:55 +01:00
Peter Petrik
a9826bbd97 replace averaging widget with something nicer 2019-12-12 08:37: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
66fefdc668 Fix warning 2019-12-12 14:44:50 +10: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
de109b67d2 Fix deadlock 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
4e4cd313bd Add a WKT column to tbl_srs
proj string definitions of CRSes are lossy, so we need to gradually
transition to WKT definitions instead
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
c847e004dd Fix another unicode string on windows 2019-12-12 11:53:30 +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
Daniele Viganò
73ca958fc4 [RPM] Remove qgis-zh-Hant.qm from RPM packages 2019-12-12 09:18:52 +10:00
Nyall Dawson
898205e7d8 Fix dox 2019-12-12 07:44:11 +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
Nyall Dawson
2e25151786 Fix escape and enter don't work to close color or symbol selector dialogs
Fixes #27602
2019-12-12 07:39:41 +10:00
Nyall Dawson
e2e1bd35de Fix ellipsis characters in button text show incorrectly on windows
Fixes #33209
2019-12-12 07:39:20 +10:00
Alexander Bruy
4d9b3b2b80 strore layer id instead of pointer to layer 2019-12-11 09:40:33 +02:00
Matthias Kuhn
f597f72c22
Merge pull request #33266 from signedav/cachedshared
Being solid against field names variation in expressions on WFS
2019-12-11 08:30:36 +01:00
Samweli
e61ca04340 Deselecting tables after addition in Data Source Manager 2019-12-11 14:07:31 +10:00
Nyall Dawson
0d3984632b Fix grass build 2019-12-11 14:05:44 +10:00
Nyall Dawson
df9ede3d29 Fix build 2019-12-11 14:05:44 +10:00
Nyall Dawson
03803b08c3 Also move app labeling files to dedicated subdirectory 2019-12-11 14:05:44 +10:00
Nyall Dawson
d3da0e0281 Also move labeling gui files to dedicated subdirectory 2019-12-11 14:05:44 +10:00
Nyall Dawson
a8adb2d6c2 Code shuffle: move all labeling related code into src/core/labeling
So that these files are all grouped together, making it easier to locate
all the components of the labeling engine and hopefully making things
easier to navigate
2019-12-11 14:05:44 +10:00
Denis Rouzaud
c5766dc83b
Merge pull request #33262 from 3nids/log_impr
Classification methods: save/read parameters, improve negative value handling in log method
2019-12-10 23:20:58 +01:00
Matthias Kuhn
65eed59ed0 Link expression button enabled state to layer on value relation widget
Right now the button would just do nothing if clicked before a layer was set.
2019-12-11 04:49:43 +10:00
Alexander Bruy
243cd6ce8b use setValue() instead of setLayer() to handle different value types
(strings, variants, layers)
2019-12-11 04:49:14 +10:00
Alexander Bruy
dcdcb334ef use active layer only if there is no default value 2019-12-11 04:49:14 +10:00
Alexander Bruy
f37a75923f [processing] use active layer in the widget wrapper only for
non-optional parameters otherwise use default value
2019-12-11 04:49:14 +10:00
nirvn
89394a0ef1 Also insure that a tbl_projection is always present 2019-12-11 04:47:43 +10:00
nirvn
93f16c087b Insure that a tbl_srs is always present(most likely fixes #32866) 2019-12-11 04:47:43 +10:00
nirvn
2dc16dd588 Use mkpath when creating a profile directory(prevents problems when root directory isn't present to begin with) 2019-12-11 04:47:43 +10:00
rldhont
c5126e0f3b Use debug message level in labeling from SLD 2019-12-11 04:45:30 +10:00
rldhont
9172c31329 [Bugfix] Segfault in rule based labeling from SLD
The settings for QgsRuleBasedLabeling::Rule has to be cloned with new QgsPalLayerSettings.
2019-12-11 04:45:30 +10:00
Alexander Bruy
ab5f9d0539 mark unused parameters 2019-12-10 11:22:59 +02:00