20133 Commits

Author SHA1 Message Date
Nyall Dawson
07111661b0 Fix color customisation is lost when configuring renderers using
geometry generators

Fixes #38377
2021-09-22 06:21:37 +10:00
Peter Petrik
b4ec12041f
Merge pull request #45140 from vcloarec/tuneMeshEditingWithAdvancedZvalue
Adapt mesh editing following new CAD Z value
2021-09-21 08:11:11 +02:00
Peter Petrik
ef2f404293
Merge pull request #45142 from vcloarec/verticesFacesCount
fix face/vertex count during editing
2021-09-21 08:10:39 +02:00
Nyall Dawson
3474909739 Use QgsPropertys for interpolated line renderer start/end width/color
expressions instead of raw expressions

We can greatly simplify the code by doing so, as all the handling
of preparing and optimising QgsPropertys are done automatically
for symbol layers.
2021-09-21 14:02:58 +10:00
Nyall Dawson
9e68b4542b Interpolated line renderer: don't assume that a feature is available
Instead we should ALWAYS use the provided points for rendering symbol
layers, or the symbol layer will be broken in various circumstances
(e.g. when used outside of a vector layer)

Fixes #45028
2021-09-21 14:02:58 +10:00
Nyall Dawson
cc240e1ca2 Fix a bunch of clazy/clang warnings in interpolated line renderer 2021-09-21 14:02:58 +10:00
Nyall Dawson
cd2a17f779 Create Qgis::SymbolLayerFlags, add flag for symbol layers to prevent
feature clipping to map extent
2021-09-21 14:02:58 +10:00
Nyall Dawson
d47dc4b210 Expose choice of units for geometry generator symbol layers
Usually a geometry generator expression must return a geometry
in the associated layer's CRS. But this doesn't work in situations
where a geometry generator symbol is NOT associated with a layer,
e.g. when used in a layout item.

So add a new option to allow users to specify which unit the expression
will return geometries in, with choices of map units (the default,
previous behavior), millimeters, pixels, inches and points.

When millimeters, points, inches or pixels is selected then
the @map_geometry variable will be available for the expression,
and contain the feature's geometry in the specified units (relative
to the map frame). (The $geometry variable remains available and
still in layer CRS, in case an expression needs to calculate the
original area, perimeter, etc in real-world units while returning
results in a different unit!)

