Exemple #1
0
 def test_thin__sel_5000(self):
     arcpy.SiteReductionTool_ArcSDM(self.TRAINING_SITE_LYR, True, "5000",
                                    "", "")
     desc = arcpy.Describe(self.TRAINING_SITE_LYR_STR)
     sel_count = len(desc.fidSet.split(";"))
     self.assertEqual(sel_count, 14)
Exemple #2
0
 def test_random_sel_100(self):
     arcpy.SiteReductionTool_ArcSDM(self.TRAINING_SITE_LYR, False, "", True,
                                    "100")
     desc = arcpy.Describe(self.TRAINING_SITE_LYR_STR)
     sel_count = len(desc.fidSet.split(";"))
Exemple #3
0
 def test_thin_random_sel_1000_80(self):
     arcpy.SiteReductionTool_ArcSDM(self.TRAINING_SITE_LYR, True, "1000",
                                    True, "80")
     desc = arcpy.Describe(self.TRAINING_SITE_LYR_STR)
     sel_count = len(desc.fidSet.split(";"))
     self.assertEqual(sel_count, 20)