QGIS API Documentation  2.10.1-Pisa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
QgsGeos Class Reference

Does vector analysis using the geos library and handles import, export, exception handling*. More...

#include <qgsgeos.h>

Inheritance diagram for QgsGeos:
Inheritance graph
[legend]

Public Member Functions

 QgsGeos (const QgsAbstractGeometryV2 *geometry)
 
 ~QgsGeos ()
 
double area () const override
 
QgsAbstractGeometryV2buffer (double distance, int segments) const override
 
QgsAbstractGeometryV2buffer (double distance, int segments, int endCapStyle, int joinStyle, double mitreLimit) const override
 
bool centroid (QgsPointV2 &pt) const override
 
QgsAbstractGeometryV2combine (const QgsAbstractGeometryV2 &geom) const override
 
QgsAbstractGeometryV2combine (const QList< const QgsAbstractGeometryV2 * >) const override
 
bool contains (const QgsAbstractGeometryV2 &geom) const override
 
QgsAbstractGeometryV2convexHull () const override
 
bool crosses (const QgsAbstractGeometryV2 &geom) const override
 
QgsAbstractGeometryV2difference (const QgsAbstractGeometryV2 &geom) const override
 
bool disjoint (const QgsAbstractGeometryV2 &geom) const override
 
double distance (const QgsAbstractGeometryV2 &geom) const override
 
void geometryChanged () override
 Removes caches. More...
 
QgsAbstractGeometryV2interpolate (double distance) const override
 
QgsAbstractGeometryV2intersection (const QgsAbstractGeometryV2 &geom) const override
 
bool intersects (const QgsAbstractGeometryV2 &geom) const override
 
bool isEmpty () const override
 
bool isEqual (const QgsAbstractGeometryV2 &geom) const override
 
bool isValid () const override
 
double length () const override
 
QgsAbstractGeometryV2offsetCurve (double distance, int segments, int joinStyle, double mitreLimit) const override
 
bool overlaps (const QgsAbstractGeometryV2 &geom) const override
 
bool pointOnSurface (QgsPointV2 &pt) const override
 
void prepareGeometry () override
 
QgsAbstractGeometryV2reshapeGeometry (const QgsLineStringV2 &reshapeWithLine, int *errorCode) const
 
QgsAbstractGeometryV2simplify (double tolerance) const override
 
int splitGeometry (const QgsLineStringV2 &splitLine, QList< QgsAbstractGeometryV2 * > &newGeometries, bool topological, QList< QgsPointV2 > &topologyTestPoints) const override
 Splits this geometry according to a given line. More...
 
QgsAbstractGeometryV2symDifference (const QgsAbstractGeometryV2 &geom) const override
 
bool touches (const QgsAbstractGeometryV2 &geom) const override
 
bool within (const QgsAbstractGeometryV2 &geom) const override
 
- Public Member Functions inherited from QgsGeometryEngine
 QgsGeometryEngine (const QgsAbstractGeometryV2 *geometry)
 
virtual ~QgsGeometryEngine ()
 

Static Public Member Functions

static GEOSGeometry * asGeos (const QgsAbstractGeometryV2 *geom)
 
static QgsPointV2 coordSeqPoint (const GEOSCoordSequence *cs, int i, bool hasZ, bool hasM)
 
static QgsAbstractGeometryV2fromGeos (const GEOSGeometry *geos)
 
static QgsPolygonV2fromGeosPolygon (const GEOSGeometry *geos)
 
static GEOSContextHandle_t getGEOSHandler ()
 

Additional Inherited Members

- Protected Member Functions inherited from QgsGeometryEngine
 QgsGeometryEngine ()
 
- Protected Attributes inherited from QgsGeometryEngine
const QgsAbstractGeometryV2mGeometry
 

Detailed Description

Does vector analysis using the geos library and handles import, export, exception handling*.

Note
this API is not considered stable and may change for 2.12

Definition at line 29 of file qgsgeos.h.

Constructor & Destructor Documentation

QgsGeos::QgsGeos ( const QgsAbstractGeometryV2 geometry)

Definition at line 127 of file qgsgeos.cpp.

