File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,29 @@ class CORE_EXPORT QgsWkbTypes
3939{
4040 public:
4141
42+ /* *
43+ * The WKB type describes the number of dimensions a geometry has
44+ *
45+ * - Point
46+ * - LineString
47+ * - Polygon
48+ *
49+ * as well as the number of dimensions for each individual vertex
50+ *
51+ * - X (always)
52+ * - Y (always)
53+ * - Z (optional)
54+ * - M (measurement value, optional)
55+ *
56+ * it also has values for multi types, collections, unknown geometry,
57+ * null geometry, no geometry and curve support.
58+ *
59+ * These classes of geometry are often used for data sources to
60+ * communicate what kind of geometry should be expected for a given
61+ * geometry field. It is also used for tools or algorithms to decide
62+ * if they should be available for a given geometry type or act in
63+ * a different mode.
64+ */
4265 enum Type
4366 {
4467 Unknown = 0 ,
@@ -99,6 +122,12 @@ class CORE_EXPORT QgsWkbTypes
99122 MultiPolygon25D
100123 };
101124
125+ /* *
126+ * The geometry types are used to group QgsWkbTypes::Type in a
127+ * coarse way.
128+ *
129+ * @see geometryType( QgsWkbTypes::Type )
130+ */
102131 enum GeometryType
103132 {
104133 PointGeometry,
@@ -582,6 +611,7 @@ class CORE_EXPORT QgsWkbTypes
582611
583612 /* * Returns the geometry type for a WKB type, e.g., both MultiPolygon and CurvePolygon would have a
584613 * PolygonGeometry geometry type.
614+ * GeometryCollections are reported as QgsWkbTypes::UnknownGeometry.
585615 */
586616 static GeometryType geometryType ( Type type )
587617 {
You can’t perform that action at this time.
0 commit comments