Nyall Dawson
49cbe3bec3
Better documentation
2024-05-23 17:20:30 +10:00
Nyall Dawson
24cc226a64
Expose a useful method to python
2024-05-23 17:20:30 +10:00
Nyall Dawson
dda755d058
Move predefined position order member to QgsLabelPointSettings
2024-05-23 17:20:30 +10:00
Nyall Dawson
e81fcd0b09
Start on QgsLabelPointSettings class
2024-05-23 17:20:30 +10:00
Even Rouault
9c989ee84c
Add a QgsTaskWithSerialSubTasks class
2024-05-23 11:49:49 +10:00
Mathieu Pellerin
8413982ad6
Let the signal carry whether a feature has been found, that might come in handy
2024-05-23 11:00:34 +10:00
Mathieu Pellerin
8c389cf613
[attribute form] Fix initial multi editing state of relation reference editor widgets
2024-05-23 11:00:34 +10:00
Jean Felder
f630efa59c
qgsfeature: Optimize __set_item__ python call
...
This change is similar to the one done for `setAttribute`.
2024-05-23 05:15:16 +10:00
Jean Felder
27ebce6dad
qgsfeature: Optimize setAttribute python call
...
This change is similar to the one introduced in the previous
commit for `QgsAttributes` . The python call of `setAttribute` expects
a `QVariant` as input. sip is able to directly handle `QVariant` but
this allocation can be slow.
In some cases, it is possible to speed-up the `setAttribute` call by
checking the type of the attribute. If the attribute is a boolean, an
integer, a float or a string, it is possible to avoid the intermediate
sip QVariant allocation done by `sipConvertToType`.
Based on some testing, this allows to speed-up a python `setAttribute`
call up to 80%. If the python attribute is already a `QVariant`, then
one get the same time.
2024-05-23 05:15:16 +10:00
Jean Felder
0446f85409
qgsattributes: Optimize QgsAttributes python allocation
...
The python `QgsFeature.setAttributes()` calls is relatively slow
because of the call to `sipConvertToType` which needs to make in
intermediate allocation for each attribute QVariant creation.
This change aims to speed up this call by avoiding the call to
`sipConvertToType` for the most common types.
The change itself is quite simple. If the input attribute is a
boolean, an integer, a string or a floating, a QVariant is directly
created by using the python C API instead of calling
`sipConvertToType`.
Based on some testing on lists which can contain between 5 and 10
elements, I have measured an acceleration up up to 70%.
2024-05-23 05:15:16 +10:00
Julien Cabieces
a6dd92abd8
Update and test cmyk radio buttons
2024-05-22 19:40:29 +02:00
Julien Cabieces
3bcfa9568b
replace isCmyk with colorSpec
2024-05-22 19:40:29 +02:00
Julien Cabieces
4bd56fa0f8
feat(ColorWidget) : Add CMYK support
...
A new setting activeCmykComponent has been introduced, while the old
one activeComponent refers now only to the Rgb/Hsv part
2024-05-22 19:39:55 +02:00
Nyall Dawson
80b61d3d52
Add constBits methods to QgsRasterBlock
...
These can avoid an unwanted QImage detach when we are just
reading block data and don't need to modify it
2024-05-22 14:28:12 +10:00
Nyall Dawson
fb1eabbf0b
const correct method
2024-05-22 14:28:12 +10:00
Nyall Dawson
7a3bf17bf1
Provide detailed error message when creating GeoPDF from layout fails
...
Instead of a generic message (which is not very helpful), show the
full error message we receive from GDAL to the user
2024-05-22 14:28:03 +10:00
Germán Carrillo
127ec157e9
[profile] Address review
2024-05-22 13:44:52 +10:00
Germán Carrillo
c20fec2aca
Update SIP file for PyQt6
2024-05-22 13:44:52 +10:00
Germán Carrillo
65ad23a769
[core] Introduce QgsProfileSourceRegistry to store sources other than map layers, e.g., based on web services
2024-05-22 13:44:52 +10:00
Nyall Dawson
cbd25c1fdd
Promote QgsColorRampShader enums to enum class, move to Qgis
2024-05-22 12:37:44 +10:00
Nyall Dawson
04665953ed
Also add variant which takes a list of layers
2024-05-20 11:52:10 +02:00
Nyall Dawson
c79168a6bc
Add elevation utils method to collect significant elevation values for a project
2024-05-20 11:52:10 +02:00
Nyall Dawson
c8d66e1e8d
Add method to retrieve significant elevation values from a layer
2024-05-20 11:52:10 +02:00
Nyall Dawson
027cd208f2
Add API to show additional elevation labels in elevation filter widget
2024-05-20 11:52:10 +02:00
Nyall Dawson
91c17de4d5
Correct handle many-to-one and one-to-one relationships in expansions
2024-05-16 15:14:49 +10:00
Nyall Dawson
08451d7dc6
Fix build on older sip
2024-05-16 15:14:49 +10:00
Nyall Dawson
ecfcf6ced1
Use a more flexible API for handling SensorThings expansions
...
This allows us to control the sort order and limit for each expansion,
and gives us more flexibility in future to eg handle per expansion
filter strings
2024-05-16 15:14:49 +10:00
Nyall Dawson
742fa6b486
[sensorthings] Support feature expansion
...
This change allows SensorThings entities to be expanded to contain
their related child feature attributes, exposing the relational
SensorThings model as a traditional "flat" GIS-friendly table
structure.
Eg when selecting Location entities, you can now opt to expand
to "Things > Datastreams > Observations". This would result in
multiple "stacked" point location features, one corresponding
to each observation, with the attributes for each point feature
containing the location, thing, datastream and observation
attributes.
(Best used combined with some extent, feature limit, or custom
filter option, as this can otherwise result in very heavy
requests to the backend service!)
Fixes #56805
2024-05-16 15:14:49 +10:00
Nyall Dawson
1c23950304
Replace bar is not always visible when find is
...
Instead do the vscode/pycharm thing and only show it when a replace
toggle is clicked, or Ctrl + R is pressed
2024-05-16 08:44:14 +10:00
Nyall Dawson
1ea04ae712
Add warning methods to QgsCodeEditorWidget
...
These call the underlying QgsCodeEditor methods to show inline
warnings, but also add corresponding highlights on the scroll bar
2024-05-15 17:12:20 +10:00
Nyall Dawson
e435e3f931
Expose scrollbar controller to PyQGIS
...
Allows plugins etc to add custom highlights to the scrollbar
2024-05-15 17:12:20 +10:00
Nyall Dawson
f62e945578
Improve documentation
2024-05-14 12:00:10 +10:00
Nyall Dawson
701af9462b
Rename to parentQuantityName
2024-05-14 12:00:10 +10:00
Nyall Dawson
0ff90a5698
When matching render elevation range to layer ranges, only consider
...
datasets from the same parent group
2024-05-14 12:00:10 +10:00
Nyall Dawson
4eb7661d85
Add fixed elevation range per dataset group mode for mesh layers
...
This mimics the "fixed range per band" mode we have for raster layers,
but allows a per-dataset group elevation range to be set for
mesh layers
2024-05-14 12:00:10 +10:00
Alexander Bruy
d6b2e840ff
Merge pull request #57396 from alexbruy/copy-composer-grid
...
Copy composer grid
2024-05-13 12:46:42 +01:00
Nyall Dawson
64f9a1d17d
Allow dropping paths onto data source select dialog to expand browser paths
...
Makes it a bit easier to fix data sources for files in deep paths
2024-05-12 07:52:15 +10:00
Nyall Dawson
54244d50be
Set initial selected item to matching path when changing data source too
2024-05-12 07:52:15 +10:00
Nyall Dawson
2860f23fa3
Add QgsLineString method to interpolate nan m values along line
...
Fills in any nan m values by interpolating from non-nan values
in neighbouring vertices
2024-05-11 08:33:21 +10:00
Alexander Bruy
8882fd9aa1
duplicate composer map grid ( fix #47511 )
2024-05-10 13:17:39 +01:00
Nyall Dawson
280b92cd44
Indentation
2024-05-10 13:56:49 +10:00
Nyall Dawson
58dafb48f8
Move message bar logic to QgsCodeEditorWidget
2024-05-10 13:56:49 +10:00
Nyall Dawson
64e0fff67f
[console] Rely on QgsCodeEditorWidget search functionality
...
Remove duplicate code searching functionality from console script
editor and just use the standard QgsCodeEditorWidget implementation
2024-05-10 13:56:49 +10:00
Nyall Dawson
19436fa9b1
Add framework for data defined property buttons at feature renderer level
2024-05-10 12:06:18 +10:00
Nyall Dawson
aa39eabde1
Add framework for feature renderer level data defined properties
2024-05-10 12:06:18 +10:00
Nyall Dawson
a34669e784
Add code editor color scheme option for search match highlight color
2024-05-10 06:11:36 +10:00
Nyall Dawson
a484895363
Fix some checks
2024-05-10 06:10:59 +10:00
Nyall Dawson
e59c0df8a8
Port decorated scrollbar widget class from QtCreator
...
Allows decorating scrollbars with colored highlight bars
2024-05-10 06:10:59 +10:00
Nyall Dawson
564f3b85c7
Use QgsCodeEditorWidget in expression builder dialog
...
Adds Ctrl+F search bar support to expression builder dialog
2024-05-10 06:10:30 +10:00
Nyall Dawson
61b72b7d96
Fix see also
2024-05-10 06:09:56 +10:00