41120 Commits

Author SHA1 Message Date
Nyall Dawson
a73c099835 Fix evaluation of expression functions which use optional arguments
with null default values
2017-08-31 08:02:44 +10:00
Nyall Dawson
0a9e9944b4 [FEATURE] Expression function for hausdorff distance
Allows calculation of the Hausdorff distance between two
geometries
2017-08-31 08:02:44 +10:00
Nyall Dawson
d8607222e0 Expose GEOS Hausdorff distance calculations to QgsGeometry 2017-08-31 08:02:44 +10:00
Matthias Kuhn
6fe6394fc7 Make crssync quiet by default
We only need it to show up in the build log if something has gone wrong.
By default we will just happily assume that it's doing a great job in
all conscience.
2017-08-30 16:25:17 +02:00
Nyall Dawson
3b997c2ff0 Merge pull request #5092 from nyalldawson/algs
Port some GDAL algs to new API
2017-08-30 20:53:24 +10:00
Nyall Dawson
d46317802b Port gdal translate alg to new api 2017-08-30 18:13:51 +10:00
Nyall Dawson
a29e3780cd Port rgb2pct to new API 2017-08-30 17:53:14 +10:00
Nyall Dawson
d0fea64b23 Port GDAL info alg to new API 2017-08-30 17:44:52 +10:00
Juergen E. Fischer
12e69d0991 dxf export:
* empty field name resets to layer name (fixes #17060)
* allow forcing to 2d to support polyline width (fixes #17049)
2017-08-30 00:50:10 +02:00
Nyall Dawson
b978c4d429 Merge pull request #5088 from telwertowski/master
Add headers needed by macOS for recently added std:: prefixes
2017-08-30 08:18:29 +10:00
Nyall Dawson
2a4a2d872b Merge pull request #5087 from nyalldawson/algs
Port remaining plotly based algs to new API
2017-08-30 08:05:26 +10:00
Nyall Dawson
184899ec30 Port remaining plotly based algs to new API 2017-08-30 07:28:25 +10:00
Tom Elwertowski
c12fc9c62f Add headers needed by macOS for recently added std:: prefixes 2017-08-29 17:27:20 -04:00
Juergen E. Fischer
9464ab75e6 fix translation string 2017-08-29 20:59:23 +02:00
Radim Blazek
fd0f6f2555 GRASS uppercase in project description 2017-08-29 20:54:01 +02:00
Radim Blazek
dbd86d0ddc highlight disappearing fix - second attempt, 4659691 and 51170aec follow-up 2017-08-29 20:28:39 +02:00
Nyall Dawson
c16ce92bd3 Merge pull request #5078 from nyalldawson/rename
Some more analysis lib cleanups
2017-08-30 03:38:36 +10:00
Alessandro Pasotti
e5b11d4206 Merge pull request #5085 from boundlessgeo/wfs_mutex_offline
Offline editing: workaround for bug 17087 deadlock
2017-08-29 19:18:13 +02:00
Alessandro Pasotti
1e4e45d0a7 [bugfix] Workaround for bug 17087 deadlock
Add the layer to the project after iteration completed.
This prevents the bug to freeze QGIS forever but it doesn't
of course fix it.
2017-08-29 16:55:01 +02:00
Nyall Dawson
e6203847d3 Update sip include 2017-08-29 21:46:35 +10:00
Nyall Dawson
9ca57bd62c Use a QgsFeatureSink instead of path to shapefile in QgsTinInterpolator
Instead of just forcing writing the triangulation to a shapefile (boo!)
change the parameter to use a QgsFeatureSink, so that anything
which implements the QgsFeatureSink interface can be used for
storing the triangulation.
2017-08-29 21:46:35 +10:00
Nyall Dawson
d5e63bc84f Add missing headers to analysis CMakeLists 2017-08-29 21:46:35 +10:00
Nyall Dawson
eb7ad7aebe Swap final uses of QProgressDialog in analysis lib to QgsFeedback 2017-08-29 21:46:35 +10:00
Nyall Dawson
7cd5880119 Remove some unused QProgressDialog imports from analysis lib 2017-08-29 21:46:35 +10:00
Nyall Dawson
04fec09c3e Remove interpolation internal classes from stable API
These classes still need a lot of cleanup (e.g. use of proper
3d geometry classes instead of their own 3d line classes, etc)
and we don't want them locked into the 3.0 API.

Better to remove them from the API and reintroduce them after
they have been cleaned up (in >3.0). They are mostly implementation
details anyway, and unlikely to be used outside of the high
level interpolation classes.
2017-08-29 21:46:35 +10:00
Nyall Dawson
90d142243f More .cc -> .cpp renames 2017-08-29 21:46:35 +10:00
Nyall Dawson
9e962054fe Exclude MathUtils from sip bindings
We don't want these part of stable API - this namespace really shouldn't
exist, as it mostly contains code which is duplicated in other
parts of the API (with better maintained and tested versions).
2017-08-29 21:46:35 +10:00
Nyall Dawson
94987918ef Rename .cc files to .cpp for consistency 2017-08-29 21:46:35 +10:00
Nyall Dawson
f99a7a966e Merge pull request #5083 from nyalldawson/clazy
Clazy optimisations
2017-08-29 21:30:46 +10:00
Nyall Dawson
e4c1e1b905 Ignore Q_ENUM in doxygen test 2017-08-29 20:09:54 +10:00
Nyall Dawson
b370a39497 Restore qRegisterMetaType for Q_ENUMed enums
It's odd - because one reason to swap to Q_ENUM is to gain
automatic registration of these types, so it should work
without the manual registration. Might be a SIP binding issue...
2017-08-29 20:03:42 +10:00
Nyall Dawson
d2fe65826e Update sip 2017-08-29 20:00:19 +10:00
Nyall Dawson
0815a6e714 Some more Clazy cleanups 2017-08-29 18:14:33 +10:00
Nyall Dawson
7e9428f6ac Use .at(0) instead of .left(1), as it avoids string allocation
Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
cca964a924 Include qglobal.h before relying on Qt macro definitions
Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
2ebb5c0031 Use faster QVariant::toString method
Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
8312dfe5d8 Use faster static QFileInfo::exists instead of constructing QFileInfo
Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
2b14c46255 Avoid detach of temporary 2017-08-29 18:04:30 +10:00
Nyall Dawson
52474785aa Use faster QColor constructor with r/g/b parameters
The QString based constructor is slow, as the string must
be parsed to interpret the color.

Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
3abd0fa530 Fix missing (or incorrect use of) emit
Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
ce4ac074cd Don't use .lower() to perform case-insensitive string operations
Use the faster versions with Qt::CaseInsensitive instead. These
don't require a string copy and conversion to lowercase.

Thanks to Clazy
2017-08-29 18:04:30 +10:00
Nyall Dawson
5197b5fdab Fix detaching of temporary container
Thanks to Clazy
2017-08-29 18:04:29 +10:00
Nyall Dawson
a4357e37fe Remove some unused variables
Thanks to Clazy
2017-08-29 18:04:29 +10:00
Nyall Dawson
be5d2979b9 Fix some Clazy detaching container warnings
(not all are valid, but at worst this flips some more
Q_FOREACH uses to c++11 for loops)
2017-08-29 18:04:29 +10:00
Nyall Dawson
82a772fd21 Use faster QString.arg multistring overload
Thanks to Clazy
2017-08-29 18:04:17 +10:00
Nyall Dawson
137dc76d3c Remove trivial assignment operator
Violates rule of 2. Thanks to Coverity!
2017-08-29 18:03:41 +10:00
Nyall Dawson
78b834c5b0 Fix missing Q_OBJECT macros
Thanks to Clazy
2017-08-29 18:03:41 +10:00
Nyall Dawson
972a1fe459 Fix mixed uses of const/non-const iterator methods
Thanks for Clazy
2017-08-29 18:03:41 +10:00
Nyall Dawson
1fddfcf622 Flip Q_ENUMS to Q_ENUM
See https://woboq.com/blog/q_enum.html for rationale
2017-08-29 18:03:41 +10:00
nirvn
51170aec0c Revert "highlight fix" due to regression (fixes #16824)
This reverts commit 46596914e11dae13cd4d986941246c12f30aa0d9.
2017-08-29 14:47:51 +07:00