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 );
Wrapper for iterator of features from vector data provider or vector layer.
SymbologyExport symbologyExport() const
QMap< int, int > attrIdxToOgrIdx()
WriterError mError
contains error value if construction was not successful
SymbologyExport mSymbologyExport
double mSymbologyScaleDenominator
Scale for symbology export (e.g.
Container of fields for a vector layer.
WkbType
Used for symbology operations.
A convenience class for writing vector files to disk.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QList< int > QgsAttributeList
QGis::WkbType mWkbType
geometry type which is being used
QMap< int, int > mAttrIdxToOgrIdx
map attribute indizes to OGR field indexes
double symbologyScaleDenominator() const
void setSymbologyExport(SymbologyExport symExport)
Contains information about the context of a rendering operation.
void setSymbologyScaleDenominator(double d)
Class for storing a coordinate reference system (CRS)
UnitType
Map units that qgis supports.
Represents a vector layer which manages a vector based data sets.