3125 Commits

Author SHA1 Message Date
Damiano Lombardi
3499d9a033 Relation editor widget support for multiple features 2021-11-08 15:35:33 +01:00
nirvn
d8ac5e6f2c [editor widgets] Provide a show first feature setting to avoid UI freeze of attribute form containing a large number of embedded relations 2021-11-03 18:20:49 -07:00
Sandro Mani
18d598ba4a Set release_gil = True when generating bindings 2021-11-04 08:51:00 +11:00
Alessandro Pasotti
5c3915b9ed
Merge pull request #45587 from elpaso/bugfix-gh45582-vector-renderer-localization-issues
Fix multiple localization issues with vector renderers
2021-10-29 15:49:14 +02:00
Nyall Dawson
b28a27636d Add some missing /Factory/ annotations 2021-10-29 13:24:47 +11:00
Nyall Dawson
c8156c059c Improve documentation 2021-10-29 13:24:47 +11:00
Nyall Dawson
4a4e0061e1 [feature][symbology] New "Lineburst" line symbol layer type
This adds a new "Lineburst" symbol layer type, which renders
a gradient along the WIDTH of a line (as opposed to the interpolated
line renderer, which renders a gradient along the LENGTH of
a line). It's like the shapeburst fill symbol type, but for lines!

Sponsored by North Road, thanks to SLYR
2021-10-29 05:34:08 +11:00
Nyall Dawson
0667363261 [feature][symbology] New "Raster Line" symbol layer type
This new symbol layer type renders a raster image following
a line feature's shape.

Options are present for:
- picture path (including data defined path)
- line width
- opacity
- line join/cap styles

Sponsored by North Road, thanks to SLYR
2021-10-28 12:13:54 +11:00
Alessandro Pasotti
d98c99e462 Handle variable precision in range dlg 2021-10-22 16:17:13 +02:00
Alessandro Pasotti
6a22e1ff4e Handle lists and address PR review comments. 2021-10-22 16:17:13 +02:00
Alessandro Pasotti
51be34ee5d Fix multiple localization issues with vector renderers
Fix #45582
2021-10-22 16:17:13 +02:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
Nyall Dawson
a81b872bf4 Add some more SIP downcasts for map tools 2021-10-18 17:07:10 +10:00
Even Rouault
0f3011b5ec
Merge pull request #45174 from elpaso/bugfix-gh45139-geojson-field-order
Fix geojson attr table field order
2021-10-14 16:55:13 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
a6645d9cba fix test + rebase 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
nirvn
7a0fb2acdd [ui] Fix unmet expectation: when navigating the processing toolbox panel via keyboard, hitting return/enter should launch focused algorithm 2021-10-10 23:36:37 -07:00
nirvn
f774de996e [ui] Fix unmet expectation: when navigating the browser panel via keyboard, hitting return/enter should load focused dataset 2021-10-10 23:36:37 -07:00
Nyall Dawson
d6dae3e16a Add api for map canvas/map tools to retrieve layers by ID, including
layers which have been set for a canvas but which AREN'T part of
QgsProject::instance()

Required to fix test failure in labeling map tools, but ultimately
a necessary piece of API to ensure that map tools aren't so tightly
bound to QgsProject::instance()
2021-10-05 12:21:56 +10:00
Loïc Bartoletti
bf745b7d96 Add QgsMapTool::toLayerCoordinates which acepts QgsPoint 2021-10-01 09:53:04 +02:00
Nyall Dawson
b5fb85bf7a Add missing signals to QgsAuthSettingsWidget 2021-09-27 15:38:20 +10:00
Nyall Dawson
0ab6113e88 Promote QgsMapSettings and QgsRenderContext enums to enum class, move to Qgis 2021-09-26 11:24:51 +10:00
Nyall Dawson
f9def2d92b Move QgsMapToolCapture::layer to parent class (QgsMapToolAdvancedDigitizing) 2021-09-24 16:21:44 +10:00
Nyall Dawson
db4b0fed86 Move to core 2021-09-24 15:47:10 +10:00
Nyall Dawson
d1e43b63fb Add new class QgsRecentStyleHandler
Accessible via QgsGui::recentStyleHandler(), this is intended as
a place to store recently used style items (e.g. symbols).

Initially it's used just for annotation items so that newly
created annotation items are automatically set to the same style
as the most recently modified item of the same type (e.g. so
that users drawing many point annotations don't need to keep
setting it back to the same appearance)! But the api is kept
flexible for additional uses in future... (eg layout items)
2021-09-24 15:47:10 +10:00
Even Rouault
988d862fb5 New shapefile layer dialog: avoid accidental overwrite of a file whose extension is not specified
and avoid closing the dialog when the user doesn't confirm overwriting

Fixes #44299
2021-09-24 13:42:35 +10:00
Even Rouault
0e45d513a8 QgisApp::closeProject(): cancel canvas jobs before closing the project, to avoid rendering jobs to access deleted objects (fixes #44144) 2021-09-24 12:40:53 +10:00
Sandro Mani
6fd34ca92b Add sip5/sip6 sip-build support 2021-09-24 08:56:40 +10:00
Nyall Dawson
139cc2d3b4 Dynamically change x/y constraint precision based on geographic/non
geographic crs
2021-09-24 08:13:32 +10:00
Nyall Dawson
a94dd8b3c1 Allow CAD dock to be used for geographic CRS, but only allow
the x/y/z/m constraints to be set (not distance or angle based
constraints)
2021-09-24 08:13:32 +10:00
Alessandro Pasotti
0c4d0ead63 Fix attr table model field order when changed in the provider
Fixes the GUI part of #45139
2021-09-21 16:59:31 +02: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
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
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
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
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
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
Nyall Dawson
50ab8c1c81 Cleanup API docs for QgsCadUtils 2021-09-13 13:22:28 +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