QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsremappingproxyfeaturesink.h>
Public Member Functions | |
void | addMappedField (const QString &destinationField, const QgsProperty &property) |
Adds a mapping for a destination field. More... | |
QgsCoordinateReferenceSystem | destinationCrs () const |
Returns the destination CRS used for reprojecting incoming features to the sink's destination CRS. More... | |
QgsFields | destinationFields () const |
Returns the fields for the destination sink. More... | |
QgsWkbTypes::Type | destinationWkbType () const |
Returns the WKB geometry type for the destination. More... | |
QMap< QString, QgsProperty > | fieldMap () const |
Returns the field mapping, which defines how to map the values from incoming features to destination field values. More... | |
bool | loadVariant (const QVariantMap &map) |
Loads this remapping definition from a QVariantMap, wrapped in a QVariant. More... | |
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. More... | |
void | setDestinationFields (const QgsFields &fields) |
Sets the fields for the destination sink. More... | |
void | setDestinationWkbType (QgsWkbTypes::Type type) |
Sets the WKB geometry type for the destination. More... | |
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. More... | |
void | setSourceCrs (const QgsCoordinateReferenceSystem &source) |
Sets the source crs used for reprojecting incoming features to the sink's destination CRS. More... | |
QgsCoordinateReferenceSystem | sourceCrs () const |
Returns the source CRS used for reprojecting incoming features to the sink's destination CRS. More... | |
QVariant | toVariant () const |
Saves this remapping definition to a QVariantMap, wrapped in a QVariant. More... | |
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 37 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 74 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the destination CRS used for reprojecting incoming features to the sink's destination CRS.
Definition at line 95 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the fields for the destination sink.
Definition at line 123 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the WKB geometry type for the destination.
Definition at line 109 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 51 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 155 of file qgsremappingproxyfeaturesink.cpp.
bool QgsRemappingSinkDefinition::operator!= | ( | const QgsRemappingSinkDefinition & | other | ) | const |
Definition at line 191 of file qgsremappingproxyfeaturesink.cpp.
bool QgsRemappingSinkDefinition::operator== | ( | const QgsRemappingSinkDefinition & | other | ) | const |
Definition at line 182 of file qgsremappingproxyfeaturesink.cpp.
|
inline |
Sets the destination crs used for reprojecting incoming features to the sink's destination CRS.
Definition at line 102 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the fields for the destination sink.
Definition at line 130 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the WKB geometry type for the destination.
Definition at line 116 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 63 of file qgsremappingproxyfeaturesink.h.
|
inline |
Sets the source crs used for reprojecting incoming features to the sink's destination CRS.
Definition at line 88 of file qgsremappingproxyfeaturesink.h.
|
inline |
Returns the source CRS used for reprojecting incoming features to the sink's destination CRS.
Definition at line 81 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 133 of file qgsremappingproxyfeaturesink.cpp.