16 #ifndef QGSPROVIDERSUBLAYERDETAILS_H
17 #define QGSPROVIDERSUBLAYERDETAILS_H
19 #include "qgis_core.h"
25 #include <QStringList>
81 QString
uri()
const {
return mUri; }
88 void setUri(
const QString &uri ) { mUri = uri; }
100 : transformContext( transformContext )
107 bool loadDefaultStyle =
true;
122 QString
name()
const {
return mName; }
129 void setName(
const QString &name ) { mName = name; }
143 void setDescription(
const QString &description ) { mDescription = description; }
150 Qgis::SublayerFlags
flags()
const {
return mFlags; }
157 void setFlags( Qgis::SublayerFlags newFlags ) { mFlags = newFlags; }
183 QStringList
path()
const {
return mPath; }
193 void setPath(
const QStringList &path ) { mPath = path; }
246 SIP_PYOBJECT __repr__();
248 QString
str = QStringLiteral(
"<QgsProviderSublayerDetails: %1 - %2>" ).arg( sipCpp->providerKey(), sipCpp->name() );
249 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
289 QString mProviderKey;
292 int mLayerNumber = 0;
294 QString mDescription;
296 QString mGeometryColumnName;
300 bool mSkippedContainerScan =
false;
301 Qgis::SublayerFlags mFlags = Qgis::SublayerFlags();
Contains information about the context in which a coordinate transform is executed.
Base class for all map layer types.
Contains details about a sub layer available from a dataset.
QString description() const
Returns the layer's description.
QStringList path() const
Returns the path to the sublayer.
void setWkbType(QgsWkbTypes::Type type)
Set the layer's WKB type.
long long featureCount() const
Returns the layer's feature count.
int layerNumber() const
Returns the associated layer number, for providers which order sublayers.
void setUri(const QString &uri)
Sets the layer's uri.
void setLayerNumber(int number)
Sets the associated layer number, for providers which order sublayers.
void setDescription(const QString &description)
Sets the layer's description.
QgsWkbTypes::Type wkbType() const
Returns the layer's WKB type, or QgsWkbTypes::Unknown if the WKB type is not application or unknown.
void setGeometryColumnName(const QString &name)
Sets the layer's geometry column name.
void setName(const QString &name)
Sets the layer's name.
void setFeatureCount(long long count)
Sets the layer's feature count.
QString uri() const
Returns the layer's URI.
void setProviderKey(const QString &key)
Sets the associated data provider key.
void setDriverName(const QString &driver)
Sets the layer's driver name.
QgsMapLayerType type() const
Returns the layer type.
void setPath(const QStringList &path)
Sets the path to the sublayer.
void setSkippedContainerScan(bool skipped)
Set to true if the layer is a potential dataset container and an in-depth scan of its contents was sk...
QString driverName() const
Returns the layer's driver name.
void setType(QgsMapLayerType type)
Sets the layer type.
QString providerKey() const
Returns the associated data provider key.
bool skippedContainerScan() const
Returns true if the layer is a potential dataset container and an in-depth scan of its contents was s...
QString geometryColumnName() const
Returns the layer's geometry column name, or an empty string if not applicable.
Qgis::SublayerFlags flags() const
Returns the layer's flags, which indicate properties of the layer.
void setFlags(Qgis::SublayerFlags newFlags)
Sets the layer's flags, which indicate properties of the layer.
QString name() const
Returns the layer's name.
Type
The WKB type describes the number of dimensions a geometry has.
QgsMapLayerType
Types of layers that can be added to a map.
@ UnknownCount
Provider returned an unknown feature count.
@ VectorLayer
Vector layer.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Setting options for loading layers.
QgsCoordinateTransformContext transformContext
Coordinate transform context.
LayerOptions(const QgsCoordinateTransformContext &transformContext)
Constructor for LayerOptions with transformContext.