35 case Qgis::GeometryType::Null:
37 case Qgis::GeometryType::Point:
39 case Qgis::GeometryType::Line:
41 case Qgis::GeometryType::Polygon:
43 case Qgis::GeometryType::Unknown:
101 switch ( layer->
type() )
103 case Qgis::LayerType::Raster:
104 case Qgis::LayerType::Mesh:
105 case Qgis::LayerType::VectorTile:
106 case Qgis::LayerType::PointCloud:
107 case Qgis::LayerType::Plugin:
108 case Qgis::LayerType::Annotation:
109 case Qgis::LayerType::Group:
114 case Qgis::LayerType::Vector:
116 const QgsVectorLayer *vl = qobject_cast<const QgsVectorLayer *>( layer );
124 case Qgis::GeometryType::Point:
128 case Qgis::GeometryType::Polygon:
132 case Qgis::GeometryType::Line:
136 case Qgis::GeometryType::Null:
140 case Qgis::GeometryType::Unknown:
154 case Qgis::LayerType::Raster:
157 case Qgis::LayerType::Mesh:
160 case Qgis::LayerType::VectorTile:
163 case Qgis::LayerType::PointCloud:
166 case Qgis::LayerType::Vector:
169 case Qgis::LayerType::Annotation:
172 case Qgis::LayerType::Plugin:
173 case Qgis::LayerType::Group:
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
LayerType
Types of layers that can be added to a map.
WkbType
The WKB type describes the number of dimensions a geometry has.
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
static QIcon iconForLayerType(Qgis::LayerType type)
Returns the default icon for the specified layer type.
static QIcon iconLine()
Returns an icon representing line geometries.
static QIcon iconPolygon()
Returns an icon representing polygon geometries.
static QIcon iconForWkbType(Qgis::WkbType type)
Returns the icon for a vector layer whose geometry type is provided.
static QIcon iconGeometryCollection()
Returns an icon representing geometry collections.
static QIcon iconDefaultLayer()
Returns a default icon for layers, which aren't the standard raster/vector/... types.
static QIcon iconPointCloud()
Returns an icon representing point cloud layers.
static QIcon iconForGeometryType(Qgis::GeometryType typeGroup)
Returns the icon for a vector layer whose geometry typeGroup is provided.
static QIcon iconPoint()
Returns an icon representing point geometries.
static QIcon iconTable()
Returns an icon representing non-spatial layers (tables).
static QIcon iconRaster()
Returns an icon representing raster layers.
static QIcon iconForLayer(const QgsMapLayer *layer)
Returns the icon corresponding to a specified map layer.
static QIcon iconMesh()
Returns an icon representing mesh layers.
static QIcon iconVectorTile()
Returns an icon representing vector tile layers.
Base class for all map layer types.
Represents a vector layer which manages a vector based data sets.
Q_INVOKABLE Qgis::GeometryType geometryType() const
Returns point, line or polygon.
static Qgis::GeometryType geometryType(Qgis::WkbType type) SIP_HOLDGIL
Returns the geometry type for a WKB type, e.g., both MultiPolygon and CurvePolygon would have a Polyg...