21662 Commits

Author SHA1 Message Date
Nyall Dawson
a7c39ffdc7 Add support for super and subscript HTML formatting in text renderer
This allows for either:

- <sup>superscript</sup> / <sub>subscript</sub> components in text,
where the text will be vertically super or subscript aligned
and automatically sized to 2/3rd of the parent font size. Users
can also set a fixed font size for the super/sub script by
including css rules, e.g. <sup style="font-size:33pt">super</sup>

- "vertical-align: super" or "vertical-align: sub" CSS formatting
rules in any other HTML element

Sponsored by OSGEO UK
2022-11-14 20:46:15 +10:00
Nyall Dawson
79b809a585 Prepare framework for text renderer vertical alignment 2022-11-14 20:46:15 +10:00
Nyall Dawson
281f1d0d0c Make QgsVectorLayerGpsLogger API easier to use, and add capacity
to store all GPS information components
2022-11-14 18:00:29 +10:00
Nyall Dawson
b572e54622 Add more GPS component flags 2022-11-14 18:00:29 +10:00
Nyall Dawson
09b0d0c2ed Fix build 2022-11-14 18:00:29 +10:00
Nyall Dawson
14930d87e1 Sipify 2022-11-14 18:00:29 +10:00
Nyall Dawson
3e532a3897 Fix clang warning 2022-11-14 18:00:29 +10:00
Nyall Dawson
154ab209ce Hook up feature creation in QgsVectorLayerGpsLogger 2022-11-14 18:00:29 +10:00
Nyall Dawson
d5c05e3b17 Refactor out GPS logging classes, so that they share a common base class
Moves GPS track logging logic out of app and into core so that it
can be resused in a generic way.
2022-11-14 18:00:29 +10:00
Nyall Dawson
669fb4b9c0 Add layer fields to QgsGpsLogger 2022-11-14 18:00:29 +10:00
Nyall Dawson
f902248a84 Fix dox 2022-11-14 18:00:29 +10:00
Nyall Dawson
6571b9b573 Empty structure for logger 2022-11-14 18:00:29 +10:00
Julien Cabieces
91e5130080
Merge pull request #50854 from elpaso/raster-maptips-2
Raster maptips
2022-11-14 08:42:22 +01:00
Alessandro Pasotti
1373d2bcfc
Merge pull request #50812 from elpaso/bugfix-gh37434-default-style-name
Bugfix default style name
2022-11-14 08:40:29 +01:00
Peter Petrik
2adc388c23 fix sip 2022-11-12 05:30:23 +10:00
Nyall Dawson
5c6c63d0e7 Allow track length and distance from start to be shown in floating
GPS toolbar
2022-11-11 11:12:57 +10:00
Alessandro Pasotti
669fa47bc0 Doxy 2022-11-10 12:46:34 +01:00
Nyall Dawson
ed84780de6 Avoid unnecessary font scaling by precalculating if format has a null
font size
2022-11-10 18:30:06 +10:00
Nyall Dawson
e478a52d72 Use precalculated horizontal advance and fragment fonts from text metrics instead of
recalculating
2022-11-10 18:30:06 +10:00
Nyall Dawson
894a938fff [processing] Drop unmainted saga provider from QGIS install
This provider has not been maintained and does not work with
newer SAGA versions. Users are encouraged to use the 3rd-party
"Processing Saga NextGen" plugin instead.
2022-11-10 17:25:06 +10:00
Alessandro Pasotti
f040c260bd Raster maptips 2022-11-09 09:48:02 +01:00
Alessandro Pasotti
25e94fa52d More raster maptips work
It should actually be moved to a generic maplayer implementation.
2022-11-09 09:48:02 +01:00
Alessandro Pasotti
92feff04ac Doxy 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
8e0a5e1cbe Address PR comments 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
31a5d632c4 Layout 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
0bcb75ff1b Missing sip includes 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
bbb045e2bb Getting closer... almost relase-ready 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
70c93d4aea Gui enhancements 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
3479a66e4e Handle other rat types 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
62dff87ccf RAT GUI 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
fc8cb922a7 Create RAT from raster and fix sip enum 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
41983fa99d Skip value and color fields on RAT identify 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
be9b8647ff Identify 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
5a88611b38 Paletted RAT auto-loading 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
df4f7fe84e RAT model 2022-11-09 09:46:13 +10:00
Alessandro Pasotti
6184bd6f29 RAT model inital implementation 2022-11-09 09:46:13 +10:00
Nyall Dawson
ce6cf4a001 Move responsibility for managing GPS time stamp destination field
to QgsProjectGpsSettings, and store time stamp destination fields
in projects
2022-11-09 05:17:03 +10:00
Nyall Dawson
cc7e5e3769 [gps][feature] Add an explicit "Offset from UTC" option for
storing GPS feature timestamps

This option allows users to manually enter a desired offset from
UTC for storing GPS time stamps. This allows for full flexibility
for users who need to account for daylight savings offsets or
other complex time zone issues.

Sponsored by NIWA
2022-11-08 18:52:17 +10:00
Nyall Dawson
b436282b59 Add GPS Component enum, useful for referring to specific pieces
of GPS information in a generic way
2022-11-08 18:43:39 +10:00
Nyall Dawson
bd895d526b Add missing sip cast for raster contour renderer 2022-11-08 15:34:57 +10:00
Nyall Dawson
f2a3db0b12 Move enum to hopefully fix windows build 2022-11-08 12:58:29 +10:00
Alessandro Pasotti
cfe180fdfe Doxy 2022-11-07 18:35:23 +01:00
Alessandro Pasotti
9c2923aa1d Optionally load all stored styles from DB with correct names.
Fixes #37434

Funded by: Ministère des Forêts, de la Faune et des Parcs - Québec
2022-11-07 10:16:04 +01:00
Nyall Dawson
d0b4bcfc66 Resurrect option to follow layers 2022-11-07 18:24:52 +10:00
Nyall Dawson
544641c17f Add a destination layer property to QgsProjectGpsSettings 2022-11-07 18:24:52 +10:00
Nyall Dawson
5fc94c3fe2 Add debugging setting to show label metrics when rendering labels
Shows the text bounds of the label in red and baselines in blue.
Designed for debugging purposes only.

Also move label engine enums to Qgis, promote to enum class
2022-11-07 09:24:02 +10:00
Nyall Dawson
8aa0857cba Spelling 2022-11-06 17:55:20 +10:00
Nyall Dawson
89c1952def Rename methods for consistency 2022-11-06 17:55:20 +10:00
Nyall Dawson
816eb16460 Create new QgsProjectGpsSettings class
Destinated for a storage location for GPS settings which are
project specific
2022-11-06 17:55:20 +10:00
Alessandro Pasotti
b7a608268c When the default style is read from the DB use its real name
Partial fix for 37434
2022-11-04 16:51:34 +01:00