22611 Commits

Author SHA1 Message Date
Sandro Mani
ee357346bb Move isSaveAndLoadStyleToDatabaseSupported and isDeleteStyleFromDatabaseSupported to QgsDataProvider 2023-09-18 14:16:02 +02:00
Sandro Mani
0a1dd0a643 Move saveStyleToDatabase, listStylesInDatabase, getStyleFromDatabase, deleteStyleFromDatabase, loadNamedStyle to QgsMapLayer 2023-09-18 14:16:02 +02:00
Sandro Mani
eba65ddd09 Move load/save style methods to QgsLayerPropertiesDialog 2023-09-18 14:16:02 +02:00
Sandro Mani
1fb7e142c3 Rename QgsVectorLayerSaveStyleDialog to QgsMapLayerSaveStyleDialog and allow using it for non-vector layers 2023-09-18 14:16:01 +02:00
Alexander Bruy
81dbdd8bae
Merge pull request #53874 from alexbruy/processing-port-align-raster-tool
Port Align rasters tool to Processing
2023-09-14 16:29:49 +03:00
Alexander Bruy
623e459867 fix patching 2023-09-14 10:46:54 +03:00
Alexander Bruy
79ea6d9936 address review 2023-09-13 13:01:59 +03:00
Nyall Dawson
b168b20516 Add setting to control background color for elevation profile charts
This option (available from the new Settings - Options - Elevation tab)
allows users to set a specific color to use as the background color
for elevation profiles. This can make the chart more readable for
certain datasets, eg point clouds with RGB coloring, where the default
background color is too close to the point colors to be discernable.

This is an opt-in setting -- by default the profiles will continue
to display using the standard system background color.
2023-09-13 10:17:01 +02:00
Alexander Bruy
4401ac792b
Merge pull request #54321 from alexbruy/processing-port-tile-xyz
[processing] port XYZ tiles algorithms
2023-09-13 10:58:21 +03:00
Mathieu Pellerin
be91ea1909 [api][profiler] Add a function to export the current runtime profiler model content as text 2023-09-13 12:41:00 +07:00
Nyall Dawson
b70fe25051 Add method to manually insert an entry into the runtime profiler
Useful when we will be manually calculating runtime duration and
want to push this value to the runtime profiler
2023-09-12 19:30:24 +10:00
Nyall Dawson
0a752b7d13 Add opt in setting for map renders to enable render time profiling,
and enable for main canvas renders only

And explicitly disable for main canvas preview jobs too
2023-09-12 19:30:24 +10:00
Nyall Dawson
dce7bbdeb1 [api] Add opt-in setting to make QgsVectorFileWriter transfer
field constraints to the output file

This is opt in to avoid potentially breaking existing scripts/plugins.
2023-09-12 13:23:06 +10:00
Marco Hugentobler
8f8cfa949c Added since QGIS 3.34 in comment 2023-09-12 11:35:23 +10:00
Marco Hugentobler
3fbfba3715 Possibility to apply default values for the processing gui from the settings 2023-09-12 11:35:23 +10:00
Yoann Quenach de Quivillic
a1e9692755 Handle grid frame in rect frame computation 2023-09-08 05:21:07 +10:00
Nyall Dawson
5fe84b0a55 [cesium] Add support for deprecated gltfUpAxis asset setting
Adds support for Z up gltf content
2023-09-07 09:09:24 +02:00
Yoann Quenach de Quivillic
05b79d7825 Fix groups with rotated item (still glitchy when resizing with mixed rotation though) 2023-09-06 13:07:11 +10:00
Nyall Dawson
b227fa96cf Fix incorrect dates shown in Processing history
Fixes #54454
2023-09-04 14:07:27 +10:00
Jean Felder
d7bdfe000c geometry: Remove duplicated 2d boundingbox logic 2023-09-02 12:38:44 +10:00
Jean Felder
cdc2abea90 qgsgeometry: Add support for 3D boundingbox 2023-09-02 12:38:44 +10:00
bdm-oslandia
40089e6230 qgsabstractgeometry: Add support for box3d intersection 2023-09-02 12:38:44 +10:00
bdm-oslandia
5774acf8d0 qgsabstractgeometry: Add boundingBox3D logic
With this change `QgsAbstractGeometry::calculateBoundingBox()` is now
computed from `QgsAbstractGeometry::calculateBoundingBox3D()`.
2023-09-02 12:38:44 +10:00
Harrissou Sant-anna
9f009a947e Fix "Metadata Search" tab toolTip in Data source Manager 2023-09-01 10:07:50 +10:00
Mathieu Pellerin
34e247cbbd Address review 2023-09-01 07:51:39 +10:00
Mathieu Pellerin
53b0763346 Add documentation, adjust tests 2023-09-01 07:51:39 +10:00
Mathieu Pellerin
51ca525256 [renderer] Use a UUID string to identify graduated renderer legend symbols 2023-09-01 07:51:39 +10:00
Mathieu Pellerin
ae8b980800 [renderer] Use a UUID string to identify categorized renderer legend symbols 2023-09-01 07:51:39 +10:00
Matthias Kuhn
41204156ae
Merge pull request #54401 from nicogodet/patch-8
More robust retrieval for PostgreSQL version
2023-08-30 12:48:49 +02:00
nicogodet
8fb3352348 Raise error if PostgreSQL version can't be parsed 2023-08-30 09:45:40 +02:00
Nyall Dawson
156e5db76f Add choice of two different modes for "Refresh Layer at Interval"
The old behaviour was always to just redraw the layer, without
refreshing data. This was by design, as the feature was originally
developed to allow animated layers which needed to be regular,
quickly redrawn.

