40976 Commits

Author SHA1 Message Date
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
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
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
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
Matthias Kuhn
fc5ad20154
[docker] Set valid workdir 2017-08-23 15:17:15 +02:00
Matthias Kuhn
8c7b29db66
[docker] Remove source tree from image 2017-08-23 14:22:15 +02:00
Etienne Trimaille
c606abc702 enable custom help in python expressions 2017-08-23 12:00:57 +02:00
Nyall Dawson
8a2cf3f709 Merge pull request #5058 from nyalldawson/processing_fixes
Processing polish
2017-08-23 18:14:32 +10:00
Nyall Dawson
0669167af2 Rename processing 'recently used algorithms' to 'recently used'
Since we show much more than just 'algorithms' here
2017-08-23 17:35:09 +10:00
Nyall Dawson
54e38bcf9e Fix model execution missing from processing history 2017-08-23 17:34:08 +10: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
Nyall Dawson
4511ea1c12 Add a file selector for file parameters in model algorithms
Makes it more obvious to users that a fixed filename can be
used here
2017-08-23 02:14:30 +10:00
Nyall Dawson
451a3fab26 Reformat code 2017-08-23 02:14:29 +10:00
Nyall Dawson
cdbb57d65f Don't throw python exception when modeler algorithm is missing inputs
Instead use nicer messagebar for feedback. Also fix untranslatable
strings.

Refs #17028
2017-08-23 02:14:24 +10:00
Nyall Dawson
367aba7059 Rename some processing widget wrappers to better match corresponding c++ classes 2017-08-23 00:16:42 +10:00
Nyall Dawson
c119c286eb Add basic unit tests for constructing processing widget wrappers 2017-08-23 00:13:15 +10:00
Nyall Dawson
9882e4f7bb Fix some inconsistent capitalization in algorithm naming 2017-08-22 23:40:11 +10:00
Nyall Dawson
2a442c7886 Rationalise algorithm groups a bit 2017-08-22 23:36:42 +10:00
Nyall Dawson
8218f35383 Fix use of incorrect icon for algorithm 2017-08-22 23:20:52 +10:00
Nyall Dawson
b62fd51cc2 Don't allow dragging groups in model algorithm tree 2017-08-22 23:16:33 +10:00
Juergen E. Fischer
ef89a624a1 creatensis.pl: don't require admin rights to create the uninstaller 2017-08-22 09:35:22 +02:00
Matthias Kuhn
f38c032046
[docker] Install bindings to system python path 2017-08-22 08:43:27 +02:00
Matthias Kuhn
23102e3c8e
[docker] Install to /usr prefix 2017-08-22 08:38:25 +02:00
Harrissou Sant-anna
6fd3c1090a Fix wording
Fully write the label because there's enough space + alignment
2017-08-22 07:53:44 +02:00
Harrissou Sant-anna
6e3aba342c Fix Python console web link 2017-08-22 07:51:23 +02:00
Harrissou Sant-anna
3d201e7c65 Delete obsolete context help
already ported to user manual and linked to help button
2017-08-22 07:51:23 +02:00
Alessandro Pasotti
1a42c4fa1f Merge pull request #5055 from boundlessgeo/gpkg-fix-delete-layers
Geopackage: fix crash when deleting raster layers
2017-08-21 23:51:17 +02:00
Matthias Kuhn
b8d2a17476 Port symbols test from ebf20a5 2017-08-21 23:27:34 +02:00
Alessandro Pasotti
4d3c7e558b Geopackage: fix crash when deleting raster layers 2017-08-21 22:43:16 +02:00
Nyall Dawson
4c52607719 Merge pull request #5050 from nyalldawson/algs
Port more QGIS algs to new API
2017-08-22 05:07:41 +10:00
Alessandro Pasotti
2530d9eefe Merge pull request #5051 from boundlessgeo/gpkg-prevent-auto-import
Geopackage: prevent import layer over itself
2017-08-20 19:10:32 +02:00