mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Return error message from QgsVectorFileWriter
This commit is contained in:
parent
15bc5ed0c3
commit
3043e85ea1
@ -226,7 +226,7 @@ Constructor
|
|||||||
const QgsCoordinateReferenceSystem &destCRS = QgsCoordinateReferenceSystem(),
|
const QgsCoordinateReferenceSystem &destCRS = QgsCoordinateReferenceSystem(),
|
||||||
const QString &driverName = "ESRI Shapefile",
|
const QString &driverName = "ESRI Shapefile",
|
||||||
bool onlySelected = false,
|
bool onlySelected = false,
|
||||||
QString *errorMessage = 0,
|
QString *errorMessage /Out/ = 0,
|
||||||
const QStringList &datasourceOptions = QStringList(),
|
const QStringList &datasourceOptions = QStringList(),
|
||||||
const QStringList &layerOptions = QStringList(),
|
const QStringList &layerOptions = QStringList(),
|
||||||
bool skipAttributeCreation = false,
|
bool skipAttributeCreation = false,
|
||||||
@ -271,7 +271,7 @@ Constructor
|
|||||||
const QgsCoordinateTransform &ct,
|
const QgsCoordinateTransform &ct,
|
||||||
const QString &driverName = "ESRI Shapefile",
|
const QString &driverName = "ESRI Shapefile",
|
||||||
bool onlySelected = false,
|
bool onlySelected = false,
|
||||||
QString *errorMessage = 0,
|
QString *errorMessage /Out/ = 0,
|
||||||
const QStringList &datasourceOptions = QStringList(),
|
const QStringList &datasourceOptions = QStringList(),
|
||||||
const QStringList &layerOptions = QStringList(),
|
const QStringList &layerOptions = QStringList(),
|
||||||
bool skipAttributeCreation = false,
|
bool skipAttributeCreation = false,
|
||||||
@ -431,7 +431,7 @@ Optional feedback object allowing cancelation of layer save
|
|||||||
const QString &fileName,
|
const QString &fileName,
|
||||||
const QgsVectorFileWriter::SaveVectorOptions &options,
|
const QgsVectorFileWriter::SaveVectorOptions &options,
|
||||||
QString *newFilename = 0,
|
QString *newFilename = 0,
|
||||||
QString *errorMessage = 0 );
|
QString *errorMessage /Out/ = 0 );
|
||||||
%Docstring
|
%Docstring
|
||||||
Writes a layer out to a vector file.
|
Writes a layer out to a vector file.
|
||||||
\param layer source layer to write
|
\param layer source layer to write
|
||||||
|
@ -276,7 +276,7 @@ class CORE_EXPORT QgsVectorFileWriter : public QgsFeatureSink
|
|||||||
const QgsCoordinateReferenceSystem &destCRS = QgsCoordinateReferenceSystem(),
|
const QgsCoordinateReferenceSystem &destCRS = QgsCoordinateReferenceSystem(),
|
||||||
const QString &driverName = "ESRI Shapefile",
|
const QString &driverName = "ESRI Shapefile",
|
||||||
bool onlySelected = false,
|
bool onlySelected = false,
|
||||||
QString *errorMessage = nullptr,
|
QString *errorMessage SIP_OUT = nullptr,
|
||||||
const QStringList &datasourceOptions = QStringList(),
|
const QStringList &datasourceOptions = QStringList(),
|
||||||
const QStringList &layerOptions = QStringList(),
|
const QStringList &layerOptions = QStringList(),
|
||||||
bool skipAttributeCreation = false,
|
bool skipAttributeCreation = false,
|
||||||
@ -321,7 +321,7 @@ class CORE_EXPORT QgsVectorFileWriter : public QgsFeatureSink
|
|||||||
const QgsCoordinateTransform &ct,
|
const QgsCoordinateTransform &ct,
|
||||||
const QString &driverName = "ESRI Shapefile",
|
const QString &driverName = "ESRI Shapefile",
|
||||||
bool onlySelected = false,
|
bool onlySelected = false,
|
||||||
QString *errorMessage = nullptr,
|
QString *errorMessage SIP_OUT = nullptr,
|
||||||
const QStringList &datasourceOptions = QStringList(),
|
const QStringList &datasourceOptions = QStringList(),
|
||||||
const QStringList &layerOptions = QStringList(),
|
const QStringList &layerOptions = QStringList(),
|
||||||
bool skipAttributeCreation = false,
|
bool skipAttributeCreation = false,
|
||||||
@ -423,7 +423,7 @@ class CORE_EXPORT QgsVectorFileWriter : public QgsFeatureSink
|
|||||||
const QString &fileName,
|
const QString &fileName,
|
||||||
const QgsVectorFileWriter::SaveVectorOptions &options,
|
const QgsVectorFileWriter::SaveVectorOptions &options,
|
||||||
QString *newFilename = nullptr,
|
QString *newFilename = nullptr,
|
||||||
QString *errorMessage = nullptr );
|
QString *errorMessage SIP_OUT = nullptr );
|
||||||
|
|
||||||
//! Create a new vector file writer
|
//! Create a new vector file writer
|
||||||
QgsVectorFileWriter( const QString &vectorFileName,
|
QgsVectorFileWriter( const QString &vectorFileName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user