public void TestConstructor() { var css = new CoordinateSystemServices(new CoordinateSystemFactory(Encoding.UTF8), new CoordinateTransformationFactory()); Assert.IsNotNull(css.GetCoordinateSystem(4326)); Assert.IsNotNull(css.GetCoordinateSystem(3857)); }
public void TestConstructorLoadXml(string xmlPath) { if (!File.Exists(xmlPath)) { throw new IgnoreException("Specified file not found"); } var css = new CoordinateSystemServices(new CoordinateSystemFactory(Encoding.UTF8), new CoordinateTransformationFactory(), LoadXml(xmlPath)); Assert.IsNotNull(css.GetCoordinateSystem(4326)); Assert.IsNotNull(css.GetCoordinateSystem("EPSG", 4326)); Assert.IsTrue(ReferenceEquals(css.GetCoordinateSystem("EPSG", 4326), css.GetCoordinateSystem(4326))); }