21662 Commits

Author SHA1 Message Date
Harrissou Sant-anna
ef232d5f88 Correctly render ordered list in maplayerrenderer API docs 2022-12-03 11:06:42 +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
Jean Felder
5d14d84bde
symbols: rename material to material settings (#50977)
* qgspoint3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgspoint3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgsline3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgsline3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgspolygon3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgspolygon3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgsmesh3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgsmesh3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgsgoochmaterialsettings: fix indentation
2022-11-30 16:45:32 +01: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
Sandro Mani
3aa58f1a53
Merge pull request #51060 from kadas-albireo/pyqt6work
Assorted fixes towards PyQt6 support
2022-11-30 12:41:26 +01:00
Sandro Mani
ff9f2833d0 Assorted fixes towards PyQt6 support 2022-11-30 10:13:52 +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
Nyall Dawson
f045fa2420 Followup aa590b7, more tolerant progress matching 2022-11-30 08:14:02 +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
Nicolas Godet
aa590b7302 Better handling of GDAL progess report 2022-11-29 09:44:42 +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
fa0adc03fe Typo 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
ba9c669b49 Fix source select dialog does not add new pages for providers registered
after QGIS startup (eg when enabling a new plugin), and also ensure
pages are correctly removed when providers are removed
2022-11-25 12:07:49 +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
Nicolas Godet
7b80b30c2a Fixes #50963 : Index already passed don't call findText 2022-11-24 08:01:47 +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
2a0fc591f7 Cleanup qgsmaplayeractionregistry.* files and split into modular files
per class
2022-11-23 08:25:33 +01:00
Nyall Dawson
8fefb8a010 Move action files to subdirectories 2022-11-23 08:25:33 +01:00
Nyall Dawson
c15b960047 Add message bar to QgsMapLayerActionContext 2022-11-23 13:54:18 +10: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
Nyall Dawson
ff03e4c9a5 Add method to change the geometry for the feature shown in a QgsAttributeForm 2022-11-23 13:54:18 +10:00
Nyall Dawson
6d74da2300 needsGeometry getter is not a signal 2022-11-23 13:54:18 +10:00
Nyall Dawson
4f1cc22b54 Also use context when determining which actions can run 2022-11-23 13:54:18 +10:00
Nyall Dawson
0c4aff9a33 Add framework so that a QgsMapLayerAction can get a reference
to the QgsAttributeDialog it is executed from
2022-11-23 13:54:18 +10:00
Nyall Dawson
b6badb60c3 Add a context for QgsMapLayerAction 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
517cac313f In various "new *** layer" dialogs, show a warning when the
user accepts the dialog but has entered a field name in
the new field box without adding it to the fields list

Avoids a papercut where a user thinks that just entering
the name of a field alone is sufficient to create that
field in the resultant table
2022-11-19 15:47:08 +10:00
Nyall Dawson
ad98d28fcf Dox++ 2022-11-19 14:21:34 +10:00
Nyall Dawson
cb8875a87b Condense duplicate code 2022-11-19 14:21:34 +10:00
Nyall Dawson
913c6ae68e Include ellipsoidal altitude in available GPS information values 2022-11-19 07:21:20 +10:00
Nyall Dawson
5c604061bc Fix missing actions menu when only internal actions are present
Follow up bcf0e4838
2022-11-18 16:33:59 +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
Loïc Bartoletti
60e2c9874c
Merge pull request #50586 from nicogodet/gdalcalcextent
Add user interface for `--extent` gdalcalc option
2022-11-17 09:54:46 +01: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