public void Equals()
        {
            GeodeticExtent a = new GeodeticExtent(0, 1, 2, 3);
            GeodeticExtent b = new GeodeticExtent(4, 5, 6, 7);
            GeodeticExtent c = new GeodeticExtent(new Geodetic2D(4, 5), new Geodetic2D(6, 7));

            Assert.IsTrue(a != b);
            Assert.IsTrue(b == c);
        }
Exemple #2
0
 public RasterLevel(RasterSource source, int level, GeodeticExtent extent, int longitudePosts, int latitudePosts, int longitudePostsPerTile, int latitudePostsPerTile)
 {
     _source                = source;
     _level                 = level;
     _extent                = extent;
     _longitudePosts        = longitudePosts;
     _latitudePosts         = latitudePosts;
     _longitudePostsPerTile = longitudePostsPerTile;
     _latitudePostsPerTile  = latitudePostsPerTile;
     _postDeltaLongitude    = (_extent.East - _extent.West) / (longitudePosts - 1);
     _postDeltaLatitude     = (_extent.North - _extent.South) / (latitudePosts - 1);
 }
Exemple #3
0
 public RasterLevel(RasterSource source, int level, GeodeticExtent extent, int longitudePosts, int latitudePosts, int longitudePostsPerTile, int latitudePostsPerTile)
 {
     _source = source;
     _level = level;
     _extent = extent;
     _longitudePosts = longitudePosts;
     _latitudePosts = latitudePosts;
     _longitudePostsPerTile = longitudePostsPerTile;
     _latitudePostsPerTile = latitudePostsPerTile;
     _postDeltaLongitude = (_extent.East - _extent.West) / (longitudePosts - 1);
     _postDeltaLatitude = (_extent.North - _extent.South) / (latitudePosts - 1);
 }
        public void Construct()
        {
            GeodeticExtent extent = new GeodeticExtent(0, 1, 2, 3);
            Assert.AreEqual(extent.West, 0);
            Assert.AreEqual(extent.South, 1);
            Assert.AreEqual(extent.East, 2);
            Assert.AreEqual(extent.North, 3);

            GeodeticExtent extent2 = new GeodeticExtent(
                new Geodetic2D(0, 1), new Geodetic2D(2, 3));
            Assert.AreEqual(extent2.West, 0);
            Assert.AreEqual(extent2.South, 1);
            Assert.AreEqual(extent2.East, 2);
            Assert.AreEqual(extent2.North, 3);
        }