Skip to content

Commit

Permalink
added sip binding for the new adaptedGeometry protected method
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Sep 26, 2017
1 parent 1aaad7b commit bbfa048
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/core/qgsvectorlayereditbuffer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,13 @@ class QgsVectorLayerEditBuffer : QObject
void updateAttributeMapIndex( QgsAttributeMap& attrs, int index, int offset ) const;

void updateLayerFields();

/** Apply geom modification basing on provider geometry type.
* Geom is modified only if successful convertion is possibile.
* In case of convertion a message is notified in the log
* @param geom pointer to the geometry that is adapted to provider
* @return bool true if success
* @note added in QGIS 2.18
*/
bool adaptGeometry( QgsGeometry* geom );
};

0 comments on commit bbfa048

Please sign in to comment.