QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Contains details about a sub layer available from a dataset. More...
#include <qgsprovidersublayerdetails.h>
Classes | |
struct | LayerOptions |
Setting options for loading layers. More... | |
Public Member Functions | |
QString | description () const |
Returns the layer's description. More... | |
QString | driverName () const |
Returns the layer's driver name. More... | |
long long | featureCount () const |
Returns the layer's feature count. More... | |
Qgis::SublayerFlags | flags () const |
Returns the layer's flags, which indicate properties of the layer. More... | |
QString | geometryColumnName () const |
Returns the layer's geometry column name, or an empty string if not applicable. More... | |
int | layerNumber () const |
Returns the associated layer number, for providers which order sublayers. More... | |
QString | name () const |
Returns the layer's name. More... | |
bool | operator!= (const QgsProviderSublayerDetails &other) const |
bool | operator== (const QgsProviderSublayerDetails &other) const |
QStringList | path () const |
Returns the path to the sublayer. More... | |
QString | providerKey () const |
Returns the associated data provider key. More... | |
void | setDescription (const QString &description) |
Sets the layer's description. More... | |
void | setDriverName (const QString &driver) |
Sets the layer's driver name. More... | |
void | setFeatureCount (long long count) |
Sets the layer's feature count. More... | |
void | setFlags (Qgis::SublayerFlags newFlags) |
Sets the layer's flags, which indicate properties of the layer. More... | |
void | setGeometryColumnName (const QString &name) |
Sets the layer's geometry column name. More... | |
void | setLayerNumber (int number) |
Sets the associated layer number, for providers which order sublayers. More... | |
void | setName (const QString &name) |
Sets the layer's name. More... | |
void | setPath (const QStringList &path) |
Sets the path to the sublayer. More... | |
void | setProviderKey (const QString &key) |
Sets the associated data provider key. More... | |
void | setSkippedContainerScan (bool skipped) |
Set to true if the layer is a potential dataset container and an in-depth scan of its contents was skipped. More... | |
void | setType (QgsMapLayerType type) |
Sets the layer type. More... | |
void | setUri (const QString &uri) |
Sets the layer's uri. More... | |
void | setWkbType (QgsWkbTypes::Type type) |
Set the layer's WKB type. More... | |
bool | skippedContainerScan () const |
Returns true if the layer is a potential dataset container and an in-depth scan of its contents was skipped. More... | |
QgsMapLayer * | toLayer (const LayerOptions &options) const |
Creates a new QgsMapLayer object associated with the sublayer. More... | |
QgsMapLayerType | type () const |
Returns the layer type. More... | |
QString | uri () const |
Returns the layer's URI. More... | |
QgsWkbTypes::Type | wkbType () const |
Returns the layer's WKB type, or QgsWkbTypes::Unknown if the WKB type is not application or unknown. More... | |
Contains details about a sub layer available from a dataset.
This class encapsulates the properties of a single sublayer available from a dataset, according to a specific data provider.
Definition at line 44 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's description.
Definition at line 136 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's driver name.
This is supported only for providers which handle multiple drivers.
Definition at line 166 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's feature count.
Will return Qgis::FeatureCountState::UnknownCount or Qgis::FeatureCountState::Uncounted if no feature count is applicable or available.
Definition at line 202 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's flags, which indicate properties of the layer.
Definition at line 150 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's geometry column name, or an empty string if not applicable.
Definition at line 234 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the associated layer number, for providers which order sublayers.
Definition at line 258 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's name.
Definition at line 122 of file qgsprovidersublayerdetails.h.
bool QgsProviderSublayerDetails::operator!= | ( | const QgsProviderSublayerDetails & | other | ) | const |
Definition at line 46 of file qgsprovidersublayerdetails.cpp.
bool QgsProviderSublayerDetails::operator== | ( | const QgsProviderSublayerDetails & | other | ) | const |
Definition at line 29 of file qgsprovidersublayerdetails.cpp.
|
inline |
Returns the path to the sublayer.
This is an internal path, relative to the dataset itself. It can be used to encapsulate the hierarchy of a dataset which organises layers in schemas or in an internal folder structure.
Definition at line 183 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the associated data provider key.
Definition at line 53 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's description.
Definition at line 143 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's driver name.
Definition at line 173 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's feature count.
Set to Qgis::FeatureCountState::UnknownCount or Qgis::FeatureCountState::Uncounted if no feature count is applicable or available.
Definition at line 211 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's flags, which indicate properties of the layer.
Definition at line 157 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's geometry column name.
Set to an empty string if not applicable.
Definition at line 243 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the associated layer number, for providers which order sublayers.
Definition at line 265 of file qgsprovidersublayerdetails.h.
|
inline |
|
inline |
Sets the path to the sublayer.
This is an internal path, relative to the dataset itself. It can be used to encapsulate the hierarchy of a dataset which organises layers in schemas or in an internal folder structure.
Definition at line 193 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the associated data provider key.
Definition at line 60 of file qgsprovidersublayerdetails.h.
|
inline |
Set to true
if the layer is a potential dataset container and an in-depth scan of its contents was skipped.
Definition at line 273 of file qgsprovidersublayerdetails.h.
|
inline |
|
inline |
|
inline |
Set the layer's WKB type.
Set to QgsWkbTypes::Unknown if the WKB type is not application or unknown.
Definition at line 227 of file qgsprovidersublayerdetails.h.
|
inline |
Returns true
if the layer is a potential dataset container and an in-depth scan of its contents was skipped.
Definition at line 281 of file qgsprovidersublayerdetails.h.
QgsMapLayer * QgsProviderSublayerDetails::toLayer | ( | const LayerOptions & | options | ) | const |
Creates a new QgsMapLayer object associated with the sublayer.
Caller takes ownership of the returned layer.
Definition at line 22 of file qgsprovidersublayerdetails.cpp.
|
inline |
Returns the layer type.
Definition at line 67 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's URI.
Definition at line 81 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's WKB type, or QgsWkbTypes::Unknown if the WKB type is not application or unknown.
Definition at line 218 of file qgsprovidersublayerdetails.h.