public void GeographyMarkupConverterToGeometryFromXElementTest()
 {
     for (Int32 index = 0; index < this.geometries.Length; index++)
     {
         IGeometry geometry = GeographyMarkupConverter.ToGeometry(XElement.Parse(this.geometriesMarkup[index]), this.factory);
         this.geometryComparer.Compare(geometry, this.geometries[index]).ShouldBe(0);
     }
 }
 public void GeographyMarkupConverterToGeometryWithReferenceSystemTest()
 {
     for (Int32 index = 0; index < this.geometries.Length; index++)
     {
         IGeometry geometry = GeographyMarkupConverter.ToGeometry(XElement.Parse(this.geometriesMarkupWithReference[index]), this.factory, this.mockReferenceSystemFactory.Object);
         this.geometryComparer.Compare(geometry, this.geometries[index]).ShouldBe(0);
         geometry.ReferenceSystem.ShouldBe(this.mockReferenceSystem.Object);
     }
 }
Exemple #3
0
        public void GeometryConverterStringTest()
        {
            foreach (IGeometry geometry in _geometries)
            {
                String    gml       = GeographyMarkupConverter.ToGeographyMarkupInString(geometry);
                IGeometry converted = GeographyMarkupConverter.ToGeometry(gml, _factory);

                Assert.AreEqual(0, new GeometryComparer().Compare(geometry, converted));
            }
        }