QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | Public Attributes | List of all members
QgsGeometryCheckContext Struct Reference

Base configuration for geometry checks. More...

#include <qgsgeometrycheckcontext.h>

Public Member Functions

 QgsGeometryCheckContext (int precision, const QgsCoordinateReferenceSystem &mapCrs, const QgsCoordinateTransformContext &transformContext)
 

Public Attributes

const QgsCoordinateReferenceSystem mapCrs
 The coordinate system in which calculations should be done. More...
 
const double reducedTolerance
 The tolerance to allow for in geometry checks. More...
 
const double tolerance
 The tolerance to allow for in geometry checks. More...
 
const QgsCoordinateTransformContext transformContext
 The coordinate transform context with which transformations will be done. More...
 

Detailed Description

Base configuration for geometry checks.

Note
This class is a technology preview and unstable API.
Since
QGIS 3.4

Definition at line 30 of file qgsgeometrycheckcontext.h.

Constructor & Destructor Documentation

◆ QgsGeometryCheckContext()

QgsGeometryCheckContext::QgsGeometryCheckContext ( int  precision,
const QgsCoordinateReferenceSystem mapCrs,
const QgsCoordinateTransformContext transformContext 
)

Definition at line 18 of file qgsgeometrycheckcontext.cpp.

Member Data Documentation

◆ mapCrs

const QgsCoordinateReferenceSystem QgsGeometryCheckContext::mapCrs

The coordinate system in which calculations should be done.

Definition at line 54 of file qgsgeometrycheckcontext.h.

◆ reducedTolerance

const double QgsGeometryCheckContext::reducedTolerance

The tolerance to allow for in geometry checks.

Will be calculated as pow(10, -precision/2) in the constructor. I.e. if the precision is 4 (decimal digits), this will be 0.01. Should be used for areas, where the precision is squared.

Definition at line 49 of file qgsgeometrycheckcontext.h.

◆ tolerance

const double QgsGeometryCheckContext::tolerance

The tolerance to allow for in geometry checks.

Will be calculated as pow(10, -precision) in the constructor. I.e. if the precision is 4 (decimal digits), this will be 0.0001.

Definition at line 41 of file qgsgeometrycheckcontext.h.

◆ transformContext

const QgsCoordinateTransformContext QgsGeometryCheckContext::transformContext

The coordinate transform context with which transformations will be done.

Definition at line 59 of file qgsgeometrycheckcontext.h.


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