Esempio n. 1
0
 public void SiAndImperialLengthTest()
 {
     var km = new OgcLinearUnit("kilometer", 1000);
     var mile = new OgcLinearUnit("mile", 1609.344);
     var conversion = SimpleUnitConversionGenerator.FindConversion(km, mile);
     Assert.IsNotNull(conversion);
     Assert.AreEqual(0.621371192, conversion.TransformValue(1), 0.00001);
 }
Esempio n. 2
0
 static OgcLinearUnit()
 {
     _defaultMeter = new OgcLinearUnit("Meter", 1, new AuthorityTag("EPSG", "9001"));
     _defaultKilometer = new OgcLinearUnit("Kilometer", 1000, new AuthorityTag("EPSG", "9036"));
 }
Esempio n. 3
0
 static OgcLinearUnit()
 {
     _defaultMeter     = new OgcLinearUnit("Meter", 1, new AuthorityTag("EPSG", "9001"));
     _defaultKilometer = new OgcLinearUnit("Kilometer", 1000, new AuthorityTag("EPSG", "9036"));
 }