simplify static method
- Geometry geometry
Simplifies the given geometry to make it topologically consistent according to its geometry type.
This method rectifies polygons that may be self-intersecting or contain incorrect ring orientations.
Geometries must be topologically correct to perform topological operations. Polygons that are self-intersecting or that have inconsistent ring orientations may produce inaccurate results. To ensure that polygons constructed or modified programmatically are topologically consistent it's best to simplify their geometry using this method. Geometries returned by ArcGIS Server services are always topologically correct.
Supports true curves.
Parameters:
geometry
— A geometry object.
Return Value: The simplified geometry.
Implementation
static Geometry simplify(
Geometry geometry,
) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_simplify(
geometry._handle,
errorHandler,
);
});
return Geometry._fromHandle(
objectHandle,
)!;
}