Equirectangular projections

This commit is contained in:
ClemensFischer 2024-08-03 23:42:09 +02:00
parent 419e2dee16
commit 218071faea
4 changed files with 24 additions and 15 deletions

View file

@ -24,6 +24,13 @@ namespace MapControl
CrsId = crsId;
}
public override Point GetRelativeScale(Location location)
{
return new Point(
Math.Cos(Center.Latitude * Math.PI / 180d) / Math.Cos(location.Latitude * Math.PI / 180d),
1d);
}
public override Point? LocationToMap(Location location)
{
return new Point(