This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
More...
#include <qgssimplifymethod.h>
|
| QgsSimplifyMethod ()=default |
| construct a default method More...
|
|
bool | forceLocalOptimization () const |
| Gets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries. More...
|
|
MethodType | methodType () const |
| Gets the simplification type. More...
|
|
bool | operator!= (const QgsSimplifyMethod &v) const |
| Inequality operator. More...
|
|
bool | operator== (const QgsSimplifyMethod &v) const |
| Equality operator. More...
|
|
void | 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. More...
|
|
void | setMethodType (MethodType methodType) |
| Sets the simplification type. More...
|
|
void | setThreshold (float threshold) |
| Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal. More...
|
|
void | setTolerance (double tolerance) |
| Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal. More...
|
|
float | threshold () const |
| Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal. More...
|
|
double | tolerance () const |
| Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal. More...
|
|
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
- Since
- QGIS 2.2
Definition at line 28 of file qgssimplifymethod.h.
◆ MethodType
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.
|
Definition at line 31 of file qgssimplifymethod.h.
◆ QgsSimplifyMethod()
QgsSimplifyMethod::QgsSimplifyMethod |
( |
| ) |
|
|
default |
construct a default method
◆ createGeometrySimplifier()
◆ forceLocalOptimization()
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.
Definition at line 59 of file qgssimplifymethod.h.
◆ methodType()
MethodType QgsSimplifyMethod::methodType |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator==()
◆ setForceLocalOptimization()
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.
Definition at line 32 of file qgssimplifymethod.cpp.
◆ setMethodType()
void QgsSimplifyMethod::setMethodType |
( |
MethodType |
methodType | ) |
|
◆ setThreshold()
void QgsSimplifyMethod::setThreshold |
( |
float |
threshold | ) |
|
|
inline |
Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal.
Definition at line 52 of file qgssimplifymethod.h.
◆ setTolerance()
void QgsSimplifyMethod::setTolerance |
( |
double |
tolerance | ) |
|
Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 27 of file qgssimplifymethod.cpp.
◆ threshold()
float QgsSimplifyMethod::threshold |
( |
| ) |
const |
|
inline |
Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal.
Definition at line 54 of file qgssimplifymethod.h.
◆ tolerance()
double QgsSimplifyMethod::tolerance |
( |
| ) |
const |
|
inline |
Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 49 of file qgssimplifymethod.h.
◆ mForceLocalOptimization
bool QgsSimplifyMethod::mForceLocalOptimization = true |
|
protected |
Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
Definition at line 78 of file qgssimplifymethod.h.
◆ mMethodType
◆ mThreshold
float QgsSimplifyMethod::mThreshold = 1 |
|
protected |
◆ mTolerance
double QgsSimplifyMethod::mTolerance = 1 |
|
protected |
Simplification tolerance, it represents the maximum distance between two coordinates which can be considered equal.
Definition at line 74 of file qgssimplifymethod.h.
The documentation for this class was generated from the following files: