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
Nyall Dawson
e4dab7c5c7
Fix intermittently failing QgsGeometry asGML tests
2017-08-17 17:53:36 +10:00
Nyall Dawson
43536a66e3
Return subclasses where possible to fix build on older compilers
2017-08-17 16:43:13 +10:00
Nyall Dawson
d81a1a3b5f
Return std::unique_ptrs where possible
...
When a class isn't exposed to Python, we should return a
std::unique_ptr whenever a returned pointer value is owned
by the caller.
2017-08-17 16:28:18 +10:00
Nyall Dawson
5abbab1a11
Merge pull request #4993 from nyalldawson/remove_analyzer
...
Remove QgsGeometryAnalyzer, QgsOverlayAnalyzer, QgsPointSample
2017-08-17 15:54:43 +10:00
Nyall Dawson
c54667c3b1
Handle mixed lists of values and lists when evaluating multilayer
...
parameters
This can happen when running models with mixed input types
for multilayer parameters
2017-08-17 05:00:47 +10:00
Nyall Dawson
e1b0f78619
Fix default layer sometimes inserted into multi layer parameter values
2017-08-17 04:38:36 +10:00
Etienne Trimaille
855f840fac
always set a default name in the QGS project to avoid discrepancies with GetCapabilities
2017-08-16 18:39:23 +02:00
Matthias Kuhn
55cdc89a11
Merge pull request #5004 from jgrocha/helpviewer
...
[needs-docs] Refactoring of all help calls, deprecating QgsContextHelp+Helpviewer
2017-08-16 18:30:59 +02:00
Denis Rouzaud
86e8da74cb
Return enum instead of int from QgsGeometry operations
2017-08-13 23:08:45 +02:00
Nyall Dawson
479106ad80
An empty string parameter should not fallback to default value
...
Since we need to allow empty strings to override defaults in
some circumstances
2017-08-14 04:56:24 +10:00
Nyall Dawson
5177972806
Improve conversion of processing parameters to Python code
...
- Use layer paths instead of layer ids where possible, since they are persistent
- Don't wrap in QgsProcessingFeatureSourceDefinition/QgsProcessingOutputLayerDefinition
if we can avoid it
2017-08-13 16:56:58 +10:00
arnaud.morvan@camptocamp.com
e34a593c65
[FEATURE] Add expression function array_agg
2017-08-12 10:18:21 +02:00
Jorge Gustavo Rocha
146c0c8c2d
Prevent test_console.py to open the browser with help file
...
Fix link to documentation related with OGR connections
2017-08-10 23:45:06 +02:00
Nyall Dawson
0227bdc376
Remove QgsGeometryAnalyzer, QgsOverlayAnalyzer, QgsPointSample
...
These classes are unused in the master QGIS code, and are
unmaintained and with no unit tests or other QA, and
have inflexible API (e.g. always requiring writing outputs
to shapefiles)
They all have equivalent algorithms available via Processing
(where the algorithms are unit tested and maintained). We should
be pushing all QGIS api users to use the Processing algorithms
instead.
2017-08-11 04:48:11 +10:00
Juergen E. Fischer
03e0298f49
msvc warning fixes:
...
* use AUTORCC to avoid locked qrc_images.cpp during build of gui tests
* bump minimum version of cmake to 3.0.0 for AUTORCC
* suppress some warnings in sip bindings
* suppress unreachable warnings and some more
* split sip files in more parts to suppress warning BK4504
* also remove old WITH_INTERNAL_YAML from travis
2017-08-10 00:09:14 +02:00
Jorge Gustavo Rocha
925ba2ce5f
Replace old QSettings with QgsSettings
2017-08-09 23:42:28 +02:00
Jorge Gustavo Rocha
3a103b7c62
Refactoring of all help calls, deprecating QgsContextHelp and the former helviewer
2017-08-09 09:27:29 +02:00
Jorge Gustavo Rocha
273243b4c4
Add XYZ connection to provide default OpenStreetMap tiles
2017-08-07 22:55:28 +02:00