Skip to content

Commit

Permalink
fixed closestSegmentWithContext() paramas in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek authored and nyalldawson committed Nov 28, 2017
1 parent 5652501 commit 07fd713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/core/geometry/qgsgeometry.sip
Expand Up @@ -493,7 +493,7 @@ Returns true if WKB of the geometry is of WKBMulti* type
:rtype: float
%End

double closestSegmentWithContext( const QgsPointXY &point, QgsPointXY &minDistPoint /Out/, int &afterVertex /Out/ ) const;
double closestSegmentWithContext( const QgsPointXY &point, QgsPointXY &minDistPoint /Out/, int &afterVertex /Out/, double *leftOf /Out/ = 0, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;
%Docstring
Searches for the closest segment of geometry to the given point
\param point Specifies the point for search
Expand Down
6 changes: 1 addition & 5 deletions src/core/geometry/qgsgeometry.h
Expand Up @@ -559,11 +559,7 @@ class CORE_EXPORT QgsGeometry
* \param epsilon epsilon for segment snapping
* \returns The squared Cartesian distance is also returned in sqrDist, negative number on error
*/
#ifndef SIP_RUN
double closestSegmentWithContext( const QgsPointXY &point, QgsPointXY &minDistPoint, int &afterVertex, double *leftOf = nullptr, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;
#else
double closestSegmentWithContext( const QgsPointXY &point, QgsPointXY &minDistPoint SIP_OUT, int &afterVertex SIP_OUT ) const;
#endif
double closestSegmentWithContext( const QgsPointXY &point, QgsPointXY &minDistPoint SIP_OUT, int &afterVertex SIP_OUT, double *leftOf SIP_OUT = nullptr, double epsilon = DEFAULT_SEGMENT_EPSILON ) const;

/**
* Adds a new ring to this geometry. This makes only sense for polygon and multipolygons.
Expand Down

0 comments on commit 07fd713

Please sign in to comment.