add deprecated instructions

This commit is contained in:
Julien Cabieces 2023-09-25 11:12:15 +02:00
parent 5315ae6cc5
commit 7ef5717c7a
2 changed files with 6 additions and 2 deletions

View File

@ -2430,7 +2430,7 @@ empty if none of the child geometries match the desired type.
.. versionadded:: 3.2
%End
int avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers );
int avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers ) /Deprecated/;
%Docstring
Modifies geometry to avoid intersections with the layers specified in project properties
@ -2444,6 +2444,9 @@ Modifies geometry to avoid intersections with the layers specified in project pr
4 if the geometry is not intersected by one of the geometries present in the provided layers.
.. versionadded:: 1.5
.. deprecated::
QGIS 3.34
%End
Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers );

View File

@ -2550,9 +2550,10 @@ class CORE_EXPORT QgsGeometry
* 3 at least one geometry intersected is invalid. The algorithm may not work and return the same geometry as the input. You must fix your intersecting geometries.
* 4 if the geometry is not intersected by one of the geometries present in the provided layers.
* \since QGIS 1.5
* \deprecated QGIS 3.34
*/
Q_DECL_DEPRECATED int avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers,
const QHash<QgsVectorLayer *, QSet<QgsFeatureId> > &ignoreFeatures SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<QgsFeatureId> >() ) );
const QHash<QgsVectorLayer *, QSet<QgsFeatureId> > &ignoreFeatures SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<QgsFeatureId> >() ) ) SIP_DEPRECATED;
/**
* Modifies geometry to avoid intersections with the layers specified in project properties