4598 Commits

Author SHA1 Message Date
Denis Rouzaud
99a1390a19 migrate babel devices settings 2022-12-05 10:57:40 +01:00
Denis Rouzaud
a77d626991 API to migrate settings from old key 2022-12-05 10:51:11 +01:00
Nyall Dawson
108934648f Add method to get list of supported related table types for a connection 2022-12-01 12:03:12 +10:00
Nyall Dawson
6b65b42493 [feature] Add key dates to layer/project metadata
This adds the following fields to the QGIS layer/project metadata
standard:

- Date created
- Date published
- Date revised
- Date superseded

(Previously the layer metadata had no date fields, and project
metadata had only the created date field)
2022-12-01 06:56:46 +10:00
Nyall Dawson
026f3cdf7b Add api to retrieve illegal field names via connections api 2022-12-01 06:56:24 +10:00
Nyall Dawson
7a3a57a562 Add API to retrieve relationship capabilities for a provider connection 2022-12-01 06:56:03 +10:00
Julien Cabieces
205865fa0a
Merge pull request #50109 from Koyaani/fix-unnecessary-geometryChanged-trigger-calls
[Fix] Remove unnecessary geometryChanged calls
2022-11-30 16:41:30 +01:00
Nyall Dawson
30899be07d Add update and delete relationship api 2022-11-30 11:27:37 +10:00
Nyall Dawson
ff3048d19a [api] Add method for creating relationship to QgsAbstractDatabaseProviderConnection
and implement for OGR provider when built on GDAL >= 3.6
2022-11-30 11:27:37 +10:00
Nyall Dawson
724bf9e970 Expose QgsWeakRelation constructor to sip 2022-11-30 11:27:37 +10:00
Antoine Facchini
864ed43b7c feat(avoidIntersections): add a new return value when the geom is not modified 2022-11-29 17:48:32 +01:00
Mathieu Pellerin
ec689c52f1
[wms] Allow for WMTS layers to take DPI into account and scale up on high DPI screens (#51018) 2022-11-29 11:05:43 +00:00
Nyall Dawson
44361ba352 Add flag to opt into including system tables in QgsAbstractDatabaseProviderConnection tables listings 2022-11-29 10:20:46 +01:00
Nyall Dawson
3527257bd1 Deprecate legend line spacing setting, this is now handled in the text
formats
2022-11-29 14:31:36 +10:00
Nyall Dawson
34df6d129a [feature] Use text renderer in layout legends
This change allows use of the full text renderer capabilities
for legend titles, subtitles, and item text. It allows buffers,
shadows, font spacing control, and all over options (including
mixed HTML formatting!) which is permitted for use in text
formats.
2022-11-29 14:31:36 +10:00
Nyall Dawson
fe0ab98ee0 Manually monkey patch compatibility, since we can't auto patch to gui classes 2022-11-28 11:46:45 +10:00
Nyall Dawson
3efb1e604a Move action enums to Qgis, promote to enum class, and considerably thin
includes as a result
2022-11-28 11:46:45 +10:00
Harrissou Sant-anna
d67e3c39c5 Fix oapif subsection title 2022-11-25 12:19:12 +10:00
Nyall Dawson
cfbf5ef51d Add more efficient method to draw document when a QgsTextDocument is already available 2022-11-24 12:41:24 +10:00
Nyall Dawson
a10b971156 Add additional text renderer rect modes
Adds some text layout modes where the line heights are based
on cap heights or font ascent alone

These are required in order to port additional parts of QGIS
text rendering to the QgsTextRenderer class
2022-11-24 12:41:24 +10:00
Mathieu Pellerin
ed3483edb1 [layouts] Support non-printer layout exports when QPrinter not available 2022-11-23 21:24:15 +07:00
Matthias Kuhn
6f47a5f171
Merge pull request #50960 from DelazJ/maplayerrendererListdocs 2022-11-23 09:57:52 +01:00
Nyall Dawson
8fefb8a010 Move action files to subdirectories 2022-11-23 08:25:33 +01:00
Nyall Dawson
4afcddf739 Refactor to move gps logged positions to QgsGeometry method out
to base class
2022-11-23 13:54:18 +10:00
Harrissou Sant-anna
3d51ab3646 fix python function display in qgsdefaultvalue 2022-11-22 07:39:55 +01:00
Harrissou Sant-anna
9b886a17bf Attempt to fix qgsmaplayerrenderer c++ and pyqgis docs display 2022-11-22 07:39:44 +01:00
Nyall Dawson
913c6ae68e Include ellipsoidal altitude in available GPS information values 2022-11-19 07:21:20 +10:00
Nyall Dawson
b1e63a2815 Don't emit layerModified for every atomic change made during a bulk
operation to the vector layer edit buffer

Eg Instead of emitting layerModified for every individual feature
in a call to QgsVectorLayer::addFeatures, we defer the signal
and emit it only once after adding all the features.

This avoids a lot of expensive, unnecessary work which is triggered
by the signal
2022-11-18 11:51:24 +10:00
Nyall Dawson
3e818b942b Split out qgsgpsconnection files into modular components 2022-11-17 20:13:41 +10:00
Nyall Dawson
cdffe2ef90 Add option to skip edit buffer when logging GPS to vector layer 2022-11-16 20:13:43 +10:00
Damiano Lombardi
619170e4a8 QgsVectorFileWriter map NaN to -DBL_MAX exporting to Shape 2022-11-15 14:02:45 +01:00
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