mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
class QgsFeatureStore
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsfeaturestore.h>
|
|
%End
|
|
public:
|
|
//! Constructor
|
|
QgsFeatureStore();
|
|
|
|
//! Constructor
|
|
QgsFeatureStore( const QgsFields& fields, const QgsCoordinateReferenceSystem& crs );
|
|
|
|
/** Get fields list */
|
|
QgsFields& fields();
|
|
|
|
/** Set fields. Resets feature's fields to pointer to new internal fields. */
|
|
void setFields( const QgsFields & fields );
|
|
|
|
/** Get crs */
|
|
QgsCoordinateReferenceSystem crs() const;
|
|
|
|
/** Set crs */
|
|
void setCrs( const QgsCoordinateReferenceSystem& crs );
|
|
|
|
/** Add feature. Feature's fields will be set to pointer to the store fields.
|
|
* @param feature
|
|
* @note added in 2.1
|
|
*/
|
|
void addFeature( const QgsFeature& feature );
|
|
|
|
/** Get features list reference */
|
|
QgsFeatureList& features();
|
|
|
|
/** Set map of optional parameters */
|
|
void setParams( const QMap<QString, QVariant> &theParams );
|
|
|
|
/** Get map of optional parameters */
|
|
QMap<QString, QVariant> params() const;
|
|
};
|