19453 Commits

Author SHA1 Message Date
David Marteau
9eb172aa8e Add multipart option for processing geometry parameter 2021-03-31 08:59:20 +10:00
Nyall Dawson
0f54df6675 [console] Prepend introductory text with '#' to avoid attempting to format it as Python code 2021-03-31 05:22:12 +10:00
Nyall Dawson
18d8a76009 Fix incorrect capitalization 2021-03-31 05:22:12 +10:00
Nyall Dawson
f0aafd2081 [api] Allow the text and icon for the 'empty layer' option in QgsMapLayerComboBox to
be customised
2021-03-30 11:51:32 +10:00
Nyall Dawson
d3692361ad Avoid use of QStyleOptionGraphicsItem::matrix, which is removed
in Qt 6
2021-03-30 09:19:38 +10:00
nirvn
edaf49c1f5 [processing] Add a help string to tell users what they can do in the history dialog 2021-03-29 15:06:49 +07:00
nirvn
7b66ba8291 [processing] Use algorithm icon and friendly display names in the history dialog 2021-03-29 15:06:48 +07:00
nirvn
fb2240ecac [processing] Properly style the history dialog's python command string 2021-03-29 14:03:29 +07:00
Nyall Dawson
705259e2d9 Fix a bunch of clazy warnings in QgsVectorFileWriter 2021-03-29 14:16:31 +10:00
Nyall Dawson
62ad6e3106 Add QgsVectorFileWriter::writeAsVectorFormatV3
Unfortunately QgsVectorFileWriter::writeAsVectorFormatV2 is missing
SIP_OUT arguments necessary to get the desired output arguments,
and it's not possible to add these now without breaking existing PyQGIS
code.

Solution = v3!
2021-03-29 14:16:31 +10:00
Nyall Dawson
34735aa9ef [api] Add a public method to clear the rubber band for the
QgsMapToolExtent

