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