mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
better fix for 61693b8
This commit is contained in:
parent
61693b8d3a
commit
3809da60fd
@ -21,12 +21,6 @@ email : marco.hugentobler at sourcepole dot com
|
|||||||
#include "qgswkbtypes.h"
|
#include "qgswkbtypes.h"
|
||||||
#include "qgswkbptr.h"
|
#include "qgswkbptr.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
// for M_PI_2
|
|
||||||
#define _USE_MATH_DEFINES
|
|
||||||
#include <math.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
class QgsMapToPixel;
|
class QgsMapToPixel;
|
||||||
@ -305,7 +299,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
|
|||||||
* @param tolerance segmentation tolerance
|
* @param tolerance segmentation tolerance
|
||||||
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve
|
* @param toleranceType maximum segmentation angle or maximum difference between approximation and curve
|
||||||
*/
|
*/
|
||||||
virtual QgsAbstractGeometryV2* segmentize( double tolerance = M_PI_2 / 90, SegmentationToleranceType toleranceType = MaximumAngle ) const;
|
virtual QgsAbstractGeometryV2* segmentize( double tolerance = M_PI / 180., SegmentationToleranceType toleranceType = MaximumAngle ) const;
|
||||||
|
|
||||||
/** Returns the geometry converted to the more generic curve type.
|
/** Returns the geometry converted to the more generic curve type.
|
||||||
E.g. QgsLineStringV2 -> QgsCompoundCurveV2, QgsPolygonV2 -> QgsCurvePolygonV2,
|
E.g. QgsLineStringV2 -> QgsCompoundCurveV2, QgsPolygonV2 -> QgsCurvePolygonV2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user