public void TestWrite1() { ICompoundCoordinateSystem compoundsCoordinateSsytem = _factory.CreateCompoundCoordinateSystem("7405"); string wkt = CoordinateSystemWktWriter.Write(compoundsCoordinateSsytem); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\CompoundCoordinateSystem.txt", wkt); Assertion.AssertEquals("test 1", true, same); }
public void TestWrite2() { ICompoundCoordinateSystem compoundsCoordinateSsytem = _factory.CreateCompoundCoordinateSystem("7405"); string wkt1 = CoordinateSystemWktWriter.Write(compoundsCoordinateSsytem); string wkt2 = compoundsCoordinateSsytem.WKT; Assertion.AssertEquals("test 1", wkt1, wkt2); }
public void TestWriteDatum() { IHorizontalDatum horizontalDatum = _factory.CreateHorizontalDatum("6277"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(horizontalDatum, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\HorizontalDatum.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWriteUnit2() { IAngularUnit AngularUnit = _factory.CreateAngularUnit("9101"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(AngularUnit, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\Radians.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWriteVerticalCoordinateSystem() { IVerticalCoordinateSystem VerticalCoordinateSystem = _factory.CreateVerticalCoordinateSystem("5701"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(VerticalCoordinateSystem, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\VerticalCoordinateSystem.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWritePrimeMeridian() { IPrimeMeridian PrimeMeridian = _factory.CreatePrimeMeridian("8901"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(PrimeMeridian, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\PrimeMeridian.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWriteEllipsoid() { IEllipsoid ellipsoid = _factory.CreateEllipsoid("7001"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(ellipsoid, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\Spheroid.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWriteUnit1() { ILinearUnit linearUnit = _factory.CreateLinearUnit("9001"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(linearUnit, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\Testfiles\LinearUnit.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWriteGeographicCoordinateSystem() { IGeographicCoordinateSystem GeographicCoordinateSystem = _factory.CreateGeographicCoordinateSystem("4277"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); CoordinateSystemWktWriter.Write(GeographicCoordinateSystem, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\Testfiles\GeographicCoordinateSystem.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }
public void TestWriteCompoundCoordinateSystem() { ICompoundCoordinateSystem compoundsCoordinateSsytem = _factory.CreateCompoundCoordinateSystem("7405"); TextWriter textwriter = new StringWriter(); IndentedTextWriter indentedTextWriter = new IndentedTextWriter(textwriter); //CoordinateSystemWktWriter.WriteCompoundCoordinateSystem(compoundsCoordinateSsytem, indentedTextWriter); CoordinateSystemWktWriter.Write(compoundsCoordinateSsytem, indentedTextWriter); bool same = Compare.CompareAgainstString(Global.GetUnitTestRootDirectory() + @"\IO\CompoundCoordinateSystem.txt", textwriter.ToString()); Assertion.AssertEquals("test 1", true, same); }