public void TestReadWGS84ConversionInfo()
        {
            // can't use the Test() method here because IWGS84ConversionInfo is a struct
            // and does not implement the IInfo interface.
            string filename = "WGS84ConversionInfo.xml";

            StreamReader        tr   = new StreamReader(Global.GetUnitTestRootDirectory() + @"\IO\" + filename);
            string              xml1 = tr.ReadToEnd();
            WGS84ConversionInfo info = (WGS84ConversionInfo)CoordinateSystemXmlReader.Create(xml1);
            string              xml2 = CoordinateSystemXmlWriter.Write(info);

            StringReader  textReader1 = new StringReader(xml1);
            XmlTextReader xmlReader1  = new XmlTextReader(textReader1);
            StringReader  textReader2 = new StringReader(xml2);
            XmlTextReader xmlReader2  = new XmlTextReader(textReader2);
            bool          same        = _xmlDiff.Compare(xmlReader1, xmlReader2);

            Assertion.AssertEquals("WGS84ConversionInfo", true, same);
        }
示例#2
0
 public void TestProjectedCoordinateSystem()
 {
     IProjectedCoordinateSystem projectedCoordinateSystem = _factory.CreateProjectedCoordinateSystem("27700");
     string test1 = CoordinateSystemXmlWriter.Write(projectedCoordinateSystem);
 }
示例#3
0
 public void TestWriteAngularUnit()
 {
     IAngularUnit angularUnit = _factory.CreateAngularUnit("9101");
     string       test1       = CoordinateSystemXmlWriter.Write(angularUnit);
 }
示例#4
0
 public void TestCompoundCoordinateSystem()
 {
     ICompoundCoordinateSystem compoundCoordinateSystem = _factory.CreateCompoundCoordinateSystem("7405");
     string test1 = CoordinateSystemXmlWriter.Write(compoundCoordinateSystem);
 }
示例#5
0
 public void TestWriteLinearUnit()
 {
     ILinearUnit linearUnit = _factory.CreateLinearUnit("9001");
     string      test1      = CoordinateSystemXmlWriter.Write(linearUnit);
 }