QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Static Public Member Functions | List of all members
QgsGeometryFactory Class Reference

Contains geometry creation routines. More...

#include <qgsgeometryfactory.h>

Static Public Member Functions

static std::unique_ptr< QgsGeometryCollectioncreateCollectionOfType (Qgis::WkbType type)
 Returns a new geometry collection matching a specified WKB type. More...
 
static std::unique_ptr< QgsMultiPointfromMultiPointXY (const QgsMultiPointXY &multipoint)
 Construct geometry from a multipoint. More...
 
static std::unique_ptr< QgsMultiPolygonfromMultiPolygonXY (const QgsMultiPolygonXY &multipoly)
 Construct geometry from a multipolygon. More...
 
static std::unique_ptr< QgsMultiLineStringfromMultiPolylineXY (const QgsMultiPolylineXY &multiline)
 Construct geometry from a multipolyline. More...
 
static std::unique_ptr< QgsAbstractGeometryfromPointXY (const QgsPointXY &point)
 Construct geometry from a point. More...
 
static std::unique_ptr< QgsPolygonfromPolygonXY (const QgsPolygonXY &polygon)
 Construct geometry from a polygon. More...
 
static std::unique_ptr< QgsAbstractGeometryfromPolylineXY (const QgsPolylineXY &polyline)
 Construct geometry from a polyline. More...
 
static std::unique_ptr< QgsAbstractGeometrygeomFromWkb (QgsConstWkbPtr &wkb)
 Construct geometry from a WKB string. More...
 
static std::unique_ptr< QgsAbstractGeometrygeomFromWkbType (Qgis::WkbType t)
 Returns empty geometry from wkb type. More...
 
static std::unique_ptr< QgsAbstractGeometrygeomFromWkt (const QString &text)
 Construct geometry from a WKT string. More...
 

Detailed Description

Contains geometry creation routines.

Note
not available in Python bindings
Since
QGIS 2.10

Definition at line 53 of file qgsgeometryfactory.h.

Member Function Documentation

◆ createCollectionOfType()

std::unique_ptr< QgsGeometryCollection > QgsGeometryFactory::createCollectionOfType ( Qgis::WkbType  type)
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.

◆ fromMultiPointXY()

std::unique_ptr< QgsMultiPoint > QgsGeometryFactory::fromMultiPointXY ( const QgsMultiPointXY multipoint)
static

Construct geometry from a multipoint.

Definition at line 144 of file qgsgeometryfactory.cpp.

◆ fromMultiPolygonXY()

std::unique_ptr< QgsMultiPolygon > QgsGeometryFactory::fromMultiPolygonXY ( const QgsMultiPolygonXY multipoly)
static

Construct geometry from a multipolygon.

Definition at line 197 of file qgsgeometryfactory.cpp.

◆ fromMultiPolylineXY()

std::unique_ptr< QgsMultiLineString > QgsGeometryFactory::fromMultiPolylineXY ( const QgsMultiPolylineXY multiline)
static

Construct geometry from a multipolyline.

Definition at line 162 of file qgsgeometryfactory.cpp.

◆ fromPointXY()

std::unique_ptr< QgsAbstractGeometry > QgsGeometryFactory::fromPointXY ( const QgsPointXY point)
static

Construct geometry from a point.

Definition at line 139 of file qgsgeometryfactory.cpp.

◆ fromPolygonXY()

std::unique_ptr< QgsPolygon > QgsGeometryFactory::fromPolygonXY ( const QgsPolygonXY polygon)
static

Construct geometry from a polygon.

Definition at line 173 of file qgsgeometryfactory.cpp.

◆ fromPolylineXY()

std::unique_ptr< QgsAbstractGeometry > QgsGeometryFactory::fromPolylineXY ( const QgsPolylineXY polyline)
static

Construct geometry from a polyline.

Definition at line 157 of file qgsgeometryfactory.cpp.

◆ geomFromWkb()

std::unique_ptr< QgsAbstractGeometry > QgsGeometryFactory::geomFromWkb ( QgsConstWkbPtr wkb)
static

Construct geometry from a WKB string.

Updates position of the passed WKB pointer.

Definition at line 34 of file qgsgeometryfactory.cpp.

◆ geomFromWkbType()

std::unique_ptr< QgsAbstractGeometry > QgsGeometryFactory::geomFromWkbType ( Qgis::WkbType  t)
static

Returns empty geometry from wkb type.

Definition at line 228 of file qgsgeometryfactory.cpp.

◆ geomFromWkt()

std::unique_ptr< QgsAbstractGeometry > QgsGeometryFactory::geomFromWkt ( const QString &  text)
static

Construct geometry from a WKT string.

Definition at line 72 of file qgsgeometryfactory.cpp.


The documentation for this class was generated from the following files: