1711 Commits

Author SHA1 Message Date
Jan Caha
ecd13a7de3 use raw pointer because of sip 2025-05-01 14:53:23 +10:00
Jan Caha
bf437cc1af add missing file 2025-05-01 14:53:23 +10:00
Jan Caha
8850dd22bf add file 2025-05-01 14:53:23 +10:00
qgis-bot
0a34e1c788 auto sipify 🍺 2025-05-01 00:36:53 +00:00
Jean Felder
a00f47c773 qgsproject: Add a sip removeMapLayers code to fix qt6 version
With this new method code, it is now possible to use
`QgsProject::removeMapLayers` with a list of layers or a list of
layers IDs in qt5 and qt6.

Co-authored-by: bdm-oslandia <benoit.de.mezzo@oslandia.com>
2025-05-01 10:33:58 +10:00
qgis-bot
1030b0385e auto sipify 🍺 2025-04-30 03:59:08 +00:00
Nyall Dawson
9df6ea74fe Remove outdated files 2025-04-30 13:56:09 +10:00
Nyall Dawson
6bd91f8381 [processing][api] Add API for an algorithm to auto-set parameter values
Adds an API which an algorithm can implement to support auto-setting
parameter values. This is designed to handle the case
of eg an algorithm which does a file format translation, where
it's desirable to default the output parameter value to an input
parameter value with a different extension.

This can now be done by implementing autogenerateParameterValues
in the algorithm, eg:

    def autogenerateParameterValues(self, existingParameters, changedParameter, mode):
        if changedParameter == self.INPUT:
            input_file = existingParameters.get(self.INPUT)
            if input_file:
                input_path = Path(input_file)
                if input_path.exists():
                    # auto set output parameter to same as input but with 'qgs' extension
                    return {self.OUTPUT: input_path.with_suffix('.qgs').as_posix()}

        return {}

