QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Defines the parameters used to remap features when creating a QgsRemappingProxyFeatureSink. More...
#include <qgsremappingproxyfeaturesink.h>
Public Member Functions | |
void | addMappedField (const QString &destinationField, const QgsProperty &property) |
Adds a mapping for a destination field. | |
QgsCoordinateReferenceSystem | destinationCrs () const |
Returns the destination CRS used for reprojecting incoming features to the sink's destination CRS. | |
QgsFields | destinationFields () const |
Returns the fields for the destination sink. | |
Qgis::WkbType | destinationWkbType () const |
Returns the WKB geometry type for the destination. | |
QMap< QString, QgsProperty > | fieldMap () const |
Returns the field mapping, which defines how to map the values from incoming features to destination field values. | |
bool | loadVariant (const QVariantMap &map) |
Loads this remapping definition from a QVariantMap, wrapped in a QVariant. | |
bool | operator!= (const QgsRemappingSinkDefinition &other) const |
bool | operator== (const QgsRemappingSinkDefinition &other) const |
void | setDestinationCrs (const QgsCoordinateReferenceSystem &destination) |
Sets the destination crs used for reprojecting incoming features to the sink's destination CRS. | |
void | setDestinationFields (const QgsFields &fields) |
Sets the fields for the destination sink. | |
void | setDestinationWkbType (Qgis::WkbType type) |
Sets the WKB geometry type for the destination. | |
void | setFieldMap (const QMap< QString, QgsProperty > &map) |
Sets the field mapping, which defines how to map the values from incoming features to destination field values. | |
void | setSourceCrs (const QgsCoordinateReferenceSystem &source) |
Sets the source crs used for reprojecting incoming features to the sink's destination CRS. | |
QgsCoordinateReferenceSystem | sourceCrs () const |
Returns the source CRS used for reprojecting incoming features to the sink's destination CRS. | |
QVariant | toVariant () const |
Saves this remapping definition to a QVariantMap, wrapped in a QVariant. | |
Defines the parameters used to remap features when creating a QgsRemappingProxyFeatureSink.
The definition includes parameters required to correctly map incoming features to the structure of the destination sink, e.g. information about how to create output field values and how to transform geometries to match the destination CRS.
Definition at line 38 of file qgsremappingproxyfeaturesink.h.
|
inline |
Adds a mapping for a destination field.
Field values are mapped using a QgsProperty source object, which allows either direct field value to field value mapping or use of QgsExpression expressions to transform values to the destination field.
Definition at line 75 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the destination CRS used for reprojecting incoming features to the sink's destination CRS.
Definition at line 96 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the fields for the destination sink.
Definition at line 124 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the WKB geometry type for the destination.
Definition at line 110 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the field mapping, which defines how to map the values from incoming features to destination field values.
Field values are mapped using a QgsProperty source object, which allows either direct field value to field value mapping or use of QgsExpression expressions to transform values to the destination field.
Definition at line 52 of file qgsremappingproxyfeaturesink.h.
bool QgsRemappingSinkDefinition::loadVariant | ( | const QVariantMap & | map | ) |
Loads this remapping definition from a QVariantMap, wrapped in a QVariant.
You can use QgsXmlUtils::readVariant to load it from an XML document.
Definition at line 160 of file qgsremappingproxyfeaturesink.cpp.
bool QgsRemappingSinkDefinition::operator!= | ( | const QgsRemappingSinkDefinition & | other | ) | const |
Definition at line 196 of file qgsremappingproxyfeaturesink.cpp.
bool QgsRemappingSinkDefinition::operator== | ( | const QgsRemappingSinkDefinition & | other | ) | const |
Definition at line 187 of file qgsremappingproxyfeaturesink.cpp.
|
inline |
Sets the destination crs used for reprojecting incoming features to the sink's destination CRS.
Definition at line 103 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the fields for the destination sink.
Definition at line 131 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the WKB geometry type for the destination.
Definition at line 117 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the field mapping, which defines how to map the values from incoming features to destination field values.
Field values are mapped using a QgsProperty source object, which allows either direct field value to field value mapping or use of QgsExpression expressions to transform values to the destination field.
Definition at line 64 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the source crs used for reprojecting incoming features to the sink's destination CRS.
Definition at line 89 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the source CRS used for reprojecting incoming features to the sink's destination CRS.
Definition at line 82 of file qgsremappingproxyfeaturesink.h.
QVariant QgsRemappingSinkDefinition::toVariant | ( | ) | const |
Saves this remapping definition to a QVariantMap, wrapped in a QVariant.
You can use QgsXmlUtils::writeVariant to save it to an XML document.
Definition at line 138 of file qgsremappingproxyfeaturesink.cpp.