C# Class MapAround.Geometry.GeometrySimplifier

Simplifies a geometry, ensuring that the result is a geometry having the same topology. Implements an S-DMin algorithm.
显示文件 Open project: gkrsu/maparound.core

Public Methods

Method Description
SymplifySDMin ( IGeometry geometry, double compressionLevel ) : IGeometry

Simplifies a geometry using S-DMin method.

Private Methods

Method Description
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

Method Details

SymplifySDMin() public method

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).
return IGeometry