@@ -65,67 +65,95 @@ class CORE_EXPORT QgsVectorLayerEditUtils
6565 QgsVectorLayer::EditResult deleteVertex ( QgsFeatureId featureId, int vertex );
6666
6767 /* * Adds a ring to polygon/multipolygon features
68- * @ param ring ring to add
69- * @ param targetFeatureIds if specified, only these features will be the candidates for adding a ring. Otherwise
68+ * \ param ring ring to add
69+ * \ param targetFeatureIds if specified, only these features will be the candidates for adding a ring. Otherwise
7070 * all intersecting features are tested and the ring is added to the first valid feature.
71- * @ param modifiedFeatureId if specified, feature ID for feature that ring was added to will be stored in this parameter
72- * @ return OperationResult result code: success or reason of failure
71+ * \ param modifiedFeatureId if specified, feature ID for feature that ring was added to will be stored in this parameter
72+ * \ return OperationResult result code: success or reason of failure
7373 */
7474 QgsGeometry::OperationResult addRing ( const QList<QgsPointXY> &ring, const QgsFeatureIds &targetFeatureIds = QgsFeatureIds(), QgsFeatureId *modifiedFeatureId = nullptr );
7575
7676 /* *
7777 * Adds a ring to polygon/multipolygon features
78- * @ param ring ring to add
79- * @ param targetFeatureIds if specified, only these features will be the candidates for adding a ring. Otherwise
78+ * \ param ring ring to add
79+ * \ param targetFeatureIds if specified, only these features will be the candidates for adding a ring. Otherwise
8080 * all intersecting features are tested and the ring is added to the first valid feature.
81- * @ param modifiedFeatureId if specified, feature ID for feature that ring was added to will be stored in this parameter
82- * @ return OperationResult result code: success or reason of failure
83- * @ note available in python bindings as addCurvedRing
81+ * \ param modifiedFeatureId if specified, feature ID for feature that ring was added to will be stored in this parameter
82+ * \ return OperationResult result code: success or reason of failure
83+ * \ note available in python bindings as addCurvedRing
8484 */
8585 QgsGeometry::OperationResult addRing ( QgsCurve *ring, const QgsFeatureIds &targetFeatureIds = QgsFeatureIds(), QgsFeatureId *modifiedFeatureId = nullptr ) SIP_PYNAME( addCurvedRing );
8686
8787 /* *
8888 * Adds a new part polygon to a multipart feature
89- * @returns QgsGeometry::OperationResult a result code: success or reason of failure
89+ * \return
90+ * - QgsGeometry::Success
91+ * - QgsGeometry::AddPartSelectedGeometryNotFound
92+ * - QgsGeometry::AddPartNotMultiGeometry
93+ * - QgsGeometry::InvalidBaseGeometry
94+ * - QgsGeometry::InvalidInput
9095 */
9196 QgsGeometry::OperationResult addPart ( const QList<QgsPointXY> &ring, QgsFeatureId featureId );
9297
9398 /* *
9499 * Adds a new part polygon to a multipart feature
95- * @returns QgsGeometry::OperationResult a result code: success or reason of failure
96- * @note available in python bindings as addPartV2
100+ *
101+ * \return
102+ * - QgsGeometry::Success
103+ * - QgsGeometry::AddPartSelectedGeometryNotFound
104+ * - QgsGeometry::AddPartNotMultiGeometry
105+ * - QgsGeometry::InvalidBaseGeometry
106+ * - QgsGeometry::InvalidInput
107+ * \note available in python bindings as addPartV2
97108 */
98109 QgsGeometry::OperationResult addPart ( const QgsPointSequence &ring, QgsFeatureId featureId );
99110
100- // @note available in python bindings as addCurvedPart
111+ /* *
112+ * Add a new part polygon to a multipart feature
113+ *
114+ * \return
115+ * - QgsGeometry::Success
116+ * - QgsGeometry::AddPartSelectedGeometryNotFound
117+ * - QgsGeometry::AddPartNotMultiGeometry
118+ * - QgsGeometry::InvalidBaseGeometry
119+ * - QgsGeometry::InvalidInput
120+ *
121+ * \note available in python bindings as addCurvedPart
122+ */
101123 QgsGeometry::OperationResult addPart ( QgsCurve *ring, QgsFeatureId featureId ) SIP_PYNAME( addCurvedPart );
102124
103- /* * Translates feature by dx, dy
125+ /* *
126+ * Translates feature by dx, dy
104127 * \param featureId id of the feature to translate
105128 * \param dx translation of x-coordinate
106129 * \param dy translation of y-coordinate
107- * \returns 0 in case of success
130+ * \return 0 in case of success
108131 */
109132 int translateFeature ( QgsFeatureId featureId, double dx, double dy );
110133
111- /* * Splits parts cut by the given line
112- * \param splitLine line that splits the layer feature parts
113- * \param topologicalEditing true if topological editing is enabled
114- * \returns
115- * 0 in case of success,
116- * 4 if there is a selection but no feature split
134+ /* *
135+ * Split parts cut by the given line
136+ * \param splitLine line that splits the layer feature parts
137+ * \param topologicalEditing true if topological editing is enabled
138+ * \return
139+ * - QgsGeometry::InvalidBaseGeometry
140+ * - QgsGeometry::Success
141+ * - QgsGeometry::InvalidInput
142+ * - QgsGeometry::NothingHappened if a selection is present but no feature has been split
143+ * - QgsGeometry::InvalidBaseGeometry
144+ * - QgsGeometry::GeometryEngineError
145+ * - QgsGeometry::SplitCannotSplitPoint
117146 */
118- // TODO QGIS 3.0 returns an enum instead of a magic constant
119147 QgsGeometry::OperationResult splitParts ( const QList<QgsPointXY> &splitLine, bool topologicalEditing = false );
120148
121- /* * Splits features cut by the given line
122- * \param splitLine line that splits the layer features
123- * \param topologicalEditing true if topological editing is enabled
124- * \returns
125- * 0 in case of success,
126- * 4 if there is a selection but no feature split
149+ /* *
150+ * Splits features cut by the given line
151+ * \param splitLine line that splits the layer features
152+ * \param topologicalEditing true if topological editing is enabled
153+ * \return
154+ * 0 in case of success,
155+ * 4 if there is a selection but no feature split
127156 */
128- // TODO QGIS 3.0 returns an enum instead of a magic constant
129157 QgsGeometry::OperationResult splitFeatures ( const QList<QgsPointXY> &splitLine, bool topologicalEditing = false );
130158
131159 /* * Adds topological points for every vertex of the geometry.
0 commit comments