11327 Commits

Author SHA1 Message Date
Nyall Dawson
6f55e50a13 Remove QgsMapLayer::originalName()
Now QgsMapLayer::name() is guaranteed to return the same string
2017-11-14 21:53:31 +11:00
Nyall Dawson
1e4f6917de Cleanup fragile 'capitalize layer names' option
This option was being applied in the wrong place - within the
map layer classes themselves. This meant that depending on the
user's setting for this option, a plugin calling QgsMapLayer::setName
would not be guaranteed the same behaviour across installs.
(and the same with setDataSource)

Similarly, the option was re-applied on project load, so
moving projects between installs with different values for
this setting would affect the project layer names, breaking
expressions which relied on these...

Instead, move the formatting and capitalization of layer
names to the QgisApp add*Layer methods instead, so this option
only applies on adding new layers to a project.
2017-11-14 21:53:31 +11:00
Nyall Dawson
fc6c69bedf Fix calculation of distance to vertex for multi part, multi ring
and curved geometries
2017-11-14 21:52:28 +11:00
Nyall Dawson
5d476e51df Use QVector where possible in geometry classes 2017-11-14 21:52:09 +11:00
Nyall Dawson
3ba2254503 Fix broken sip casting of nested QVectors
Old code was always forcing casting to QgsPointXY, regardless
of actual type
2017-11-14 21:08:21 +11:00
Nyall Dawson
3c8d50d525
Merge pull request #5612 from nirvn/native_nodes
Optimize extract nodes algorithm
2017-11-14 09:02:09 +11:00
Nyall Dawson
6dbdbead0c Handle null values in processing attribute tests 2017-11-14 07:14:46 +10:00
Alessandro Pasotti
fe4f1500d9
Merge pull request #5563 from boundlessgeo/BD-2469-pem-key-encoding
[auth][bugfix] Import pvt keys with unknown file extension
2017-11-13 17:40:54 +01:00
nirvn
b7d05829ce try to make travis happy 2017-11-13 17:36:36 +07:00
nirvn
66b27dcd50 Use vertex iterator 2017-11-13 17:12:57 +07:00
nirvn
7cb15c08b9 Optimize extract nodes algorithm 2017-11-13 12:13:30 +07:00
Nyall Dawson
e0b2c27c07 Fix return type for QgsCoordinateReferenceSystem::saveAsUserCrs 2017-11-13 14:33:38 +10:00
Juergen E. Fischer
150a64e9ac fix warnings and translation strings 2017-11-12 21:57:15 +01:00
Nyall Dawson
450887eabd Fix documentation test 2017-11-11 15:34:46 +10:00
Nyall Dawson
2e6d125a6f Use =default, =delete where possible 2017-11-11 15:22:19 +10:00
Nyall Dawson
c97fa5bdd0 Cleanup some constructors 2017-11-11 11:29:45 +10:00
Nyall Dawson
871f71305d Use clang-tidy modernize-use-default-member-init to modernize initializers 2017-11-11 10:54:44 +10:00
Even Rouault
8c6e029688
Merge pull request #5601 from rouault/unblacklist_PyQgsDBManagerGpkg
Fix DBManager + PyQgsDBManagerGpkg and unblack list it for Travis-CI
2017-11-10 22:37:45 +01:00
Even Rouault
95feb87d3b Fix DBManager + PyQgsDBManagerGpkg and unblack list it for Travis-CI 2017-11-10 22:02:19 +01:00
Nyall Dawson
fb205b1aec
Merge pull request #5589 from nyalldawson/remote_proc_exp
[processing] Remove expression buttons from parameters outside modeler
2017-11-11 07:00:16 +11:00
Nyall Dawson
2ed2248827 [processing] Add option whether to load batch output layers on completion
By always trying to load all layers, we severely limit the usefulness
of batch processing. E.g. try clipping 200 layers - and then
get ready to punch something as you wait for all the results to load.
2017-11-10 17:00:24 +10:00
Nyall Dawson
3fc90301a9 [processing] Only load layers when absolutely required
This change avoids holding onto resources and layers from earlier iterations,
and allows batch processing of many more items then is possible
if we hold on to these layers
2017-11-10 17:00:24 +10:00
Alexander Bruy
30cefca19e
Merge pull request #5593 from nyalldawson/batch_rows
[processing] Change min rows in batch processing to 1
2017-11-10 08:35:00 +02:00
Alexander Bruy
9b85e5b7f5
Merge pull request #5592 from nyalldawson/batch
[processing] Fixes for batch processing
2017-11-10 08:34:37 +02:00
Alexander Bruy
019a4d2a78
Merge pull request #5155 from alexbruy/processing-saga
[processing] port SAGA to new API
2017-11-10 08:34:08 +02:00
Nyall Dawson
bd9945ffe3 [processing] Change min rows in batch processing to 1
While no-one is likely to use the batch dialog to run a single
operation, it's a bit unexpected to see two empty rows, which
can't be removed, when first opening this dialog
2017-11-10 13:48:54 +10:00
Nyall Dawson
feacb76300 Fix python error 2017-11-10 13:43:50 +10:00
Nyall Dawson
08b189df89 Fix error when double clicking destination param in batch dialog 2017-11-10 13:40:50 +10:00
Nyall Dawson
feb66d2cd8 Fix saving/load batch processing models 2017-11-10 13:22:49 +10:00
Nyall Dawson
8526a2dd3f Remember last used folder for processing batch save/load
Fixes #16310
2017-11-10 13:17:01 +10:00
Nyall Dawson
9bac962a9e Fix batch processing progress bar never hits 100%, also fix fragile
cursor handling
2017-11-10 11:33:58 +10:00
Nyall Dawson
797437823c [processing] Fix cannot resize columns in batch dialog
Fixes #17227
2017-11-10 11:25:11 +10:00
Nyall Dawson
a23f315f39 Fix duplicate 'all files' entry in batch input file selection dialog 2017-11-10 11:23:19 +10:00
Nyall Dawson
87ffdabbb3 [processing] Fix crash in batch processing dialog
Fixes #17429
2017-11-10 11:11:32 +10:00
Nyall Dawson
612f51601a [processing] Remove expression buttons from parameters outside modeler
Since these expressions were only evaluated immediately, it led to
confusing behavior for users who were expecting that the expression
would be applied per-feature.

