QGIS API Documentation 3.43.0-Master (9e873c7bc91)
|
Encapsulates options for use with QgsVectorLayerExporter. More...
#include <qgsvectorlayerexporter.h>
Public Member Functions | |
QgsCoordinateReferenceSystem | destinationCrs () const |
Returns the destination coordinate reference system used for exported features. | |
const QgsExpressionContext & | expressionContext () const |
Returns the expression context used when a filterExpression() is set. | |
QgsReferencedRectangle | extent () const |
Returns the extent filter for the features to export. | |
QString | filterExpression () const |
Returns the filter expression for features to export. | |
QList< QgsVectorLayerExporter::OutputField > | outputFields () const |
Returns the output field definitions for the destination table. | |
bool | selectedOnly () const |
Returns whether the export will only include selected features. | |
void | setDestinationCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the destination coordinate reference system to use for exported features. | |
void | setExpressionContext (const QgsExpressionContext &context) |
Sets the expression context to use when a filterExpression() is set. | |
void | setExtent (const QgsReferencedRectangle &extent) |
Sets an extent filter for the features to export. | |
void | setFilterExpression (const QString &expression) |
Set the filter expression for the features to export. | |
void | setOutputFields (const QList< QgsVectorLayerExporter::OutputField > &fields) |
Sets the output field definitions for the destination table. | |
void | setSelectedOnly (bool selected) |
Sets whether the export should only include selected features. | |
void | setTransformContext (const QgsCoordinateTransformContext &context) |
Sets the coordinate transform context to use when transforming exported features. | |
QgsCoordinateTransformContext | transformContext () const |
Returns the coordinate transform context used when transforming exported features. | |
Encapsulates options for use with QgsVectorLayerExporter.
Definition at line 106 of file qgsvectorlayerexporter.h.
QgsCoordinateReferenceSystem QgsVectorLayerExporter::ExportOptions::destinationCrs | ( | ) | const |
Returns the destination coordinate reference system used for exported features.
Definition at line 69 of file qgsvectorlayerexporter.cpp.
const QgsExpressionContext & QgsVectorLayerExporter::ExportOptions::expressionContext | ( | ) | const |
Returns the expression context used when a filterExpression() is set.
Definition at line 99 of file qgsvectorlayerexporter.cpp.
QgsReferencedRectangle QgsVectorLayerExporter::ExportOptions::extent | ( | ) | const |
Returns the extent filter for the features to export.
Only features with a bounding box intersecting this extent will be exported.
Definition at line 79 of file qgsvectorlayerexporter.cpp.
QString QgsVectorLayerExporter::ExportOptions::filterExpression | ( | ) | const |
Returns the filter expression for features to export.
Only features matching this expression will be exported.
Definition at line 89 of file qgsvectorlayerexporter.cpp.
QList< QgsVectorLayerExporter::OutputField > QgsVectorLayerExporter::ExportOptions::outputFields | ( | ) | const |
Returns the output field definitions for the destination table.
If empty, all input fields will be copied directly.
Definition at line 104 of file qgsvectorlayerexporter.cpp.
|
inline |
Returns whether the export will only include selected features.
Definition at line 130 of file qgsvectorlayerexporter.h.
void QgsVectorLayerExporter::ExportOptions::setDestinationCrs | ( | const QgsCoordinateReferenceSystem & | crs | ) |
Sets the destination coordinate reference system to use for exported features.
Definition at line 64 of file qgsvectorlayerexporter.cpp.
void QgsVectorLayerExporter::ExportOptions::setExpressionContext | ( | const QgsExpressionContext & | context | ) |
Sets the expression context to use when a filterExpression() is set.
Definition at line 94 of file qgsvectorlayerexporter.cpp.
void QgsVectorLayerExporter::ExportOptions::setExtent | ( | const QgsReferencedRectangle & | extent | ) |
Sets an extent filter for the features to export.
Only features with a bounding box intersecting extent will be exported.
Definition at line 74 of file qgsvectorlayerexporter.cpp.
void QgsVectorLayerExporter::ExportOptions::setFilterExpression | ( | const QString & | expression | ) |
Set the filter expression for the features to export.
Only features matching this expression will be exported.
Definition at line 84 of file qgsvectorlayerexporter.cpp.
void QgsVectorLayerExporter::ExportOptions::setOutputFields | ( | const QList< QgsVectorLayerExporter::OutputField > & | fields | ) |
Sets the output field definitions for the destination table.
If empty, all input fields will be copied directly.
Definition at line 109 of file qgsvectorlayerexporter.cpp.
|
inline |
Sets whether the export should only include selected features.
Definition at line 119 of file qgsvectorlayerexporter.h.
void QgsVectorLayerExporter::ExportOptions::setTransformContext | ( | const QgsCoordinateTransformContext & | context | ) |
Sets the coordinate transform context to use when transforming exported features.
Definition at line 54 of file qgsvectorlayerexporter.cpp.
QgsCoordinateTransformContext QgsVectorLayerExporter::ExportOptions::transformContext | ( | ) | const |
Returns the coordinate transform context used when transforming exported features.
Definition at line 59 of file qgsvectorlayerexporter.cpp.