@@ -433,6 +433,37 @@ class CORE_EXPORT QgsVectorFileWriter
433433 SymbologyExport symbologyExport = NoSymbology
434434 );
435435
436+ /* * Create a new vector file writer.
437+ * \param vectorFileName file name to write to
438+ * \param fileEncoding encoding to use
439+ * \param fields fields to write
440+ * \param geometryType geometry type of output file
441+ * \param srs spatial reference system of output file
442+ * \param driverName OGR driver to use
443+ * \param datasourceOptions list of OGR data source creation options
444+ * \param layerOptions list of OGR layer creation options
445+ * \param newFilename potentially modified file name (output parameter)
446+ * \param symbologyExport symbology to export
447+ * \param fieldValueConverter field value converter (added in QGIS 2.16)
448+ * \param layerName layer name. If let empty, it will be derived from the filename (added in QGIS 3.0)
449+ * \param action action on existing file (added in QGIS 3.0)
450+ * \note not available in Python bindings
451+ */
452+ QgsVectorFileWriter ( const QString &vectorFileName,
453+ const QString &fileEncoding,
454+ const QgsFields &fields,
455+ QgsWKBTypes::Type geometryType,
456+ const QgsCoordinateReferenceSystem* srs,
457+ const QString &driverName,
458+ const QStringList &datasourceOptions,
459+ const QStringList &layerOptions,
460+ QString *newFilename,
461+ SymbologyExport symbologyExport,
462+ FieldValueConverter *fieldValueConverter,
463+ const QString &layerName,
464+ ActionOnExistingFile action
465+ );
466+
436467 /* * Returns map with format filter string as key and OGR format key as value*/
437468 static QMap< QString, QString> supportedFiltersAndFormats ();
438469
@@ -548,42 +579,13 @@ class CORE_EXPORT QgsVectorFileWriter
548579
549580 private:
550581
551- /* * Create a new vector file writer.
552- * @param vectorFileName file name to write to
553- * @param fileEncoding encoding to use
554- * @param fields fields to write
555- * @param geometryType geometry type of output file
556- * @param srs spatial reference system of output file
557- * @param driverName OGR driver to use
558- * @param datasourceOptions list of OGR data source creation options
559- * @param layerOptions list of OGR layer creation options
560- * @param newFilename potentially modified file name (output parameter)
561- * @param symbologyExport symbology to export
562- * @param fieldValueConverter field value converter (added in QGIS 2.16)
563- * @param layerName layer name. If let empty, it will be derived from the filename (added in QGIS 3.0)
564- * @param action action on existing file (added in QGIS 3.0)
565- */
566- QgsVectorFileWriter ( const QString& vectorFileName,
567- const QString& fileEncoding,
568- const QgsFields& fields,
569- QgsWKBTypes::Type geometryType,
570- const QgsCoordinateReferenceSystem* srs,
571- const QString& driverName,
572- const QStringList &datasourceOptions,
573- const QStringList &layerOptions,
574- QString *newFilename,
575- SymbologyExport symbologyExport,
576- FieldValueConverter* fieldValueConverter,
577- const QString& layerName,
578- ActionOnExistingFile action
579- );
580-
581582 void init ( QString vectorFileName, QString fileEncoding, const QgsFields& fields,
582583 QgsWKBTypes::Type geometryType, const QgsCoordinateReferenceSystem* srs,
583584 const QString& driverName, QStringList datasourceOptions,
584585 QStringList layerOptions, QString* newFilename,
585586 FieldValueConverter* fieldValueConverter,
586587 const QString& layerName,
588+
587589 ActionOnExistingFile action );
588590 void resetMap ( const QgsAttributeList &attributes );
589591
0 commit comments