22081 Commits

Author SHA1 Message Date
Nyall Dawson
fd11e0b45d Add file filter handling for vector tile layers to QgsProviderMetadata
And move QgsProviderMetadata.FilterType to Qgis
2023-04-02 20:04:02 +10:00
Nyall Dawson
cc2d032055 Add DistanceUnit value for inches 2023-04-02 06:01:48 +10:00
Nyall Dawson
0ff713b127 Fix virtual dispatch in constructor warnings 2023-04-02 06:01:26 +10:00
Nyall Dawson
d1c3e8da77 Add Source tab to vector tile layer properties
Match other layer types, and add a Source tab with:

- layer name
- CRS override
- optional provider source widget, for providers which expose this
functionality

This matches the content of the Source tab for other layer types
2023-04-02 06:01:26 +10:00
Mathieu Pellerin
56e33a9fb6 [sensors] Add sensor error reporting capability 2023-04-01 16:59:55 +07:00
Nyall Dawson
deb12464b5 Add repr for layer tree legend nodes 2023-03-31 14:22:44 +10:00
Nyall Dawson
941b0caa49 Add layer tree method to return all selected legend nodes 2023-03-31 14:22:44 +10:00
Nyall Dawson
2b2975817d Promote some label flags to enum class, move to Qgis 2023-03-31 13:17:25 +10:00
Nyall Dawson
fbe7c7fbe5 Add api for offsetting text from line 2023-03-31 13:17:25 +10:00
Nyall Dawson
cd3a1bf237 [api] Add text-along-line annotation item type
This annotation item renders curved text along a linestring
2023-03-31 13:17:25 +10:00
Nyall Dawson
b9c0fc46b5
Checkin missed file 2023-03-31 10:46:52 +10:00
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Alexey Karandashev
30700f1ef1 Fix GeometryType in documentation:
QgsWkbTypes::GeometryType to Qgis::GeometryType
and QgsWkbTypes::<geometry>Geometry to Qgis::GeometryType::<geometry>
2023-03-31 10:28:36 +10:00
Yoann Quenach de Quivillic
443df70628 Add Toggle comment capability to the Html Editor 2023-03-31 05:56:14 +10:00
Alexander Bruy
3104c10ad3 do not index input point cloud layers in pdal algorithms 2023-03-30 09:38:39 +02:00
Mathieu Pellerin
be99a120eb
Merge pull request #52376 from nirvn/sensors_framework_3
Sensors GUI registry and configuration widgets
2023-03-30 13:16:48 +07:00
Mathieu Pellerin
441976171f [layouts] Use QPdfWriter to export layouts to PDF 2023-03-30 12:25:46 +07:00
Mathieu Pellerin
f2b775177b [sensors] Fix building when WITH_SERIALPORT is false 2023-03-30 10:39:43 +07:00
Mathieu Pellerin
95c57b134c [ui][sensors] Sensors GUI registry implementation 2023-03-30 10:39:43 +07:00
Nyall Dawson
6612506d7b Remove outdated code 2023-03-30 12:40:06 +10:00
Nyall Dawson
1822998bda [feature][console] Allow Python console to be toggled between a dock
widget and a full main window dialog

