Exemplo n.º 1
0
        public void ShouldReverseGeometries(string input, string expected)
        {
            var obuilder=new Ogc.Gml.V311.GmlGeometryBuilder();
            obuilder.Parse(input, CommonServiceLocator.GetCoordinateSystemProvider().Wgs84);

            var builder=new Ogc.Gml.V311.GmlGeometryBuilder();
            var rsink=new ReversedGeometrySink(builder);
            obuilder.ConstructedGeometry.Populate(rsink);

            var g=builder.ConstructedGeometry;

            Assert.Equal<string>(expected, g.ToString());
        }
Exemplo n.º 2
0
        public void ShouldReverseGeometries(string input, string expected)
        {
            var obuilder = new Ogc.Gml.V311.GmlGeometryBuilder();

            obuilder.Parse(input, CommonServiceLocator.GetCoordinateSystemProvider().Wgs84);

            var builder = new Ogc.Gml.V311.GmlGeometryBuilder();
            var rsink   = new ReversedGeometrySink(builder);

            obuilder.ConstructedGeometry.Populate(rsink);

            var g = builder.ConstructedGeometry;

            Assert.Equal <string>(expected, g.ToString());
        }