QGIS API Documentation  2.14.0-Essen
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

QgsAbstractGeometryV2 * QgsGeometryFactory::fromMultiPoint ( const QgsMultiPoint multipoint)

Construct geometry from a multipoint.

Definition at line 131 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::fromMultiPolygon ( const QgsMultiPolygon multipoly)

Construct geometry from a multipolygon.

Definition at line 181 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::fromMultiPolyline ( const QgsMultiPolyline multiline)

Construct geometry from a multipolyline.

Definition at line 148 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::fromPoint ( const QgsPoint point)

Construct geometry from a point.

Definition at line 126 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::fromPolygon ( const QgsPolygon polygon)

Construct geometry from a polygon.

Definition at line 158 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::fromPolyline ( const QgsPolyline polyline)

Construct geometry from a polyline.

Definition at line 143 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::fromRect ( const QgsRectangle rect)

Construct geometry from a rectangle.

Definition at line 191 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::geomFromWkb ( QgsConstWkbPtr  wkb)

Construct geometry from a WKB string.

Definition at line 33 of file qgsgeometryfactory.cpp.

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

Return empty geometry from wkb type.

Definition at line 220 of file qgsgeometryfactory.cpp.

QgsAbstractGeometryV2 * QgsGeometryFactory::geomFromWkt ( const QString text)

Construct geometry from a WKT string.

Definition at line 63 of file qgsgeometryfactory.cpp.

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