| Quantum GIS API Documentation
    1.8
    | 
#include <limits>#include <cstdarg>#include <cstdio>#include <cmath>#include "qgis.h"#include "qgsgeometry.h"#include "qgsapplication.h"#include "qgslogger.h"#include "qgsmessagelog.h"#include "qgspoint.h"#include "qgsrectangle.h"#include "qgsmaplayerregistry.h"#include "qgsvectorlayer.h"#include "qgsproject.h"#include "qgsgeometryvalidator.h"
Go to the source code of this file.
| Classes | |
| class | GEOSException | 
| class | GEOSInit | 
| Defines | |
| #define | DEFAULT_QUADRANT_SEGMENTS 8 | 
| #define | CATCH_GEOS(r) | 
| Functions | |
| static void | throwGEOSException (const char *fmt,...) | 
| static void | printGEOSNotice (const char *fmt,...) | 
| static unsigned int | getNumGeosPoints (const GEOSGeometry *geom) | 
| static GEOSGeometry * | createGeosPoint (const QgsPoint &point) | 
| static GEOSCoordSequence * | createGeosCoordSequence (const QgsPolyline &points) | 
| static GEOSGeometry * | createGeosCollection (int typeId, QVector< GEOSGeometry * > geoms) | 
| static GEOSGeometry * | createGeosLineString (const QgsPolyline &polyline) | 
| static GEOSGeometry * | createGeosLinearRing (const QgsPolyline &polyline) | 
| static GEOSGeometry * | createGeosPolygon (const QVector< GEOSGeometry * > &rings) | 
| static GEOSGeometry * | createGeosPolygon (GEOSGeometry *shell) | 
| static GEOSGeometry * | createGeosPolygon (const QgsPolygon &polygon) | 
| static QgsGeometry * | fromGeosGeom (GEOSGeometry *geom) | 
| Variables | |
| static GEOSInit | geosinit | 
| #define CATCH_GEOS | ( | r | ) | 
catch (GEOSException &e) \ { \ QgsMessageLog::logMessage( QObject::tr( "Exception: %1" ).arg( e.what() ), QObject::tr("GEOS") ); \ return r; \ }
Definition at line 37 of file qgsgeometry.cpp.
Referenced by QgsGeometry::area(), QgsGeometry::buffer(), QgsGeometry::centroid(), QgsGeometry::combine(), QgsGeometry::convexHull(), QgsGeometry::difference(), QgsGeometry::distance(), QgsGeometry::exportWkbToGeos(), QgsGeometry::geosRelOp(), QgsGeometry::intersection(), QgsGeometry::intersects(), QgsGeometry::length(), QgsGeometry::makeDifference(), QgsGeometry::simplify(), QgsGeometry::splitGeometry(), and QgsGeometry::symDifference().
| #define DEFAULT_QUADRANT_SEGMENTS 8 | 
Definition at line 35 of file qgsgeometry.cpp.
Referenced by QgsGeometry::lineContainedInLine().
| static GEOSGeometry* createGeosCollection | ( | int | typeId, | 
| QVector< GEOSGeometry * > | geoms | ||
| ) |  [static] | 
Definition at line 271 of file qgsgeometry.cpp.
References QgsMessageLog::logMessage(), and GEOSException::what().
Referenced by QgsGeometry::addPart(), QgsGeometry::addRing(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPoint(), QgsGeometry::fromMultiPolygon(), QgsGeometry::fromMultiPolyline(), and QgsGeometry::mergeGeometriesMultiTypeSplit().
| static GEOSCoordSequence* createGeosCoordSequence | ( | const QgsPolyline & | points | ) |  [static] | 
Definition at line 247 of file qgsgeometry.cpp.
References QgsMessageLog::logMessage(), and GEOSException::what().
Referenced by createGeosLinearRing(), and createGeosLineString().
| static GEOSGeometry* createGeosLinearRing | ( | const QgsPolyline & | polyline | ) |  [static] | 
Definition at line 315 of file qgsgeometry.cpp.
References createGeosCoordSequence(), QgsMessageLog::logMessage(), and GEOSException::what().
Referenced by QgsGeometry::addPart(), QgsGeometry::addRing(), createGeosPolygon(), and QgsGeometry::exportWkbToGeos().
| static GEOSGeometry* createGeosLineString | ( | const QgsPolyline & | polyline | ) |  [static] | 
Definition at line 296 of file qgsgeometry.cpp.
References createGeosCoordSequence(), QgsMessageLog::logMessage(), and GEOSException::what().
Referenced by QgsGeometry::addPart(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPolyline(), QgsGeometry::fromPolyline(), QgsGeometry::reshapeGeometry(), and QgsGeometry::splitGeometry().
| static GEOSGeometry* createGeosPoint | ( | const QgsPoint & | point | ) |  [static] | 
Definition at line 239 of file qgsgeometry.cpp.
References QgsPoint::x(), and QgsPoint::y().
Referenced by QgsGeometry::addPart(), QgsGeometry::contains(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPoint(), QgsGeometry::fromPoint(), and QgsGeometry::reshapeLine().
| static GEOSGeometry* createGeosPolygon | ( | const QVector< GEOSGeometry * > & | rings | ) |  [static] | 
Definition at line 348 of file qgsgeometry.cpp.
Referenced by QgsGeometry::addPart(), QgsGeometry::addRing(), createGeosPolygon(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPolygon(), and QgsGeometry::fromPolygon().
| static GEOSGeometry* createGeosPolygon | ( | GEOSGeometry * | shell | ) |  [static] | 
Definition at line 371 of file qgsgeometry.cpp.
References createGeosPolygon().
| static GEOSGeometry* createGeosPolygon | ( | const QgsPolygon & | polygon | ) |  [static] | 
Definition at line 376 of file qgsgeometry.cpp.
References createGeosLinearRing(), createGeosPolygon(), QgsMessageLog::logMessage(), and GEOSException::what().
| static QgsGeometry* fromGeosGeom | ( | GEOSGeometry * | geom | ) |  [static] | 
Definition at line 399 of file qgsgeometry.cpp.
References QgsGeometry::fromGeos().
Referenced by QgsGeometry::asGeometryCollection(), QgsGeometry::buffer(), QgsGeometry::centroid(), QgsGeometry::combine(), QgsGeometry::convexHull(), QgsGeometry::difference(), QgsGeometry::fromMultiPoint(), QgsGeometry::fromMultiPolygon(), QgsGeometry::fromMultiPolyline(), QgsGeometry::fromPoint(), QgsGeometry::fromPolygon(), QgsGeometry::fromPolyline(), QgsGeometry::fromWkt(), QgsGeometry::intersection(), QgsGeometry::simplify(), QgsGeometry::splitLinearGeometry(), QgsGeometry::splitPolygonGeometry(), and QgsGeometry::symDifference().
| static unsigned int getNumGeosPoints | ( | const GEOSGeometry * | geom | ) |  [static] | 
Definition at line 231 of file qgsgeometry.cpp.
Referenced by QgsGeometry::exportGeosToWkb().
| static void printGEOSNotice | ( | const char * | fmt, | 
| ... | |||
| ) |  [static] | 
Definition at line 98 of file qgsgeometry.cpp.
References QgsDebugMsg.
Referenced by GEOSInit::GEOSInit().
| static void throwGEOSException | ( | const char * | fmt, | 
| ... | |||
| ) |  [static] | 
Definition at line 84 of file qgsgeometry.cpp.
References QgsDebugMsg.
Referenced by QgsGeometry::addRing(), and GEOSInit::GEOSInit().
Definition at line 128 of file qgsgeometry.cpp.
 1.7.6.1
 1.7.6.1