Otherwise plugins have no way to remove this from the canvas
2021-03-29 11:57:32 +10:00
Nyall Dawson
d68cd295db Allow drawing QgsRubberBand polygons using a fill symbol 2021-03-29 11:57:22 +10:00
Andrea Giudiceandrea
57f589dd36 [dbmanager] Fix deprecation warning
Replace deprecated QgsCodeEditor setMarginVisible() with setLineNumbersVisible() for SQL dialog windows
2021-03-29 08:18:39 +10:00
Denis Rouzaud
555f516925
use cmake native FindPython (#42497) 2021-03-28 21:49:40 +02:00
Matthias Kuhn
6ca82a2717 Fix sipify 2021-03-28 06:29:24 +10:00
Matthias Kuhn
10e9de15e8 [qt6] compatibility with [[deprecated]] attribute 2021-03-28 06:29:24 +10:00
Matthias Kuhn
1a59efb177 [qt6] Qt6 uses utf-8 by default
for QTextStream and QSettings
2021-03-28 06:28:35 +10:00
Matthias Kuhn
a75f6ab903 [qt6] QVector and QList are unified 2021-03-28 06:26:33 +10:00
Matthias Kuhn
7f2c7c8330
Merge pull request #42448 from m-kuhn/qt6_recursive_mutex
[qt6] Use RecursiveMutex instead of QMutex( QMutex::Recursive )
2021-03-27 13:00:51 +01:00
Matthias Kuhn
e94d9bc024 [qt6] Use RecursiveMutex instead of QMutex( QMutex::Recursive )
QMutex::Recursive will be gone.
The replacement only entered the stage with Qt 5.14
2021-03-27 10:17:45 +01:00
Nyall Dawson
40ed79393e Instead of double-iterating over features caused by calling
QgsVectorLayer::minimumValue and then QgsVectorLayer::maximumValue
when we need BOTH the min and max value for a field, add an
optimised QgsVectorLayer::minimumAndMaximumValue() method
which can calculate both min and max at the same time in
a single iteration.

Potentially halves the cost of calculating these values whenever
we are forced to do a full iteration to calculate them.
2021-03-27 12:09:09 +10:00
Nyall Dawson
bb76b6bf37 Add an extremely horrible hack to allow the python bindings to build
on gcc11

Don't blame me, blame sip
2021-03-27 09:48:59 +10:00
Denis Rouzaud
cf1ffdaaa1
Merge pull request #42376 from troopa81/fix_oracle_ci
Split CI providers test
2021-03-26 10:51:10 +01:00
Matthias Kuhn
31513ba412
Merge pull request #42469 from m-kuhn/qvariant_operators
[qt6] Add comparison operators for QVariant
2021-03-25 17:44:30 +01:00
Matthias Kuhn
20596227f7 Fix compiling with legacy Qt (aka Qt5) 2021-03-25 12:22:35 +01:00
Matthias Kuhn
8e8febb405 Fix dox
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2021-03-25 19:34:40 +10:00
Matthias Kuhn
a379e1e610 Make QgsDxfExport Qt6 ready 2021-03-25 19:34:40 +10:00
Matthias Kuhn
42b79396b4 [qt6] Add comparison operators for QVariant
makes them usable as QMap keys
2021-03-25 09:01:40 +01:00
Nyall Dawson
929b7086b1 If a wms-t layer is the first temporal layer loaded into a project,
use the wms-t capabilities to set a sensible default time step
for the temporal controller (just like we do for mesh layers)
2021-03-25 17:55:04 +10:00
Nyall Dawson
41053cc479 De-duplicate code 2021-03-25 17:55:04 +10:00
Nyall Dawson
1bb042bc78 Add some methods to parse ISO8601 duration strings
(eg '2021-03-23T00:00:00Z/2021-03-24T12:00:00Z/PT12H')
to a list of datetimes
2021-03-25 17:55:04 +10:00
Nyall Dawson
9b07d954f5 Don't force users to hit apply to setup static wms-t settings
after toggling dynamic temporal control

Not the nicest code approach, but I honestly can't think of any
other way to handle this...
2021-03-25 14:56:46 +10:00
Nyall Dawson
7434c1b34f [feature] Add temporal navigation step for "source timestamps"
When selected, this causes the temporal navigation to step between
all available time ranges from layers in the project.

It's useful when a project contains layers with non-contiguous
available times, e.g. from a WMS-T which images available at
irregular dates, and you want to only step between time ranges
where the next available image is shown.

Refs Natural resources Canada Contract: 3000720707
2021-03-25 13:35:52 +10:00
Nyall Dawson
9c1ddfcf78 Push all available temporal ranges to temporal controller when
it changes
2021-03-25 13:35:52 +10:00
Nyall Dawson
d443e4a536 Add a time unit for "irregular steps"
This is a special "irregular step" time unit, used for temporal data
which uses irregular, non-real-world unit steps
2021-03-25 13:35:52 +10:00
Nyall Dawson
cae8aae849 Add method to collate all used time ranges for layers in project
Unlike the existing methods, this new method does not return
a single overall time range, but rather (possibly with gaps)
containing all time ranges were we know data actually exists
in the project.
2021-03-25 13:35:52 +10:00
Nyall Dawson
b7c1c3af4c Add method to merge a list of possibly non-contigous date/datetime ranges 2021-03-25 13:35:52 +10:00
nicogodet
bf9efccff2
Fix GDAL overwrite and some minor fixes (#42447)
Automatically overwrite files in some gdal algorithms, in order to match the behavior of other processing algorithms which automatically overwrite existing files

Fixes #42248
2021-03-25 09:17:41 +10:00
Nyall Dawson
047e13eb22 Declare metatype for QgsDate/DateTimeRange 2021-03-25 08:01:51 +10:00
Nyall Dawson
894283b994 Add "allAvailableTemporalRanges" getter/setter to QgsRasterDataProviderTemporalCapabilities
So that we can store and retrieve a list of all available temporal
ranges for a raster data provider when that range of dates is
non-contiguous
2021-03-25 08:01:51 +10:00
Nyall Dawson
4fe99d8d6c Add better __repr__ methods for QgsDateTimeRange, QgsDateRange 2021-03-25 08:01:51 +10:00
Nyall Dawson
ef94191d70 Dox 2021-03-25 04:48:31 +10:00
Nyall Dawson
207be1dd66 Add mechanism for QgsMapLayerConfigWidgetFactory to create sub widgets
which are embedded into the raster layer temporal properties widget
2021-03-25 04:48:31 +10:00
Nyall Dawson
4faceaf0d7 Add api to indicate that a QgsMapLayerConfigWidgetFactory factory
creates sub-components of a standard page instead of a top-level
page on its own
2021-03-25 04:48:31 +10:00
Nyall Dawson
8c0b98d095 Add a mechanism for data providers to supply QgsMapLayerConfigWidgetFactory
via their GUI metadata

Allows providers to create layer properties pages, giving us a nice
way to keep provider-specific logic out of the layer properties
classes.
2021-03-25 04:48:31 +10:00
Denis Rouzaud
ea7fc3c37e drop qMapLessThanKey in Qt6 builds
TestQgis::testQMapQVariantList() should check that everything is fine
further reading:
* https://stackoverflow.com/questions/17463889/does-qmap-support-custom-comparator-functions
* https://codereview.qt.nokia.com/c/qt/qtbase/+/297563
2021-03-24 09:52:39 +01:00
Nyall Dawson
286fd207c4 [processing][saga] Fix misleading 'layer could not be generated' error
after running algorithms which create raster files
2021-03-24 14:21:44 +10:00
Alessandro Pasotti
27d35a2495
Merge pull request #42384 from domi4484/missingNmRelationQgsAbstractRelationEditorConfigWidget
Set missing nm relation for QgsAbstractRelationEditorConfigWidget
2021-03-23 20:32:21 +01:00
Julien Cabieces
1821d7af47 Run providers tests in different CI jobs 2021-03-23 10:53:38 +01:00
Jorge Gustavo Rocha
e1588fcc7c typo fix in sip 2021-03-23 17:14:15 +10:00