84486 Commits

Author SHA1 Message Date
Nyall Dawson
ddcc42ca85 Add filter options for all crs selection widgets
This is a partial implementation -- we also should be filtering
the lists of recent crs to matching ones
2024-01-17 10:16:32 +10:00
Nyall Dawson
cbc17eacb3 Don't use floats when we don't have to 2024-01-16 13:20:47 +10:00
Nyall Dawson
4338233ee5 Handle attribute strength outside of shader 2024-01-16 13:20:47 +10:00
Nyall Dawson
301fa169cf Fix clang tidy warning 2024-01-16 13:20:47 +10:00
Nyall Dawson
91d633fba1 Fix clang warning 2024-01-16 13:20:47 +10:00
Nyall Dawson
da06bde051 Use double instead of float in high level class to avoid
user set values changing when saving/restoring material settings

Convert to float when creating low level, performance critical
objects only.
2024-01-16 13:20:47 +10:00
Nyall Dawson
37e4b8a1af Add test mask 2024-01-16 13:20:47 +10:00
Nyall Dawson
0aaf9ad70f Add UI for controlling phong ambient/diffuse/specular strengths 2024-01-16 13:20:47 +10:00
Nyall Dawson
2262aee293 Add a simple widget for setting percentage values via spin and slider 2024-01-16 13:20:47 +10:00
Nyall Dawson
0215bf01a3 Add API to control coefficients (strength) of ambient/diffuse/specular
contributions to phong shader
2024-01-16 13:20:47 +10:00
Nyall Dawson
a98d405d9d Remove redundant identical fragment shader 2024-01-16 13:20:47 +10:00
Nyall Dawson
f969a913d5 Consistently use ambientColor/diffuseColor/specularColor as parameter names 2024-01-16 13:20:47 +10:00
Nyall Dawson
87fa33f7c3 Use phong function in instanced renderer 2024-01-16 13:20:47 +10:00
Nyall Dawson
d1f85ff1c2 Allow constructing wmts layers without prior knowledge of
crs and format

WHen the crs or image format is not specified, just use the
first available ones we determine from the capabilities

This avoids a client having to manually retrieve and parse
the capabilities in order to determine these values upfront.
2024-01-16 12:25:17 +10:00
Nyall Dawson
13aacd9571 Check that plugins can be loaded before enabling them in qgis_process
And add tests for plugin enable/disable commands

Fixes #54915
2024-01-16 12:19:48 +10:00
Nyall Dawson
20101676a7 Fix lengthy hang when restoring projects with temporal layers
from remote sources
2024-01-16 12:19:37 +10:00
Julien Cabieces
9267de3d82 [PyQt6] add failing tests 2024-01-16 12:18:11 +10:00
Julien Cabieces
1343d4e1ca [PyQt6] Remove failing null_from_qvariant_converter 2024-01-16 12:18:11 +10:00
Julien Cabieces
d6ac456c5b [PyQt6] fix qputenv call
Expects a QByteArrayView in Qt 6, so we need to convert from
QStringBuilder to QByteArray beforehand
2024-01-16 12:18:11 +10:00
Julien Cabieces
3e27ac5985 [PyQt6] Build PyQt6 2024-01-16 12:18:11 +10:00
Julien Cabieces
f10f3d2d1f [PyQt6] Build binding on CI 2024-01-16 12:18:11 +10:00
Julien Cabieces
a81b217226 block failing tests 2024-01-16 12:18:11 +10:00
Nyall Dawson
07bd7e551d
QString fixup 2024-01-16 08:38:46 +10:00
Nyall Dawson
ca292a4ae1 Fix warnings when running spell check
The contents of .agignore are regular expressions, not wildcards
2024-01-16 07:24:46 +10:00
Nyall Dawson
f55812b517 Remove deprecated smartmatch from sipify
This spams the terminal with deprecation warnings whenever sipify
is run on newer perl versions
2024-01-16 07:24:31 +10:00
Nyall Dawson
ad60cb3a26 [api] Add iface.blockActiveLayerChanges
Sets whether changes to the active layer should be temporarily
blocked. Exposes a previously private optimisation for use
by plugins.

