File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,13 @@ class QgsVectorDataProvider : QgsDataProvider
391
391
void pushError( const QString& msg );
392
392
393
393
/** Converts the geometry to the provider type if possible / necessary
394
+ * this is the list of possibile modifications:
395
+ * - convert compoundcurve to circularstring
396
+ * (possible if compoundcurve consists of one circular string)
397
+ * - convert to multitype if necessary
398
+ * - convert to curved type if necessary
399
+ * - convert to linear type from curved type
400
+ * - Add or Remove z/m types
394
401
@return the converted geometry or nullptr if no conversion was necessary or possible*/
395
402
QgsGeometry* convertToProviderType( const QgsGeometry* geom ) const /Factory/;
396
403
};
Original file line number Diff line number Diff line change @@ -150,8 +150,9 @@ class QgsVectorLayerEditBuffer : QObject
150
150
void updateLayerFields();
151
151
152
152
/** Apply geometry modification basing on provider geometry type.
153
- * Geometry is modified or only if successful conversion is possible.
154
- * In case of conversion a message is sent to the log.
153
+ * Geometry is modified only if successful conversion is possible.
154
+ * adaptGeometry calls QgsVectorDataProvider::convertToProviderType()
155
+ * if necessary and that apply the modifications.
155
156
* @param geometry pointer to the geometry that should be adapted to provider
156
157
* @return bool true if success.
157
158
* True: Input geometry is changed because conversion is applied or
Original file line number Diff line number Diff line change @@ -469,6 +469,13 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
469
469
QgsAttrPalIndexNameHash mAttrPalIndexName ;
470
470
471
471
/* * Converts the geometry to the provider type if possible / necessary
472
+ * this is the list of possibile modifications:
473
+ * - convert compoundcurve to circularstring
474
+ * (possible if compoundcurve consists of one circular string)
475
+ * - convert to multitype if necessary
476
+ * - convert to curved type if necessary
477
+ * - convert to linear type from curved type
478
+ * - Add or Remove z/m types
472
479
@return the converted geometry or nullptr if no conversion was necessary or possible*/
473
480
QgsGeometry* convertToProviderType ( const QgsGeometry* geom ) const ;
474
481
Original file line number Diff line number Diff line change @@ -180,7 +180,8 @@ class CORE_EXPORT QgsVectorLayerEditBuffer : public QObject
180
180
181
181
/* * Apply geometry modification basing on provider geometry type.
182
182
* Geometry is modified only if successful conversion is possible.
183
- * In case of conversion a message is sent to the log.
183
+ * adaptGeometry calls QgsVectorDataProvider::convertToProviderType()
184
+ * if necessary and that apply the modifications.
184
185
* @param geometry pointer to the geometry that should be adapted to provider
185
186
* @return bool true if success.
186
187
* True: Input geometry is changed because conversion is applied or
You can’t perform that action at this time.
0 commit comments