QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Static Public Member Functions | List of all members
QgsGeometryFactory Class Reference

Contains geometry creation routines. More...

#include <qgsgeometryfactory.h>

Static Public Member Functions

static QgsAbstractGeometryV2fromMultiPoint (const QgsMultiPoint &multipoint)
 Construct geometry from a multipoint. More...
static QgsAbstractGeometryV2fromMultiPolygon (const QgsMultiPolygon &multipoly)
 Construct geometry from a multipolygon. More...
static QgsAbstractGeometryV2fromMultiPolyline (const QgsMultiPolyline &multiline)
 Construct geometry from a multipolyline. More...
static QgsAbstractGeometryV2fromPoint (const QgsPoint &point)
 Construct geometry from a point. More...
static QgsAbstractGeometryV2fromPolygon (const QgsPolygon &polygon)
 Construct geometry from a polygon. More...
static QgsAbstractGeometryV2fromPolyline (const QgsPolyline &polyline)
 Construct geometry from a polyline. More...
static QgsAbstractGeometryV2fromRect (const QgsRectangle &rect)
 Construct geometry from a rectangle. More...
static QgsAbstractGeometryV2geomFromWkb (QgsConstWkbPtr wkb)
 Construct geometry from a WKB string. More...
static QgsAbstractGeometryV2geomFromWkbType (QgsWKBTypes::Type t)
 Return empty geometry from wkb type. More...
static QgsAbstractGeometryV2geomFromWkt (const QString &text)
 Construct geometry from a WKT string. More...

Detailed Description

Contains geometry creation routines.

added in QGIS 2.10
this API is not considered stable and may change for 2.12
not available in Python bindings

Definition at line 45 of file qgsgeometryfactory.h.

Member Function Documentation

◆ fromMultiPoint()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromMultiPoint ( const QgsMultiPoint multipoint)

Construct geometry from a multipoint.

Definition at line 142 of file qgsgeometryfactory.cpp.

◆ fromMultiPolygon()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromMultiPolygon ( const QgsMultiPolygon multipoly)

Construct geometry from a multipolygon.

Definition at line 192 of file qgsgeometryfactory.cpp.

◆ fromMultiPolyline()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromMultiPolyline ( const QgsMultiPolyline multiline)

Construct geometry from a multipolyline.

Definition at line 159 of file qgsgeometryfactory.cpp.

◆ fromPoint()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromPoint ( const QgsPoint point)

Construct geometry from a point.

Definition at line 137 of file qgsgeometryfactory.cpp.

◆ fromPolygon()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromPolygon ( const QgsPolygon polygon)

Construct geometry from a polygon.

Definition at line 169 of file qgsgeometryfactory.cpp.

◆ fromPolyline()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromPolyline ( const QgsPolyline polyline)

Construct geometry from a polyline.

Definition at line 154 of file qgsgeometryfactory.cpp.

◆ fromRect()

QgsAbstractGeometryV2 * QgsGeometryFactory::fromRect ( const QgsRectangle rect)

Construct geometry from a rectangle.

Definition at line 202 of file qgsgeometryfactory.cpp.

◆ geomFromWkb()

QgsAbstractGeometryV2 * QgsGeometryFactory::geomFromWkb ( QgsConstWkbPtr  wkb)

Construct geometry from a WKB string.

Definition at line 33 of file qgsgeometryfactory.cpp.

◆ geomFromWkbType()

QgsAbstractGeometryV2 * QgsGeometryFactory::geomFromWkbType ( QgsWKBTypes::Type  t)

Return empty geometry from wkb type.

Definition at line 231 of file qgsgeometryfactory.cpp.

◆ geomFromWkt()

QgsAbstractGeometryV2 * QgsGeometryFactory::geomFromWkt ( const QString text)

Construct geometry from a WKT string.

Definition at line 74 of file qgsgeometryfactory.cpp.

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