File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ email : marco.hugentobler at sourcepole dot com
2121#include " qgswkbtypes.h"
2222#include " qgswkbptr.h"
2323
24- #ifdef _MSC_VER
25- // for M_PI_2
26- #define _USE_MATH_DEFINES
27- #include < math.h>
28- #endif
29-
3024#include < QString>
3125
3226class QgsMapToPixel ;
@@ -305,7 +299,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
305299 * @param tolerance segmentation tolerance
306300 * @param toleranceType maximum segmentation angle or maximum difference between approximation and curve
307301 */
308- virtual QgsAbstractGeometryV2* segmentize ( double tolerance = M_PI_2 / 90 , SegmentationToleranceType toleranceType = MaximumAngle ) const ;
302+ virtual QgsAbstractGeometryV2* segmentize ( double tolerance = M_PI / 180 . , SegmentationToleranceType toleranceType = MaximumAngle ) const ;
309303
310304 /* * Returns the geometry converted to the more generic curve type.
311305 E.g. QgsLineStringV2 -> QgsCompoundCurveV2, QgsPolygonV2 -> QgsCurvePolygonV2,
You can’t perform that action at this time.
0 commit comments