86036 Commits

Author SHA1 Message Date
Nyall Dawson
6ee262f401 Add option to invert the elevation filter widget
If checked, this option reverse the slider in the elevation filter
so that the widget goes from high values at the bottom to low values at the top.

See justification in https://github.com/qgis/QGIS/issues/56995

Fixes #56995
2024-05-01 13:48:19 +10:00
Nyall Dawson
1698bd3391 Store elevation filter fixed range size in project
Remember this setting between sessions for a project
2024-05-01 13:48:19 +10:00
Nyall Dawson
d5dea0721c Test mask updates 2024-05-01 13:45:55 +10:00
Nyall Dawson
c434eb8585 Update test for newer GRASS 2024-05-01 13:45:55 +10:00
Nyall Dawson
81e7a64760 Add new test result 2024-05-01 13:45:55 +10:00
Nyall Dawson
6858e4dff5 Update test for newer gdal 2024-05-01 13:45:55 +10:00
Nyall Dawson
577f3d277f Ignore some more stderr messages 2024-05-01 13:45:55 +10:00
Nyall Dawson
34292762ce Update test results for newer GDAL 2024-05-01 13:45:55 +10:00
Nyall Dawson
e07e3a5dcb Add test masks 2024-05-01 13:45:55 +10:00
Nyall Dawson
43fb3b57e3 Remove deprecation marking breaking qt 6.7 build 2024-05-01 13:45:55 +10:00
Nyall Dawson
144e6651ce Silence some unwanted deprecation warnings
The method calling these is itself deprecated
2024-05-01 13:45:55 +10:00
Nyall Dawson
f02841dd5d Remove Q_DECL_DEPRECATED from constructor
Even though this class is deprecated, this breaks the qt 6 on qt 6.7+
2024-05-01 13:45:55 +10:00
Nyall Dawson
3bc7f29dac Don't call QMetaEnum::keysToValue with empty strings
This causes a bunch of qt debug spam on Qt 6.7+
2024-05-01 13:45:55 +10:00
Nyall Dawson
3f87b7af8b Fix broken test
This test was broken and not actually testing the QgsGeometry
operator, and breaks compilation under qt 6.7
2024-05-01 13:45:55 +10:00
Nyall Dawson
73591ec2e0 Update qt 6 build instructions for Fedora 40 2024-05-01 13:45:55 +10:00
Nyall Dawson
dbf174d0a4 Fix misleading error when exporting vector features
This has nothing to do with "drawing"
2024-05-01 13:45:28 +10:00
Nyall Dawson
2b37e16ef1 Add missing documentation for @map_z_range_lower/upper 2024-05-01 13:45:07 +10:00
Nyall Dawson
15c51ea226
Update write_failure_comment.yml
Remove branches ignore. Seems this changed meaning sometime earlier this year, and is preventing the workflow running on pull requests targeted at these branches instead of just workflows running ON those branches.
2024-05-01 13:25:57 +10:00
Nyall Dawson
2a35a7a15f
Update build_artifact_comment
Test removing condition to see if workflow can be triggered for prs against master again...
2024-05-01 12:28:00 +10:00
Marco Hugentobler
33b2e4b887 QGIS Server: dxf format options for export with zero width (take 2) 2024-05-01 12:22:07 +10:00
Marco Hugentobler
19ab7743e1 Dxf option 'export with zero width' in processing 2024-05-01 12:22:07 +10:00
Marco Hugentobler
97e992915e Dxf format options for export with zero width 2024-05-01 12:22:07 +10:00
Marco Hugentobler
689e4bce3a Change checkbox label 2024-05-01 12:22:07 +10:00
Marco Hugentobler
48af1d99f5 Add unit test 2024-05-01 12:22:07 +10:00
Marco Hugentobler
37efb0b7af [FEATURE]: add option to export all lines with minimal width in dxf export 2024-05-01 12:22:07 +10:00
Alessandro Pasotti
6dc910c1e7 Update testqgsogrutils.cpp 2024-05-01 10:34:17 +10:00
Alessandro Pasotti
ebc23263ba [OGR] Fix load of stored styles
Fix #57251
2024-05-01 10:34:17 +10:00
Maris Nartiss
cb63fe9a77 Processing: do not store Processing configuration keys if value matches default
If for some reason Processing configuration gets stored into configuration file,
previous code saved default menu paths in configuration. If GUI language changes,
custom values stored in the configuration take precedence over default ones
(= default translated ones are not used). This fix removes menu keys from config
for default value and thus allows to fall back to default menu items on language
switch.

Fixes #52449 (and related issues)
2024-05-01 10:31:23 +10:00
rldhont
15a89949e4
Merge pull request #57219 from rldhont/fix-flag-read-extent-from-xml
QgsProject: The flag to read extent from xml was set too late
2024-04-30 20:41:00 +02:00
Julien Cabieces
d3408fea2e
Merge pull request #57287 from DelazJ/patch-21
Fix typo
2024-04-30 15:23:57 +02:00
rldhont
f32651ae4b Tests: Extending QgsProject layer flags test 2024-04-30 13:06:05 +02:00
rldhont
8f8274f5e8 QgsProject: The flag to read extent from xml was set too late
The `QgsProject::addLayer` method which add a layer from DOM layer element uses the method `projectFlagsToLayerReadFlags` to get layer read flags from project flags.
The generated layer read flags is used into the `QgsMapLayer::readLayerFromXml` method. This method read the extent from XML only if the `QgsMapLayer::FlagReadExtentFromXml`
flag is set. If it is not set, the layer extent (provided by the provider) and layer extent from xml are empty. So even if the read extent from xml is set to true for vector
layer, the extent will be always provided by the provider if the flag `QgsMapLayer::FlagReadExtentFromXml` is not provided to `QgsMapLayer::readLayerFromXml` method.

