This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
More...
#include <qgssimplifymethod.h>
Protected Attributes |
| MethodType | mMethodType |
| | Simplification method.
|
| double | mTolerance |
| | Tolerance of simplification, it represents the maximum distance between two coordinates which can be considered equal.
|
| bool | mForceLocalOptimization |
| | Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
|
Detailed Description
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
- Note
- added in 2.2
Member Enumeration Documentation
- Enumerator:
| NoSimplification |
No simplification is applied.
|
| OptimizeForRendering |
Simplify using the map2pixel data to optimize the rendering of geometries.
|
| PreserveTopology |
Simplify using the Douglas-Peucker algorithm ensuring that the result is a valid geometry.
|
Constructor & Destructor Documentation
| QgsSimplifyMethod::QgsSimplifyMethod |
( |
| ) |
|
construct a default method
Member Function Documentation
Creates a geometry simplifier according to specified method.
| bool QgsSimplifyMethod::forceLocalOptimization |
( |
| ) |
const |
|
inline |
Gets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
| MethodType QgsSimplifyMethod::methodType |
( |
| ) |
const |
|
inline |
Gets the simplification type.
| void QgsSimplifyMethod::setForceLocalOptimization |
( |
bool |
localOptimization | ) |
|
Sets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
| void QgsSimplifyMethod::setMethodType |
( |
MethodType |
methodType | ) |
|
Sets the simplification type.
| void QgsSimplifyMethod::setTolerance |
( |
double |
tolerance | ) |
|
Sets the tolerance of simplification. Represents the maximum distance between two coordinates which can be considered equal.
| double QgsSimplifyMethod::tolerance |
( |
| ) |
const |
|
inline |
Gets the tolerance of simplification.
Member Data Documentation
| bool QgsSimplifyMethod::mForceLocalOptimization |
|
protected |
Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
| double QgsSimplifyMethod::mTolerance |
|
protected |
Tolerance of simplification, it represents the maximum distance between two coordinates which can be considered equal.
The documentation for this class was generated from the following files: