QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSREMAPPINGPROXYFEATURESINK_H
19 #define QGSREMAPPINGPROXYFEATURESINK_H
21 #include "qgis_core.h"
51 QMap< QString, QgsProperty >
fieldMap()
const {
return mFieldMap; }
63 void setFieldMap(
const QMap< QString, QgsProperty > &map ) { mFieldMap = map; }
74 void addMappedField(
const QString &destinationField,
const QgsProperty &property ) { mFieldMap.insert( destinationField, property ); }
137 QVariant toVariant()
const;
144 bool loadVariant(
const QVariantMap &map );
151 QMap< QString, QgsProperty > mFieldMap;
219 bool addFeature(
QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() )
override;
220 bool addFeatures(
QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() )
override;
221 bool addFeatures(
QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() )
override;
222 QString lastError()
const override;
235 bool mOwnsSink =
false;
238 #endif // QGSREMAPPINGPROXYFEATURESINK_H
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
QgsFeatureSink * destinationSink()
Returns the destination QgsFeatureSink which the proxy will forward features to.
Contains information about the context in which a coordinate transform is executed.
void setDestinationWkbType(QgsWkbTypes::Type type)
Sets the WKB geometry type for the destination.
A store for object properties.
void setDestinationCrs(const QgsCoordinateReferenceSystem &destination)
Sets the destination crs used for reprojecting incoming features to the sink's destination CRS.
Defines the parameters used to remap features when creating a QgsRemappingProxyFeatureSink.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QgsCoordinateReferenceSystem destinationCrs() const
Returns the destination CRS used for reprojecting incoming features to the sink's destination CRS.
Container of fields for a vector layer.
QgsWkbTypes::Type destinationWkbType() const
Returns the WKB geometry type for the destination.
Type
The WKB type describes the number of dimensions a geometry has.
QMap< QString, QgsProperty > fieldMap() const
Returns the field mapping, which defines how to map the values from incoming features to destination ...
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
void setSourceCrs(const QgsCoordinateReferenceSystem &source)
Sets the source crs used for reprojecting incoming features to the sink's destination CRS.
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
void setDestinationFields(const QgsFields &fields)
Sets the fields for the destination sink.
QList< QgsFeature > QgsFeatureList
void addMappedField(const QString &destinationField, const QgsProperty &property)
Adds a mapping for a destination field.
QgsFields destinationFields() const
Returns the fields for the destination sink.
This class represents a coordinate reference system (CRS).
A QgsFeatureSink which proxies incoming features to a destination feature sink, after applying transf...
void setFieldMap(const QMap< QString, QgsProperty > &map)
Sets the field mapping, which defines how to map the values from incoming features to destination fie...
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsCoordinateReferenceSystem sourceCrs() const
Returns the source CRS used for reprojecting incoming features to the sink's destination CRS.
Wrapper for iterator of features from vector data provider or vector layer.
An interface for objects which accept features via addFeature(s) methods.