Nyall Dawson
43e7d18cd8
Move simplification enums to Qgis, promote to enum class
2024-06-06 13:57:48 +10:00
Andrea Giudiceandrea
e13412e49b
[attribute table] Don't show sort indicator if sort expression is not a field
2024-06-06 10:49:02 +10:00
Jean Felder
da90570b43
qgschunkboundsentity: use Qgs3DWiredMesh
...
`Qgs3DWiredMesh` and `AABBMesh` + `LineMeshGeometry` do exactly the same
thing. The only difference is that `AABBMesh` expects a `QgsABBB` to
describe the vertices while `Qgs3DWiredMesh` expects a list of
vertices. By adding a new method to `Qgs3DWiredMesh` which converts a
`QgsABBB` to a list of vertices, it is possible to directly use
Qgs3DWiredMesh for `QgsChunkBoundsEntity`.
2024-06-06 10:39:13 +10:00
Jean Felder
ebf6c552b5
qgs3daxis: Factor out Qgs3DWiredMesh
...
It will also be used by `QgsChunkBoundsEntity` in the next commit.
2024-06-06 10:39:13 +10:00
Sandro Santilli
feeb7223fa
Threat "money" PostgreSQL datatype as numeric with 2 digits precision
...
Fixes GH-25529
2024-06-06 08:04:49 +10:00
Alessandro Pasotti
1b2c859dac
Sync is edited status in feature list view
...
Fix #57644
2024-06-06 08:03:50 +10:00
Matthias Kuhn
67f7693bc4
Merge pull request #57675 from eduard-kazakov/oauth-port-range-patch
...
Fix port values range for OAuth2 UI
2024-06-05 18:34:25 +02:00
Eduard Kazakov
433adfb00c
Fix port values range in qgsauthoauth2edit.ui
2024-06-05 16:27:32 +02:00
Nyall Dawson
22e4124cad
Fix broken prefetch capabilities for raster layers
...
We had a mismatch between QgsRasterDataProvider::providerCapabilities
vs comparing to flags from QgsRasterInterface::capabilities.
This was allowed because both are old style int enums, and really
need to be upgraded to enum classes!
2024-06-05 16:53:43 +10:00
Nyall Dawson
2621d95279
Address review
2024-06-05 11:06:10 +10:00
Nyall Dawson
5e0df0b474
Test masks
2024-06-05 11:06:10 +10:00
Nyall Dawson
4a6d6952a0
Add test masks
2024-06-05 11:06:10 +10:00
Nyall Dawson
941b7b10cd
Fix marker masking
2024-06-05 11:06:10 +10:00
Nyall Dawson
5320d3f190
Keep rendered images for different backends separated
2024-06-05 11:06:10 +10:00
Nyall Dawson
762f720a29
Fix settings key
2024-06-05 11:06:10 +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
a51f5f1a87
Test masks
2024-06-05 11:06:10 +10:00
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