QGIS API Documentation
2.2.0-Valmiera
|
#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"
#include <netinet/in.h>
Go to the source code of this file.
Classes | |
class | GEOSException |
class | GEOSInit |
Macros | |
#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) |
static GEOSGeometry * | _makeUnion (QList< GEOSGeometry * > geoms) |
Return union of several geometries - try to use unary union if available (GEOS >= 3.3) otherwise use a cascade of unions. |
Variables | |
static GEOSInit | geosinit |
#define CATCH_GEOS | ( | r | ) |
Definition at line 43 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::interpolate(), QgsGeometry::intersection(), QgsGeometry::intersects(), QgsGeometry::length(), QgsGeometry::makeDifference(), QgsGeometry::simplify(), QgsGeometry::splitGeometry(), and QgsGeometry::symDifference().
#define DEFAULT_QUADRANT_SEGMENTS 8 |
Definition at line 41 of file qgsgeometry.cpp.
Referenced by QgsGeometry::lineContainedInLine().
|
static |
Return union of several geometries - try to use unary union if available (GEOS >= 3.3) otherwise use a cascade of unions.
Takes ownership of passed geometries, returns a new instance
Definition at line 5821 of file qgsgeometry.cpp.
References createGeosCollection().
Referenced by QgsGeometry::avoidIntersections().
|
static |
Definition at line 270 of file qgsgeometry.cpp.
References QgsMessageLog::logMessage(), tr, and GEOSException::what().
Referenced by _makeUnion(), QgsGeometry::addPart(), QgsGeometry::addRing(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPoint(), QgsGeometry::fromMultiPolygon(), QgsGeometry::fromMultiPolyline(), and QgsGeometry::mergeGeometriesMultiTypeSplit().
|
static |
Definition at line 246 of file qgsgeometry.cpp.
References QgsMessageLog::logMessage(), tr, and GEOSException::what().
Referenced by createGeosLinearRing(), and createGeosLineString().
|
static |
Definition at line 314 of file qgsgeometry.cpp.
References createGeosCoordSequence(), QgsMessageLog::logMessage(), tr, and GEOSException::what().
Referenced by QgsGeometry::addPart(), QgsGeometry::addRing(), createGeosPolygon(), and QgsGeometry::exportWkbToGeos().
|
static |
Definition at line 295 of file qgsgeometry.cpp.
References createGeosCoordSequence(), QgsMessageLog::logMessage(), tr, and GEOSException::what().
Referenced by QgsGeometry::addPart(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPolyline(), QgsGeometry::fromPolyline(), QgsGeometry::reshapeGeometry(), and QgsGeometry::splitGeometry().
|
static |
Definition at line 238 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 |
Definition at line 347 of file qgsgeometry.cpp.
Referenced by QgsGeometry::addPart(), QgsGeometry::addRing(), createGeosPolygon(), QgsGeometry::exportWkbToGeos(), QgsGeometry::fromMultiPolygon(), and QgsGeometry::fromPolygon().
|
static |
Definition at line 387 of file qgsgeometry.cpp.
References createGeosPolygon().
|
static |
Definition at line 392 of file qgsgeometry.cpp.
References createGeosLinearRing(), createGeosPolygon(), QgsMessageLog::logMessage(), tr, and GEOSException::what().
|
static |
Definition at line 415 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::interpolate(), QgsGeometry::intersection(), QgsGeometry::simplify(), QgsGeometry::splitLinearGeometry(), QgsGeometry::splitPolygonGeometry(), and QgsGeometry::symDifference().
|
static |
Definition at line 230 of file qgsgeometry.cpp.
Referenced by QgsGeometry::exportGeosToWkb().
|
static |
Definition at line 104 of file qgsgeometry.cpp.
References QgsDebugMsg.
Referenced by GEOSInit::GEOSInit().
|
static |
Definition at line 90 of file qgsgeometry.cpp.
References QgsDebugMsg.
Referenced by QgsGeometry::addRing(), and GEOSInit::GEOSInit().
|
static |
Definition at line 134 of file qgsgeometry.cpp.