Clément MARCEL
37052db39a
Fix crash when closing a project with layers in edition ( fixes #16771 )
...
Delete layers from project & not through layers tree, avoiding
double deletion of layers.
2017-08-27 15:22:13 +10:00
Nyall Dawson
5e945461fe
Merge pull request #5074 from nyalldawson/cleanup
...
Remove some redundant and unused MathUtils methods
2017-08-26 14:03:01 +10: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
8c8426fc6a
Do not force inclusion of control point
...
This reverts commit dae9d025293c217628def8eb8d196238d2218ddc.
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
d3558a19aa
Remove test off-variable
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
43200ea8e9
Remove some redundant and unused MathUtils methods
2017-08-26 04:19:26 +10: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
nirvn
c64bc974b5
[processing] one more z factor minimum value adjustment
2017-08-25 17:43:54 +07:00
nirvn
922ded8d76
[processing] fix z factor minimum value in various raster algorithms
2017-08-25 17:15:31 +07:00
nirvn
05071434e3
[analysis] fix derivative filter z factor handling
2017-08-25 17:15:26 +07:00
Nyall Dawson
2d192791c2
qMin/qMax -> std::min/max
2017-08-25 16:37:54 +10:00
Nyall Dawson
641d78bb4c
Add new raster hash for hillshade test (verified ok)
2017-08-25 16:21:42 +10:00
Nyall Dawson
d573c43e3e
Better test debugging
2017-08-25 15:58:57 +10:00
Nyall Dawson
233f25abd9
Merge pull request #5061 from nouanda/fix16887
...
Fix #16887 : creating a memory scratch layer with Z/M values does not add Z/M to the layer
2017-08-25 13:27:03 +10:00
Nyall Dawson
578045d1d5
Update sip bindings
2017-08-25 06:29:04 +10:00
Nyall Dawson
0fbca6fe0a
Fix build
2017-08-25 06:28:07 +10:00
Matthias Kuhn
65455c4b9e
Allow creation of Z/M gpkg layers ( #5060 )
...
Fix #16888 : create gpkg layer does not allow to add Z/M dimension
2017-08-24 21:51:48 +02:00
Nyall Dawson
eaf861c258
Replace some more c headers with c++ headers
2017-08-25 05:09:29 +10:00
Nyall Dawson
76a22726fd
Always use " for qgs header imports
2017-08-25 04:46:16 +10:00
Nyall Dawson
34003259b7
Replace use of math.h with cmath
2017-08-25 04:15:36 +10:00
Nyall Dawson
c19418c447
Add more missing std:: prefixes
2017-08-25 04:13:38 +10:00
Nyall Dawson
891d612e95
Remove unused qmath.h includes
2017-08-25 03:42:03 +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
ad89193b05
qFuzzyIsNull -> qgsDoubleNear
2017-08-25 03:24:11 +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
8c64d80a07
(q)floor -> std::floor
2017-08-25 03:12:36 +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
249b5050aa
(q)atan2 -> std::atan2
2017-08-25 02:57:00 +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
C. Marcel
bd8decee09
Split Z/M checkbox into 2 checkboxes.
2017-08-24 13:54:30 +02:00
Harrissou Sant-anna
9f18050e62
Filling the help infrastructure ( #5064 )
...
* Filling the help infrastructure
Add missing help button and links to user manual
* Remove unneeded comment
* remove unneeded comment
* Remove unneeded comment
2017-08-24 12:24:32 +02: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
835e6d253d
Merge pull request #5062 from boundlessgeo/raster-widget-multiple-select
...
Allow multiple raster selection from GDAL source select widget
2017-08-24 09:00:25 +02:00
Alessandro Pasotti
b947406155
More robust multiple paths split and utility static method
2017-08-24 08:29:40 +02:00
Alessandro Pasotti
cc4cee8f91
Do not quote when single raster file is selected
2017-08-24 07:39:54 +02:00
Alessandro Pasotti
81c31760db
Small code style changes
2017-08-24 07:28:17 +02:00
Harrissou Sant-anna
50e8e1c00b
Reorganize buttons to set map extent
...
There's likely no situation where the four buttons are activated simultaneously... Better have three on a line than the current heterogeneous UI.
2017-08-24 07:11:22 +02:00
Matthias Kuhn
21b1c7ced9
Fix spelling
2017-08-23 16:50:37 +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