18 #ifndef QGSGEOMETRYFACTORY_H 19 #define QGSGEOMETRYFACTORY_H 23 #include "qgis_core.h" 60 static std::unique_ptr< QgsAbstractGeometry > geomFromWkb(
QgsConstWkbPtr &wkb );
65 static std::unique_ptr< QgsAbstractGeometry > geomFromWkt(
const QString &text );
68 static std::unique_ptr< QgsAbstractGeometry > fromPointXY(
const QgsPointXY &point );
70 static std::unique_ptr<QgsMultiPoint> fromMultiPointXY(
const QgsMultiPointXY &multipoint );
72 static std::unique_ptr< QgsAbstractGeometry > fromPolylineXY(
const QgsPolylineXY &polyline );
74 static std::unique_ptr<QgsMultiLineString> fromMultiPolylineXY(
const QgsMultiPolylineXY &multiline );
76 static std::unique_ptr<QgsPolygon> fromPolygonXY(
const QgsPolygonXY &polygon );
78 static std::unique_ptr<QgsMultiPolygon> fromMultiPolygonXY(
const QgsMultiPolygonXY &multipoly );
80 static std::unique_ptr< QgsAbstractGeometry > geomFromWkbType(
QgsWkbTypes::Type t );
86 static std::unique_ptr< QgsGeometryCollection > createCollectionOfType(
QgsWkbTypes::Type type );
89 static std::unique_ptr< QgsLineString > linestringFromPolyline(
const QgsPolylineXY &polyline );
92 #endif // QGSGEOMETRYFACTORY_H A rectangle specified with double values.
Multi point geometry collection.
QVector< QgsPolylineXY > QgsMultiPolylineXY
QVector< QgsPolylineXY > QgsPolygonXY
QVector< QgsPolygonXY > QgsMultiPolygonXY
A class to represent a 2D point.
QVector< QgsPolylineXY > QgsPolygonXY
Polygon: first item of the list is outer ring, inner rings (if any) start from second item...
Multi line string geometry collection.
Contains geometry creation routines.
QVector< QgsPointXY > QgsMultiPointXY
A collection of QgsPoints that share a common collection of attributes.
QVector< QgsPolygonXY > QgsMultiPolygonXY
A collection of QgsPolygons that share a common collection of attributes.
QVector< QgsPolylineXY > QgsMultiPolylineXY
A collection of QgsPolylines that share a common collection of attributes.
Type
The WKB type describes the number of dimensions a geometry has.
QVector< QgsPointXY > QgsPolylineXY
Abstract base class for all geometries.
QVector< QgsPointXY > QgsMultiPointXY
QVector< QgsPointXY > QgsPolylineXY
Polyline as represented as a vector of two-dimensional points.
Multi polygon geometry collection.
Line string geometry type, with support for z-dimension and m-values.