But there's also a use case for automatically refetching layer
data on a regular interval too. So now we expose a choice
of mode for the automatic refresh for users to decided which
is appropriate for their requirements.

The options are:

- "Reload Data": The layer will be completely refreshed. Any cached
data will be discarded and refetched from the provider. This mode
may result in slower map refreshes.

- "Redraw Layer Only": This mode is useful for animation or when
the layer's style will be updated at regular intervals. Canvas
updates are deferred in order to avoid refreshing multiple times
if more than one layer has an auto update interval set.

The changes are all wrapped up in a new reusable widget, so that
we can easily expose this setting for non vector/raster layers
if we want to in future.

Fixes https://github.com/qgis/QGIS/issues/39830
2023-08-30 09:42:59 +10:00
Nicolas Godet
138e6dad65
Use raw string 2023-08-29 10:46:53 +02:00
Nicolas Godet
8ebf323381
More robust retrieval for PostgreSQL version 2023-08-29 09:44:20 +02:00
Nicolas Godet
814041b57a Update python/plugins/processing/gui/BatchInputSelectionPanel.py 2023-08-29 09:22:28 +10:00
nicogodet
aadf6dcae9 Add PointCloud layers to "Select from Open Layers…" 2023-08-29 09:22:28 +10:00
Nyall Dawson
2863e4842f Expand documentation for QgsMapLayer.setDataSource
Fixes #54381
2023-08-29 09:18:58 +10:00
Nyall Dawson
2346f75366 Correctly calculate model child dependencies when a model step
uses expressions for parameter values and contains variables
generated by another step in the model

We were showing links for these in the model designer so it
appeared as though the dependencies were there, but at actual
execution time there was nothing forcing the child which generated
the variable to be run before the child using the variable.
2023-08-26 05:06:40 +10:00
Nyall Dawson
440cac298f Promote QgsProcessingModelChildParameterSource source to enum class and move to Qgis
This wasn't marked as stable API, so we don't need any of the usual monkey patching code
2023-08-25 15:44:05 +10:00
Nyall Dawson
3707702af4 Add a processing output type for variant values
Should be used when the output is a flexible type and may represent
any QVariant value.
2023-08-25 15:44:05 +10:00
Nyall Dawson
8df81beff0 Add a new processing log level for debugging models
At model debug log level we'll show all the generic
logs for step preparation, inputs and outputs for every
child algorithm, including those which we normally skip
(eg raise warnings/outputs, string concatenation, etc).
This gives model designers more useful information to
debug their models.

Use this new log level when running models through the
model designer window.
2023-08-25 15:02:52 +10:00
Nyall Dawson
13fe41dc0e Add a fallback fill symbol to the 2d tiled scene texture renderer
to use when scenes have no textures available for some primitives

Since there's no way to determine in advance whether or not a scene
will actually have textures, this prevents the non-ideal situation
arising where no content is shown on the map because we default
to the texture renderer and don't have any textures to draw.
2023-08-24 18:27:23 +10:00
Alexander Bruy
b36b4d3e1b port XYZ tiles algorithms 2023-08-23 16:08:17 +03:00
Nyall Dawson
e4770a18eb Don't try to render line primitives if the renderer won't do anything with them 2023-08-23 14:08:21 +02:00
Nyall Dawson
64a4ad086c Render line primitives when rendering tiled scenes in 2d with
the wireframe renderer
2023-08-23 14:08:21 +02:00
Nyall Dawson
d05c898922 Implement elevation properties for tiled scene layers
Allows offsetting and scaling z value in the scene by specified
amounts
2023-08-23 13:59:20 +02:00
Alexander Bruy
b7c666db20 fix patching code 2023-08-23 08:40:12 +03:00
Alexander Bruy
6dffd72d57 sipify 2023-08-23 08:40:09 +03:00
Alexander Bruy
00a543f504 move enum to Qgis 2023-08-23 08:37:26 +03:00
Alexander Bruy
7d6361e37f missed file 2023-08-23 08:35:14 +03:00
Alexander Bruy
fa59a02c4e doxymentation and SIP fixes 2023-08-23 08:35:14 +03:00