QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Contains geometry creation routines. More...
#include <qgsgeometryfactory.h>
Static Public Member Functions | |
static std::unique_ptr< QgsGeometryCollection > | createCollectionOfType (QgsWkbTypes::Type type) |
Returns a new geometry collection matching a specified WKB type. More... | |
static std::unique_ptr< QgsMultiPoint > | fromMultiPointXY (const QgsMultiPointXY &multipoint) |
Construct geometry from a multipoint. More... | |
static std::unique_ptr< QgsMultiPolygon > | fromMultiPolygonXY (const QgsMultiPolygonXY &multipoly) |
Construct geometry from a multipolygon. More... | |
static std::unique_ptr< QgsMultiLineString > | fromMultiPolylineXY (const QgsMultiPolylineXY &multiline) |
Construct geometry from a multipolyline. More... | |
static std::unique_ptr< QgsAbstractGeometry > | fromPointXY (const QgsPointXY &point) |
Construct geometry from a point. More... | |
static std::unique_ptr< QgsPolygon > | fromPolygonXY (const QgsPolygonXY &polygon) |
Construct geometry from a polygon. More... | |
static std::unique_ptr< QgsAbstractGeometry > | fromPolylineXY (const QgsPolylineXY &polyline) |
Construct geometry from a polyline. More... | |
static std::unique_ptr< QgsAbstractGeometry > | geomFromWkb (QgsConstWkbPtr &wkb) |
Construct geometry from a WKB string. More... | |
static std::unique_ptr< QgsAbstractGeometry > | geomFromWkbType (QgsWkbTypes::Type t) |
Returns empty geometry from wkb type. More... | |
static std::unique_ptr< QgsAbstractGeometry > | geomFromWkt (const QString &text) |
Construct geometry from a WKT string. More... | |
Contains geometry creation routines.
Definition at line 53 of file qgsgeometryfactory.h.
|
static |
Returns a new geometry collection matching a specified WKB type.
For instance, if type is PolygonM the returned geometry will be a QgsMultiPolygon with M values.
Definition at line 264 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a multipoint.
Definition at line 144 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a multipolygon.
Definition at line 197 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a multipolyline.
Definition at line 162 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a point.
Definition at line 139 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a polygon.
Definition at line 173 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a polyline.
Definition at line 157 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a WKB string.
Updates position of the passed WKB pointer.
Definition at line 34 of file qgsgeometryfactory.cpp.
|
static |
Returns empty geometry from wkb type.
Definition at line 228 of file qgsgeometryfactory.cpp.
|
static |
Construct geometry from a WKT string.
Definition at line 72 of file qgsgeometryfactory.cpp.