16#ifndef QGSPROVIDERSUBLAYERDETAILS_H
17#define QGSPROVIDERSUBLAYERDETAILS_H
82 QString
uri()
const {
return mUri; }
89 void setUri(
const QString &uri ) { mUri = uri; }
101 : transformContext( transformContext )
108 bool loadDefaultStyle =
true;
123 QString
name()
const {
return mName; }
130 void setName(
const QString &name ) { mName = name; }
144 void setDescription(
const QString &description ) { mDescription = description; }
151 Qgis::SublayerFlags
flags()
const {
return mFlags; }
158 void setFlags( Qgis::SublayerFlags newFlags ) { mFlags = newFlags; }
184 QStringList
path()
const {
return mPath; }
194 void setPath(
const QStringList &path ) { mPath = path; }
247 SIP_PYOBJECT __repr__();
249 QString
str = QStringLiteral(
"<QgsProviderSublayerDetails: %1 - %2>" ).arg( sipCpp->providerKey(), sipCpp->name() );
250 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
297 QString mProviderKey;
300 int mLayerNumber = 0;
302 QString mDescription;
304 QString mGeometryColumnName;
308 bool mSkippedContainerScan =
false;
309 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.