qgssfcgalgeometry: Remove unused parameter in intersection methods

This commit is contained in:
Jean Felder 2025-08-05 19:06:53 +02:00 committed by Nyall Dawson
parent 4df0b9014f
commit e84e6fe84b
4 changed files with 8 additions and 18 deletions

View File

@ -517,13 +517,11 @@ be retrieved by calling :py:func:`~QgsSfcgalGeometry.lastError` on the
geometry.
%End
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsAbstractGeometry *otherGeom, const QgsGeometryParameters &parameters = QgsGeometryParameters() ) const;
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsAbstractGeometry *otherGeom ) const;
%Docstring
Calculate the intersection of this and ``otherGeom``.
:param otherGeom: geometry to perform the operation
:param parameters: can be used to specify parameters which control the
intersection results
:return: new geometry
@ -532,13 +530,11 @@ be retrieved by calling :py:func:`~QgsSfcgalGeometry.lastError` on the
returned geometry.
%End
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsSfcgalGeometry &otherGeom, const QgsGeometryParameters &parameters = QgsGeometryParameters() ) const;
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsSfcgalGeometry &otherGeom ) const;
%Docstring
Calculate the intersection of this and ``otherGeom``.
:param otherGeom: geometry to perform the operation
:param parameters: can be used to specify parameters which control the
intersection results
:return: new geometry

View File

@ -517,13 +517,11 @@ be retrieved by calling :py:func:`~QgsSfcgalGeometry.lastError` on the
geometry.
%End
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsAbstractGeometry *otherGeom, const QgsGeometryParameters &parameters = QgsGeometryParameters() ) const;
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsAbstractGeometry *otherGeom ) const;
%Docstring
Calculate the intersection of this and ``otherGeom``.
:param otherGeom: geometry to perform the operation
:param parameters: can be used to specify parameters which control the
intersection results
:return: new geometry
@ -532,13 +530,11 @@ be retrieved by calling :py:func:`~QgsSfcgalGeometry.lastError` on the
returned geometry.
%End
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsSfcgalGeometry &otherGeom, const QgsGeometryParameters &parameters = QgsGeometryParameters() ) const;
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsSfcgalGeometry &otherGeom ) const;
%Docstring
Calculate the intersection of this and ``otherGeom``.
:param otherGeom: geometry to perform the operation
:param parameters: can be used to specify parameters which control the
intersection results
:return: new geometry

View File

@ -390,7 +390,7 @@ bool QgsSfcgalGeometry::intersects( const QgsSfcgalGeometry &otherGeom ) const
return out;
}
std::unique_ptr<QgsSfcgalGeometry> QgsSfcgalGeometry::intersection( const QgsAbstractGeometry *otherGeom, const QgsGeometryParameters & ) const
std::unique_ptr<QgsSfcgalGeometry> QgsSfcgalGeometry::intersection( const QgsAbstractGeometry *otherGeom ) const
{
sfcgal::errorHandler()->clearText( &mLastError );
sfcgal::shared_geom otherShared = QgsSfcgalEngine::fromAbstractGeometry( otherGeom, &mLastError );
@ -404,7 +404,7 @@ std::unique_ptr<QgsSfcgalGeometry> QgsSfcgalGeometry::intersection( const QgsAbs
return resultGeom;
}
std::unique_ptr<QgsSfcgalGeometry> QgsSfcgalGeometry::intersection( const QgsSfcgalGeometry &otherGeom, const QgsGeometryParameters & ) const
std::unique_ptr<QgsSfcgalGeometry> QgsSfcgalGeometry::intersection( const QgsSfcgalGeometry &otherGeom ) const
{
sfcgal::errorHandler()->clearText( &mLastError );
sfcgal::shared_geom result = QgsSfcgalEngine::intersection( mSfcgalGeom.get(), otherGeom.mSfcgalGeom.get(), &mLastError );

View File

@ -485,27 +485,25 @@ class CORE_EXPORT QgsSfcgalGeometry
* Calculate the intersection of this and \a otherGeom.
*
* \param otherGeom geometry to perform the operation
* \param parameters can be used to specify parameters which control the intersection results
* \return new geometry
*
* If an error was encountered during the operation, more information can be retrieved
* by calling lastError() on the returned geometry.
*
*/
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsAbstractGeometry *otherGeom, const QgsGeometryParameters &parameters = QgsGeometryParameters() ) const;
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsAbstractGeometry *otherGeom ) const;
/**
* Calculate the intersection of this and \a otherGeom.
*
* \param otherGeom geometry to perform the operation
* \param parameters can be used to specify parameters which control the intersection results
* \return new geometry
*
* If an error was encountered during the operation, more information can be retrieved
* by calling lastError() on the returned geometry.
*
*/
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsSfcgalGeometry &otherGeom, const QgsGeometryParameters &parameters = QgsGeometryParameters() ) const;
std::unique_ptr<QgsSfcgalGeometry> intersection( const QgsSfcgalGeometry &otherGeom ) const;
/**
* Calculate the combination of this and \a geomList.