Added MapProjectionFactory

This commit is contained in:
Clemens 2022-01-19 16:43:00 +01:00
parent 67b87acb44
commit e2fcc1db2c
12 changed files with 87 additions and 17 deletions

View file

@ -15,6 +15,8 @@ namespace MapControl
/// </summary>
public class WorldMercatorProjection : MapProjection
{
public const string DefaultCrsId = "EPSG:3395";
public static double ConvergenceTolerance { get; set; } = 1e-6;
public static int MaxIterations { get; set; } = 10;
@ -22,7 +24,7 @@ namespace MapControl
public WorldMercatorProjection()
{
CrsId = "EPSG:3395";
CrsId = DefaultCrsId;
}
public override bool IsNormalCylindrical