QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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. | |
QString | driverName () const |
Returns the layer's driver name. | |
long long | featureCount () const |
Returns the layer's feature count. | |
Qgis::SublayerFlags | flags () const |
Returns the layer's flags, which indicate properties of the layer. | |
QString | geometryColumnName () const |
Returns the layer's geometry column name, or an empty string if not applicable. | |
int | layerNumber () const |
Returns the associated layer number, for providers which order sublayers. | |
QString | name () const |
Returns the layer's name. | |
bool | operator!= (const QgsProviderSublayerDetails &other) const |
bool | operator== (const QgsProviderSublayerDetails &other) const |
QStringList | path () const |
Returns the path to the sublayer. | |
QString | providerKey () const |
Returns the associated data provider key. | |
void | setDescription (const QString &description) |
Sets the layer's description. | |
void | setDriverName (const QString &driver) |
Sets the layer's driver name. | |
void | setFeatureCount (long long count) |
Sets the layer's feature count. | |
void | setFlags (Qgis::SublayerFlags newFlags) |
Sets the layer's flags, which indicate properties of the layer. | |
void | setGeometryColumnName (const QString &name) |
Sets the layer's geometry column name. | |
void | setLayerNumber (int number) |
Sets the associated layer number, for providers which order sublayers. | |
void | setName (const QString &name) |
Sets the layer's name. | |
void | setPath (const QStringList &path) |
Sets the path to the sublayer. | |
void | setProviderKey (const QString &key) |
Sets the associated data provider key. | |
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. | |
void | setType (Qgis::LayerType type) |
Sets the layer type. | |
void | setUri (const QString &uri) |
Sets the layer's uri. | |
void | setWkbType (Qgis::WkbType type) |
Set the layer's WKB type. | |
bool | skippedContainerScan () const |
Returns true if the layer is a potential dataset container and an in-depth scan of its contents was skipped. | |
QgsMapLayer * | toLayer (const LayerOptions &options) const |
Creates a new QgsMapLayer object associated with the sublayer. | |
QgsMimeDataUtils::Uri | toMimeUri () const |
Converts the sublayer details to a QgsMimeDataUtils::Uri representing the sublayer. | |
Qgis::LayerType | type () const |
Returns the layer type. | |
QString | uri () const |
Returns the layer's URI. | |
Qgis::WkbType | wkbType () const |
Returns the layer's WKB type, or QgsWkbTypes::Unknown if the WKB type is not application or unknown. | |
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 45 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's description.
Definition at line 151 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's driver name.
This is supported only for providers which handle multiple drivers.
Definition at line 181 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 217 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's flags, which indicate properties of the layer.
Definition at line 165 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's geometry column name, or an empty string if not applicable.
Definition at line 249 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the associated layer number, for providers which order sublayers.
Definition at line 273 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's name.
Definition at line 137 of file qgsprovidersublayerdetails.h.
bool QgsProviderSublayerDetails::operator!= | ( | const QgsProviderSublayerDetails & | other | ) | const |
Definition at line 88 of file qgsprovidersublayerdetails.cpp.
bool QgsProviderSublayerDetails::operator== | ( | const QgsProviderSublayerDetails & | other | ) | const |
Definition at line 71 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 198 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the associated data provider key.
Definition at line 54 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's description.
Definition at line 158 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's driver name.
Definition at line 188 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 226 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's flags, which indicate properties of the layer.
Definition at line 172 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the layer's geometry column name.
Set to an empty string if not applicable.
Definition at line 258 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the associated layer number, for providers which order sublayers.
Definition at line 280 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 208 of file qgsprovidersublayerdetails.h.
|
inline |
Sets the associated data provider key.
Definition at line 61 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 288 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 242 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 296 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.
QgsMimeDataUtils::Uri QgsProviderSublayerDetails::toMimeUri | ( | ) | const |
Converts the sublayer details to a QgsMimeDataUtils::Uri representing the sublayer.
Definition at line 30 of file qgsprovidersublayerdetails.cpp.
|
inline |
Returns the layer type.
Definition at line 68 of file qgsprovidersublayerdetails.h.
|
inline |
Returns the layer's URI.
Definition at line 82 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 233 of file qgsprovidersublayerdetails.h.