18738 Commits

Author SHA1 Message Date
Daniel Minor
d07cb9720f Rerun sipify after documentation fix 2021-01-06 13:28:16 +10:00
Daniel Minor
9da580cb3d Pass time step and time step unit into QgsTemporalNavigationObject
Currently, we pass the frame duration as a QgsInterval and use the average
duration of a month or year during the animation, for instance, 30 days
rather than a month. This makes it impossible to have an animation that
displays on a particular day each month, as the day in the next month will
change depending on the number of days in the previous month.

This changes QgsTemporalNavigationObject to take the time step and time
step unit as separate arguments. The settings in
QgsTemporalUtils::exportAnimation are left unchanged, because in this case
the user interface is already set up to use an interval.

If the time step has a fractional value, the frame duration is calculated
using a QgsInterval as before. If it has an integer value, the calculation
uses QDateTime to advance by the specified time step instead. So a value of
1.5 months results in a frame duration of 45 days, but a value of 1 month
will result in a duration that depends on the length of the current month.

Fixes #37829.
2021-01-06 13:28:16 +10:00
Nyall Dawson
3ca2137f82 Improve QgsSvgCache documentation, add note about origin of QPictures
returned by svgAsPicture
2021-01-06 09:02:53 +10:00
Andrea Giudiceandrea
4f786ae5a7 [MetaSearch] Reset rubber band when treeRecords selection is changed 2021-01-06 08:36:29 +10:00
Andrea Giudiceandrea
fd9b246ac5 [MetaSearch] Also disable buttons after inspecting CSW in server tab
in order to fix "AttributeError: 'CatalogueServiceWeb' object has no attribute 'records'" python error
2021-01-06 08:36:29 +10:00
Andrea Giudiceandrea
1559908c73 [MetaSearch] Fix navigation through the results pages 2021-01-06 08:00:04 +10:00
Julien Cabieces
5c19845d32 Keep only vector layer file path when calling an OTB algorithm 2021-01-06 07:58:17 +10:00
Julien Cabieces
454c4f6eba Fix otbalgorithm when several band are selected 2021-01-06 07:58:17 +10:00
Julien Cabieces
52f2a4d7bc Fix QGIS/OTB interface for field parameters 2021-01-06 07:58:17 +10:00
Julien Cabieces
bb3e1a554c [processing][OTB] deal with parameter type Enum and Band 2021-01-06 07:58:17 +10:00
Nyall Dawson
cf3bee384e Cleanups 2021-01-06 07:56:51 +10:00
TurboGraphxBeige
69154c2bb8 Code cleanup 2021-01-06 07:56:51 +10:00
Nyall Dawson
bb05c3bcfb Allow plugins to set control image path for QgsRenderChecker, so that
they can reuse this class for plugin specific tests
2021-01-06 04:44:59 +10:00
roya0045
d11d28ca3e re-commit variable changes 2021-01-05 18:24:06 +10:00
roya0045
5920ded609 invert logic 2021-01-05 18:24:06 +10:00
roya0045
d45b6144e4 add skip kwarg 2021-01-05 18:24:06 +10:00
Alex
b3794cef32 Don't save defaults 2021-01-05 18:24:06 +10:00
Nyall Dawson
b740bf201a [processing] Fix exception when calling "Select from Files" in batch mode
on a file parameter

Fixes #40705
2021-01-05 08:32:10 +10:00
pathmapper
d9c220882b Addressing code review comments 2021-01-05 04:18:51 +10:00
pathmapper
7ef6f6ac64 Run sipify_all to fix qgsserverprojectutils.sip.in 2021-01-05 04:18:51 +10:00
Nyall Dawson
923af4e833 Older sip versions DO require custom conversion code! 2021-01-04 13:05:54 +01:00
Nyall Dawson
30084f61a8 Fix identify tool not finding points when using a single point click
and map crs != layer crs
2021-01-04 13:05:54 +01:00
Nyall Dawson
c69b80453c No need for custom conversion code when QVariantMap type is returned 2021-01-04 13:05:54 +01:00
Nyall Dawson
8f63af56a9 Use QVariantMap instead of QMap<QString, QVariant> 2021-01-04 13:05:54 +01:00
Nyall Dawson
72065310f5 Dox++ 2021-01-04 13:52:18 +10:00
Nyall Dawson
16c4bead0c Fix dox warning 2021-01-04 13:52:18 +10:00
Nyall Dawson
7fba697bf3 [FEATURE] New "Merged feature" renderer for polygon and line layers
This renderer merges (or unions/dissolves) the line or polygon features
from a layer prior to rendering them. It's useful for rendering
a polygon layer with overlapping features as one single "coverage" feature,
or a line layer consisting of many smaller component line features
using a regularly spaced marker line or similar.

