QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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();
305 #endif //QGSPROVIDERSUBLAYERDETAILS_H
@ UnknownCount
Provider returned an unknown feature count.
LayerOptions(const QgsCoordinateTransformContext &transformContext)
Constructor for LayerOptions with transformContext.
void setFlags(Qgis::SublayerFlags newFlags)
Sets the layer's flags, which indicate properties of the layer.
Contains information about the context in which a coordinate transform is executed.
void setPath(const QStringList &path)
Sets the path to the sublayer.
QString driverName() const
Returns the layer's driver name.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
@ VectorLayer
Vector layer.
QString uri() const
Returns the layer's URI.
void setWkbType(QgsWkbTypes::Type type)
Set the layer's WKB type.
void setDescription(const QString &description)
Sets the layer's description.
QgsMapLayerType
Types of layers that can be added to a map.
QStringList path() const
Returns the path to the sublayer.
bool skippedContainerScan() const
Returns true if the layer is a potential dataset container and an in-depth scan of its contents was s...
Type
The WKB type describes the number of dimensions a geometry has.
void setDriverName(const QString &driver)
Sets the layer's driver name.
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
void setName(const QString &name)
Sets the layer's name.
long long featureCount() const
Returns the layer's feature count.
void setLayerNumber(int number)
Sets the associated layer number, for providers which order sublayers.
void setProviderKey(const QString &key)
Sets the associated data provider key.
void setFeatureCount(long long count)
Sets the layer's feature count.
QString providerKey() const
Returns the associated data provider key.
Contains details about a sub layer available from a dataset.
void setUri(const QString &uri)
Sets the layer's uri.
QString name() const
Returns the layer's name.
Setting options for loading layers.
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.
Base class for all map layer types. This is the base class for all map layer types (vector,...
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...
QgsMapLayerType type() const
Returns the layer type.
QgsWkbTypes::Type wkbType() const
Returns the layer's WKB type, or QgsWkbTypes::Unknown if the WKB type is not application or unknown.
void setType(QgsMapLayerType type)
Sets the layer type.
QString description() const
Returns the layer's description.
QgsCoordinateTransformContext transformContext
Coordinate transform context.
Qgis::SublayerFlags flags() const
Returns the layer's flags, which indicate properties of the layer.
void setGeometryColumnName(const QString &name)
Sets the layer's geometry column name.