New TransverseMercatorProjection implementation

This commit is contained in:
ClemensFischer 2024-09-10 22:04:44 +02:00
parent caa25cb471
commit 9c69deb782
9 changed files with 357 additions and 23 deletions

View file

@ -100,6 +100,13 @@ namespace MapControl.Projections
public IMathTransform MapToLocationTransform { get; private set; }
public override Point GetRelativeScale(Location location)
{
var k = coordinateSystem?.Projection?.GetParameter("scale_factor")?.Value ?? 1d;
return new Point(k, k);
}
public override Point? LocationToMap(Location location)
{
if (LocationToMapTransform == null)