Internally, this just moves the guts of the existing inverted polygons
renderer to a new base class, as that renderer already had an option
to merge features prior to rendering. Basically it just exposes a new
renderer to users which is the inverted polygon renderer without
the inversion step!
2021-01-04 13:52:18 +10:00
Belgacem
8c72321509 sipify identify function in dataprovider 2021-01-04 10:20:04 +10:00
Belgacem
72d9eeeb0a remove SIP_SKIP and qDebug() 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
8ec26000b4 remove layer and elevation properties 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
ef9d2727a6 make single click identify work 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
839636635b add docs 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
6b7be9c909 fix spelling 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
8178add788 Address Nyall suggestions 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
9358c9bd3e change to variant and remove QgsPointCloudIdentifyResults 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
2d274af355 Add classified renderer filtering behaviour 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
61ee203283 Initial implementation of selection tool for point cloud 2021-01-04 10:20:04 +10:00
Nyall Dawson
0d33fe4c99 Documentation improvements, add SIP_DEPRECATED annotations 2021-01-02 15:48:54 +10:00
Harrissou Sant-anna
a1ee2ffc96 Fix typo 2021-01-02 08:06:13 +10:00
TurboGraphxBeige
e25d857a50 Re-add actionZoomToLayer 2021-01-02 07:04:48 +10:00
Tom Kralidis
65a134ca47 MetaSearch: update bbox CRS 2020-12-30 08:25:51 +10:00
Nyall Dawson
a9c80e5740 Code shuffle
Move vector, project and network related core .cpp/.h files into
dedicated subdirectories.

An attempt to organise src/core better to make things easier to find.
2020-12-29 11:38:11 +10:00
Matthias Kuhn
fcd98861bd
Merge pull request #40745 from m-kuhn/qgsmaplayer_project
Add QgsMapLayer::project() utility method
2020-12-28 23:31:08 +01:00
Mathieu Pellerin
14136a15cb
[ui] Insure color/value changes in the colormap tree are reflected in the color ramp button of the color ramp shader widget (#40671) 2020-12-28 20:01:48 +07:00
Nyall Dawson
d2fb33e0b7 Add API to allow extra feature renderers to be created for a vector
layer, so that these renderers are always drawn either above or
below the normal layer renderer

This allows programatic creation of extra styling for a vector layer,
e.g. to overlay custom markers or outlines on features (such as
highlighting "good" or "bad" features), without messing with
any user-created symbology for the layer.
2020-12-28 04:21:04 +10:00
Nyall Dawson
39560eaab2 Add interface class for objects which can generate a feature renderer for vector layers 2020-12-28 04:21:04 +10:00
Matthias Kuhn
171911a669
Merge pull request #40755 from m-kuhn/non_virtual_qgsproperty
QgsProperty is not virtual
2020-12-27 08:39:56 +01:00
Nyall Dawson
16f9083562 Spelling 2020-12-26 09:51:34 +10:00
Nyall Dawson
e32c5cdd1a Add source widget for XYZ layers, allowing users to change properties
like the min/max zoom levels and authentication settings for any
XYZ layer in a project on a layer-by-layer basis
2020-12-26 09:51:34 +10:00
Nyall Dawson
d5c3b4b8a5 Add API to allow creation of widgets for customising a layer's source
This adds api in the provider gui to allow a provider to create a custom
widget which exposes options to customise and change the layer's source.

E.g. a file based layer provider could expose a widget for selecting
a new file path, and an online one could expose widgets for changing
the host, authentication, etc.
2020-12-26 09:51:34 +10:00