16 #ifndef QGSJSONUTILS_H 17 #define QGSJSONUTILS_H 86 void setIncludeRelated(
bool includeRelated ) { mIncludeRelatedAttributes = includeRelated; }
162 const QVariantMap& extraProperties = QVariantMap(),
186 bool mIncludeGeometry;
189 bool mIncludeAttributes;
192 bool mIncludeRelatedAttributes;
246 #endif // QGSJSONUTILS_H
Container of fields for a vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsAttributeList attributes() const
Returns the list of attributes which will be included in the JSON exports, or an empty list if all at...
void setIncludeRelated(bool includeRelated)
Sets whether to include attributes of features linked via references in the JSON exports.
Handles exporting QgsFeature features to GeoJSON features.
void setIncludeAttributes(bool includeAttributes)
Sets whether to include attributes in the JSON exports.
int precision() const
Returns the maximum number of decimal places to use in geometry coordinates.
void setAttributes(const QgsAttributeList &attributes)
Sets the list of attributes to include in the JSON exports.
void setIncludeGeometry(bool includeGeometry)
Sets whether to include geometry in the JSON exports.
void setPrecision(int precision)
Sets the maximum number of decimal places to use in geometry coordinates.
bool includeAttributes() const
Returns whether attributes will be included in the JSON exports.
Class for storing a coordinate reference system (CRS)
void setExcludedAttributes(const QgsAttributeList &attributes)
Sets a list of attributes to specifically exclude from the JSON exports.
bool includeRelated() const
Returns whether attributes of related (child) features will be included in the JSON exports...
bool includeGeometry() const
Returns whether geometry will be included in the JSON exports.
Represents a vector layer which manages a vector based data sets.
QgsAttributeList excludedAttributes() const
Returns a list of attributes which will be specifically excluded from the JSON exports.
Helper utilities for working with JSON and GeoJSON conversions.