-
Notifications
You must be signed in to change notification settings - Fork 15
GRG CreateReferenceSystemGRGFromArea
GRGCreateReferenceSystemGRGFromAreaTestCase
Test the GP Tool: Military Tools (Toolbox) | Gridded Reference Graphic (Toolset) | CreateReferenceSystemGRGFromArea (Tools)
testCreateReferenceSystemGRGFromArea_GZD
Test of CreateReferenceSystemGRGFromArea with Grid Zone Designator(GZD) Option. Compares the tool output with a previous known good run of the tool.
grid_size = "GRID_ZONE_DESIGNATOR"
arcpy.CreateReferenceSystemGRGFromArea_mt(inputArea,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")
Does the tool output match the expected value and is the output feature class created?
Does the output grid feature class match the previous known good run dataset:
military-tools-geoprocessing-toolbox\testdata\Results.gdb\CompareGZD
testCreateReferenceSystemGRGFromArea_100KM
Test of CreateReferenceSystemGRGFromArea with "100000M_GRID" Option. Compares the tool output with a previous known good run of the tool.
grid_size = "100000M_GRID"
arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_100KM,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")
Does the tool output match the expected value and is the output feature class created?
Does the output grid feature class match the previous known good run dataset:
military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare100km
testCreateReferenceSystemGRGFromArea_10KM
Test of CreateReferenceSystemGRGFromArea with "10000M_GRID" Option. Compares the tool output with a previous known good run of the tool.
grid_size = "10000M_GRID"
arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_10KM,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")
Does the tool output match the expected value and is the output feature class created?
Does the output grid feature class match the previous known good run dataset:
military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare10km
testCreateReferenceSystemGRGFromArea_1000M
Test of CreateReferenceSystemGRGFromArea with "1000M_GRID" Option. Compares the tool output with a previous known good run of the tool.
grid_size = "1000M_GRID"
arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_1000M,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")
Does the tool output match the expected value and is the output feature class created?
Does the output grid feature class match the previous known good run dataset:
military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare1000m
testCreateReferenceSystemGRGFromArea_100M
Test of CreateReferenceSystemGRGFromArea with "100M_GRID" Option. Compares the tool output with a previous known good run of the tool.
grid_size = "100M_GRID"
arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_100M,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")
Does the tool output match the expected value and is the output feature class created?
Does the output grid feature class match the previous known good run dataset:
military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare100m
testCreateReferenceSystemGRGFromArea_10M
Test of CreateReferenceSystemGRGFromArea with "10M_GRID" Option. Compares the tool output with a previous known good run of the tool.
grid_size = "10M_GRID"
arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_10M,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")
Does the tool output match the expected value and is the output feature class created?
Does the output grid feature class match the previous known good run dataset:
military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare10m
testCreateReferenceSystemGRGFromArea_10mNoLargeGrids
Test of CreateReferenceSystemGRGFromArea with "10M_GRID" Option. Verifies that the tool raises an exception if the NO_LARGE_GRIDS option is used with this tool/setting.
grid_size = "10M_GRID"
arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_10M,
"MGRS",
grid_size,
outputGrid,
"NO_LARGE_GRIDS")
Does the tool raise an exception?