19 #ifndef _QGSVECTORFILEWRITER_H_
20 #define _QGSVECTORFILEWRITER_H_
84 const QString& fileName,
85 const QString& fileEncoding,
87 const QString& driverName =
"ESRI Shapefile",
88 bool onlySelected =
false,
89 QString *errorMessage = 0,
90 const QStringList &datasourceOptions = QStringList(),
91 const QStringList &layerOptions = QStringList(),
92 bool skipAttributeCreation =
false,
93 QString *newFilename = 0,
94 SymbologyExport symbologyExport = NoSymbology,
95 double symbologyScale = 1.0
100 const QString& fileEncoding,
104 const QString& driverName =
"ESRI Shapefile",
105 const QStringList &datasourceOptions = QStringList(),
106 const QStringList &layerOptions = QStringList(),
107 QString *newFilename = 0,
108 SymbologyExport symbologyExport = NoSymbology
112 static QMap< QString, QString> supportedFiltersAndFormats();
118 static QMap< QString, QString> ogrDriverList();
121 static QString fileFilterString();
124 static QString filterForDriver(
const QString& driverName );
127 static QString convertCodecNameForEncodingOption(
const QString &codecName );
130 WriterError hasError();
135 QString errorMessage();
150 static bool deleteShapeFile( QString theFileName );
182 #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= 1700
183 QMap< QgsSymbolLayerV2*, QString > mSymbolLayerTable;
190 static bool driverMetadata( QString driverName, QString &longName, QString &trLongName, QString &glob, QString &ext );
192 OGRFeatureH createFeature(
QgsFeature& feature );
193 bool writeFeature( OGRLayerH layer, OGRFeatureH feature );