mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-21 08:00:17 +01:00
30 lines
995 B
C#
30 lines
995 B
C#
using System.Globalization;
|
|
|
|
namespace MapControl.Projections
|
|
{
|
|
public class Wgs84StereographicProjection : ProjNetMapProjection
|
|
{
|
|
public Wgs84StereographicProjection()
|
|
{
|
|
CenterChanged();
|
|
}
|
|
|
|
protected override void CenterChanged()
|
|
{
|
|
var wktFormat =
|
|
"PROJCS[\"WGS 84 / World Mercator\"," +
|
|
WktConstants.GeogCsWgs84 + "," +
|
|
"PROJECTION[\"Oblique_Stereographic\"]," +
|
|
"PARAMETER[\"latitude_of_origin\",{0:0.########}]," +
|
|
"PARAMETER[\"central_meridian\",{1:0.########}]," +
|
|
"UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]]," +
|
|
"AXIS[\"Easting\",EAST]," +
|
|
"AXIS[\"Northing\",NORTH]" +
|
|
"AUTHORITY[\"AUTO2\",\"97002\"]]";
|
|
|
|
CoordinateSystemWkt = string.Format(
|
|
CultureInfo.InvariantCulture, wktFormat, Center.Latitude, Center.Longitude);
|
|
}
|
|
}
|
|
}
|