/************************************************************************ * This file has been generated automatically from * * * * src/core/qgsvectorlayereditutils.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ class QgsVectorLayerEditUtils { %TypeHeaderCode #include "qgsvectorlayereditutils.h" %End public: QgsVectorLayerEditUtils( QgsVectorLayer *layer ); bool insertVertex( double x, double y, QgsFeatureId atFeatureId, int beforeVertex ); %Docstring Insert a new vertex before the given vertex number, in the given ring, item (first number is index 0), and feature Not meaningful for Point geometries %End bool insertVertex( const QgsPoint &point, QgsFeatureId atFeatureId, int beforeVertex ); %Docstring Inserts a new vertex before the given vertex number, in the given ring, item (first number is index 0), and feature Not meaningful for Point geometries %End bool moveVertex( double x, double y, QgsFeatureId atFeatureId, int atVertex ); %Docstring Moves the vertex at the given position number, ring and item (first number is index 0), and feature to the given coordinates %End bool moveVertex( const QgsPoint &p, QgsFeatureId atFeatureId, int atVertex ) /PyName=moveVertexV2/; %Docstring Moves the vertex at the given position number, ring and item (first number is index 0), and feature to the given coordinates .. note:: available in Python bindings as moveVertexV2 %End QgsVectorLayer::EditResult deleteVertex( QgsFeatureId featureId, int vertex ); %Docstring Deletes a vertex from a feature. :param featureId: ID of feature to remove vertex from :param vertex: index of vertex to delete .. versionadded:: 2.14 %End QgsGeometry::OperationResult addRing( const QVector &ring, const QgsFeatureIds &targetFeatureIds = QgsFeatureIds(), QgsFeatureId *modifiedFeatureId = 0 ); %Docstring Adds a ring to polygon/multipolygon features :param ring: ring to add :param targetFeatureIds: if specified, only these features will be the candidates for adding a ring. Otherwise all intersecting features are tested and the ring is added to the first valid feature. :param modifiedFeatureId: if specified, feature ID for feature that ring was added to will be stored in this parameter :return: OperationResult result code: success or reason of failure %End QgsGeometry::OperationResult addRing( QgsCurve *ring, const QgsFeatureIds &targetFeatureIds = QgsFeatureIds(), QgsFeatureId *modifiedFeatureId = 0 ) /PyName=addCurvedRing/; %Docstring Adds a ring to polygon/multipolygon features :param ring: ring to add :param targetFeatureIds: if specified, only these features will be the candidates for adding a ring. Otherwise all intersecting features are tested and the ring is added to the first valid feature. :param modifiedFeatureId: if specified, feature ID for feature that ring was added to will be stored in this parameter :return: OperationResult result code: success or reason of failure .. note:: available in python bindings as addCurvedRing %End QgsGeometry::OperationResult addPart( const QList &ring, QgsFeatureId featureId ); %Docstring Adds a new part polygon to a multipart feature :return: - QgsGeometry.Success - QgsGeometry.AddPartSelectedGeometryNotFound - QgsGeometry.AddPartNotMultiGeometry - QgsGeometry.InvalidBaseGeometry - QgsGeometry.InvalidInput %End QgsGeometry::OperationResult addPart( const QgsPointSequence &ring, QgsFeatureId featureId ); %Docstring Adds a new part polygon to a multipart feature :return: - QgsGeometry.Success - QgsGeometry.AddPartSelectedGeometryNotFound - QgsGeometry.AddPartNotMultiGeometry - QgsGeometry.InvalidBaseGeometry - QgsGeometry.InvalidInput .. note:: available in python bindings as addPartV2 %End QgsGeometry::OperationResult addPart( QgsCurve *ring, QgsFeatureId featureId ) /PyName=addCurvedPart/; %Docstring Adds a new part polygon to a multipart feature :return: - QgsGeometry.Success - QgsGeometry.AddPartSelectedGeometryNotFound - QgsGeometry.AddPartNotMultiGeometry - QgsGeometry.InvalidBaseGeometry - QgsGeometry.InvalidInput .. note:: available in python bindings as addCurvedPart %End int translateFeature( QgsFeatureId featureId, double dx, double dy ); %Docstring Translates feature by dx, dy :param featureId: id of the feature to translate :param dx: translation of x-coordinate :param dy: translation of y-coordinate :return: 0 in case of success %End QgsGeometry::OperationResult splitParts( const QVector &splitLine, bool topologicalEditing = false ); %Docstring Splits parts cut by the given line :param splitLine: line that splits the layer feature parts :param topologicalEditing: true if topological editing is enabled :return: - QgsGeometry.InvalidBaseGeometry - QgsGeometry.Success - QgsGeometry.InvalidInput - QgsGeometry.NothingHappened if a selection is present but no feature has been split - QgsGeometry.InvalidBaseGeometry - QgsGeometry.GeometryEngineError - QgsGeometry.SplitCannotSplitPoint %End QgsGeometry::OperationResult splitFeatures( const QVector &splitLine, bool topologicalEditing = false ); %Docstring Splits features cut by the given line :param splitLine: line that splits the layer features :param topologicalEditing: true if topological editing is enabled :return: 0 in case of success, 4 if there is a selection but no feature split %End int addTopologicalPoints( const QgsGeometry &geom ); %Docstring Adds topological points for every vertex of the geometry. :param geom: the geometry where each vertex is added to segments of other features :return: 0 in case of success .. note:: geom is not going to be modified by the function %End int addTopologicalPoints( const QgsPointXY &p ); %Docstring Adds a vertex to segments which intersect point p but don't already have a vertex there. If a feature already has a vertex at position p, no additional vertex is inserted. This method is useful for topological editing. :param p: position of the vertex :return: 0 in case of success %End }; /************************************************************************ * This file has been generated automatically from * * * * src/core/qgsvectorlayereditutils.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/