public void gml_writer_generates_fragment_with_namespace_if_needed() { XmlDocument doc = new XmlDocument(); Point geom = new Point(52, -0.9); doc.Load(geom.ToGMLFeature()); string content = doc.OuterXml; Assert.That(content, Is.Not.Null); Assert.That(content.StartsWith("<gml:Point xmlns:gml=\"http://www.opengis.net/gml\""), Is.True); GMLReader reader = new GMLReader(); IGeometry actual = reader.Read(content); Assert.That(actual, Is.Not.Null); Assert.That(actual.EqualsExact(geom), Is.True); }
public void gml_reader_can_read_ToGMLFeature() { GMLReader reader = new GMLReader(); Point geom = new Point(52, -0.9); IGeometry actual = reader.Read(geom.ToGMLFeature()); Assert.That(actual, Is.Not.Null); Assert.That(actual.EqualsExact(geom), Is.True); }