Nyall Dawson
a7a19a7fc0
Don't use raw int for QgsRasterInterface capabilities
2024-06-06 13:57:48 +10:00
Nyall Dawson
2220473b4a
Fix accidental paste
2024-06-06 13:57:48 +10:00
Nyall Dawson
3aae3a9ee4
Remove redundant duplicate enum
2024-06-06 13:57:48 +10:00
Nyall Dawson
43e7d18cd8
Move simplification enums to Qgis, promote to enum class
2024-06-06 13:57:48 +10:00
Nyall Dawson
3ace4676fa
Improve results when using path stroking
...
Use GEOS to do the path stroking
2024-06-05 11:06:10 +10:00
Nyall Dawson
4eb35e466d
Add hidden QSettings switch to use a QgsGeometry/GEOS backend for label masking
...
If the 'map/maskBackend' QSettings key is set to 'geometry', then
QgsGeometryPaintEngine will be used for calculating clip paths
for label masking instead of QPainterPath
The intention here is that we gain improved flexibility to optimise
the creation and logic behind clipping path generation, vs the
limited API we get from QPainterPath.
2024-06-05 11:06:10 +10:00
Nyall Dawson
9626644c7c
Add option to remove redundant vertices in QgsAbstractGeometry::snappedToGrid
...
If opted in, then vertices which form a midpoint of a straight line segment will be removed in the output
2024-06-04 21:33:29 +10:00
Jacky Volpes
ab663b485b
Use WkbType instead of GeometryType enum for addPart
...
Deprecating QgsGeometry::addPart in favor of QgsGeometry::addPartV2
to use Qgis::WkbType instead of Qgis::GeometryType because the latter
can't handle curved geometries (not specific enough).
Fixes #57255
2024-06-03 19:40:48 +02:00
Mathieu Pellerin
2c38dc8cbd
Merge pull request #57271 from nirvn/current_parent
...
[attribute form] Add parent feature scope when adding/editing a child feature through the relation editor widget
2024-06-03 13:39:10 +07:00
Nyall Dawson
b43537680c
Add API to add list of geometries to collections
...
More efficient then adding one by one, and allows for efficient
transferral of geometries when pared with the new takeGeometries
method.
2024-06-03 14:38:57 +10:00
Nyall Dawson
27a2bcf064
Add API to take geometries from a collection
...
Removes the geometries from the collection and returns ownership
to the caller.
Can be used to avoid clones in some scenarios.
2024-06-03 14:38:57 +10:00
Mathieu Pellerin
96a711a2ae
Address review: add vector layer tools context class, implement addFeatureV2
2024-06-03 11:05:58 +07:00
Mathieu Pellerin
83d61b5458
[atribute form] Add parent context when editing a child feature through the relation editor widget
2024-06-02 16:03:13 +07:00
Mathieu Pellerin
54e3668edd
[attribute form] Add parent feature scope when adding a child feature through the relation editor widget
2024-06-02 16:03:13 +07:00
Mathieu Pellerin
f9d3ca3afe
[qml] Add missing QgsProject's transactionMode property
2024-06-02 07:32:36 +07:00
Nyall Dawson
94b6003e3c
Add list constructor for QgsMultiLineString too
2024-06-01 19:28:50 +10:00
Nyall Dawson
2871f5b8af
Add constructor to directly create QgsMultiPolygon from list of polygons
2024-06-01 19:28:50 +10:00
Alessandro Pasotti
058601dcd5
Merge pull request #57630 from elpaso/qgsfeaturerequest-compare-method
...
[api] Add compare methods to QgsFeatureRequest
2024-06-01 11:04:36 +02:00
Alessandro Pasotti
30a1e36fe5
sipify
2024-06-01 08:09:57 +02:00
Alessandro Pasotti
f681cd459e
[api] Add compare methods to QgsFeatureRequest
...
This will allow to reduce unnecessary expensive calls
when the request has not really changed.
2024-05-31 11:38:05 +02:00
Nyall Dawson
b89abdb64b
Create optimised paint device to QgsGeometry converter
2024-05-31 15:02:35 +10:00
Nyall Dawson
0a493a0443
Move core painting related files to src/core/painting
2024-05-31 15:02:35 +10:00
Julien Cabieces
48bd417ded
update qgsfield after rebase
2024-05-31 08:46:33 +10:00
Julien Cabieces
48e2043505
fix new deprecated iconForField and typeToDisplayString methods
2024-05-31 08:46:33 +10:00
Julien Cabieces
ad13ae8b32
fix doc TODO
2024-05-31 08:46:33 +10:00
Julien Cabieces
848fb16785
Add \deprecated tag
2024-05-31 08:46:33 +10:00
Julien Cabieces
1170aa15ee
fix since rebase
2024-05-31 08:46:33 +10:00
Julien Cabieces
255d46230a
sipify
2024-05-31 08:46:33 +10:00
Julien Cabieces
71e0b7ffcd
manual fix rasterattibutetable
2024-05-31 08:46:33 +10:00
Julien Cabieces
97f1c8df97
make python API backward compatible
2024-05-31 08:46:33 +10:00
Julien Cabieces
0ccaf2d299
sipify
2024-05-31 08:46:33 +10:00
Jean Felder
2682a2ee2d
qgs3dmapsettings: Fix extent methods documention
...
The 3D scene's CRS is not necessarily the same as the project's
CRS. For example, it can be "EPSG:3857" if the project's CRS is
geographic.
The stored extent in the settings is always the 3D scene's extent.
See:
b0d1a4f8b1
2024-05-30 05:28:33 +10:00
lpofredc
0547b71180
fix #57590
2024-05-29 12:02:42 +10:00
Nyall Dawson
e2157cfe1f
Promote FieldOrigin to enum class, move to Qgis
2024-05-27 08:50:16 +02:00
Nyall Dawson
fce4ed06b8
Split fragments on tab characters
2024-05-25 06:10:28 +10:00
Nyall Dawson
25f00e2560
Don't try to render empty text strings
2024-05-25 06:10:28 +10:00
Nyall Dawson
f5853a7212
Add tab stop distance to QgsTextFormat
2024-05-25 06:10:28 +10:00
Nyall Dawson
0c41c22343
Fix bad merge
2024-05-24 16:34:33 +10:00
Nyall Dawson
6185675c93
Additional shortcut to QgsAttributes creation from Python
...
Avoid constructing a bunch of default QVariant objects which
we will just replace immediately
2024-05-24 16:34:33 +10:00
Nyall Dawson
280cd84652
Add more HoldGIL annotations to cheap methods
2024-05-24 16:34:33 +10:00
Nyall Dawson
8941bbf599
Optimise QgsAttributes python constructor
...
Avoid multiple checks for detachment for each attribute
2024-05-24 16:34:33 +10:00
Germán Carrillo
2768e41f0a
Adjust docstring in qgsgeometryutils_base.h
2024-05-24 07:30:09 +10:00
Julien Cabieces
eaa0261c5d
Merge pull request #57361 from troopa81/cmyk_colorwidget
...
[ColorWidget] Add CMYK support
2024-05-23 18:03:52 +02:00
Nyall Dawson
fe74b300be
[feature] Add maximum distance setting for point labels
...
For the "Around point" and "Cartographic" placement modes, this
adds a new optional setting for the maximum distance of the labels from
the feature. It's used together with the existing distance setting
to define a range of distances at which labels may be placed
from their corresponding point features.
This adds more flexibility to the placement for these layers,
ultimately allowing for more labels to be placed in busy maps.
When the layer is set to the "around point" mode, then label
candidates which are closer to the point will always be prefered
over those which are further away.
When the layer is set to the "cartographic" mode, then the default
behavior is also to prioritize closer labels. A new combo box
allows users to control the priority, with an option for
prefering position ordering. If this option is set, then candidates
at the corresponding positions (eg top left) are preferred regardless
of how far they are from the point, with the labelling falling
back to alternate positions only when no labels can be placed
up to the maximum label distance.
Sponsored by Rubicon Concierge Real Estate Services
2024-05-23 17:20:30 +10:00
Nyall Dawson
587a80dcc2
Move label quadrant setting to QgsLabelPointSettings
2024-05-23 17:20:30 +10:00
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