22686 Commits

Author SHA1 Message Date
Nyall Dawson
7e73b9bad0 Ensure we correctly set qt item caching only when appropriate 2023-10-19 17:30:10 +13:00
Nyall Dawson
cb187267ce Deprecate QgsLayoutEffect
QGraphicsEffects should NOT be used on QGraphicsItems. Despite
being part of stable Qt API, it is broken and results in crashes.

See https://bugreports.qt.io/browse/QTBUG-58501 for details.
2023-10-19 17:30:10 +13:00
Nicklas Larsson
021f919f24
cmake: update to find PDAL 2.6+
With PDAL 2.6 the 'pdal_util' library is removed as a separate library
and hence part of the 'pdalcpp' library.
2023-10-17 19:41:44 +02:00
Mathieu Pellerin
0e6b4fb118 [layouts] Fix line height setting not respected for HTML-enabled label items 2023-10-17 15:55:13 +13:00
Sandro Santilli
c99a33d224 Add QgsArcGisRestUtils::convertRectangle
See
https://github.com/qgis/QGIS/pull/54944#pullrequestreview-1680737873
2023-10-17 00:18:30 +02:00
Sandro Santilli
99d0f8a015 Make QgsBookmark string output more explicit about it being EMPTY 2023-10-16 10:52:59 +02:00
Alexander Bruy
edaa3dda96 update vector menu links to processing algorithms (fix #54937) 2023-10-16 05:04:34 +10:00
Juergen E. Fischer
3dac2dc95c put test_data_dir.py into build directory (don't use install directory
prior to install)
2023-10-15 15:56:31 +02:00
Nyall Dawson
82918f9063 Generate a markdown summary of test failures along with existing
HTML report
2023-10-12 08:31:53 +10:00
Denis Rouzaud
c76b86e26b
move enum QgsMapLayerProxyModel::Filter to Qgis (#54891) 2023-10-11 13:57:01 +02:00
Nyall Dawson
3b85d07f08 Fix flake 2023-10-11 11:36:40 +10:00
Nyall Dawson
df1dc0dba2 Fix elevation profile item transparency forces rasterisation of
whole layout, expand unit test coverage
2023-10-11 11:36:40 +10:00
Nyall Dawson
3588d41786 Fix legend item with opacity forces whole layout to rasterize
and expand test coverage of blend modes and opacity with
legend items
2023-10-11 11:36:40 +10:00
Nyall Dawson
d3d1dfde36 Write test report header when run from Python 2023-10-11 11:36:40 +10:00
Nyall Dawson
bc960c5ffa Make TEST_DATA_DIR accessible from python tests 2023-10-11 11:36:40 +10:00
Alexander Bruy
a0fc443b5b add test files 2023-10-09 12:14:20 +02:00
Alexander Bruy
e3023455ca use run() to execute nested algorithms
move step calculation to prepareAlgorithm to avoid crash
disable tests for native implementation
2023-10-09 12:14:20 +02:00
Alexander Bruy
a4e473392c concave hull tests based on geos version 2023-10-09 12:14:20 +02:00
Alexander Bruy
17426302ff address review 2023-10-09 12:14:20 +02:00
Alexander Bruy
d18190ce4f make cppcheck happy 2023-10-09 12:14:20 +02:00
Alexander Bruy
514e8b5b24 use geos to calculate concave hull on systems with geos >=3.11.0 2023-10-09 12:14:20 +02:00
Alexander Bruy
5ad4119b19 another attempt to fix test 2023-10-09 12:14:20 +02:00
Alexander Bruy
5097992445 try to fix tests 2023-10-09 12:14:20 +02:00
Alexander Bruy
61b69179af [processing] port concave hull algorithm to C++ 2023-10-09 12:14:20 +02:00
Alexander Bruy
451d1ba5ce [processing] port delaunay triangulation algorithm to C++ 2023-10-09 12:14:20 +02:00
Alexander Bruy
d8243141cc [processing] port voronoi polygons algorithm to C++ 2023-10-09 12:14:20 +02:00
Alessandro Pasotti
9c1201266f
Merge pull request #54687 from elpaso/bugfix-gh54501-cad-floater-regression
CAD fix regression with units
2023-10-09 08:55:38 +02:00
Nyall Dawson
58c13215c4 Spelling 2023-10-09 14:14:03 +10:00
Nyall Dawson
7d33d327ad Use a dedicated thread pool for task manager
This avoids conflicts with Qt3D framework. As noted in
https://github.com/qgis/QGIS/issues/50067#issuecomment-1318081784
"The constructor and destructor of QChangeArbiter require the use of
**every** thread in the Qt thread pool."

This causes hangs when exporting layouts containing 3d maps. We
have threads from task manager in use from elsewhere, so the
application deadlocks waiting for every thread to be freed so
that QChangeArbiter can do its thing.

So, use a new dedicated thread pool for task manager's exclusive
use. This avoids the hang when exporting 3d maps as it avoids
the deadlock between task manager and Qt3D's requirements.

(A side benefit is that we don't get delayed map rendering when
the number of queued/running tasks hits the max thread count
from the global thread pool.)

Fixes #50067
2023-10-09 14:14:03 +10:00
Sandro Santilli
bcf83c17b6 Do not pass -projwin to gdal_translate when given rectangle is Null
Update testcase accordingly
2023-10-08 22:40:25 +02:00
Alessandro Pasotti
9695f1f808 Revert "BROWSER add optional button box to dock widget"
This reverts commit 5a2cf2968ded40e53246553ae122d96d37f77a26.
2023-10-06 16:08:23 +10:00
Alessandro Pasotti
3ecf3d5f61 BROWSER add optional button box to dock widget
The button box holds Close and Help buttons
and it is hidden by default. Signals are
forwarded.

Fix #54171
2023-10-06 16:08:23 +10:00
Nyall Dawson
b552c155a8 Use base class render check methods in more tests, avoids
tests which pollute test failure report with unnecessary noise
2023-10-06 16:00:31 +10:00
Nyall Dawson
9d8a722568 Revert "Allowing storing GPGK raster layer styles to DB" 2023-10-06 12:15:46 +10:00
Sandro Mani
4bc4f48f50
Merge pull request #54558 from manisandro/rasterstyles
Allowing storing GPGK raster layer styles to DB
2023-10-05 16:16:44 +02:00
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