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); }
static OgcLinearUnit() { _defaultMeter = new OgcLinearUnit("Meter", 1, new AuthorityTag("EPSG", "9001")); _defaultKilometer = new OgcLinearUnit("Kilometer", 1000, new AuthorityTag("EPSG", "9036")); }