C# Class MapAround.Geography.GeometrySpreader

An object that performs the conversion between objects and elliptical plane geometry by gnomonic projection.
Exibir arquivo Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
GetGeographies ( IEnumerable geometries, GnomonicProjection projection ) : GeographyCollection

Converts a collection of geometric shapes on the surface of the ellipsoid to the collection of geometric figures in the plane in line with the given projection.

GetGeometries ( GeographyCollection collection, GnomonicProjection projection ) : GeometryCollection

Converts a collection of geometric shapes on the surface of the ellipsoid to the collection of geometric figures in the plane according to the given gnomonic projection.

GetProjection ( GeographyCollection collection ) : GnomonicProjection

Calculates gnomonic projection for geometric shapes on the surface of the ellipsoid.

Private Methods

Method Description
projectMultiPoint ( GeoMultiPoint multiPoint, GnomonicProjection projection ) : MultiPoint
projectPoint ( GeoPoint point, GnomonicProjection projection ) : PointD
projectPolygon ( GeoPolygon polygon, GnomonicProjection projection ) : Polygon
projectPolyline ( GeoPolyline polyline, GnomonicProjection projection ) : Polyline
unprojectMultiPoint ( MultiPoint multiPoint, GnomonicProjection projection ) : GeoMultiPoint
unprojectPoint ( PointD point, GnomonicProjection projection ) : GeoPoint
unprojectPolygon ( Polygon polygon, GnomonicProjection projection ) : GeoPolygon
unprojectPolyline ( Polyline polyline, GnomonicProjection projection ) : GeoPolyline

Method Details

GetGeographies() public static method

Converts a collection of geometric shapes on the surface of the ellipsoid to the collection of geometric figures in the plane in line with the given projection.
public static GetGeographies ( IEnumerable geometries, GnomonicProjection projection ) : GeographyCollection
geometries IEnumerable Enumerator geometric shapes on the surface of the ellipsoid
projection GnomonicProjection Projection
return GeographyCollection

GetGeometries() public static method

Converts a collection of geometric shapes on the surface of the ellipsoid to the collection of geometric figures in the plane according to the given gnomonic projection.
public static GetGeometries ( GeographyCollection collection, GnomonicProjection projection ) : GeometryCollection
collection GeographyCollection Collection of geometric shapes on the surface of the ellipsoid
projection GnomonicProjection Projection
return GeometryCollection

GetProjection() public static method

Calculates gnomonic projection for geometric shapes on the surface of the ellipsoid.
public static GetProjection ( GeographyCollection collection ) : GnomonicProjection
collection GeographyCollection Collection of geometric shapes on the surface of the ellipsoid
return GnomonicProjection