376      switch ( geometryType( type ) )
 
  385          return multiType( type );
 
 
  784      type = flatType( type );
 
  786        type = 
static_cast<Qgis::WkbType>( 
static_cast<quint32
>( type ) + 1000 );
 
  788        type = 
static_cast<Qgis::WkbType>( 
static_cast<quint32
>( type ) + 2000 );
 
 
  871      switch ( flatType( type ) )
 
 
  917      return 2 + hasZ( type ) + hasM( type );
 
 
 1159        return static_cast< Qgis::WkbType >( 
static_cast< quint32
>( flat ) + 3000 );
 
 1161        return static_cast<Qgis::WkbType >( 
static_cast< quint32
>( flat ) + 1000 );
 
 
 1195        return static_cast< Qgis::WkbType >( 
static_cast< quint32 
>( flat ) + 3000 );
 
 1197        return static_cast< Qgis::WkbType >( 
static_cast< quint32 
>( flat ) + 2000 );
 
 
 1208      if ( !hasZ( type ) )
 
 1213        returnType = addM( returnType );
 
 
 1225      if ( !hasM( type ) )
 
 1230        returnType = addZ( returnType );
 
 
 1244        return static_cast< Qgis::WkbType >( 
static_cast< quint32 
>( flat ) + 0x80000000U );
 
 
 
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
 
WkbType
The WKB type describes the number of dimensions a geometry has.
 
@ LineString25D
LineString25D.
 
@ MultiSurfaceM
MultiSurfaceM.
 
@ PolyhedralSurfaceM
PolyhedralSurfaceM.
 
@ MultiLineStringZM
MultiLineStringZM.
 
@ MultiPointZM
MultiPointZM.
 
@ MultiPointZ
MultiPointZ.
 
@ CompoundCurve
CompoundCurve.
 
@ MultiPolygonZM
MultiPolygonZM.
 
@ LineStringM
LineStringM.
 
@ MultiLineStringM
MultiLineStringM.
 
@ MultiPolygon25D
MultiPolygon25D.
 
@ MultiPointM
MultiPointM.
 
@ LineStringZM
LineStringZM.
 
@ GeometryCollectionZM
GeometryCollectionZM.
 
@ CompoundCurveZM
CompoundCurveZM.
 
@ CompoundCurveM
CompoundCurveM.
 
@ MultiLineString25D
MultiLineString25D.
 
@ MultiPolygon
MultiPolygon.
 
@ GeometryCollectionZ
GeometryCollectionZ.
 
@ GeometryCollectionM
GeometryCollectionM.
 
@ CircularStringZM
CircularStringZM.
 
@ MultiSurfaceZ
MultiSurfaceZ.
 
@ CurvePolygonZM
CurvePolygonZM.
 
@ MultiLineString
MultiLineString.
 
@ MultiPolygonM
MultiPolygonM.
 
@ MultiCurveZM
MultiCurveZM.
 
@ MultiSurfaceZM
MultiSurfaceZM.
 
@ MultiPoint25D
MultiPoint25D.
 
@ CurvePolygonM
CurvePolygonM.
 
@ CircularString
CircularString.
 
@ MultiLineStringZ
MultiLineStringZ.
 
@ GeometryCollection
GeometryCollection.
 
@ PolyhedralSurfaceZM
PolyhedralSurfaceM.
 
@ MultiPolygonZ
MultiPolygonZ.
 
@ CurvePolygonZ
CurvePolygonZ.
 
@ CompoundCurveZ
CompoundCurveZ.
 
@ MultiCurveZ
MultiCurveZ.
 
@ MultiCurveM
MultiCurveM.
 
@ PolyhedralSurfaceZ
PolyhedralSurfaceZ.
 
@ CircularStringM
CircularStringM.
 
@ CurvePolygon
CurvePolygon.
 
@ CircularStringZ
CircularStringZ.
 
@ LineStringZ
LineStringZ.
 
@ PolyhedralSurface
PolyhedralSurface.
 
@ MultiSurface
MultiSurface.
 
Handles storage of information regarding WKB types and their properties.
 
static Qgis::WkbType dropM(Qgis::WkbType type)
Drops the m dimension (if present) for a WKB type and returns the new type.
 
static Qgis::WkbType zmType(Qgis::WkbType type, bool hasZ, bool hasM)
Returns the modified input geometry type according to hasZ / hasM.
 
static Qgis::GeometryType geometryType(Qgis::WkbType type)
Returns the geometry type for a WKB type, e.g., both MultiPolygon and CurvePolygon would have a Polyg...
 
static int wkbDimensions(Qgis::WkbType type)
Returns the inherent dimension of the geometry type as an integer.
 
static Qgis::WkbType to25D(Qgis::WkbType type)
Will convert the 25D version of the flat type if supported or Unknown if not supported.
 
static Qgis::WkbType linearType(Qgis::WkbType type)
Returns the linear type for a WKB type.
 
static Qgis::WkbType dropZ(Qgis::WkbType type)
Drops the z dimension (if present) for a WKB type and returns the new type.
 
static Qgis::WkbType parseType(const QString &wktStr)
Attempts to extract the WKB type from a WKT string.
 
static Qgis::WkbType promoteNonPointTypesToMulti(Qgis::WkbType type)
Promotes a WKB geometry type to its multi-type equivalent, with the exception of point geometry types...
 
static Qgis::WkbType addM(Qgis::WkbType type)
Adds the m dimension to a WKB type and returns the new type.
 
static Qgis::WkbType addZ(Qgis::WkbType type)
Adds the z dimension to a WKB type and returns the new type.
 
static Q_INVOKABLE bool isSingleType(Qgis::WkbType type)
Returns true if the WKB type is a single type.
 
static Q_INVOKABLE bool hasZ(Qgis::WkbType type)
Tests whether a WKB type contains the z-dimension.
 
static Qgis::WkbType singleType(Qgis::WkbType type)
Returns the single type for a WKB type.
 
static Q_INVOKABLE bool hasM(Qgis::WkbType type)
Tests whether a WKB type contains m values.
 
static Q_INVOKABLE bool isCurvedType(Qgis::WkbType type)
Returns true if the WKB type is a curved type or can contain curved geometries.
 
static Qgis::WkbType multiType(Qgis::WkbType type)
Returns the multi type for a WKB type.
 
static Qgis::WkbType flatType(Qgis::WkbType type)
Returns the flat type for a WKB type.
 
static Q_INVOKABLE bool isMultiType(Qgis::WkbType type)
Returns true if the WKB type is a multi type.
 
static Q_INVOKABLE int coordDimensions(Qgis::WkbType type)
Returns the coordinate dimension of the geometry type as an integer.
 
static Qgis::WkbType curveType(Qgis::WkbType type)
Returns the curve type for a WKB type.