Skip to content
Permalink
Browse files

fixed closestSegmentWithContext() paramas in Python

  • Loading branch information
blazek authored and nyalldawson committed Nov 28, 2017
1 parent 5652501 commit 07fd713647e77bf81e5c2da02da6489ff89f9372
Showing with 2 additions and 6 deletions.
  1. +1 −1 python/core/geometry/qgsgeometry.sip
  2. +1 −5 src/core/geometry/qgsgeometry.h
@@ -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
@@ -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.

0 comments on commit 07fd713

Please sign in to comment.
You can’t perform that action at this time.