16449 Commits

Author SHA1 Message Date
Peter Petrik
229245ce65 fix building on macos due to missing include of spatialite 2019-12-13 12:56:07 +01:00
Alexander Bruy
ddb93602ef address comments 2019-12-13 13:41:27 +02:00
David Signer
b89f1e0dfb improve docs 2019-12-13 12:03:57 +01:00
Alessandro Pasotti
4ad62aa6ff Move layerDependencies to formatter
... from the widget
2019-12-13 11:54:25 +01:00
Håvard Tveite
512eb4d2b8
Fix the label of the output parameter of the TPI algorithm 2019-12-13 11:09:45 +01:00
David Signer
d788d0ffe2 sip deprecated of forceReload and some doc improvements 2019-12-13 10:50:25 +01:00
Even Rouault
2c652040cd
Fix compilation error in qgsdxfexport.cpp
I'm not sure which of QT 5.9.0 or gcc 5.5.0 is not happy, but with both
of them, I get:
```
/opt/qt59/include/QtCore/qflags.h: In instantiation of ‘QFlags<T>& QFlags<T>::setFlag(Enum, bool) [with Enum = QgsDxfExport::DxfPolylineFlag]’:
/home/even/qgis/QGIS/src/core/dxf/qgsdxfexport.cpp:1102:68:   required from here
/opt/qt59/include/QtCore/qflags.h:153:46: error: no match for ‘operator~’ (operand type is ‘QgsDxfExport::DxfPolylineFlag’)
         return on ? (*this |= f) : (*this &= ~f);
```
2019-12-13 10:33:14 +01:00
David Signer
625d601e86 Deprecate forceReload() and merge it together with reloadData()
`reloadData()` implementations are set to private on `reloadProviderData()`

All calls of `forceReload()` or `reloadData()` target `QgsDataProvider::reloadData()` what calls the implemented `reloadProviderData()` of the provider and `dataChanged()` signal is called allways. That this signal is called changes the behavior of the `dataReload()` calls of all providers.
2019-12-12 15:59:07 +01:00
Peter Petrik
6febf38e10 [mesh] support active flag capability of MDAL. mesh layers for datasets that does not support active flags should not take less memory and load faster 2019-12-12 08:37:55 +01:00
Alexander Bruy
0219d0019e
Merge pull request #33290 from alexbruy/port-algorithms
[processing] port some algorithms to C++
2019-12-12 08:21:57 +02:00
Nyall Dawson
187b8f3325 When saving a user crs, if a WKT representation of the CRS is available,
then store and save that

Proj string representations of CRSes are lossy, so we should always prefer
WKT when it's available
2019-12-12 14:44:50 +10:00
Nyall Dawson
898205e7d8 Fix dox 2019-12-12 07:44:11 +10:00
Nyall Dawson
b1bbc8511b [labeling] Move settings related to removing labels (e.g. max no
of labels, min size for labels) to a new class QgsLabelThinningSettings

