QGIS API Documentation  2.12.0-Lyon
Classes | Macros | Functions | Variables
qgsgeos.cpp File Reference
#include "qgsgeos.h"
#include "qgsabstractgeometryv2.h"
#include "qgsgeometrycollectionv2.h"
#include "qgsgeometryfactory.h"
#include "qgslinestringv2.h"
#include "qgsmessagelog.h"
#include "qgsmulticurvev2.h"
#include "qgsmultilinestringv2.h"
#include "qgsmultipointv2.h"
#include "qgsmultipolygonv2.h"
#include "qgslogger.h"
#include "qgspolygonv2.h"
#include <limits>
#include <cstdio>
#include <QtCore/qmath.h>
Include dependency graph for qgsgeos.cpp:

Go to the source code of this file.

Classes

class  GEOSGeomScopedPtr
 
class  GEOSInit
 

Macros

#define CATCH_GEOS(r)
 
#define CATCH_GEOS_WITH_ERRMSG(r)
 
#define DEFAULT_QUADRANT_SEGMENTS   8
 

Functions

static void printGEOSNotice (const char *fmt,...)
 
static void throwGEOSException (const char *fmt,...)
 

Variables

static GEOSInit geosinit
 

Macro Definition Documentation

#define CATCH_GEOS (   r)
Value:
catch (GEOSException &e) \
{ \
QgsMessageLog::logMessage( QObject::tr( "Exception: %1" ).arg( e.what() ), QObject::tr("GEOS") ); \
return r; \
}
QString tr(const char *sourceText, const char *disambiguation, int n)
static void logMessage(const QString &message, const QString &tag=QString::null, MessageLevel level=WARNING)
add a message to the instance (and create it if necessary)

Definition at line 34 of file qgsgeos.cpp.

#define CATCH_GEOS_WITH_ERRMSG (   r)
Value:
catch (GEOSException &e) \
{ \
QgsMessageLog::logMessage( QObject::tr( "Exception: %1" ).arg( e.what() ), QObject::tr("GEOS") ); \
if ( errorMsg ) \
{ \
*errorMsg = e.what(); \
} \
return r; \
}
QString tr(const char *sourceText, const char *disambiguation, int n)
static void logMessage(const QString &message, const QString &tag=QString::null, MessageLevel level=WARNING)
add a message to the instance (and create it if necessary)

Definition at line 41 of file qgsgeos.cpp.

#define DEFAULT_QUADRANT_SEGMENTS   8

Definition at line 32 of file qgsgeos.cpp.

Function Documentation

static void printGEOSNotice ( const char *  fmt,
  ... 
)
static

Definition at line 67 of file qgsgeos.cpp.

static void throwGEOSException ( const char *  fmt,
  ... 
)
static

Definition at line 53 of file qgsgeos.cpp.

Variable Documentation

GEOSInit geosinit
static

Definition at line 99 of file qgsgeos.cpp.