20839 Commits

Author SHA1 Message Date
Nyall Dawson
9efe9f512c Change some boolean QgsProject properties to flags instead 2022-03-22 10:48:57 +10:00
NEDJIMAbelgacem
66b3c57f2b - Fix spelling & SIP
- Fix 3D -> 2D -> 3D sync
- Fix trapezoid setting saving
2022-03-21 07:56:39 -07:00
NEDJIMAbelgacem
1577174ffb fix tests 2022-03-21 07:56:39 -07:00
NEDJIMAbelgacem
60144d7645 switch to flag based approach for 2D/3D sync 2022-03-21 07:56:39 -07:00
NEDJIMAbelgacem
9141d05d59 - Change extent to trapezoid shape
- Visualize the viewed area using QgsRubberBand
-  Address reviews
2022-03-21 07:56:39 -07:00
NEDJIMAbelgacem
e38a879378 initial implementation 2022-03-21 07:56:39 -07:00
Nyall Dawson
5b317e6808 Ignore symbol layer types which do not have colors (raster fill, marker,
etc) when calculating overall symbol colors

Fixes #47723
2022-03-21 17:24:45 +10:00
Nyall Dawson
14952ab6b0 Fix sip build 2022-03-19 05:58:37 +10:00
Nyall Dawson
acdc5d2128 Fix cppcheck warning 2022-03-19 05:58:37 +10:00
Nyall Dawson
36d649fa83 When creating a new 3d map, set the initial terrain settings for the
map to match the project's terrain settings
2022-03-19 05:58:37 +10:00
Nyall Dawson
52c778f3a0 Remove offset/scale from project elevation properties as these were moved to terrain providers 2022-03-19 05:58:37 +10:00
Nyall Dawson
c19ec553ab Add scale and offset to terrain providers 2022-03-19 05:58:37 +10:00
Nyall Dawson
6e9ecc87e4 Use nan for invalid point height calculation results 2022-03-19 05:58:37 +10:00
Nyall Dawson
5124a583f2 Add clone method for terrain providers 2022-03-19 05:58:37 +10:00
Nyall Dawson
231596cd8d Make terrain provider classes generic and move outside of project 2022-03-19 05:58:37 +10:00
Nyall Dawson
22034f354e Project elevation properties framework 2022-03-19 05:58:37 +10:00
Loïc Bartoletti
94a3744521
Merge pull request #46647 from Koyaani/advanced_snapping
[Feature] New soft constraints in the advanced digitizing dock
2022-03-18 10:11:49 +01:00
Alessandro Pasotti
1eeb11fc48
Merge pull request #47771 from elpaso/between-expression
Between/Not between expression
2022-03-18 07:25:21 +01:00
uclaros
94b13ba049 address review 2022-03-18 10:40:36 +10:00
uclaros
32672cf499 cleanup 2022-03-18 10:40:36 +10:00
uclaros
ca5fa59a92 remove unused method, add docstring 2022-03-18 10:40:36 +10:00
uclaros
280b7cc00c fail on missing attributes, remove unused functions, sip 2022-03-18 10:40:36 +10:00
Alessandro Pasotti
a296a8bb84
Merge pull request #47782 from nyalldawson/highlight_all_curved
Highlight all characters in curved labels when hovering using a map label tool, instead of just one character
2022-03-17 13:29:49 +01:00
Nyall Dawson
180ae3bc16 Also apply font settings from layer conditional styling to layout attribute tables 2022-03-17 18:12:46 +10:00
Nyall Dawson
07ee0bb7e4 Fix some tests on newer GEOS 2022-03-17 18:12:27 +10:00
Nyall Dawson
290154744b [feature][processing] Add "Keep disjoint features separate" option
for dissolve algorithm

