public void ConvertToEtrs89() { // Again, the coordinates are taken from the same source as the previous test case var meters = new EtrsTm35FinPoint(6715706.37705, 106256.35958); var degrees = Etrs89EtrsTm35FinConverter.Instance.Convert(meters); Assert.AreEqual(60.385107, degrees.Latitude, 0.000001); Assert.AreEqual(19.848137, degrees.Longitude, 0.000001); }
private GeoRect <EtrsTm35FinPoint> GetBounds(WorldFile worldFile, BitmapSource raster) { var widthInMeters = Math.Abs(raster.PixelWidth * worldFile.ScaleX); var heightInMeters = Math.Abs(raster.PixelHeight * worldFile.ScaleY); var northWest = new EtrsTm35FinPoint(worldFile.UpperLeftY, worldFile.UpperLeftX); var southEast = new EtrsTm35FinPoint(northWest.Northing - heightInMeters, northWest.Easting + widthInMeters); return(new GeoRect <EtrsTm35FinPoint>(northWest, southEast)); }
/// <summary> /// Converts the given ETRS-TM35FIN point to an ETRS-89 point. /// </summary> public static Etrs89Point ConvertToEtrs89(EtrsTm35FinPoint source) { return(Etrs89EtrsTm35FinConverter.Instance.Convert(source)); }