QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Handles storage of information regarding WKB types and their properties. More...
#include <qgswkbtypes.h>
Static Public Member Functions | |
static Type | addM (Type type) |
Adds the m dimension to a WKB type and returns the new type. More... | |
static Type | addZ (Type type) |
Adds the z dimension to a WKB type and returns the new type. More... | |
static int | coordDimensions (Type type) |
Returns the coordinate dimension of the geometry type as an integer. More... | |
static QString | displayString (Type type) |
Returns a display string type for a WKB type, eg the geometry name used in WKT geometry representations. More... | |
static Type | dropM (Type type) |
Drops the m dimension (if present) for a WKB type and returns the new type. More... | |
static Type | dropZ (Type type) |
Drops the z dimension (if present) for a WKB type and returns the new type. More... | |
static Type | flatType (Type type) |
Returns the flat type for a WKB type. More... | |
static GeometryType | geometryType (Type type) |
Returns the geometry type for a WKB type, eg both MultiPolygon and CurvePolygon would have a PolygonGeometry geometry type. More... | |
static bool | hasM (Type type) |
Tests whether a WKB type contains m values. More... | |
static bool | hasZ (Type type) |
Tests whether a WKB type contains the z-dimension. More... | |
static bool | isCurvedType (Type type) |
Returns true if the WKB type is a curved type or can contain curved geometries. More... | |
static bool | isMultiType (Type type) |
Returns true if the WKB type is a multi type. More... | |
static bool | isSingleType (Type type) |
Returns true if the WKB type is a single type. More... | |
static Type | multiType (Type type) |
Returns the multi type for a WKB type. More... | |
static Type | parseType (const QString &wktStr) |
Attempts to extract the WKB type from a WKT string. More... | |
static Type | singleType (Type type) |
Returns the single type for a WKB type. More... | |
static Type | to25D (Type type) |
Will convert the 25D version of the flat type if supported or Unknown if not supported. More... | |
static int | wkbDimensions (Type type) |
Returns the inherent dimension of the geometry type as an integer. More... | |
static Type | zmType (Type type, bool hasZ, bool hasM) |
Returns the modified input geometry type according to hasZ / hasM. More... | |
Handles storage of information regarding WKB types and their properties.
Definition at line 36 of file qgswkbtypes.h.
Enumerator | |
---|---|
PointGeometry | |
LineGeometry | |
PolygonGeometry | |
UnknownGeometry | |
NullGeometry |
Definition at line 100 of file qgswkbtypes.h.
enum QgsWKBTypes::Type |
Definition at line 40 of file qgswkbtypes.h.
Adds the m dimension to a WKB type and returns the new type.
type | original type |
Definition at line 781 of file qgswkbtypes.h.
Adds the z dimension to a WKB type and returns the new type.
type | original type |
Definition at line 757 of file qgswkbtypes.h.
|
inlinestatic |
Returns the coordinate dimension of the geometry type as an integer.
Returned value will be between 2-4, depending on whether the geometry type contains the Z or M dimensions. Invalid geometry types will return a dimension of 0.
Definition at line 573 of file qgswkbtypes.h.
Returns a display string type for a WKB type, eg the geometry name used in WKT geometry representations.
Definition at line 48 of file qgswkbtypes.cpp.
Drops the m dimension (if present) for a WKB type and returns the new type.
type | original type |
Definition at line 828 of file qgswkbtypes.h.
Drops the z dimension (if present) for a WKB type and returns the new type.
type | original type |
Definition at line 811 of file qgswkbtypes.h.
Returns the flat type for a WKB type.
This is the WKB type minus any Z or M dimensions. Eg, for PolygonZM WKB types the single type would be Polygon.
Definition at line 366 of file qgswkbtypes.h.
|
inlinestatic |
Returns the geometry type for a WKB type, eg both MultiPolygon and CurvePolygon would have a PolygonGeometry geometry type.
Definition at line 584 of file qgswkbtypes.h.
|
inlinestatic |
Tests whether a WKB type contains m values.
Definition at line 714 of file qgswkbtypes.h.
|
inlinestatic |
Tests whether a WKB type contains the z-dimension.
Definition at line 667 of file qgswkbtypes.h.
|
inlinestatic |
Returns true if the WKB type is a curved type or can contain curved geometries.
Definition at line 531 of file qgswkbtypes.h.
|
inlinestatic |
Returns true if the WKB type is a multi type.
Definition at line 487 of file qgswkbtypes.h.
|
inlinestatic |
Returns true if the WKB type is a single type.
Definition at line 478 of file qgswkbtypes.h.
Returns the multi type for a WKB type.
Eg, for Polygon WKB types the multi type would be MultiPolygon.
Definition at line 240 of file qgswkbtypes.h.
|
static |
Attempts to extract the WKB type from a WKT string.
wktStr | a valid WKT string |
Definition at line 32 of file qgswkbtypes.cpp.
Returns the single type for a WKB type.
Eg, for MultiPolygon WKB types the single type would be Polygon.
Definition at line 114 of file qgswkbtypes.h.
Will convert the 25D version of the flat type if supported or Unknown if not supported.
type | The type to convert |
Definition at line 844 of file qgswkbtypes.h.
|
inlinestatic |
Returns the inherent dimension of the geometry type as an integer.
Returned value will always be less than or equal to the coordinate dimension.
Definition at line 553 of file qgswkbtypes.h.
Returns the modified input geometry type according to hasZ / hasM.
Definition at line 459 of file qgswkbtypes.h.