MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgGeometry* MgGeometrySimplifier::Simplify ( MgGeometry geom,
double  tolerance,
INT32  algorithm 
)

Simplifies the given geometry using the specified algorithm and tolerance.

.NET Syntax
virtual MgGeometry Simplify(MgGeometry geom, double tolerance, int algorithm);
Java Syntax
virtual MgGeometry Simplify(MgGeometry geom, double tolerance, int algorithm);
PHP Syntax
virtual MgGeometry Simplify(MgGeometry geom, double tolerance, int algorithm);
Parameters:
geom(MgGeometry) The geometry instance to be simplified
tolerance(double) The tolerance factor to simplify by
algorithm(int) The simplification algorithm to use. Use any value from MgGeometrySimplificationAlgorithmType
Returns:
A simplified MgGeometry instance or null if simpification results in an empty geometry