3899 Commits

Author SHA1 Message Date
uclaros
adb5f92f35 Sip include 2022-02-18 23:35:43 +02:00
Nyall Dawson
29a59e70bf Add method to test whether model file name matches model name 2022-02-05 11:05:51 +10:00
Andrea Giudiceandrea
ed9bb49ff1 Add 'Stepped Line' and 'Hollow' styles to QgsLayoutItemScaleBar::setStyle() docs 2022-02-03 20:51:53 +10:00
Nyall Dawson
e46875b9b6 QgsDistanceArea::bearing can raise QgsCsExceptions, so ensure that
these are always gracefully caught

Avoids some unwanted "unhandled exception" message boxes which
can pop up while moving the mouse around outside of the valid bounds
of the current map projection
2022-02-03 06:19:50 +10:00
Nyall Dawson
01f0130ffb Remove unused qgsCalloc function 2022-02-02 07:44:13 +10:00
NEDJIMAbelgacem
e5f625f8c9 extend attribute datatypes to include the ones used for extrabytes 2022-02-01 06:04:12 -08:00
Nyall Dawson
dd368a4289 When processing is initialized in external scripts, ensure the GRASS,
SAGA and OTB providers are included by default

Fixes #45935
2022-02-01 18:14:48 +10:00
Nyall Dawson
2f74a24eeb Fix typo 2022-02-01 08:23:29 +10:00
Alex
73e036ebdb Correctly handle sort field as field in atlas sorting
Fixes #40332
2022-02-01 08:23:29 +10:00
Nyall Dawson
d5856ec400 Allow enum parameters to have icons specified for values for parameter metadata 2022-01-31 21:01:44 +10:00
Nyall Dawson
7747c30dec Add support for field subtype to QgsFields::iconForFieldType 2022-01-31 21:01:44 +10:00
Nyall Dawson
a20f7789d9 Partial work on centralizing all QVariant::Type to display string
logic in a new QgsVariantUtils class

(I've likely missed a few places here, but it's a start!)
2022-01-31 17:24:53 +10:00
Nyall Dawson
8e04498d6b Safer approach to handling reprojection with distance within requests
We can't safely handle a distance within query when transforming, as
we cannot transform the static within tolerance distance from one
CRS to a static distance in a different CRS
2022-01-31 12:37:52 +10:00
Sandro Santilli
3004fde9c6 Add QgsAbstractFeatureIterator::updateRequestToSourceCrs method
The method superceeds filterRectToSourceCrs, deprecating it for
shortage of functionality now that we support multiple spatial
filters.

This commit makes use of the new method from
QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator
so to not drop the WithinDistance spatial filter from the
user Request.

References #45352
2022-01-31 12:37:52 +10:00
Sandro Santilli
95be545b81 Add equality/inequality operators for QgsFeatureRequest::OrderBy
Equality useful for unit tests, inequality for completeness
2022-01-31 12:37:52 +10:00
Sandro Santilli
182732e044 Add equality/inequality operators for QgsFeatureRequest::QgsSimplifyMethod
Includes unit test

The equality operator is useful for unit tests, the inequality
operator was added for completeness as requested by Nyall
in https://github.com/qgis/QGIS/pull/45384#discussion_r734174883
2022-01-31 12:37:52 +10:00
Denis Rouzaud
b98c1df904 use default args for Z/M values in QgsGeometry::coerceToType 2022-01-28 06:21:18 +01:00
Nyall Dawson
6bd1a7eb7d Document new behaviour 2022-01-24 17:26:05 +10:00
Nyall Dawson
1be383a301 [api] Add QgsProviderMetadata method to test whether a style with
a specified ID already exists
2022-01-24 17:26:05 +10:00
uclaros
d1d148f0c6 Address more comments 2022-01-19 06:24:20 +10:00
uclaros
a28cd2ce11 Address review 2022-01-19 06:24:20 +10:00
Stefanos Natsis
be99a166d9 Added pointcloud ordered by Z rendering for 2d views 2022-01-19 06:24:20 +10:00
Nyall Dawson
72116925ad Sip_skip some private api 2022-01-14 16:06:41 +10:00
Nyall Dawson
479d37def0 Add missing TransferThis annotation 2022-01-14 16:06:41 +10:00
Nyall Dawson
216b9d2a2a Fix getter name should not include 'get' prefix 2022-01-14 16:06:41 +10:00
Vincent Cloarec
9965eccdce
Template parameter {usage} for XYZ raster and vector tiles (#46731) 2022-01-13 15:11:31 +01:00
Nyall Dawson
370bdfd84d Add api to allow the native format for a crs definition (i.e. wkt
or proj) to be saved when the crs is saved to xml

Allows us a way to present a custom crs in the same format as it was
originally defined using
2022-01-13 13:58:00 +10:00
NEDJIMAbelgacem
ff5bde77a4 rename stuff 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
f54136e616 address Nyall reviews 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
33ee137c32 various fixes 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
05824dc1c8 fix sip 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
0381373df9 fix ci build 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
fb9084f93f fix docs 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
89c661b35d split 3dviewsmanager into 3dviews manager and dialog class 2022-01-12 13:46:49 +10:00
Nyall Dawson
24a498b57c Rename to 'toGeographicCrs' 2022-01-11 19:50:46 +10:00
Nyall Dawson
1f240c0196 Add method to convert QgsCoordinateReferenceSystem to geodetic crs 2022-01-11 19:50:46 +10:00
Nyall Dawson
6e7e8d3d7d Promote CRS format enum to enum class, move to Qgis 2022-01-11 19:50:46 +10:00
Damiano Lombardi
028eaf839d Rebase to master 2022-01-10 09:32:19 +01:00
Damiano Lombardi
2f703f9c14 Simplified configuration gui 2022-01-10 08:35:14 +01:00
Damiano Lombardi
4310b3f472 Removed ewkt conversion test 2022-01-10 08:34:48 +01:00
Damiano Lombardi
d7a58c6cc3 Removed ewkt conversion functions 2022-01-10 08:34:44 +01:00
Damiano Lombardi
ff04cbbe09 Add possibility do data define label position by point instead of X/Y 2022-01-10 08:18:03 +01:00
Damiano Lombardi
6d2c4245ce remove unneeded SIP_CONVERT_TO_SUBCLASS_CODE 2022-01-10 08:09:32 +01:00
Damiano Lombardi
9f7353b91c switch to XY coordinate types when using label move tool 2022-01-10 08:09:28 +01:00
Nyall Dawson
40ba7b0041 Add more granular feedback to Extract Labels algorithm 2022-01-10 15:42:49 +10:00
Mathieu Pellerin
f3c5b6ec9b
Merge pull request #46725 from nirvn/label_alg_extra
A couple of additional details and an important fix to the extract labels alg.
2022-01-07 12:54:07 +07:00
Benjamin Jakimow
dc1866f0af sipified files 2022-01-07 11:30:49 +10:00
Benjamin Jakimow
bb773d0a18 run sipify
Signed-off-by: Benjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de>
2022-01-07 11:30:49 +10:00
Benjamin Jakimow
9b3e437ae3 addresses #46673 (QgsProcessingMapLayerComboBox shows layers out of
QgsProcessingParameterWidgetContext)

added a `setProject(QgsProject *project)` to QgsMapLayerModel,
QgsMapLayerProxyModel and QgsMapLayerComboBox

QgsProcessingMapLayerComboBox::setWidgetContext(...) now uses the
context project
2022-01-07 11:30:49 +10:00
Matthias Kuhn
3cfdd2d8d7 Only show spatial layers in extent widget 2022-01-06 18:40:50 +01:00