|
static bool | areThereNewFieldsToCreate (const QString &datasetName, const QString &layerName, QgsVectorLayer *layer, const QgsAttributeList &attributes) |
| Returns whether there are among the attributes specified some that do not exist yet in the layer. More...
|
|
static QString | convertCodecNameForEncodingOption (const QString &codecName) |
| Converts codec name to string passed to ENCODING layer creation option of OGR Shapefile. More...
|
|
static QgsVectorFileWriter * | create (const QString &fileName, const QgsFields &fields, QgsWkbTypes::Type geometryType, const QgsCoordinateReferenceSystem &srs, const QgsCoordinateTransformContext &transformContext, const QgsVectorFileWriter::SaveVectorOptions &options, QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags(), QString *newFilename=nullptr, QString *newLayer=nullptr) |
| Create a new vector file writer. More...
|
|
static QStringList | defaultDatasetOptions (const QString &driverName) |
| Returns a list of the default dataset options for a specified driver. More...
|
|
static QStringList | defaultLayerOptions (const QString &driverName) |
| Returns a list of the default layer options for a specified driver. More...
|
|
static bool | deleteShapeFile (const QString &fileName) |
| Delete a shapefile (and its accompanying shx / dbf / prj / qix / qpj / cpg / sbn / sbx / idm / ind) More...
|
|
static QString | driverForExtension (const QString &extension) |
| Returns the OGR driver name for a specified file extension. More...
|
|
static bool | driverMetadata (const QString &driverName, MetaData &driverMetadata) |
|
static QgsVectorFileWriter::EditionCapabilities | editionCapabilities (const QString &datasetName) |
| Returns edition capabilities for an existing dataset name. More...
|
|
static QString | fileFilterString (VectorFormatOptions options=SortRecommended) |
| Returns filter string that can be used for dialogs. More...
|
|
static QString | filterForDriver (const QString &driverName) |
| Creates a filter for an OGR driver key. More...
|
|
static QList< QgsVectorFileWriter::DriverDetails > | ogrDriverList (VectorFormatOptions options=SortRecommended) |
| Returns the driver list that can be used for dialogs. More...
|
|
static OGRwkbGeometryType | ogrTypeFromWkbType (QgsWkbTypes::Type type) |
| Gets the ogr geometry type from an internal QGIS wkb type enum. More...
|
|
static QList< QgsVectorFileWriter::FilterFormatDetails > | supportedFiltersAndFormats (VectorFormatOptions options=SortRecommended) |
| Returns a list or pairs, with format filter string as first element and OGR format key as second element. More...
|
|
static QStringList | supportedFormatExtensions (VectorFormatOptions options=SortRecommended) |
| Returns a list of file extensions for supported formats, e.g "shp", "gpkg". More...
|
|
static bool | supportsFeatureStyles (const QString &driverName) |
| Returns true if the specified driverName supports feature styles. More...
|
|
static bool | targetLayerExists (const QString &datasetName, const QString &layerName) |
| Returns whether the target layer already exists. More...
|
|
static Q_DECL_DEPRECATED QgsVectorFileWriter::WriterError | writeAsVectorFormat (QgsVectorLayer *layer, const QString &fileName, const QgsVectorFileWriter::SaveVectorOptions &options, QString *newFilename=nullptr, QString *errorMessage=nullptr, QString *newLayer=nullptr) |
| Writes a layer out to a vector file. More...
|
|
static Q_DECL_DEPRECATED QgsVectorFileWriter::WriterError | writeAsVectorFormat (QgsVectorLayer *layer, const QString &fileName, const QString &fileEncoding, const QgsCoordinateReferenceSystem &destCRS=QgsCoordinateReferenceSystem(), const QString &driverName="GPKG", bool onlySelected=false, QString *errorMessage=nullptr, const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList(), bool skipAttributeCreation=false, QString *newFilename=nullptr, QgsVectorFileWriter::SymbologyExport symbologyExport=QgsVectorFileWriter::NoSymbology, double symbologyScale=1.0, const QgsRectangle *filterExtent=nullptr, QgsWkbTypes::Type overrideGeometryType=QgsWkbTypes::Unknown, bool forceMulti=false, bool includeZ=false, const QgsAttributeList &attributes=QgsAttributeList(), QgsVectorFileWriter::FieldValueConverter *fieldValueConverter=nullptr, QString *newLayer=nullptr) |
| Write contents of vector layer to an (OGR supported) vector format. More...
|
|
static Q_DECL_DEPRECATED QgsVectorFileWriter::WriterError | writeAsVectorFormat (QgsVectorLayer *layer, const QString &fileName, const QString &fileEncoding, const QgsCoordinateTransform &ct, const QString &driverName="GPKG", bool onlySelected=false, QString *errorMessage=nullptr, const QStringList &datasourceOptions=QStringList(), const QStringList &layerOptions=QStringList(), bool skipAttributeCreation=false, QString *newFilename=nullptr, QgsVectorFileWriter::SymbologyExport symbologyExport=QgsVectorFileWriter::NoSymbology, double symbologyScale=1.0, const QgsRectangle *filterExtent=nullptr, QgsWkbTypes::Type overrideGeometryType=QgsWkbTypes::Unknown, bool forceMulti=false, bool includeZ=false, const QgsAttributeList &attributes=QgsAttributeList(), QgsVectorFileWriter::FieldValueConverter *fieldValueConverter=nullptr, QString *newLayer=nullptr) |
| Writes a layer out to a vector file. More...
|
|
static Q_DECL_DEPRECATED QgsVectorFileWriter::WriterError | writeAsVectorFormatV2 (QgsVectorLayer *layer, const QString &fileName, const QgsCoordinateTransformContext &transformContext, const QgsVectorFileWriter::SaveVectorOptions &options, QString *newFilename=nullptr, QString *newLayer=nullptr, QString *errorMessage=nullptr) |
| Writes a layer out to a vector file. More...
|
|
static QgsVectorFileWriter::WriterError | writeAsVectorFormatV3 (QgsVectorLayer *layer, const QString &fileName, const QgsCoordinateTransformContext &transformContext, const QgsVectorFileWriter::SaveVectorOptions &options, QString *errorMessage=nullptr, QString *newFilename=nullptr, QString *newLayer=nullptr) |
| Writes a layer out to a vector file. More...
|
|