844 Commits

Author SHA1 Message Date
qgis-bot
70d7f59e06 auto sipify 🍺 2024-11-21 14:10:03 +00:00
Mathieu Pellerin
7d190f9171
[qml] Upgrade QgsLocatorResult to a Q_GADGET (#59547) 2024-11-21 15:03:52 +01:00
qgis-bot
2eef9e12d3 auto sipify 🍺 2024-11-21 01:15:27 +00:00
Mathieu Pellerin
10883253d3 [qml] Upgrade QgsLocatorContext to a Q_GADGET 2024-11-20 21:02:31 +07:00
qgis-bot
7d374b248e auto sipify 🍺 2024-11-19 11:09:39 +00:00
Nyall Dawson
2abc9d92ca [sld] Don't try to write rules/categorizes without symbolizers
Only create rules/categorized categories/graduated ranges if the
associated symbol could be converted to SLD, and is not an "empty"
symbol.

Otherwise we do not generate a rule, as SLD spec requires a
Symbolizer element to be present.
2024-11-19 21:06:26 +10:00
qgis-bot
45a0abf3be auto sipify 🍺 2024-11-19 02:43:51 +00:00
Nyall Dawson
f446bda82a [optimisation] Greatly speed up clone of QgsSvgMarkerSymbolLayer
The old method was very inefficient, as it required a re-load and
re-parse of the associated SVG file content with every clone, only
for many of the parsed properties to be immediately overwritten.

Optimise by just directly copying members, avoiding all unnecessary
work.

This is frequently seen as a hotspot when profiling map renders,
as that involves cloning all symbol layers upfront.

Speeds up a benchtest cloning 100k markers from 4.3 seconds to
150ms.
2024-11-19 12:40:44 +10:00
qgis-bot
c3432328fc auto sipify 🍺 2024-11-19 01:18:45 +00:00
Nyall Dawson
7a17557e64 Refactor QgsTextRenderer internal methods, optimise buffer render
Rework internals of QgsTextRenderer horizontal text rendering,
so that:

1. It's easier to read, cleaning up years of accumulated cruft
2. Split out bits into smaller functions
3. Reduce the amount of duplicate code for text layout, so that
there's only one function responsible for horizontal text layout
instead of multiple
4. Add shortcut optimisations for rendering text + buffer/shadow
at the same time, instead of always drawing these completely
independantly of each other and incurring the cost of text path
calculation multiple times for the same bit of text. In a simple
benchtest this reduces the time required for rendering many
text fragments with buffers from 40 seconds to 27 seconds.

There's still more we could do here, but it's a start...
2024-11-19 11:15:34 +10:00
qgis-bot
c41be037d9 auto sipify 🍺 2024-11-15 21:31:40 +00:00
Harrissou Sant-anna
6648c9596c s/if/whether 2024-11-16 07:28:29 +10:00
Harrissou Sant-anna
ac3c06d3ad Rewording and formatting in PyQGIS docs 2024-11-16 07:28:29 +10:00
Denis Rouzaud
3e085e496b move read/write XML for QgsMapThemeCollection::MapThemeRecord inside class 2024-11-16 07:24:58 +10:00
qgis-bot
3958320887 auto sipify 🍺 2024-11-13 23:57:57 +00:00
Yoann Quenach de Quivillic
ea75091351 Switch to QWebEngineView if available 2024-11-14 09:54:48 +10:00
Yoann Quenach de Quivillic
b2f3876e38 Apply suggestions from review 2024-11-14 09:54:48 +10:00
qgis-bot
a39e1e37b8 auto sipify 🍺 2024-11-12 07:55:35 +00:00
Nyall Dawson
2889aa375b Fix use-after-free 2024-11-12 08:49:18 +01:00
Nyall Dawson
3e1c84e07e Finalize sinks to get proper error reporting when flushing features
Fixes #59237
2024-11-12 08:49:18 +01:00
Nyall Dawson
20405003aa QgsProxyFeatureSink should forward flushBuffer to underlying sink 2024-11-12 08:49:18 +01:00
qgis-bot
5acffdaeda auto sipify 🍺 2024-11-11 03:04:52 +00:00
Nyall Dawson
656eb4ccc6 Add AllNumeric value, QGIS 4.0 todo note 2024-11-11 13:01:42 +10:00
Nyall Dawson
c03f550f0f Maintain API 2024-11-11 13:01:42 +10:00
Nyall Dawson
ac23e5d7da Address review 2024-11-11 13:01:42 +10:00
Nyall Dawson
2890df089d [feature] Add raster zonal min/max algorithm
This algorithm extracts point features corresponding to the minimum
and maximum pixel values contained within polygon zones.

The output will contain one point feature for the minimum and one
for the maximum raster value for every individual zonal feature
from a polygon layer.
2024-11-11 13:01:42 +10:00
qgis-bot
fda2aa46e9 auto sipify 🍺 2024-11-09 22:55:18 +00:00
Nyall Dawson
7badf62596 [api] Add tab positions list for QgsTextFormat
Allows setting a list of custom tab stop distances, instead
of just a single distance
2024-11-10 09:52:14 +11:00
Nyall Dawson
0cccf4c42b Support CSS margins for block elements in HTML labels
Adds support for CSS margin properties for block elements in
the text renderer. Specifically:

- This is available for block type elements only, eg DIV, P, H1-H6.
- Margins are NOT available for spans or other non-block content (due to Qt
  limitations)
- Margins can be specified in pt units only
- Margins can be specified either via "margin-left: 5pt; margin-right:
  10pt" etc, or "margin: 5pt 0pt 10pt 0pt"
- Negative margins are supported for the bottom margin ONLY (due to Qt
  limitations)
2024-11-10 09:51:55 +11:00
Nyall Dawson
5a7fbaac1b Convert block margins to QgsTextBlockFormat margins 2024-11-10 09:51:55 +11:00
Nyall Dawson
e9a51d6806 Add repr for QgsMargins 2024-11-10 09:51:55 +11:00
qgis-bot
f58c6ac345 auto sipify 🍺 2024-11-08 11:47:35 +00:00
Martin Dobias
5a6b07e22a Nyall's review 2024-11-08 12:44:27 +01:00
Martin Dobias
13251c2bf1 Make tessellator not flip axes and use the new option in QGIS code
We add a new setOutputZUp(true) option to QgsTessellator so that
the coordinates on output do not get flipped from [x,y,z] to [x,-z,y].

The default is still the old behavior with flipped axes (to make sure
we do not break the API), but all uses in the QGIS code were upgraded
to use the new option.

This means we do not need to add rotation to polygon / buffered line
symbol's 3D entities in 3D map views (and there's only translation left, yay!)
2024-11-08 12:44:27 +01:00
qgis-bot
b033b2d3e0 auto sipify 🍺 2024-11-06 23:17:04 +00:00
Nyall Dawson
ace375b686 Move raster iteration progress calculation to raster iterator class 2024-11-07 10:13:55 +11:00
qgis-bot
ac976be6e5 auto sipify 🍺 2024-11-05 05:45:03 +00:00
Juho Ervasti
47b812bb9b
Don't allow non-polygon avoid intersection layers (#59331) 2024-11-05 06:41:56 +01:00
qgis-bot
342a92c5f9 auto sipify 🍺 2024-11-05 00:11:03 +00:00
Nyall Dawson
f3fb1b87c8 [api] Add methods to find min/maximum value in QgsRasterBlock 2024-11-05 11:07:54 +11:00
qgis-bot
a4105a3581 auto sipify 🍺 2024-11-04 05:17:07 +00:00
Nyall Dawson
8b744fbda5 Expand docs with notes on caching 2024-11-04 15:14:00 +10:00
Nyall Dawson
fe78267c66 'throw' is not used/required on sip >=6
And generates hundreds of deprecation warnings during build
2024-11-04 15:13:37 +10:00
qgis-bot
132cbd6f1b auto sipify 🍺 2024-10-30 03:19:15 +00:00
Nyall Dawson
ca5e4450b6 Support css line-height in HTML labels
Adds support for the line-height CSS property in HTML formatted labels.

Supports line-height in either points or percent, eg "line-height:
40pt" or "line-height: 40%"
2024-10-30 13:16:01 +10:00
qgis-bot
3190c5faee auto sipify 🍺 2024-10-29 20:26:00 +00:00
Martin Dobias
ae13cfea17 Add QgsBox3D tests and fix the implementation 2024-10-30 06:20:42 +10:00
Martin Dobias
4f183696b0 Make QgsChunkNode use doubles instead of floats for bounding boxes
- move from QgsAABB to QgsBox3D
- also switch from "world" coordinates (relative to 3d map scene origin,
  and flipped axes) to map coordinates
2024-10-30 06:20:42 +10:00
qgis-bot
d3767e869b auto sipify 🍺 2024-10-28 20:23:25 +00:00
Yoann Quenach de Quivillic
eaad2e930c Apply suggestions from review 2024-10-29 06:20:14 +10:00