22644 Commits

Author SHA1 Message Date
Nyall Dawson
33bb769b91 Cleanup Execute SQL geometry type handling
And fix exception when "no geometry" type is selected

Fixes #54833
2023-10-05 14:54:41 +10:00
Nyall Dawson
7b93febd79 Geometry type should not be optional in Execute SQL algorithm
Instead it should just default to Autodetect

Given how the algorithm uses this parameter this change does not
result in any difference to scripts/etc running this tool, as
before/after this change the algorithm will use Autodetect mode
when the parameter isn't specified explicitly.

This just avoids the confusing situation where both "Not specified"
and "Autodetect" were exposed as options for the geometry type
parameter in the UI, with both having the same result.
2023-10-05 14:54:41 +10:00
Nyall Dawson
0a11e3da2c Fix strings 2023-10-05 14:54:41 +10:00
Nyall Dawson
2bd25071f7 Ensure that we always call prepareGeometryChange BEFORE changing
properties which effect the boundingRect of a layout item

Refs #52079
Refs https://bugreports.qt.io/browse/QTBUG-18021
2023-10-05 13:24:47 +10:00
Nyall Dawson
17a34a1bab Avoid calling overridden virtual method in base class destructor
Fixes some undefined behavior when deleting layout items
2023-10-04 05:29:03 +10:00
Nyall Dawson
15f04bb10f QgsVectorLayer field configuration flag methods should also be exposed 2023-10-03 19:51:38 +10:00
Nyall Dawson
7147f013ff Fix QgsField::ConfigurationFlag::None causes syntax error when
starting PyQGIS

We can't use `None` as a keyword exposed to python, it's reserved.
Also move the enum to Qgis before making it part of public stable
API.
2023-10-03 19:51:38 +10:00
Nyall Dawson
52df64779c Add a workaround for setting QFont objects to font families with
odd characters in their names

This can result in the font falling back to a default system
font. It's notably an issue for the "ESRI Oil, Gas, & Water"
symbol font.
2023-10-03 10:14:41 +10:00
Juergen E. Fischer
a0c3d67911 Don't install CMakeLists.txt 2023-10-02 11:44:34 +02:00
Alessandro Pasotti
49340299d2
Merge pull request #54734 from elpaso/bugfix-gh54662-spatialite-multisurface
SPATIALITE: fix insert incompatible geometry types
2023-09-30 14:05:16 +02:00
Alessandro Pasotti
7bd457b2bd doxy 2023-09-30 10:02:02 +02:00
Alessandro Pasotti
3cac4c0b0b Make convertToProviderType static to bypass thread check 2023-09-30 09:34:34 +02:00
Alexander Bruy
373d5f8654
Merge pull request #54035 from alexbruy/processing-port-raster-calculator
Port Raster Calculator algorithm to C++
2023-09-30 10:12:55 +03:00
rldhont
dece451aa1
Merge pull request #54706 from Gustry/hide-password
Hide password instead of removing it
2023-09-29 14:22:38 +02:00
Harrissou Sant-anna
f53b318692 Update docs and description for layout map item grid elements 2023-09-29 19:55:37 +10:00
Nyall Dawson
25fc01542a Port Join Attributes by Location (summary) to c++
Refs #53806

The crash here is coming from sip internals -- somewhere it is
triggering a Python SystemError. I can't solve this one, so just
port the algorithm to c++ and deal with the much improved performance
instead.
2023-09-29 19:11:46 +10:00
Etienne Trimaille
29b08c79b7
Hide password instead of removing it 2023-09-29 09:29:49 +02:00
Nyall Dawson
8793e659a1
Apply suggestions from code review 2023-09-29 11:31:17 +10:00
Andrea Giudiceandrea
1a638ef265 [GRASS] Fix QgsProcessingParameterNumber in grass7.txt 2023-09-29 11:02:04 +10:00
Nyall Dawson
784c844e30 Fix crash when certain symbol pages are open in style dock, eg
categorized class symbol editors, and QGIS is closed or a new project
opened

The symbol ownership of QgsSymbolSelectorWidget is very messy, and
we can't fix till 4.0. Workaround this by introducing a temporary
API to transfer symbol ownership to the widget.
2023-09-29 10:40:07 +10:00
Martin Dobias
859a851e39 Allow GPU memory limit configuration + show a warning when limit got hit 2023-09-29 05:41:59 +10:00
Julien Cabieces
4676af859f
Merge pull request #54726 from troopa81/make_avoidintersection_return_enum
Make avoidIntersections return an enum
2023-09-28 09:09:48 +02:00
Julien Cabieces
29f19dafc6 fix sip 2023-09-27 18:39:19 +02:00
Denis Rouzaud
68f025b2e5
expose QgsField configuration flags in python bindings (#54753) 2023-09-27 14:00:25 +02:00
Alexander Bruy
3c1f510115 add modeler support and deprecate Python implementation 2023-09-25 14:14:42 +03:00
Alexander Bruy
8d52b54f33 address review 2023-09-25 14:14:41 +03:00
Alexander Bruy
0f93479e1c support for raster calculator expressions in expression parameter 2023-09-25 14:14:41 +03:00
Julien Cabieces
7ef5717c7a add deprecated instructions 2023-09-25 11:12:15 +02:00
Julien Cabieces
5315ae6cc5 make avoidIntersections return an enum 2023-09-25 08:42:03 +02:00
Jean Felder
d8508b1132 qgs3dmapscene: Fix sip file
This fixes commit b9f770210c03201a5d81324ac3b1523f57bc2bd8.
2023-09-25 09:53:13 +10:00
Alexander Bruy
0e7ab1d29f add tests for GDAL algorithms 2023-09-22 09:40:49 +10:00
Alexander Bruy
f22efde645 add binary and boolean types to QgsFieldProxyModel to allow filtering
corresponding field types. Also expose these field types to Processing
field parameter (fix #53940)
2023-09-22 09:40:28 +10:00
Julien Cabieces
e5e6a13671
Merge pull request #54650 from pblottiere/load_psql_project_anonymised
Anonymise  logs when loading a project from postgresql
2023-09-21 08:39:29 +02:00
Blottiere Paul
c448e633ae Update doc 2023-09-20 21:16:47 +02:00
Matthias Kuhn
2c8e784625
Use geos cmake configuration (#54659) 2023-09-19 20:10:15 +00:00
Blottiere Paul
a95e6b23ca sip 2023-09-19 17:17:47 +02:00
Matthias Kuhn
55593bdbb3 Cleanup GDAL_INCLUDE_DIR 2023-09-18 19:02:53 +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