Nyall Dawson
a9d2d43a0e
Also rename QgsRangeSlider fixed range size methods
2024-03-18 12:37:42 +10:00
Nyall Dawson
9ee09c176a
Rename to fixed range size
2024-03-18 12:37:42 +10:00
Nyall Dawson
e36e402439
[feature] Add option to set a fixed elevation slice width
...
This adds a new option to the configure menu for the elevation
controller, for setting a fixed elevation slice width. It can be
used when a specific elevation range width is desired, or when
the range should always be zero width.
2024-03-18 12:37:42 +10:00
Nyall Dawson
ecc71b4479
Add fixed range width option to QgsElevationControllerWidget
2024-03-18 12:37:42 +10:00
Nyall Dawson
2da02f22c1
Move current range labels to sit on the vertical outside of sliders
...
This ensures that the labels don't overlap when the selected range
is narrow
2024-03-18 12:37:42 +10:00
Nyall Dawson
f306e558c6
Fix overlapping text when narrow range is close to top
2024-03-18 12:37:42 +10:00
Nyall Dawson
a91f5bf7c2
Add a fixed range width option to QgsRangeSlider
...
Allows forcing the widget to have a specific fixed range width,
so that interactions with the lower or upper slider automatically
force the other slider to move to keep a constant width
2024-03-18 12:37:42 +10:00
Nyall Dawson
a5b4d9743e
Microoptimisation
2024-03-16 13:11:54 +10:00
Nyall Dawson
c46ae9b630
Simplify code
2024-03-16 13:11:54 +10:00
Nyall Dawson
7fc4ed3999
Add range limits api to QgsRange
2024-03-16 13:11:54 +10:00
Nyall Dawson
fca4570810
Indentation
2024-03-16 13:11:54 +10:00
Nyall Dawson
253623feb0
Introduce fixed elevation range for raster layers
...
This introduces a new option for specifying how raster layers
have associated elevation. It permits a fixed elevation range
to be set for the layer. It can be used when the layer has
a single fixed elevation, or a range (slice) of elevation values.
Users can set the lower and upper elevation range for the layer,
and whether the lower or upper limits are inclusive or
exclusive.
When enabled, the layer will only be visible in elevation
filtered 2d maps when the layer's range is included in the map's
z range.
2024-03-16 13:11:54 +10:00
Nyall Dawson
2b7e1c5310
Add unit tests for psuedo color renderer
2024-03-16 06:35:16 +10:00
Nyall Dawson
3b8d0b70c9
Add tests for singleband gray renderer
2024-03-16 06:35:16 +10:00
Nyall Dawson
ac0b0a55c5
Add some tests for QgsSingleBandColorDataRenderer
2024-03-16 06:35:16 +10:00
Nyall Dawson
da79086fef
Test input band logic for contour renderer
2024-03-16 06:35:16 +10:00
Nyall Dawson
3cb235ed58
Add unit tests for hillshade renderer
2024-03-16 06:35:16 +10:00
Nyall Dawson
bbf2861425
Add tests for paletted renderer input band
2024-03-16 06:35:16 +10:00
Nyall Dawson
8426fa259d
Move paletted raster renderer tests to own file
2024-03-16 06:35:16 +10:00
Nyall Dawson
4a0bc4ae99
Deprecated subclass methods
2024-03-16 06:35:16 +10:00
Nyall Dawson
2556a6674d
Also add virtual inputBand getter
2024-03-16 06:35:16 +10:00
Nyall Dawson
5f4218ad64
Always check input band
2024-03-16 06:35:16 +10:00
Nyall Dawson
e297f54871
Add some see links
2024-03-16 06:35:16 +10:00
Nyall Dawson
17111a848f
Don't crash when calling QgsHillshadeRenderer::setBand if input is not available
2024-03-16 06:35:16 +10:00
Nyall Dawson
5d29d49869
[api] Add virtual QgsRasterRenderer::setInputBand method
...
Attempts to set the input band for the renderer.
Returns TRUE if the band was successfully set, or FALSE if the
band could not be set.
This was implemented in various raster renderer subclasses,
but it was necessary to down cast and then call the individual
methods (which don't have consistent names!).
Instead, add a top level virtual method so that it's easy to
change the input band for the renderers.
2024-03-16 06:35:16 +10:00
Matthias Kuhn
844f0ccc74
Switch to conditional protobuf-lite target
...
The original version number check was completely random numbers
2024-03-16 06:34:16 +10:00
Alessandro Pasotti
d9a6dc83b7
Merge pull request #56840 from ptitjano/wfs-feature-axis-invert
...
qgswfsgetfeature: Do not invert axis if no SRSNAME is passed
2024-03-15 12:52:26 +01:00
Alessandro Pasotti
ea27b5a85f
Merge pull request #56855 from elpaso/bugfix-gh51710-partial-fix-attempt-2
...
Browser: fix slow behavior with network drives on windows
2024-03-15 10:09:11 +01:00
Mathieu Pellerin
b0f8eed17a
[plugins manager] Normalize _all_ version references
2024-03-15 16:01:00 +07:00
Germán Carrillo
c4272d700b
Get rid of leftover lines in DXF Export
2024-03-15 09:57:18 +10:00
Germán Carrillo
f1ed461a61
Apply code review suggestion
2024-03-15 09:56:51 +10:00
Germán Carrillo
124f93b86e
[tests] Tests for avoiding non-spatial vector layers in DXF export alg
2024-03-15 09:56:51 +10:00
Germán Carrillo
95bae0e810
[processing] Avoid non-spatial vector layers in DXF export alg
2024-03-15 09:56:51 +10:00
dependabot[bot]
e0d8666fe4
Bump follow-redirects in /resources/server/src/landingpage
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-15 09:54:41 +10:00
Denis Rouzaud
9beccf3e3c
correcty save cache in GH actions ( #56856 )
2024-03-14 18:53:16 +01:00
Alessandro Pasotti
fa34fb7888
Browser: fix slow behavior with network drives on windows
...
This fixes UNC paths not identified as network paths.
By ensuring that a trailing slash for directories is passed
down to the identify function.
2024-03-14 18:31:45 +01:00
Alessandro Pasotti
be36cac09d
Merge pull request #56847 from elpaso/bugfix-gh51710-partial-fix-attempt
...
Browser: avoid calling slow functions on disconnected drives
2024-03-14 16:24:44 +01:00
bdm-oslandia
81573d1d47
fix(elevation_profile): adjust tolerance tests for geos 3.12 and add mask for vector_layer_map_units_tolerance
2024-03-14 07:20:41 +10:00
bdm-oslandia
8a9824b0b3
fix(elevation_profile): add fix when intersecting polygons vs wall.
...
In case the geometry is invalid, we shift all coordinates by an epsilon to ensure the 2D equivalent will be topologically correct.
This is just a fix, a proper 3D geometry library is needed (like SFCGAL)!
2024-03-14 07:20:41 +10:00
bdm-oslandia
ce96dee6b5
fix(elevetion_profile): replace request.setFilterRect by request.setDistanceWithin when tolerance>0 as some providers as improved performances with setDistanceWithin
2024-03-14 07:20:41 +10:00
bdm-oslandia
2b08c08e65
fix(elevation_profile): use featGeomPart instead of feature geometry when intersection is empty as we only processing part of the feature's geometry
2024-03-14 07:20:41 +10:00
bdm-oslandia
8730976289
fix(elevation_profile): filter polygon when vertices count < 4
2024-03-14 07:20:41 +10:00
bdm-oslandia
de05588dd8
fix(elevation_profile): revert vertice loop to pointer loop
2024-03-14 07:20:41 +10:00
bdm-oslandia
ac618bfb0a
fix(profileelevation): add comment to explain why extrusion is disabled for polygon
2024-03-14 07:20:41 +10:00
bdm-oslandia
5031de434d
fix(elevation_profile): remove useless test in processTriangleIntersectForLine and improve nan usage.
...
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-03-14 07:20:41 +10:00
bdm-oslandia
5dfcb93570
fix(elevation_profile): migrate c++ test testqgselevationprofile.cpp to python test_qgsvectorlayerprofilegenerator.py
2024-03-14 07:20:41 +10:00
bdm-oslandia
1daf71c974
fix(elevation_profile): generateProfileForLines and generateProfileForPoints return cancel state instead of always true value.
...
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-03-14 07:20:41 +10:00
bdm-oslandia
d51aaca929
fix(elevation_profile): rename mProfileBoxXX mProfileBufferedCurveXX
...
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-03-14 07:20:41 +10:00
bdm-oslandia
03987ba290
fix(elevation_profile): add geos version verification in test
2024-03-14 07:20:41 +10:00
bdm-oslandia
53f2b41581
fix(profileGenerator): refix #54422 and simplify algorithm
2024-03-14 07:20:41 +10:00