1558 Commits

Author SHA1 Message Date
Nyall Dawson
9eb1ab27be Create common widget for scale method selection 2025-03-30 18:03:30 +10:00
Nyall Dawson
9ea131ded2 [api] Add scale calculation method for "scale at equator"
Always calculates the scale at the equator, regardless of the
actual visible map extent.

This method can be used to provide a consistent, static scale for
maps in geographic reference systems, regardless of the latitudes
actually visible in the map (permitting consistent appearance of
these maps when rendering relies on scale based visibility or
calculations). Otherwise a project in eg EPSG:4326 which uses
scale based visibility of layers and symbols will see layers
and features "randomly" disappear as the map is panned, even
though the user has not zoomed in or out of the map.

This method is only applicable when calculating scales with a
degree based reference system.
2025-03-30 18:03:30 +10:00
Nyall Dawson
71d5aadbc8 [api] scale calculation method can be set for QgsMapSettings 2025-03-30 18:03:30 +10:00
Nyall Dawson
170d962356 Add scale method handling to QgsScaleCalculator 2025-03-30 18:03:30 +10:00
Nyall Dawson
a2db8cf453 Add QgsProject setting for scale calculation method
Exposes the same methods as are available for layout scale bars,
and can be set for a particular project in the project properties
dialog
2025-03-30 18:03:30 +10:00
qgis-bot
644c1f835b auto sipify 🍺 2025-03-30 01:12:39 +00:00
qgis-bot
19848a7819 auto sipify 🍺 2025-03-29 09:09:07 +00:00
Mathieu Pellerin
e75a28f15a [editor widget] Fix relation reference widget filter expression's handling of current(_parent)_* variables and functions 2025-03-29 16:06:09 +07:00
qgis-bot
dd033ba99a auto sipify 🍺 2025-03-29 08:46:03 +00:00
Martin Dobias
ad32431d80 Support for rebasing of scenes 2025-03-29 09:41:22 +01:00
Withalion
0fa3b6d3ec Refactor code & add unit tests 2025-03-29 09:41:22 +01:00
Withalion
742a41d009 Fix review issues 2025-03-29 09:41:22 +01:00
qgis-bot
f2f0de0bc5 auto sipify 🍺 2025-03-28 21:58:29 +00:00
Nyall Dawson
c2e294c3fa Use class with static public methods instead of namespace
Namespaces don't work well with sip, eg losing the class docstrings.
2025-03-29 07:55:27 +10:00
Nyall Dawson
39e37e1fc5 Unify QgsMeshUtils into a single utility class
This was previously a namespace split over multiple files
2025-03-29 07:55:27 +10:00
qgis-bot
112eac014f auto sipify 🍺 2025-03-28 04:26:47 +00:00
Nyall Dawson
f480c2a04e Add all missing class brief descriptions 2025-03-28 14:23:56 +10:00
Nyall Dawson
d991480cbe Fix broken emphasis tag warning when building PyQGIS docs 2025-03-28 13:07:03 +10:00
qgis-bot
657c924383 auto sipify 🍺 2025-03-28 00:05:20 +00:00
Nyall Dawson
1f8a585c5c Make signal const 2025-03-28 10:02:25 +10:00
Nyall Dawson
aa65f01140 Make more symbol factory methods memory safe 2025-03-28 10:02:25 +10:00
Nyall Dawson
596ddb2f4e More memory safety for loading symbols 2025-03-28 10:02:25 +10:00
Nyall Dawson
7b56629478 Sipify 2025-03-27 14:00:26 +10:00
qgis-bot
1129d7014d auto sipify 🍺 2025-03-26 08:50:36 +00:00
Alexander Bruy
21f3bfff03
Merge pull request #61175 from alexbruy/raster-calculator-create-options
Add support for create options and custom NODATA to raster calculator
2025-03-26 08:47:46 +00:00
qgis-bot
7b89eaa547 auto sipify 🍺 2025-03-26 07:26:11 +00:00
Martin Dobias
b98733dbd7 cleanups of the globe entity code 2025-03-26 08:23:23 +01:00
Martin Dobias
adfb671c7a Add globe mesh 3D entity 2025-03-26 08:23:23 +01:00
qgis-bot
a0c5680b64 auto sipify 🍺 2025-03-24 23:50:44 +00:00
Jean Felder
f57c1d72dd qgslayoutelevationprofilewidget: Add support for subsections indicator
This adds some new customization associated with the introduction of
subsections indicator:
- it allows to display or hide them
- it allows to change the associated symbology
2025-03-25 09:47:50 +10:00
Jean Felder
c769795e36 qgslayoutitem: Remove empty lines at the end of file 2025-03-25 09:47:50 +10:00
Jean Felder
21dfcd261d qgslayoutitemelevationprofile: Add support for subsections indicator
This adds support to display vertices lines over the profile graph to
display indicator at the location of the curve's vertices.

