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
Alessandro Pasotti
aa69737807
Prevent import layer over itself
2017-08-20 16:33:36 +02:00
Nyall Dawson
bcc662722b
Upgrade Convert Geometries algorithm to maintain Z/M, curves were possible
2017-08-20 18:21:03 +10:00
Nyall Dawson
8da29c06b4
Fix test reference file
2017-08-20 18:21:03 +10:00
Nyall Dawson
51f8b1a2bb
Port Convert Geometry Type to new API
...
Includes partial support for Z/M types (values are lost during
conversion, but at least 2d geometries are exported)
TODO: full support for Z/M/curves
2017-08-20 18:21:03 +10:00
Nyall Dawson
4d242c5673
Partial port of raster calculator to new API
...
TODO: modeler handling
2017-08-20 18:21:03 +10:00
Nyall Dawson
338ee36b1d
Port Execute SQL to new API, add test
2017-08-20 18:21:03 +10:00
Nyall Dawson
99fd727bab
Fix some issues when creating processing tests
2017-08-20 18:21:03 +10:00
Nyall Dawson
2a6847e030
Port define projection to new API
2017-08-20 18:21:03 +10:00
Nyall Dawson
cfb926a70d
Port Find Projection alg to new API
...
Also modify alg to export a vector table of candidates instead of
a HTML list, since a vector table is more useful inside of
models and can be used for further analysis steps.
2017-08-20 18:21:03 +10:00
Nyall Dawson
a56725f76e
Resurrect Python Field Calculator algorithm, add test
2017-08-20 18:21:02 +10:00
Nyall Dawson
6144b1c5d9
Resurrect Field Calculator algorithm, add test
2017-08-20 18:21:02 +10:00
Nyall Dawson
d2a90f40e3
Fix conversion of direct vector layer parameters to python strings
2017-08-20 18:21:02 +10:00