Skip to content

Commit 348e683

Browse files
committedFeb 19, 2019
Fix docs for createFeatures
1 parent 490c1fe commit 348e683

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed
 

‎python/core/auto_generated/qgsvectorlayerutils.sip.in

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,21 @@ Creates a new feature ready for insertion into a layer. Default values and const
177177
passed for the new feature to copy as many attribute values as possible from the map,
178178
assuming that they respect the layer's constraints. Note that the created feature is not
179179
automatically inserted into the layer.
180+
181+
.. seealso:: :py:func:`createFeatures`
180182
%End
181183

182184
static QgsFeatureList createFeatures( const QgsVectorLayer *layer,
183185
const QgsFeaturesDataList &featuresData,
184186
QgsExpressionContext *context = 0 );
185187
%Docstring
186188
Creates a set of new features ready for insertion into a layer. Default values and constraints
187-
(e.g., unique constraints) will automatically be handled. An optional attribute map can be
188-
passed for the new feature to copy as many attribute values as possible from the map,
189-
assuming that they respect the layer's constraints. Note that the created features are not
189+
(e.g., unique constraints) will automatically be handled. Note that the created features are not
190190
automatically inserted into the layer.
191+
192+
.. seealso:: :py:func:`createFeature`
193+
194+
.. versionadded:: 3.6
191195
%End
192196

193197
static QgsFeature duplicateFeature( QgsVectorLayer *layer, const QgsFeature &feature, QgsProject *project, int depth, QgsDuplicateFeatureContext &duplicateFeatureContext /Out/ );

‎src/core/qgsvectorlayerutils.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class CORE_EXPORT QgsVectorLayerUtils
170170
* passed for the new feature to copy as many attribute values as possible from the map,
171171
* assuming that they respect the layer's constraints. Note that the created feature is not
172172
* automatically inserted into the layer.
173+
* \see createFeatures()
173174
*/
174175
static QgsFeature createFeature( const QgsVectorLayer *layer,
175176
const QgsGeometry &geometry = QgsGeometry(),
@@ -178,10 +179,10 @@ class CORE_EXPORT QgsVectorLayerUtils
178179

179180
/**
180181
* Creates a set of new features ready for insertion into a layer. Default values and constraints
181-
* (e.g., unique constraints) will automatically be handled. An optional attribute map can be
182-
* passed for the new feature to copy as many attribute values as possible from the map,
183-
* assuming that they respect the layer's constraints. Note that the created features are not
182+
* (e.g., unique constraints) will automatically be handled. Note that the created features are not
184183
* automatically inserted into the layer.
184+
* \see createFeature()
185+
* \since QGIS 3.6
185186
*/
186187
static QgsFeatureList createFeatures( const QgsVectorLayer *layer,
187188
const QgsFeaturesDataList &featuresData,

0 commit comments

Comments
 (0)
Please sign in to comment.