Adds the same toggle button as we use for 3d map canvases and attribute
tables to make it super-easy to switch the Python console to a full
main window.
2023-03-30 12:40:06 +10:00
Yoann Quenach de Quivillic
33863ceace Apply suggestions from code review 2023-03-30 08:33:39 +10:00
Yoann Quenach de Quivillic
7ea839bd58 Add rotation in QgsBookmarks 2023-03-30 08:33:39 +10:00
Yoann Quenach de Quivillic
c5e1ca5249 Add missing comparison operators 2023-03-30 08:22:36 +10:00
Yoann Quenach de Quivillic
b35d5fd15d Composite setting key for QAction & QShortcuts keyboad shortcuts 2023-03-30 08:22:36 +10:00
Alessandro Pasotti
b148ff1051
Merge pull request #52420 from YoannQDQ/map-tip-preview
Map tip preview
2023-03-29 16:06:09 +02:00
Juergen E. Fischer
715f043d8b server: make capabilities cache size configurable and add a note when all slots are taken 2023-03-29 15:56:07 +02:00
Alexander Bruy
0325cf0c30 [processing] add layer options flag enum
This enum can be used in the QgsProcessingUtils::mapLayerFromString()
and parameterAsPointCloudLayer() calls to control layer loading, e.g.
skipping index generation or not applying default style, etc.
2023-03-29 06:06:09 +10:00
nicogodet
f6eb1a3e57 update tests 2023-03-29 06:05:11 +10:00
nicogodet
8a5fb3a25e Add -overwrite to gdalwarp permanently 2023-03-29 06:05:11 +10:00
Yoann Quenach de Quivillic
0e61eb8e58 Add map tip preview in raster layers properties 2023-03-28 15:49:20 +02:00
Yoann Quenach de Quivillic
7d1cc053d0 Add map tip preview in vector layers properties 2023-03-28 15:49:03 +02:00
Yoann Quenach de Quivillic
66b64bc623 Add static methods to get a html preview for a given layer 2023-03-28 14:58:27 +02:00
Mathieu Pellerin
346abae549
Merge pull request #52329 from nirvn/sensors_framework_2
Sensor options panel within the project properties dialog
2023-03-28 15:34:21 +07:00
Nyall Dawson
fe3818d37e Expose QgsMapRendererCache for map canvases to PyQGIS 2023-03-28 15:05:41 +10:00
Nyall Dawson
03e1d90b39 Immediately write out the console history file BEFORE running commands
This prevents loss of history when a user enters a Python command
which results in a QGIS crash
2023-03-28 15:04:39 +10:00
Nyall Dawson
b9b06b057a Don't add 'exec(Path(...))' entries to console history when running scripts
These just clutter the history
2023-03-28 15:04:39 +10:00
Mathieu Pellerin
00b53e7c30 [ui][sensors] Add a sensors panel in the project properties dialog 2023-03-28 11:00:10 +07:00
Yoann Quenach de Quivillic
a4469591a7 Add reformat capability to the HTML editor 2023-03-28 05:53:33 +10:00
Nyall Dawson
107e206ccb Expand documentation 2023-03-27 20:58:08 +10:00
Nyall Dawson
95786c347d Add QgsTextRenderer method to render text along a line/curved path 2023-03-27 20:58:08 +10:00
Nyall Dawson
856f626722 [layouts] When legend filtering is enabled for multiple maps,
ensure that the visible layers for each map is correctly considered
when determining what symbols are overall visible

AKA make multiple map filtering work nicely alongside map themes
2023-03-26 20:21:56 +10:00
Nyall Dawson
030c4f9208 Deprecate confusing old legend filtering API 2023-03-26 20:21:56 +10:00
Nyall Dawson
1742934be5 Add more flexible/understandable api for setting layer tree legend filters
And update existing broken tests which are incorrectly showing
symbols which should not be visible in the legend
2023-03-26 20:21:56 +10:00
Mathieu Pellerin
99f8005d6b [sensors] Add a sensor model class 2023-03-26 11:21:19 +07:00
Mathieu Pellerin
d2b117a3c8 [sensors] Brand new sensors framework (manager, registry, sensor types) 2023-03-24 15:28:47 +07:00
Luke Pinner
aba9dfbcd3
[feature][processing] Add skip/src/dstnodata params to gdal2xyz 2023-03-24 12:17:46 +10:00
Nyall Dawson
5bd4648a05 Update since 2023-03-24 11:11:46 +10:00
Nyall Dawson
d37c0b5ce3 Ensure custom field metadata properties can be set/accessed from Python 2023-03-24 11:11:46 +10:00
Nyall Dawson
a87db9c91c Add capacity for storing additional metadata/properties in QgsField
This adds the API framework for storing additional, semi-structured
properties inside QgsField objects. The intention is that strong
field-type specific properties can be stored.

Eg for a geometry field type coming from the postgres provider
the metadata can be used to store the associated CRS and WKB types
so that clients can be aware of the correct format required for
geometries stored in that field. Instead of cluttering the QgsField
API with specific getters/setters for properties like crs(), wkbType(),
etc which only apply for a certain field type, the metadata map
approach helps us keep the API nice and slim.

The API has been designed to follow the approach used by various
Qt objects (such as QTextFormat) where a preset set of keys
are exposed as an enum, but additional ones can be used for
custom property storage. This allows for a more structured
use of properties with conventions which apply across different
providers (as opposed to a free-form string key approach).

Refs #49380
2023-03-24 11:11:46 +10:00