This is a low-level method, designed to avoid unnecessary work when adding lots
of layers at once. Clients which will be adding many layers may call blockActiveLayerChanges( TRUE ) upfront,
add all the layers, and then follow up with a call to blockActiveLayerChanges( FALSE ). This will defer emitting
the active layer changed signal until they've added all layers, and only emit the signal once for
the final layer added.
2024-01-16 06:00:43 +10:00
Juergen E. Fischer
3aed1e20f0 about: also show compile-time vs. runtime python version (refs #54491) 2024-01-15 20:57:38 +01:00
Nyall Dawson
cac1150767 [wfs] Use a more tolerant approach to matching the desired WFS
layer name to those available from the get capabilities
2024-01-15 13:06:59 +10:00
Nyall Dawson
e3e1156c71 Revert "Disable msys2 workflow for now"
This reverts commit dfd2686866707fd95160164ad5b1433d5b18098a.
2024-01-15 11:13:37 +10:00
Nyall Dawson
294de8599e Skip formatting check on PDF4QT lib 2024-01-15 11:00:02 +10:00
Nyall Dawson
0f8f9c99d8 Add embedded external copy of PDF4QT 2024-01-15 11:00:02 +10:00
Harrissou Sant-anna
05be576a95 Add tabulation for better alignment of options' description 2024-01-15 08:07:52 +10:00
Harrissou Sant-anna
3a03569c02 Add missing linebreak in qgis_process help
and harmonize its placement for further features
2024-01-15 08:07:52 +10:00
Nyall Dawson
8f300e50f8 Loosen check for uris by not checking whether they actually exist as files
Its better to defer this to that data provider, as the uri may
not need to correspond to an actual on disk file for some providers.
Eg ogr provider can load remote http sources

Fixes #54264
2024-01-14 05:04:53 +10:00
Nyall Dawson
8934bb87ce Rely more on provider metadata 2024-01-14 05:04:53 +10:00
Nyall Dawson
66d2fc7a48 If we know the data provider, then refine the possible layer types
using those which are actually supported by the provider

Avoids unnecessary attempts to use non-compatible layer types
to load a dataset from the provider
2024-01-14 05:04:53 +10:00
Nyall Dawson
f37dabfa94 Use better name extraction logic by using parsed uri parts 2024-01-14 05:04:53 +10:00
Nyall Dawson
cc618ec973 Don't use hardcoded list of providers which support disk based files,
instead correctly use provider metadata
2024-01-14 05:04:53 +10:00
Nyall Dawson
4dca98c9aa Improve more tests 2024-01-13 13:08:02 +10:00
Nyall Dawson
c7b36cbf0d Update masks 2024-01-13 09:44:34 +10:00
Nyall Dawson
5318d3f889 Add test masks 2024-01-13 09:44:34 +10:00
Nyall Dawson
3f940bca6b Fix raster provider capabilities retrieved from wrong call 2024-01-13 09:44:34 +10:00
Nyall Dawson
1b857d4bed Fix 'implicit capture of this is deprecated' warnings 2024-01-13 06:58:26 +10:00
Nyall Dawson
bc085185d4 Fix some antipatterns in tests 2024-01-13 06:53:51 +10:00
Yoann Quenach de Quivillic
a3413a9a93
Drop the unused Transient flag (#55592) 2024-01-12 09:34:28 +01:00
Loïc Bartoletti
b55b41152d tests python: Uses self.assert{True|False} insert of assert (not) 2024-01-12 07:10:37 +10:00
Loïc Bartoletti
47d377e8df Optimization: uses constData for coordinates 2024-01-12 07:10:37 +10:00
Loïc Bartoletti
7bdf16d976 QgsAbstractGeometry: Update dox for fuzzyEqual and fix \see tags 2024-01-12 07:10:37 +10:00
Loïc Bartoletti
c16938c683 DOX: add a more descriptive information on fuzzyDistanceEqual. What is a 'distance comparison' 2024-01-12 07:10:37 +10:00
Loïc Bartoletti
52fb991c7c tests python: Uses self.assertNotEqual( geom1, geom2 ) instead of assert not geom1 == geom2 2024-01-12 07:10:37 +10:00