9968 Commits

Author SHA1 Message Date
Chris Mayo
ecdb1e2989 Fix build with WITH_BINDINGS=yes and WITH_QTSERIALPORT=no
auto_generated/sensor/qgsabstractsensor.sip: In function ‘const sipTypeDef* sipSubClass_QgsAbstractSensor(void**)’:
auto_generated/sensor/qgsabstractsensor.sip:35: error: ‘QgsSerialPortSensor’ does not name a type; did you mean ‘sipName_QgsSerialPortSensor’?
2023-06-26 08:24:43 +10:00
Nyall Dawson
c2352af95b Add mechanism to make screen properties available for icon
generation in layer tree model
2023-06-23 15:05:15 +10:00
Nyall Dawson
7d4c4e3ce2 Address review 2023-06-22 18:49:22 +10:00
Nyall Dawson
0f76f986be Add unit tests for QgsScreenProperties 2023-06-22 18:49:22 +10:00
Nyall Dawson
ff7a5c934c Fix pixelated icons in style lists on hi dpi displays
Use QgsScreenProperties in style model to ensure we
correctly generate preview icons matching the device
pixel ratio and DPI of all attached displays
2023-06-22 18:49:22 +10:00
Nyall Dawson
b5e3af7a3a Use QgsScreenProperties instead of direct QScreen pointers 2023-06-22 18:49:22 +10:00
Nyall Dawson
b6338da0b7 Create QgsScreenProperties as a small storage class for QScreen settings 2023-06-22 18:49:22 +10:00
Nyall Dawson
0641766902 Fix incorrect sizing & pixelation of symbol previews on hidpi
displays
2023-06-22 18:49:22 +10:00
Nyall Dawson
1298018bc4 Fix incorrect sizing of symbol layer previews on hidpi display,
pixelated icons
2023-06-22 18:49:22 +10:00
Mathieu Pellerin
c23d7eca97 [vector tiles] Fix rendering of styles with a min. zoom level that is higher
than the tile maximum zoom level (fixes #53481)
2023-06-22 17:10:28 +10:00
Alessandro Pasotti
8b8d5d9031
Merge pull request #53438 from elpaso/bugfix-gh48020-server-opacities-parameter-does-not-apply-to-labels
Server: fix label opacity when OPACITIES is set
2023-06-21 16:32:16 +02:00
Nyall Dawson
730081dceb Handle view device pixel ratio when generating preview icons
for text format and label settings
2023-06-21 13:46:50 +10:00
Nyall Dawson
86f06d065b Add framework for style model to handle generation of icons
with different device pixel ratios
2023-06-21 13:46:50 +10:00
Nyall Dawson
a4843be25b Move qgsVsiPrefix to QgsGdalUtils::vsiPrefixForPath 2023-06-20 14:41:59 +10:00
Yoann Quenach de Quivillic
145078aacc Fix map and elevation profile data defined background color 2023-06-20 07:03:57 +10:00
Nyall Dawson
8838f894ef Fix accidental api break 2023-06-15 08:28:44 +10:00
Nyall Dawson
0601164102 Add missing documentation to QgsRasterFileWriter 2023-06-15 08:28:44 +10:00
Nyall Dawson
26493802dc Move some QgsRasterFileWriter enums to qgis 2023-06-15 08:28:44 +10:00
Alessandro Pasotti
9a81957d39 sipify 2023-06-14 10:07:34 +02:00
Alessandro Pasotti
b1b8fb8e15 Address PR comments 2023-06-14 09:55:48 +02:00
Alessandro Pasotti
a7c803e6c0 Implement multiplyOpacity for QgsTextFormat
This is used to change the labeling opacity in the server.
2023-06-13 12:55:40 +02:00
Nyall Dawson
80f97c5e72
Implement responsive cancelation also for fields retrieval 2023-06-13 10:55:38 +10:00
Julien Cabieces
cdd3a3a5bb Fixes #53412 : transfer back rasterblock back to python caller 2023-06-13 04:56:13 +10:00
Nyall Dawson
4ebfa34eeb Correctly cleanup project archive files before attempting
to clear/replace archive

Otherwise the temporary archive directory cannot be removed,
resulting in many "QTemporaryDir: Unable to remove" warnings
and leftover temporary directories

Refs #53034
2023-06-09 11:19:33 +10:00
Hannes
6a14504c10 Further clarify CRS' hasAxisInverted
Thanks to @pathmapper & @nyalldawson
2023-06-09 07:06:58 +10:00
Nyall Dawson
7a784cdfd6 Flag OneDrive remote folders as remote, slow to open paths on Windows
Refs #51710
2023-06-08 14:06:01 +10:00
Matthias Kuhn
da158bbfd8
Merge pull request #53249 from nirvn/dxf_export_scale_angle
[dxf] Use a single reference bock when exporting markers with only data defined size and/or angle
2023-06-07 00:14:55 +02:00
Denis Rouzaud
5bccd556e2
move QgsTolerance::UnitType to Qgis::MapUnitType (#53347)
* move QgsTolerance::UnitType to Qgis::MapUnitType

* missing forward declaration

* forward declaration

* use MapToolUnit

* forward declaration

* sipify

* fix tests

* Apply suggestions from code review

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>

* forward declaration

* forward declaration

* forward declaration

* sipify

* fix missing parenthesis

---------

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2023-06-06 18:33:50 +02:00
Nyall Dawson
a764e2da76 Expose setting for point text annotations to control how
the text annotation should handle map rotation

Previously, text annotations just ignore map rotation, which
matches how regular map labels are handled. But this is not
desirable for some point text annotations, where it can
be considered a bug that the item ignores the map rotation (eg
when a text annotation has been placed to align with a feature
on the map, such as a road)

There's no one "correct" behaviour here, so add a new
combo box widget in the annotation point text settings with
options for
"Ignore Map Rotation"
"Rotate With Map"
so that users can pick the desired behavior for their annotations
2023-06-02 17:26:07 +10:00
Matthias Kuhn
084d7a4dd3
Merge pull request #53328 from m-kuhn/intsall_qgslayoutchecker 2023-06-01 16:00:46 +02:00
Juergen E. Fischer
2f46999125 spelling fix 2023-06-01 14:40:29 +02:00
Matthias Kuhn
2832146814 Enable QgsLayoutChecker also without tests 2023-06-01 13:25:59 +02:00
Nyall Dawson
ae638d2637 Allow setting distance unit for layout elevation profile items 2023-05-29 14:18:35 +10:00
Nyall Dawson
bb5cfb87ff Add no labels option 2023-05-29 14:18:35 +10:00
Nyall Dawson
ddc0012f9c Add api to set a label suffix and placement for labels in plot axis 2023-05-29 14:18:35 +10:00
Mathieu Pellerin
31d5d6360e [dxf] Use a single reference bock when exporting markers with only data defined size and/or angle 2023-05-27 15:07:17 +07:00
Nyall Dawson
3201a62702 Add missing documentation 2023-05-27 06:34:04 +10:00
Nyall Dawson
7f8fd5ea8e Create QgsProfileExporterTask task for generating and exporting
elevation profiles to files
2023-05-27 06:34:04 +10:00
Nyall Dawson
a865a762a4 Add driver filter option for formats capable of multi-layer storage 2023-05-27 06:34:04 +10:00
Nyall Dawson
33ffe9f6b9 [api] Add framework for exporting elevation profile results
as vector layers
2023-05-27 06:34:04 +10:00
Mathieu Pellerin
26406fe98d [layout] Insure that hyperlinks within HTML-enabled labels are exported as such within PDFs 2023-05-26 16:47:47 +07:00
Alessandro Pasotti
b14482fe5e Add flag for common angle/feature snapping priority
The flag allows to ignore common angle snapping when
there is a feature snapping match

Fixes #52333
2023-05-26 09:12:26 +10:00
Denis Rouzaud
2a9b24e666
[pyqgis] fix calling QgsGeometry.splitGeometry with QgsPoint or QgsPointXY (#53202) 2023-05-24 22:34:26 +02:00
Nyall Dawson
b99a349e66 Fix pixelated appearance of elevation profile chart on hidpi displays 2023-05-24 08:10:45 +10:00
Nyall Dawson
29f0d479d0 Add an explicit "Add Layers" button to elevation profile dock
This provides a user-friendly why of adding new layers to a plot -
clicking it will show a filtered list of possible layers which
can be added to the plot, but which currently aren't in the plot.

(I.e it will include all raster layers from the project which
aren't marked as having elevation data.)

Selecting layers will cause them to automatically be marked as
having elevation data and immediately added to the plot.
2023-05-24 08:10:26 +10:00
Alessandro Pasotti
3db86bc236
Merge pull request #53168 from elpaso/attribute-table-defer-virtual-fields
Attribute table optimization: do not load hidden fields until required
2023-05-22 16:35:12 +02:00
Nyall Dawson
4c6018de92 Add option to limit the extent of "fill above" and "fill below"
elevation ranges for a layer in elevation profile plots

Fixes #51010
2023-05-22 14:48:57 +10:00
Nyall Dawson
6c4f96a5aa Add "Fill Above" mode for elevation profile drawing
Fixes #51074
2023-05-22 14:48:57 +10:00
Nyall Dawson
327a069e1c Handle VTPK tile data with zero sizes by falling back to lower
zoom levels for the tile's data

It seems that every VTPK behaves a bit like an indexed VTPK
where higher zoom level tiles may be replaced with lower
zoom level tiles. This new special handling is required
for non-indexed VTPKs where the high zoom level tile data
is empty, but there's not explicit tilemap present to
advise of us this situation in advance.

Fixes #52872
2023-05-22 12:50:51 +10:00
Nyall Dawson
8a2c0e3561 Replace QgsDebugMsg(...) with QgsDebugError(...) and ensure it
is ONLY used for error message reporting

Everything else gets bumped to QgsDebugMsg(..., >= 2)
2023-05-20 16:19:17 +10:00