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

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