To fix it, we proposed to update `QgsProject::projectFlagsToLayerReadFlags` method to provide `QgsMapLayer::FlagReadExtentFromXml` from project flags.

Funded by Tenergie
2024-04-30 13:06:05 +02:00
Harrissou Sant-anna
f2a2d201dd
Fix typo 2024-04-30 12:08:41 +02:00
Even Rouault
97a5e2461b macos-build.yml: select macos-13 to get x64 build
GHA has recently switched the macos-latest alias to be macos-14 which is OSX Arm64.  macos-13 is x64 architecture instead
2024-04-30 10:11:35 +10:00
Mike Krus
cc285791a2 Fix non-responsive Qt3D overlay
Qt3D overlay is drawn using imgui which is imperative, so Qt3D needs
to cache events until they are needed for the actual rendering of the
overlay, especially since this happens in a different thread.

When render policy is set to OnDemand though, Qt3D does not cache
the entire history of events since the previous update and events can
go missing or come out of sequence, which confuses imgui.

This patch changes the render policy to Always while the overlay is
visible, so it now responds to events. It will also provide more accurate
display of performance data in that mode.
2024-04-30 06:06:46 +10:00
Nyall Dawson
a41f6f4333 Copy project vertical/3d crs logic to QgsMapLayer
This adds a new verticalCrs property for map layers, and a corresponding
crs3D() property. Logic is the same as that for QgsProject.
2024-04-30 06:06:10 +10:00
Alessandro Pasotti
fcec63d10c
Merge pull request #57180 from elpaso/bugfix-gh45206-wms-feature-count
WMS: GetFeatureInfo FEATURE_COUNT set connection default
2024-04-29 13:17:32 +02:00
Mike Krus
0f9e0cbd61 Fix light model updates
Make sure there is something to remove or add before making
calls to begin/end update methods. Can otherwise lead to
unnecessary updates and potential crashes.

Signed-off-by: Mike Krus <mike.krus@kdab.com>
2024-04-27 10:28:21 +10:00
Nyall Dawson
1b59026b56 Handle projected 3d crs in project vertical/3d crs logic 2024-04-26 20:26:41 +10:00
Nyall Dawson
cc6a840b52 Add QgsProjUtils and QgsCoordinateReferenceSystem ::hasVerticalAxis
Can be used to test if a crs contains a vertical axis
2024-04-26 20:26:41 +10:00
Nyall Dawson
6890255e13 Make test more stable 2024-04-26 20:26:41 +10:00
Nyall Dawson
90e5b3f489 Fix warning 2024-04-26 20:26:41 +10:00
Nyall Dawson
7107f85f13 Don't permit user set vertical crs for project when crs is geographic 3d
or geocentric

Following https://docs.ogc.org/as/18-005r5/18-005r5.html#34 it is not
a valid combination to create a compound crs from these types
2024-04-26 20:26:41 +10:00
Nyall Dawson
87907a5448 Improve error reporting in QgsProject.setVerticalCrs
Report proj error when compound crs cannot be created
2024-04-26 20:26:41 +10:00
Nyall Dawson
1d52a7a8de Report proj error when creating compound crs fails 2024-04-26 20:26:41 +10:00
Nyall Dawson
264f426ba9 Expand documentation 2024-04-26 20:26:41 +10:00
Nyall Dawson
9f2b519d7e [api] Add QgsProject::crs3D
Returns the CRS to use for the project when transforming 3D data,
or when z/elevation value handling is important.

The returned CRS will take into account verticalCrs(), e.g. by
returning a compound CRS consisting of crs() + verticalCrs().

This method may still return a 2D CRS, e.g in the case that crs()
is a 2D CRS and no verticalCrs() has been set for the project.
I.E. It is NOT guaranteed that the returned CRS will actually
be a 3D CRS, but rather it is guaranteed that the returned CRS
is **ALWAYS** the most appropriate CRS to use when handling 3D data.
2024-04-26 20:26:41 +10:00
Jean Felder
a8ea5e1ab9 tests/3d: Add tests for QgsCameraController 2024-04-26 09:23:13 +10:00
Jean Felder
1fccd32782 qgscameracontroller: Make TestQgs3DRendering class a friend
This allows to directly use `QgsCameraController` private member for
tests and to remove `QgsCameraController4Test`.
2024-04-26 09:23:13 +10:00
Julien Cabieces
d7db887357 fix(Oracle): Properly store credentials in cache
Before this modification, user was added to realm before storing
credentials, so we failed at retrieving from cache when no username
was provided.

Fixes #56535
2024-04-26 08:02:02 +10:00