Nyall Dawson
d8607222e0
Expose GEOS Hausdorff distance calculations to QgsGeometry
2017-08-31 08:02:44 +10:00
Nyall Dawson
184899ec30
Port remaining plotly based algs to new API
2017-08-30 07:28:25 +10:00
Nyall Dawson
e4c1e1b905
Ignore Q_ENUM in doxygen test
2017-08-29 20:09:54 +10:00
Nyall Dawson
78b834c5b0
Fix missing Q_OBJECT macros
...
Thanks to 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
Nyall Dawson
9b2e60ee1b
Remove use of old CMP0005 CMake policy
...
Since it's deprecated on newer CMake versions
2017-08-29 13:37:06 +10:00
Nyall Dawson
21a3b8a4f3
Use QGSCOMPARENEAR instead of QVERIFY( qgsDoubleNear(... ) )
...
QGSCOMPARENEAR gives better debugging output when the
test fails
2017-08-29 12:39:59 +10:00
Nyall Dawson
2af10cb2ca
Fix C4566 warning on Windows build
2017-08-29 12:11:07 +10:00
Nyall Dawson
029f741cfa
Add qgsAsConst(...)
...
This is the equivalent of std::as_const (which requires c++17) or
qAsConst (which requires Qt 5.7), neither of which we have
as minimum dependancies.
By wrapping implicitly shared Qt containers in qgsAsConst we can
safely use c++ for ranged loops instead of Q_FOREACH. (Since
Q_FOREACH's future is shaky)
See https://www.kdab.com/goodbye-q_foreach/ for further details
on why for causes a detach for Qt containers and why Q_FOREACH
is being removed from Qt.
2017-08-29 03:18:37 +10:00
Blottiere Paul
64aa40510d
Update tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
927dea3c18
Add tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
d4789db19a
Fix tests
2017-08-28 14:09:56 +01:00
Blottiere Paul
4be1cc0067
Add tests for deleteCascade option
2017-08-28 14:09:56 +01:00
Blottiere Paul
cf5ab4b0f1
Add tests for upsertOnEdit option
2017-08-28 14:09:55 +01:00
Blottiere Paul
b8a90ca458
Add tests
2017-08-28 14:09:55 +01:00
Sandro Santilli
650cf6a3fd
Remove line segmentation test checking for control point containement
...
There are more tests in dedicated file (testqgscurve.cpp)
2017-08-25 23:06:52 +02:00
Sandro Santilli
5186c385c4
Expect centroid obtained by not forcing inclusion of control point
2017-08-25 23:06:52 +02:00
Sandro Santilli
c51db212ee
Do not expect forced control point in output
2017-08-25 23:06:52 +02:00
Sandro Santilli
8363d2f3d0
Update expected centroid, interpolated angle and located point for reference curves
...
These values change because they are computed on the *linearization*
of those curves, and refactoring linearization codes results in
slighly different values.
NOTE: adding or not adding the control point would also affect these
results
2017-08-25 23:06:52 +02:00
Sandro Santilli
cf5a439feb
Update expected results now that we're forcing control point in output
2017-08-25 23:06:52 +02:00
Sandro Santilli
320c305d92
Fix build and multi-arc duplicated points
2017-08-25 23:06:52 +02:00
Sandro Santilli
48c953991e
Refactor curveToLine to emit equidistant segments and fix some issues
...
Fixes #16717
Fixes #16722
Include tests
2017-08-25 23:06:52 +02:00
Nyall Dawson
07a570fd05
Merge pull request #5069 from nyalldawson/std
...
Swap use of some q* macros to std calls
2017-08-26 03:58:40 +10:00
Nyall Dawson
d3854e9e5a
Remove use of some other q* functions which are implemented in std
2017-08-25 03:33:50 +10:00
Nyall Dawson
b5ca4b4ea8
(q)sqrt -> std::sqrt
2017-08-25 03:22:15 +10:00
Nyall Dawson
fec03ca423
(q)sin -> std::sin
2017-08-25 03:18:05 +10:00
Nyall Dawson
2e5d1abbb1
(q)cos -> std::cos
2017-08-25 03:05:22 +10:00
Nyall Dawson
7c5aa050d1
(q)ceil -> std::ceil
2017-08-25 03:01:48 +10:00
Nyall Dawson
031bf41d1b
Swap q(pow) -> std::pow
2017-08-25 02:53:39 +10:00
Nyall Dawson
77c3be97e3
Make sure (f)abs are prefixed with std::
2017-08-25 02:35:28 +10:00
Nyall Dawson
f2b2c6d2fd
Use fabs/abs/labs instead of qAbs
...
Better to stick to standard methods where available instead
of less supported Qt methods
2017-08-25 02:35:27 +10:00
Nyall Dawson
4b009f96ec
Use std::round instead of qRound
...
Now that our minimum VS studio version allowed supports std::round,
we should use that in place of Qt's qRound method.
Because:
- it doesn't truncate to int, resulting in unpredictable
behaviour (refs #16925 )
- better to stick to standard c++ methods wherever possible,
since they're likely better supported and optimised by the
compilers
- it's a tiny reduction to the barrier for entry to QGIS
development (I'm sick of pointing out the need to use
qRound during PR reviews!)
2017-08-25 02:35:27 +10:00
rldhont
0dbf432cbc
Merge pull request #5044 from pblottiere/server_bugfix_ogc_getcapa_styles
...
[server][bugfix] Fixes OGC test on legendurl styles
2017-08-24 09:54:47 +02:00
Alessandro Pasotti
b947406155
More robust multiple paths split and utility static method
2017-08-24 08:29:40 +02:00
Alessandro Pasotti
d1fb2490a7
Allow multiple raster selection from GDAL source select widget
...
Since I'm using QgsFileWidget I also added
multiple files support to that widget and
tests for this new behavior.
2017-08-23 16:17:15 +02:00
Etienne Trimaille
c606abc702
enable custom help in python expressions
2017-08-23 12:00:57 +02:00
Nyall Dawson
cb70aad7a3
Fix restricting model algorithm input types to valid types for alg (refs #17030 )
2017-08-23 17:34:08 +10:00
Jorge Gustavo Rocha
59aa5d3c7b
Fix TRAVIS qgis_global_settings path
2017-08-23 00:14:16 +01:00
Jorge Gustavo Rocha
8486767fa3
Support removal of global defined XYZ connections
2017-08-22 23:11:58 +01:00
Matthias Kuhn
b8d2a17476
Port symbols test from ebf20a5
2017-08-21 23:27:34 +02:00
Nyall Dawson
d2a90f40e3
Fix conversion of direct vector layer parameters to python strings
2017-08-20 18:21:02 +10:00
Nyall Dawson
1cded8553a
Merge pull request #5042 from nyalldawson/algs
...
Port some more algs to new API
2017-08-19 05:38:45 +10:00
Nyall Dawson
ebda2fd212
Rename some enum values for clarity
2017-08-19 02:46:22 +10:00
Even Rouault
5481177699
[OGR provider] Avoid 'database locked' issues when editing several layers of the same GeoPackage ( fixes #17034 )
2017-08-18 17:58:00 +02:00
Nyall Dawson
f1ac0be867
Fix processing setting to use filename as layer name
2017-08-19 00:56:18 +10:00
Nyall Dawson
7879c0a20b
Fix processing rendering styles for output dialog, functionality
2017-08-19 00:47:21 +10:00
Hugo Mercier
18c1597110
Merge pull request #5043 from pblottiere/bugfix_refrel
...
Fixes relation reference widget by refreshing filter lists. Fixes #16400
2017-08-18 16:38:59 +02:00
Blottiere Paul
465b27a40d
Add test
2017-08-18 14:14:06 +01:00
Blottiere Paul
a2914ff66c
Add unit tests
2017-08-18 07:42:39 +01:00
Nyall Dawson
9bfca65ac3
Add API to enable/disable preview jobs
...
Disabled by default, and enabled only for main canvas (not
secondary canvases)
2017-08-18 00:04:07 +10:00