C# Класс MapAround.Geometry.GeometrySimplifier

Simplifies a geometry, ensuring that the result is a geometry having the same topology. Implements an S-DMin algorithm.
Показать файл Открыть проект

Открытые методы

Метод Описание
SymplifySDMin ( IGeometry geometry, double compressionLevel ) : IGeometry

Simplifies a geometry using S-DMin method.

Приватные методы

Метод Описание
buildVertexIndex ( List weightedVertices, Polyline polyline ) : KDTree
checkWeightedVertex ( Polyline polyline, KDTree vertexIndex, SDMinVertex currentVertex, KDTree crossPointIndex ) : bool
getCrossPointsIndex ( Polyline polyline ) : KDTree
getPolygonBounds ( Polygon polygon ) : Polyline
getPolygonFromBounds ( Polyline polyline ) : Polygon
getVertexWeight ( Polyline polyline, int pathIndex, int pointIndex ) : double
getWeightedVertex ( Polyline polyline, int pathIndex, int pointIndex ) : SDMinVertex
getWeightedVertices ( Polyline polyline ) : List
pointOfWeightedVertex ( Polyline polyline, SDMinVertex vertex ) : ICoordinate
removeVertices ( Polyline polyline, List deletedVertices ) : void
simplifyPolylineSDMin ( Polyline polyline, double compressionLevel ) : Polyline

Описание методов

SymplifySDMin() публичный Метод

Simplifies a geometry using S-DMin method.
public SymplifySDMin ( IGeometry geometry, double compressionLevel ) : IGeometry
geometry IGeometry A geometry for simplification
compressionLevel double A compression level (the ratio of the /// number of coordinates in a simplified geometry to the number of coordinates /// in the original figure).
Результат IGeometry