EPSG Codes & CRS IDs

This commit is contained in:
ClemensFischer 2024-07-12 13:57:27 +02:00
parent b74e5aaf7a
commit ce6f190bf1
18 changed files with 151 additions and 195 deletions

View file

@ -17,13 +17,12 @@ namespace MapControl
/// </summary>
public class EquirectangularProjection : MapProjection
{
public const int DefaultEpsgCode = 4326;
public static readonly string DefaultCrsId = $"EPSG:{DefaultEpsgCode}";
public const int EpsgCode = 4326;
public EquirectangularProjection()
public EquirectangularProjection(string crsId = "EPSG:4326")
{
Type = MapProjectionType.NormalCylindrical;
CrsId = DefaultCrsId;
CrsId = crsId;
}
public override Point GetRelativeScale(Location location)