QgsGeos::~QgsGeos ( )

Definition at line 132 of file qgsgeos.cpp.

Member Function Documentation

double QgsGeos::area ( ) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 269 of file qgsgeos.cpp.

GEOSGeometry * QgsGeos::asGeos ( const QgsAbstractGeometryV2 geom)
static

Definition at line 970 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::buffer ( double  distance,
int  segments 
) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1172 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::buffer ( double  distance,
int  segments,
int  endCapStyle,
int  joinStyle,
double  mitreLimit 
) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1188 of file qgsgeos.cpp.

bool QgsGeos::centroid ( QgsPointV2 pt) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1240 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::combine ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 177 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::combine ( const QList< const QgsAbstractGeometryV2 * >  geomList) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 182 of file qgsgeos.cpp.

bool QgsGeos::contains ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 259 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::convexHull ( ) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1295 of file qgsgeos.cpp.

QgsPointV2 QgsGeos::coordSeqPoint ( const GEOSCoordSequence *  cs,
int  i,
bool  hasZ,
bool  hasM 
)
static

Definition at line 933 of file qgsgeos.cpp.

bool QgsGeos::crosses ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 244 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::difference ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 172 of file qgsgeos.cpp.

bool QgsGeos::disjoint ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 264 of file qgsgeos.cpp.

double QgsGeos::distance ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 211 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::fromGeos ( const GEOSGeometry *  geos)
static

Definition at line 782 of file qgsgeos.cpp.

QgsPolygonV2 * QgsGeos::fromGeosPolygon ( const GEOSGeometry *  geos)
static

Definition at line 870 of file qgsgeos.cpp.

void QgsGeos::geometryChanged ( )
overridevirtual

Removes caches.

Implements QgsGeometryEngine.

Definition at line 138 of file qgsgeos.cpp.

GEOSContextHandle_t QgsGeos::getGEOSHandler ( )
static

Definition at line 2056 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::interpolate ( double  distance) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1225 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::intersection ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 167 of file qgsgeos.cpp.

bool QgsGeos::intersects ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 234 of file qgsgeos.cpp.

bool QgsGeos::isEmpty ( ) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1347 of file qgsgeos.cpp.

bool QgsGeos::isEqual ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1326 of file qgsgeos.cpp.

bool QgsGeos::isValid ( ) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1312 of file qgsgeos.cpp.

double QgsGeos::length ( ) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 286 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::offsetCurve ( double  distance,
int  segments,
int  joinStyle,
double  mitreLimit 
) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1502 of file qgsgeos.cpp.

bool QgsGeos::overlaps ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 254 of file qgsgeos.cpp.

bool QgsGeos::pointOnSurface ( QgsPointV2 pt) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1266 of file qgsgeos.cpp.

void QgsGeos::prepareGeometry ( )
overridevirtual

Implements QgsGeometryEngine.

Definition at line 147 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::reshapeGeometry ( const QgsLineStringV2 reshapeWithLine,
int *  errorCode 
) const

Definition at line 1518 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::simplify ( double  tolerance) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 1210 of file qgsgeos.cpp.

int QgsGeos::splitGeometry ( const QgsLineStringV2 splitLine,
QList< QgsAbstractGeometryV2 * > &  newGeometries,
bool  topological,
QList< QgsPointV2 > &  topologyTestPoints 
) const
overridevirtual

Splits this geometry according to a given line.

Parameters
splitLinethe line that splits the geometry
[out]newGeometrieslist of new geometries that have been created with the split
topologicaltrue if topological editing is enabled
[out]topologyTestPointspoints that need to be tested for topological completeness in the dataset
Returns
0 in case of success, 1 if geometry has not been split, error else

Reimplemented from QgsGeometryEngine.

Definition at line 302 of file qgsgeos.cpp.

QgsAbstractGeometryV2 * QgsGeos::symDifference ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 206 of file qgsgeos.cpp.

bool QgsGeos::touches ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 239 of file qgsgeos.cpp.

bool QgsGeos::within ( const QgsAbstractGeometryV2 geom) const
overridevirtual

Implements QgsGeometryEngine.

Definition at line 249 of file qgsgeos.cpp.


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