This new class is designed to contain settings related to how the label
engine removes candidate label positions and reduces the number of
displayed labels.
2019-12-12 07:44:11 +10:00
Nyall Dawson
d3da0e0281 Also move labeling gui files to dedicated subdirectory 2019-12-11 14:05:44 +10:00
Nyall Dawson
a8adb2d6c2 Code shuffle: move all labeling related code into src/core/labeling
So that these files are all grouped together, making it easier to locate
all the components of the labeling engine and hopefully making things
easier to navigate
2019-12-11 14:05:44 +10:00
Denis Rouzaud
c5766dc83b
Merge pull request #33262 from 3nids/log_impr
Classification methods: save/read parameters, improve negative value handling in log method
2019-12-10 23:20:58 +01:00
Alexander Bruy
243cd6ce8b use setValue() instead of setLayer() to handle different value types
(strings, variants, layers)
2019-12-11 04:49:14 +10:00
Alexander Bruy
dcdcb334ef use active layer only if there is no default value 2019-12-11 04:49:14 +10:00
Alexander Bruy
f37a75923f [processing] use active layer in the widget wrapper only for
non-optional parameters otherwise use default value
2019-12-11 04:49:14 +10:00
Alexander Bruy
8fb28c8657 update menu entries 2019-12-10 10:33:32 +02:00
Nyall Dawson
f9a3d0589a Remove last use of pal::RTree 2019-12-10 18:28:11 +10:00
Alexander Bruy
3910d7774b use deprecated flag instead of hidden 2019-12-10 08:42:33 +02:00
Nyall Dawson
7381a2574e [processing] Add another hash to grass imagery tests
This one seems to come up occasionally on Travis
2019-12-10 10:53:08 +10:00
Markus Neteler
f497cf4f41 v.to.rast: fix va -> val 2019-12-10 08:17:48 +10:00
Alexander Bruy
d40a036c03 [processing] port random extract to C++
Also fix unreported bug caused incomplete results when same FID
was used multiple times
2019-12-09 13:28:32 +02:00
Alexander Bruy
cc5b6e74f4 [processing] port zonal statistics to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
4622661f59 [processing] port truncate table to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
c974125fd9 [processing][needs-docs] replace set raster style and set vector style
Python algorithms with generics set layer style C++ algorithm
2019-12-09 13:28:32 +02:00
Alexander Bruy
b85fe90955 [processing] port raster layer statistics to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
2ff85f92df [processing] port pole of inaccessibility to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
2caf9e6ac3 [processing] port points from polygons algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
df3e801f31 [processing] port nearest neighbour analysis algorithm to C++ and add
test
2019-12-09 13:28:32 +02:00
Alexander Bruy
eec0ac07f8 [processing] port geometry by expression to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
c2d1649e60 [processing] port extract specific vertices algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
4bbb07f48f rename processing qgis test to allow running only subset of tests 2019-12-09 13:28:32 +02:00
Alexander Bruy
e0136ff65c [processing] port extract layer extent to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
9615306f44 [processing] port sum line length algorithm to C++ 2019-12-09 13:28:32 +02:00
Alexander Bruy
eeaffb9d79 [processing] port add table field algorithm to C++ 2019-12-09 13:28:32 +02:00
Matthias Kuhn
fc5c95c28b
Merge pull request #33279 from m-kuhn/sandboxed_expression_mode
Fail expression evaluation if missing field is referenced
2019-12-08 14:42:52 +01:00
Alessandro Pasotti
e1ea0f3c50 Add py code examples to api 2019-12-07 17:34:12 +01:00
Matthias Kuhn
332550ed55 Typo 2019-12-07 13:11:25 +01:00
Nyall Dawson
7c59700f2b Responsibility for managing obstacle geometry is in QgsLabelObstacleSettings 2019-12-07 19:09:51 +10:00
Nyall Dawson
7f38c41497 Avoid duplicate code for evaluating label obstacle data defined values 2019-12-07 19:09:51 +10:00
Peter Petrik
b93dfdd0b3
[feature] Support datasets with data defined on faces in mesh calculator (#33248)
* [feature] support datasets with data defined on faces in mesh calculator, fix #30219, fix #30170

added "driver" and "group name" to the calculator interface.
MDAL now supports 3 drivers for storing results, so user must be able to choose appropriate driver and dataset group name (some drivers store multiple groups to 1 file)
2019-12-06 18:27:28 +01:00
Alessandro Pasotti
60c401a8d2
Merge pull request #32999 from elpaso/rasterize-c-plus-plus-concurrent
Rasterize: QtConcurrent version
2019-12-06 14:58:35 +01:00
Denis Rouzaud
84d6bbe88a fix dox and switch to classic enum
scope based enum is causing troubles from Python depending on sip version
2019-12-06 13:06:08 +01:00
Martin Schitter
cfbe66473e Fix single threaded use of MBTiles generator 2019-12-06 10:59:00 +01:00
mash-graz
89f1640419 successive ThreadPoolExecutors for all zoom levels
instead of using only one ThreadPoolExecutor for all MetaTiles, its now handled in a loop and new ThreadPools for the next zoom level will be started when all work for the previous one is already done. i guess, this will fix the issues and interferences described in #32471 and shouldn't be much slower.
2019-12-06 10:59:00 +01:00
Denis Rouzaud
86c3202a1d Classification methods: save/read parameters, improve negative value handling in log method 2019-12-06 09:10:43 +01:00
Nyall Dawson
d969e41799 [processing][saga] Allow saga algorithms to be run under SAGA 7.3,
but show a huge obnoxious "NOT OFFICIALLY SUPPORTED" warning

SAGA 7.3 is the new SAGA LTR, so we eventually need to move towards this.

But adding full support is going to be a painstaking tedious process. So
allow users to use this combination, but totally at their own risk.

TODO: Make SAGA provider a 3rd party plugin only and save QGIS core dev sanity ;)
2019-12-06 17:35:41 +10:00