Given that expressions can be directly entered into spin boxes, we already
have a way of users evaluating simple calculations for numeric
parameters at least.

I don't think there's a strong enough use case for needing to
calculate string results to leave the confusing expression builder
option in place.

This should be re-evaluated when we add UI support for dynamic
parameters (which are already supported in the backend), where
expressions are evaluated per-feature.

Fixes #17267
2017-11-10 10:42:25 +10:00
Even Rouault
3d9ca40f4e [DB Manager / GPKG] Remove GDAL 1.x support 2017-11-09 19:18:34 +01:00
Alexander Bruy
bd0b499810 add misssed import after rebase 2017-11-09 20:15:30 +02:00
Even Rouault
4eed39b63c [DB Manager / GPKG] Fix COMMIT with GDAL 2 (fix #16174) 2017-11-09 19:11:33 +01:00
Alessandro Pasotti
9168161e1e
Merge pull request #5573 from boundlessgeo/BD-2238-auth-thread-safe
[tests] Add XYX slippy map to test QGIS server + multi-threading
2017-11-09 18:08:38 +01:00
Alexander Bruy
713dc970d8 disable SAGA test until we have SAGA support on Travis 2017-11-09 18:58:19 +02:00
Alexander Bruy
4b63975eaf [processing] tests for SAGA provider and related fixes 2017-11-09 18:56:44 +02:00
Alexander Bruy
057ab170da [processing] fix input rasters check 2017-11-09 18:56:44 +02:00
Alexander Bruy
13610f6440 [processing] adopt to changes in extensions handling 2017-11-09 18:56:44 +02:00
Alexander Bruy
dc9f868e08 [processing] fix not initialized variable 2017-11-09 18:56:44 +02:00
Alexander Bruy
1b6b6cdb45 [processing] fix integer numbers handling 2017-11-09 18:56:44 +02:00
Alexander Bruy
2b218cc2b0 [processing] more raster handling fixes in SAGA provider 2017-11-09 18:56:44 +02:00
Alexander Bruy
3822efa7a5 [processing] fix rasters handling in checkParameterValues() 2017-11-09 18:56:44 +02:00
Alexander Bruy
b4214798e9 [processing] infrastructure for SAGA tests 2017-11-09 18:56:44 +02:00
Nyall Dawson
8d91f1f1eb Restore more saga functionality 2017-11-09 18:56:44 +02:00
Nyall Dawson
9ba414394d Convert SAGA ParameterTableField parameters 2017-11-09 18:56:44 +02:00