public void SetY_TopCoordTopGridSet_NoFlip() { Coord c = new Coord(1, 0, 0, true); GridSet g = new GridSet( "test", "epsg:test", new Envelope(0, 0, 100, 100), new List<double>() { 10, 5, 2.5 }, 10, 10, .00028, true ); Coord cResult = g.SetY(c); Assert.IsTrue(cResult.TopOrigin); Assert.AreEqual(cResult.Y, 0); }
public void SetY_TopCoordBottomGridSet_Flips() { Coord c = new Coord(1, 0, 0, true); GridSet g = new GridSet( "test", "epsg:test", new Envelope(0, 0, 100, 100), new List<double>() { 10, 5, 2.5 }, 10, 10, .00028, false ); Coord cResult = g.SetY(c); Assert.IsFalse(cResult.TopOrigin); Assert.AreEqual(cResult.Y, 1); }