コード例 #1
0
        public void TestCoordinateSystemForMap(int srid)
        {
            var map = new Map(new Size(200, 150)) { SRID = srid };
            ICoordinateSystem cs = null;
            Assert.DoesNotThrow( () => cs = map.GetCoordinateSystem());
            Assert.NotNull(cs);
            Assert.AreEqual("EPSG", cs.Authority);
#if DotSpatialProjections
            Assert.AreEqual((long)srid, cs.Authority);
#else
            Assert.AreEqual((long)srid, cs.AuthorityCode);
#endif
        }