73361 Commits

Author SHA1 Message Date
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
75f735ce15 Add tests 2021-09-21 09:49:52 +10:00
Nyall Dawson
950547b936 Don't use @map_geometry, just change $geometry to desired units
for simplicity of use

If we need access to the original feature geometry in future
this could be addressed by a new @original_geometry variable.
2021-09-21 09:49:52 +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
Sandro Santilli
30a56ac145 Make QgsGeos::prepareGeometry and QgsGeos::cacheGeos idempotent
Rather than re-preparing or re-converting geometries on every call.
The "geometryChanged" method will reset the caches.
2021-09-21 08:21:09 +10:00
Antoine
8051c3fb1c reduce line length 2021-09-21 07:33:26 +10:00
Antoine
519cd0bb4c rename methods 2021-09-21 07:33:26 +10:00
Antoine
41cd3eac64 reorganize methods 2021-09-21 07:33:26 +10:00
Antoine
a05c8753d5 split triangle test method 2021-09-21 07:33:26 +10:00
Alessandro Pasotti
ae5a8550c5 Update src/core/vector/qgsvectorlayer.cpp
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2021-09-21 06:36:12 +10:00
Alessandro Pasotti
c79c79ac58 Update selected feature ids before emitting featuresDeleted
Fixes #44921
2021-09-21 06:36:12 +10:00
Harrissou Sant-anna
b7a3ed0f9d Add missing include 2021-09-21 06:35:06 +10:00
Harrissou Sant-anna
770281ea4c Add a help button to the raster legend widget 2021-09-21 06:35:06 +10:00
Alessandro Pasotti
641c05d0dd Safety belt for null geoms 2021-09-21 06:32:39 +10:00
Alessandro Pasotti
c3b81d687f Be tolerant for multi points that aren't really multi 2021-09-21 06:32:39 +10:00
Alessandro Pasotti
a993e336cc Fix crash when using project on multi point
Fixes #45148
2021-09-21 06:32:39 +10:00
Antoine
28e38a6a87 reduce line length 2021-09-21 06:30:14 +10:00
Antoine
baa14b5d4e add tests for better coverage 2021-09-21 06:30:14 +10:00
Antoine
8ca96fea9f split quadrilateral test method 2021-09-21 06:30:14 +10:00
Peter Petrik
2da03deeec
Merge pull request #45110 from qgis/mac_deps_090
bump qgis-deps in CI and INSTALL
2021-09-20 15:13:54 +02:00
PeterPetrik
0f78c3afd6 fix macos build 2021-09-20 10:23:17 +02:00
Alessandro Pasotti
b213a777a6
Merge pull request #45129 from elpaso/bugfix-gh44989-copy-paste-multiline
Fix multiline wkt paste from clipboard
2021-09-20 09:42:19 +02: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
Even Rouault
08d8ccb1e6
Merge pull request #45084 from 3nids/fix-option-crash
fix crash when opening layer properties
2021-09-19 20:13:51 +02:00
Alessandro Pasotti
303a6f261c Fix multiline wkt paste from clipboard
Fixes #44989
2021-09-18 12:00:21 +02:00
Loïc Bartoletti
64a01d984b [UI][FIX] Repeating Lock Z/M buttons should not be enabled by default 2021-09-18 06:29:17 +10:00
Antoine Facchini
919536813f rename variables, remove useless comments 2021-09-18 06:19:14 +10:00
Antoine Facchini
e7a0c223d1 better test coverage 2021-09-18 06:19:14 +10:00
Antoine Facchini
9c85b96d2d change target names for geometry tests 2021-09-18 06:19:14 +10:00
Antoine Facchini
b5dbbb9161 split curvePolygon test method 2021-09-18 06:19:14 +10:00
Richard Duivenvoorde
a25e68618b Textual Fix 2021-09-18 06:18:29 +10:00
Richard Duivenvoorde
73489ab376 Add contextmenu to copy key:value in Dev Tools Panel
In the Debugging/Development Tools panel, in the Network Logger tab
you see a lot of Request information: Header information,
Query string parts etc etc presented as key:value pairs in the Treeview.

Sometimes (mostly the value) strings can be pretty long.
This adds a context menu (right click on the node) to copy the
key: value as a string to the clipboard.
2021-09-18 06:18:29 +10:00
uclaros
c70e34686b Fix drag to zoom 2021-09-18 06:13:21 +10: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
Matthias Kuhn
f79e62e6b6
Merge pull request #44944 from domi4484/labelUsabilityImprovements
Make rotate label tool work with label not pinned or dd moved fix #43967
2021-09-17 08:52:59 +02:00
PeterPetrik
af251242e7 bump qgis-deps in CI and INSTALL 2021-09-17 07:35:54 +02:00
Nyall Dawson
850215f899 Add missing cast code for QgsHashedLineSymbolLayer 2021-09-17 15:15:32 +10:00
Nyall Dawson
c0a9b04c01
Apply suggestions from code review 2021-09-17 14:12:41 +10:00
Julien Cabieces
770efa3496 fix other isVisible call 2021-09-17 13:57:49 +10:00
Julien Cabieces
fdb176f0d5 Fixes #44799 : fix RelativeStorage config save 2021-09-17 13:57:49 +10:00
vcloarec
88119078ec fix 3D mesh terrain when CRS are different from map 2021-09-17 13:31:09 +10:00
Joonalai
0a3526fd2d qgis#44160 add millisecond support to OGRUtils 2021-09-17 13:30:40 +10:00
Joonalai
606bd09b16 Modify tests for qgis#44160 milliseconds 2021-09-17 13:30:40 +10:00