QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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 );
93 #endif // QGSGEOMETRYFACTORY_H
QVector< QgsPolylineXY > QgsPolygonXY
Polygon: first item of the list is outer ring, inner rings (if any) start from second item.
QVector< QgsPointXY > QgsMultiPointXY
QVector< QgsPointXY > QgsPolylineXY
Polyline as represented as a vector of two-dimensional points.
Multi line string geometry collection.
QVector< QgsPolygonXY > QgsMultiPolygonXY
A collection of QgsPolygons that share a common collection of attributes.
Type
The WKB type describes the number of dimensions a geometry has.
Line string geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
QVector< QgsPointXY > QgsMultiPointXY
A collection of QgsPoints that share a common collection of attributes.
Contains geometry creation routines.
QVector< QgsPolylineXY > QgsMultiPolylineXY
A collection of QgsPolylines that share a common collection of attributes.
Multi polygon geometry collection.
QVector< QgsPolygonXY > QgsMultiPolygonXY
Multi point geometry collection.
Abstract base class for all geometries.
A class to represent a 2D point.
QVector< QgsPolylineXY > QgsMultiPolylineXY
QVector< QgsPolylineXY > QgsPolygonXY
QVector< QgsPointXY > QgsPolylineXY