Bug report #12153

QgsSnapper.snapPoint API changed

Added by Matthias Kuhn about 9 years ago. Updated about 9 years ago.

Category:Python plugins
Affected QGIS version:2.6.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20346


QgsSnapper.snapPoint python binding changed from QPoint to QgsPoint.

This introduces the following error:

TypeError: QgsSnapper.snapPoint(QgsPoint, list-of-QgsSnappingResult, list-of-QgsPoint excludePoints=QList<QgsPoint>()): argument 1 has unexpected type 'QPoint'

It is very easy to maintain compatibility here as outlined in this comment:


I set the priority as a blocker so a decision needs to be taken if such an API change is desired or not.

Associated revisions

Revision 0593ef6a
Added by Jürgen Fischer about 9 years ago

rename new QgsSnapper::snapPoint method to snapMapPoint and restore python name
of deprecated old version (fixes #12153)


#1 Updated by Jürgen Fischer about 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF