Exemplo n.º 1
0
        public void VerifyTOP4472_20140117_2()
        {
            IWorkspace    ws = TestDataUtils.OpenPgdb(@"QA_Fehler\QA_Fehler2.mdb");
            IFeatureClass fc =
                ((IFeatureWorkspace)ws).OpenFeatureClass("TLM_GEBAEUDE");

            var test   = new QaMpFootprintHoles(fc, InnerRingHandling.None);
            var runner = new QaTestRunner(test);

            runner.Execute();
            Assert.AreEqual(0, runner.Errors.Count);
        }
        public void TestTOP_4404()
        {
            var ws = (IFeatureWorkspace)
                     TestDataUtils.OpenPgdb("AVR_CH1903_LV03_original.mdb");
            IFeatureClass avr_lie = ws.OpenFeatureClass("avr_lie");
            IFeatureClass avr_gem = ws.OpenFeatureClass("avr_gem");

            var test = new QaPartCoincidenceOther(avr_lie, avr_gem,
                                                  0.02, 1, 0.1,
                                                  false, 5000, 0);

            test.SetConstraint(0, "ObjectId=2988");
            test.SetConstraint(1, "ObjectId=3");
            var runner = new QaContainerTestRunner(10000, test);

            runner.Execute();
        }
Exemplo n.º 3
0
        public void TestRealDataF5()
        {
            //          <CoveringFeatureSet name="Kanton Luzern Buffer 10m" whereClause="OBJECTID = 1">
            //<FeatureClass catalogPath=@"D:\git\ebp-far\CtLU.ProSuite\CtLU.ProSuite\src\CtLU.GDM.Services.Test\TestData\QA_Rules.mdb\Kanton_Luzern_Buffer_00010m" />

            IWorkspace    coverWs = TestDataUtils.OpenPgdb("validfields.mdb");
            IFeatureClass covers  =
                ((IFeatureWorkspace)coverWs).OpenFeatureClass("Kanton_Luzern_Buffer_00010m");

            IWorkspace withinWs =
                TestDataUtils.OpenPgdb("20111201_Produkte_SDE_zALL_bereinigt.mdb");
            IFeatureClass within =
                ((IFeatureWorkspace)withinWs).OpenFeatureClass("GEO_00100420001");

            var test = new QaContainsOther(covers, within);

            test.SetConstraint(0, "OBJECTID = 1");
            test.SetConstraint(1, "OBJECTID = 69157");

            var ctr = new QaContainerTestRunner(10000, test);

            ctr.Execute();
            Assert.AreEqual(0, ctr.Errors.Count);
        }