Works for both toolbox and batch modes for algorithms
2025-04-30 13:56:09 +10:00
Nyall Dawson
4220d9f227 Add flag to skip validation of processing parameters 2025-04-30 13:56:09 +10:00
Nyall Dawson
31ac029d0a Move processing dialog mode enum to Qgis and rename 2025-04-30 13:56:09 +10:00
qgis-bot
51f7bed95c auto sipify 🍺 2025-04-30 02:11:40 +00:00
Jean Felder
e318460718 qgsmeshlayer: Introduce closestElement
This is a generalization of `snapOnElement`, since it allows to also
get the element (face, vertex or edge) index.
2025-04-30 12:08:39 +10:00
qgis-bot
568c0998ac auto sipify 🍺 2025-04-29 23:50:47 +00:00
Valentin Buira
f56f85dc7c
Add basic drag and drop support in the model designer (#60664) 2025-04-30 09:47:48 +10:00
qgis-bot
2fd3c07909 auto sipify 🍺 2025-04-29 23:11:09 +00:00
Valentin Buira
2b51d04014
Add unified panel for input or algorithm in the modeler (#61187) 2025-04-30 09:08:02 +10:00
qgis-bot
bc5be932db auto sipify 🍺 2025-04-25 22:15:30 +00:00
Nyall Dawson
8f113d14e1 Improve QgsMapLayerComboBox docs 2025-04-26 08:11:57 +10:00
Nyall Dawson
5b55ab98cb Fix doc typo 2025-04-25 08:17:13 +10:00
qgis-bot
a40fe45a45 auto sipify 🍺 2025-04-24 10:03:42 +00:00
Nyall Dawson
1efd5df8d6 Add method to return total number of tiles in a QgsTileRange 2025-04-24 12:00:42 +02:00
Nyall Dawson
67036b670f Add isMaximal method to QgsRectangle 2025-04-24 12:00:42 +02:00
qgis-bot
ea98b95b75 auto sipify 🍺 2025-04-23 02:22:06 +00:00
Nyall Dawson
f6d740e9db Fix docs 2025-04-23 12:19:10 +10:00
Nyall Dawson
2dd042cd93 Show history panel in execute sql dialog 2025-04-23 12:19:10 +10:00
Nyall Dawson
8c1cdcfad0 Rework QgsQueryResultWidget so that it uses a QgsPanelWidgetStack 2025-04-23 12:19:10 +10:00
Alexander Bruy
85d191038e better names for enum values 2025-04-23 07:39:24 +10:00
Alexander Bruy
cb89558792 convert interpolation enums to enum classes 2025-04-23 07:39:24 +10:00
Alexander Bruy
29a612f9c1 convert kernel density estimation enums to enum classes 2025-04-23 07:39:24 +10:00
Alexander Bruy
adf4f08001 convert raster calculator result enum to enum class 2025-04-23 07:39:24 +10:00
qgis-bot
969fa6bfc1 auto sipify 🍺 2025-04-22 01:48:25 +00:00
Nyall Dawson
c0a3e90ecf Fix misc tests 2025-04-22 11:45:25 +10:00
Nyall Dawson
b8712c51c0 Add missing files 2025-04-22 11:45:25 +10:00
Nyall Dawson
c2ee323793 [feature] Add labeling setting to prevent duplicate labels within xx mm
Improves the appearance of labels in situations like road networks,
where things like dual carriageways, service roads, etc can result
in many labels of the exact same text appearing close to each other.

When active, removes any labels with the exact same text (case
sensitive!) which are closer then this minimum distance.

The setting applies across layers, so duplicate text from ANY
layer will be considered.
2025-04-22 11:45:25 +10:00
Nyall Dawson
4d98f21d67 [feature] Add 'margin around labels' setting for labeling
Allows setting a margin around a layer's labels, which prevents
other labels from being placed closer than this margin distance
to the layer's labels.
2025-04-22 11:45:25 +10:00
Nyall Dawson
255d4b3ce2 Add method to test if QgsMapUnitScale is null 2025-04-22 11:45:25 +10:00
Matthias Kuhn
6aac924cc2
Merge pull request #60134 from btzy/codearg
Open and load --code file and --py-args arguments in C++
2025-04-21 19:52:14 +02:00
Juergen E. Fischer
393ca14c4a fix windows build 2025-04-21 19:33:28 +02:00
qgis-bot
5084af473c auto sipify 🍺 2025-04-19 08:20:28 +00:00
Nyall Dawson
5783ee74d4 Better examples 2025-04-19 18:17:34 +10:00
Nyall Dawson
4a6fef278e Cleanup docs, don't mention QString in python docs 2025-04-19 18:17:34 +10:00
Nyall Dawson
a8ae54ca44 Fix truncated PyQGIS docs for QgsCoordinateReferenceSystem 2025-04-19 18:17:34 +10:00
Nyall Dawson
161ef62ca0 Fix inconsistent heading warnings when building PyQGIS docs
Fixes missing subclass/base class sections in some class docs (
eg QgsVectorLayer)
2025-04-19 18:17:34 +10:00
qgis-bot
569667f9bb auto sipify 🍺 2025-04-17 10:57:22 +00:00
Even Rouault
e68e87ad6c
Merge pull request #61515 from rouault/wfs_no_gmlas_if_transaction
[WFS Provider] Add a UI and URI parameter featureMode=default/SimpleFeatures/ComplexFeatures
2025-04-17 12:54:24 +02:00
qgis-bot
9b1dfa17b3 auto sipify 🍺 2025-04-17 08:54:20 +00:00
Alexander Bruy
b9402aad41
Merge pull request #61501 from nyalldawson/fill_block
Add optimised method to fill a QgsRasterBlock with a constant value
2025-04-17 09:51:15 +01:00
Julien Cabieces
fa9f3dd21b refactor(core): Use unique_ptr when class has clear ownership 2025-04-17 08:26:26 +10:00
Even Rouault
46da0ab329
[WFS Provider] Add a UI and URI parameter featureMode=default/SimpleFeatures/ComplexFeatures
Fixes #61476 / #61493

The analysis of DescribeFeatureType response with the GMLAS driver makes
appear fields that are not supported by the
addFeatures()/changeAttributeValues() method. So if transaction support
is detected and featureMode=default, use QGIS built-in analyser to get
SimpleFeatures only. Otherwise try the GMLAS method.
2025-04-16 20:53:43 +02:00
Nyall Dawson
2925f42dfa
Add optimised method to fill a QgsRasterBlock with a constant value 2025-04-16 14:35:25 +10:00