19 #ifndef _QGSVECTORFILEWRITER_H_
20 #define _QGSVECTORFILEWRITER_H_
57 : docString( docString )
70 , values( values.toSet() )
71 , defaultValue( defaultValue )
72 , allowNone( allowNone )
84 :
Option( docString, String )
85 , defaultValue( defaultValue )
96 , defaultValue( defaultValue )
127 : longName( longName )
128 , trLongName( trLongName )
131 , driverOptions( driverOptions )
132 , layerOptions( layerOptions )
183 const QString& driverName =
"ESRI Shapefile",
184 bool onlySelected =
false,
188 bool skipAttributeCreation =
false,
190 SymbologyExport symbologyExport = NoSymbology,
191 double symbologyScale = 1.0,
200 const QString& driverName =
"ESRI Shapefile",
201 bool onlySelected =
false,
205 bool skipAttributeCreation =
false,
207 SymbologyExport symbologyExport = NoSymbology,
208 double symbologyScale = 1.0,
218 const QString& driverName =
"ESRI Shapefile",
222 SymbologyExport symbologyExport = NoSymbology
235 static QString fileFilterString();
241 static QString convertCodecNameForEncodingOption(
const QString &codecName );
244 WriterError hasError();
262 static bool deleteShapeFile(
const QString& theFileName );
268 void setSymbologyScaleDenominator(
double d );
270 static bool driverMetadata(
const QString& driverName, MetaData& driverMetadata );
297 #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= 1700
313 OGRFeatureH createFeature(
QgsFeature& feature );
314 bool writeFeature( OGRLayerH layer, OGRFeatureH feature );
Wrapper for iterator of features from vector data provider or vector layer.
BoolOption(const QString &docString, bool defaultValue)
A rectangle specified with double values.
SymbologyExport symbologyExport() const
OutputUnit
The unit of the output.
QMap< int, int > attrIdxToOgrIdx()
WriterError mError
Contains error value if construction was not successful.
UnitType
Map units that qgis supports.
SymbologyExport mSymbologyExport
double mSymbologyScaleDenominator
Scale for symbology export (e.g.
Container of fields for a vector layer.
StringOption(const QString &docString, const QString &defaultValue=QString())
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...
IntOption(const QString &docString, int defaultValue)
SetOption(const QString &docString, const QStringList &values, const QString &defaultValue, bool allowNone=false)
QGis::WkbType mWkbType
Geometry type which is being used.
QMap< int, int > mAttrIdxToOgrIdx
Map attribute indizes to OGR field indexes.
OGRSpatialReferenceH mOgrRef
double symbologyScaleDenominator() const
void setSymbologyExport(SymbologyExport symExport)
Contains information about the context of a rendering operation.
HiddenOption(const QString &value)
Class for storing a coordinate reference system (CRS)
Option(const QString &docString, OptionType type)
Represents a vector layer which manages a vector based data sets.
void * OGRSpatialReferenceH