86459 Commits

Author SHA1 Message Date
Nyall Dawson
52b01ccfb1 Add test image variant 2024-06-05 11:06:10 +10:00
Mathieu Pellerin
eed7b58b09 [ui] Fix unclickable labeling's position priority data-defined button 2024-06-05 06:16:36 +10:00
Julien Cabieces
56b17dba74 fix(MapLayer): Avoid crash when error list is empty 2024-06-05 06:15:56 +10:00
Alessandro Pasotti
9e12e2d59c
Merge pull request #57582 from nyalldawson/next_vertex
Misc HTML labeling fixes
2024-06-04 16:47:12 +02:00
Jacky Volpes
84d2505df4 Fix vertex deletion issue on CompoundCurve
Issue: when deleting a vertex exactly on the limit between two
curves of a CompoundCurve, two vertices appeared deleted.

In fact, one was deleted and another was moved to link with the previous
or next curve.

This "smart" move was problematic when the first or second curve was
completely deleted after its vertex deletion.

This fix always creates an intermediate LineString when such a vertex
is deleted to simply handle every case and curve type.
2024-06-04 15:10:49 +02:00
Nyall Dawson
510c1e045e Remove redundant first vertex 2024-06-04 21:33:29 +10:00
Nyall Dawson
51eece171d Fix test 2024-06-04 21:33:29 +10:00
Nyall Dawson
026e8c1efe Reorganise conditions 2024-06-04 21:33:29 +10:00
Nyall Dawson
255bb225b6 Fix deprecation warnings 2024-06-04 21:33:29 +10:00
Nyall Dawson
ad0eaf4b5b Move logic back to snapToGridPrivate 2024-06-04 21:33:29 +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
Nyall Dawson
fbdc9cd5c3 Optimise QgsLineString::snappedToGrid
The old approach was quite inefficient and resulted in many
reallocations and array resizing
2024-06-04 21:33:29 +10:00
Nyall Dawson
757418fc7b Remove outdated comment 2024-06-04 20:28:40 +10:00
Alessandro Pasotti
08b9624f74
Merge pull request #57624 from elpaso/bugfix-gh57338-attr-table-sorting
[attributetable] Fix sorting with geometry expression
2024-06-04 10:02:10 +02:00
Alessandro Pasotti
1f3b8e3a30
indentation 2024-06-04 08:34:35 +02:00
Alessandro Pasotti
7e86c30c18
Update src/app/qgsattributetabledialog.cpp
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-06-04 08:31:27 +02:00
Sandro Santilli
7c69f92af2 Preserve shapefile field names case on export
Closes GH-52898
2024-06-04 06:58:14 +10:00
Jacky Volpes
56195a9df1 Don't convert to MultiType a geometry that is already MultiType 2024-06-03 19:40:48 +02:00
Jacky Volpes
89cbf746ec Add test for addPartV2 2024-06-03 19:40:48 +02: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
Alessandro Pasotti
29c0457b62 More sync with need geometry 2024-06-03 18:15:39 +02:00
Alessandro Pasotti
f08dfed622 Fix needs geometry on table reload 2024-06-03 15:58:35 +02:00
Alessandro Pasotti
e115e6df08 Fix request NoGeom flag when sort needs geom 2024-06-03 09:44:07 +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
d269eb03b7 Cleanup metatype conversion 2024-06-03 08:38:04 +02:00
Alessandro Pasotti
dd7d2af08c Qt6 add ItemDataRole 2024-06-03 07:48:21 +02: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
Alessandro Pasotti
a1fce5638e [attributetable] Fix sorting with geometry expression
Fix #57338
2024-06-02 16:21:20 +02:00
Mathieu Pellerin
19cb97109c Add test covering new context parameter to QgsVector change attribute(s) functions 2024-06-02 16:03:13 +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
cbdceb86fe Update CMakeLists.txt 2024-06-01 19:28:50 +10:00
Nyall Dawson
d8891eaf4b Update CMakeLists.txt 2024-06-01 19:28:50 +10:00
Nyall Dawson
9170d93436 Update CMakeLists.txt 2024-06-01 19:28:50 +10:00
Nyall Dawson
98cdf874f6 Black magic 2024-06-01 19:28:50 +10:00
Nyall Dawson
94b6003e3c Add list constructor for QgsMultiLineString too 2024-06-01 19:28:50 +10:00
Nyall Dawson
bc413d4283 Lint 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
873b6dfbdb
typo in docstring 2024-06-01 07:07:57 +02:00
Alessandro Pasotti
1ffd306303
Apply suggestions from code review
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2024-06-01 07:06:40 +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
5481dabd32 When field has no explicit type string set, use field type instead
Avoids missing field type information in eg the horizontal header
tooltips in attribute table
2024-05-31 19:24:17 +10:00
Nyall Dawson
8e26f40464 Fix test on older Qt 2024-05-31 15:02:35 +10:00
Nyall Dawson
bc4fe9547e Ensure paths with holes are correctly handled 2024-05-31 15:02:35 +10:00
Nyall Dawson
076b78fb2a Normalize test results for stability 2024-05-31 15:02:35 +10:00