If enabled, this option will cause disjoint features and parts to
be exported as separate features (instead of as parts of a
single multipart feature).
2022-03-17 18:12:27 +10:00
Damiano Lombardi
20173fd609 User defined field names in export 2022-03-17 08:34:34 +10:00
Nyall Dawson
bc0b982e26 Read metadata from vtpk files 2022-03-16 14:07:06 +10:00
Nyall Dawson
1ad8639315 Support reading ESRI vector tile packages (.vtpk) files directly 2022-03-16 14:07:06 +10:00
Nyall Dawson
16d8ce71f9 Move gzip utility functions to QgsZipUtils 2022-03-16 14:07:06 +10:00
Ismail Sunni
b665d0a368
Add copy to clipboard for preview expression. 2022-03-16 09:07:44 +10:00
Alessandro Pasotti
34f0e59735 Address PR review comments and handle NULLS
Refactor the evaluation code, handle NULLs to
return a boolean when it is possible.
2022-03-15 12:13:42 +01:00
Nyall Dawson
94f198b36b Default to a "Follow placement" mode for the text anchor point, which
means when the line anchor is < 25% then it will be matched to the
start of the text, when the line anchor is > 75% it will be matched
to the end of the text, otherwise match to center of text
2022-03-15 16:31:45 +10:00
Nyall Dawson
3924437947 Use Q_ENUM for enums 2022-03-15 16:31:45 +10:00
Nyall Dawson
f2e338259a [feature][labeling] Expose control of what part of text (start,
middle or end) of line labels corresponds to the anchor position

Previously labels would always be centered over the anchor position
of lines (unless it was a curved label, in which case it was the
start of the lable!) This is limiting (and inconsistent) for some
placements, where it is preferable to e.g. line up the end
of the label text with a specific point on the line
2022-03-15 16:31:45 +10:00
Nyall Dawson
955cc8bf8c [labeling] Highlight all characters in curved labels when hovering
using a map label tool, instead of just one character
2022-03-15 15:08:22 +10:00
Nyall Dawson
d660d6f861 Spelling 2022-03-15 13:16:25 +10:00
Nyall Dawson
b24ee8788b [feature] Support shift+wheel scrolling in attribute table to switch
to a horizontal scrolling action instead of vertical

This matches the same behaviour exposed by LibreOffice, and provides
a convenient way to quickly horizontally scroll tables when a mouse
doesn't have a dedicated horizontal scroll wheel.

Sponsored by the City of Canning
2022-03-15 13:16:25 +10:00
Nyall Dawson
b50232a5af Add QgsTableView subclass of QTableView for adding QGIS specific
tweaks on top of the base class
2022-03-15 13:16:25 +10:00
Nyall Dawson
1e445e3c6f Use flags, not boolean 2022-03-15 11:44:08 +10:00
Nyall Dawson
d9cd3e2d97 Allow tasks to be hidden from the GUI 2022-03-15 11:44:08 +10:00
Nyall Dawson
092279e90d [feature] Run batch processing steps in tasks
Instead of forcing all steps in the batch processing dialog to execute
in the main thread, we now run each step as a separate task whenever
possible. This keeps the UI nice and responsive, and permits
responsive cancelation and progress reporting.

Individual steps are still run sequentially, not in parallel (yet!)
2022-03-15 11:44:08 +10:00
Nyall Dawson
5dd473d682 Move batch feedback subclass to c++ 2022-03-15 11:44:08 +10:00
Alessandro Pasotti
ba28631d33 NULL between tests 2022-03-14 14:19:53 +01:00
Alessandro Pasotti
7601250a54 SQL expression compiler and more tests for BETWEEN 2022-03-14 14:19:52 +01:00
Alessandro Pasotti
c8d55607ea BETWEEN expression
TODO: type casting, SQL compiler, help text
2022-03-14 14:19:52 +01:00
Alessandro Pasotti
312a3a2bb0
Merge pull request #47671 from elpaso/form-group-collapsed
Drag and drop forms group collapsed
2022-03-14 12:27:27 +01:00
Alessandro Pasotti
9ec6355d91 Address PR reviews 2022-03-14 10:21:07 +01:00
Nyall Dawson
71e450be03 Apply more flexible approach to match zoom levels expected for ESRI
tiles
2022-03-14 13:39:36 +10:00
Nyall Dawson
9b427c665f Remove constraint disabling threading for all models 2022-03-14 08:28:24 +10:00