A step toward fixing #39159
2021-09-21 09:49:52 +10:00
Nyall Dawson
3d599fe4b5 Fix QgsGeometry.fromPolygonXY docs
Fixes #45099
2021-09-21 09:14:52 +10:00
vcloarec
aa4258f8eb rename method 2021-09-20 14:49:41 -04:00
Joonalai
b61fe2734e Remove redundant progress text 2021-09-20 16:47:15 +10:00
Joonalai
60b74efdc1 [processing] log the start time (fix #44292) 2021-09-20 16:47:15 +10:00
vcloarec
34408026ee fix face/vertex count during editing 2021-09-19 23:08:49 -04:00
vcloarec
bb09d06e2a use constraint cad Z value for mesh editing 2021-09-19 18:34:07 -04:00
Nyall Dawson
73ced5dd80 Fix digitizing features using CAD dock when layer CRS != canvas CRS 2021-09-18 05:34:32 +10:00
rldhont
909859188c
Merge pull request #44862 from 3liz/metadata_api_july
Enable many MetadataUrl on the server side
2021-09-17 15:14:01 +02:00
David Marteau
aeab4e8b18
Rename 'clone' method to 'copyTo' 2021-09-17 12:19:42 +02:00
Nyall Dawson
850215f899 Add missing cast code for QgsHashedLineSymbolLayer 2021-09-17 15:15:32 +10:00
Alessandro Pasotti
251ebd20c0 Fixes custom ellipsoid locale double input
Fixes #45015

Funded by: QGIS Grant 2021
2021-09-17 13:27:59 +10:00
Etienne Trimaille
8b6395de85
MetadataUrls - Add some tests and some fixes 2021-09-16 14:23:46 +02:00
Etienne Trimaille
a3df6b6649
UI - Update vector and raster to be able to add many metadata urls on server side 2021-09-16 14:23:42 +02:00
Etienne Trimaille
235a285814
MetadataUrl API : Save and restore in XML 2021-09-16 14:10:07 +02:00
David Marteau
ee6acb0ca2
Refactorize server properties 2021-09-16 14:10:07 +02:00
Etienne Trimaille
21c3f3fcbf
Add API for having many metadataUrl on a layer 2021-09-16 14:10:06 +02:00
Alessandro Pasotti
f59947af87
Merge pull request #45063 from elpaso/bugfix-gh44949-raster-properties-transparency-dedup
Use QgsRasterTransparencyWidget in raster properties dlg
2021-09-16 10:48:44 +02:00
vcloarec
a82b8d4d7f fix layer extent and vertical extent of dataset group when editing 2021-09-14 23:28:20 -04:00
Alessandro Pasotti
adf102a839 Use QgsRasterTransparencyWidget in raster properties dlg
Remove a bunch of duplicated code and fix #44949
2021-09-14 17:00:10 +02:00
Vincent Cloarec
176ab29658
Make mesh edit tools more consistent with vector layers tools (#45040)
[mesh] UX fixes:
* move mesh elements click->move->click instead press-> drag->release
* allow to select by drawing a polygon and select an existing polygon in the same map tool like for vector layer)
2021-09-14 07:52:25 +02:00
Julien Cabieces
33ea556c0f fix version 2021-09-14 15:51:13 +10:00
Julien Cabieces
655c02afe4 Fix GetMap tile_buffer when labels are rotated 2021-09-14 15:51:13 +10:00
Nyall Dawson
50ab8c1c81 Cleanup API docs for QgsCadUtils 2021-09-13 13:22:28 +10:00
Loïc Bartoletti
2414a2884b add setCadPoint and cadPoint methods and fix test 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
992dc6cc4d make AlignMapPointContext a class instead of a struct 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
f4383aaa5b fix api break for pointChanged. use pointChangedV2 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
99af22b977 fix api break for current,previous,penultimatepoint 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
42794288ab 3.20 -> 3.22 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
a5fca0b9a5 Use values from DockWidget instead of snapped ones 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
d81d236540 fix sip 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
29d95c7614 Disable Z/M parts when layer is not 3D or Measure 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
16d86302c7 fix sip 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
453d85c6a2 Disable Z/M parts when layer is not 3D or Measure 2021-09-13 08:03:46 +10:00
Loïc Bartoletti
0706585e0f init zm support in QgsAdvancedDigitzingDockWidgetBase 2021-09-13 08:03:46 +10:00
Matthias Kuhn
6d5d8e807e
Merge pull request #45025 from gacarrillor/patch-2
Set wait cursor while installing plugin from ZIP
2021-09-11 07:38:42 +02:00
Germap
a0b7f14d58
Use 'with OverrideCursor(Qt.WaitCursor)' block in installer.py 2021-09-10 19:17:17 -05:00
Nyall Dawson
45b886727b Improve docs 2021-09-11 07:59:51 +10:00
Nyall Dawson
c2c0f2574d [processing] Add parameter type for annotation layers 2021-09-11 07:59:51 +10:00
Germap
d8f02f98c6
Set wait cursor while installing plugin from ZIP 2021-09-10 16:52:29 -05:00
Andrea Giudiceandrea
1b1e80de86 Fix test for gdal_merge with nodata value 2021-09-11 06:15:47 +10:00
Andrea Giudiceandrea
44744e2679 [processing] Fix NODATA parameters in GDAL Merge alg
Set NODATA_INPUT and NODATA_OUTPUT as QgsProcessingParameterNumber.Double parameters, instead of QgsProcessingParameterNumber.Integer
2021-09-11 06:15:47 +10:00
Nyall Dawson
ae4c1b0d2a Add missing transfer annotation 2021-09-11 06:14:45 +10:00