This is achieved with mainly 2 changes:
- `setSubsectionsSymbol()` allows to set the line symbol of the
vertical lines
- Call `renderSubsectionsIndicator` on the `QgsProfilePlotRenderer`
2025-03-25 09:47:50 +10:00
Jean Felder
9eb3c37400 qgsprofilerenderer: Introduce a default symbol for subsections
This will be used in the next commit.
2025-03-25 09:47:50 +10:00
Jean Felder
6696b7095d qgselevationprofilecanvas: Add support for subsections indicator
This adds support to display vertices lines over the profile graph to
display indicator at the location of the vertices of the trace.

This is mainly achieved by adding
`QgsElevationProfileCanvas::setSubsectionsSymbol()`. This method
allows to set the line symbol of the vertical lines. Then, It sets the
subsections symbol of the profile renderer of the plot item. It the
renderer does not exist yet, the subsections symbol is set when a new
profile renderer is created.
2025-03-25 09:47:50 +10:00
Jean Felder
030c04c9ea qgsprofilerenderer: Add support for subsections indicator
This adds support to display vertices lines over the profile graph to
display indicator at the location of the curve's vertices.

This is achieved with mainly 2 changes:
- `QgsProfilePlotRenderer::setSubsectionsSymbol()` allows to set the
line symbol of the vertical lines
- `renderSubsectionsIndicator` generates and renders the vertical
lines. It is called by `QgsProfilePlotRenderer::renderToImage()`.
2025-03-25 09:47:50 +10:00
qgis-bot
3ee7834ace auto sipify 🍺 2025-03-24 09:32:25 +00:00
Martin Dobias
73b27d9949 Review from Stefanos and Nyall 2025-03-24 10:29:33 +01:00
Martin Dobias
c40d25ade9 Add 3D scene mode enum 2025-03-24 10:29:33 +01:00
Martin Dobias
e98bf79f1a Initial implementation of globe camera controller
This is a new navigation mode for QgsCameraController which is meant to work
just like the terrain-based navigation mode, but for 3D scenes with globe.

Initially, the new navigation mode can handle:
- zooming in/out with mouse wheel
- orbit around globe when dragging with left mouse button pressed
- left/right/up/down keys to orbit around globe
- shift + left/right keys to change heading angle
- shift + up/down keys to change pitch angle
- page up/page down keys to increase/decrease elevation

For camera pose, we use QgsCameraPose as for "flat" scenes, but the QCamera
is positioned/rotated slightly differently - the main change is that in case
of globe, we use ECEF coordinates of the camera pose's center point, convert
them to lat/lon coordinates in order to set up initial rotation of the camera
so that it is perpendicular to the tangent plane at the given ECEF coordinate.
2025-03-24 10:29:33 +01:00
qgis-bot
67a6c46e17 auto sipify 🍺 2025-03-24 00:28:36 +00:00
Nyall Dawson
a315e07657 Expand docs 2025-03-24 10:25:39 +10:00
Nyall Dawson
6953aec591 Just require ints instead of QNetworkAccessManager::Operation enum
The sip conversion code fails with enums under qt 6
2025-03-24 10:25:39 +10:00
Nyall Dawson
9b96cfde8b Move DOM compare function to QgsTestUtils 2025-03-24 10:25:39 +10:00
Nyall Dawson
b9b519950d [api] Add advanced network request preprocessor capabilities
Allows mutating the request, network operation and request data.

Intended for mocking eg post requests in unit tests
2025-03-24 10:25:39 +10:00
Nyall Dawson
b774d3ecae Store preferred http method for connections 2025-03-24 10:25:39 +10:00
Alexander Bruy
1bf122fdee add support for user-defined NODATA value to raster calculator 2025-03-20 14:26:07 +00:00
Alexander Bruy
687e4e673a add support for raster creation options to raster calculator (fix #39082) 2025-03-20 14:22:15 +00:00
qgis-bot
17824ad647 auto sipify 🍺 2025-03-20 10:49:30 +00:00
Loïc Bartoletti
6e589e1f51 Revert "fix(QgsMapToolCapture): Allow snapping point with different crs"
This reverts commit 7a0f84f39f2c412f6226b165d5f0b299284d1c4c.
2025-03-20 11:46:35 +01:00
qgis-bot
6e63293614 auto sipify 🍺 2025-03-19 04:05:55 +00:00