Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

GRG CreateReferenceSystemGRGFromArea

Chris Moore edited this page May 14, 2018 · 1 revision

CreateReferenceSystemGRGFromArea

Test Case Name

GRGCreateReferenceSystemGRGFromAreaTestCase

Test Case Description

Test the GP Tool: Military Tools (Toolbox) | Gridded Reference Graphic (Toolset) | CreateReferenceSystemGRGFromArea (Tools)

Test Case Location

https://github.com/Esri/military-tools-geoprocessing-toolbox/blob/dev/utils/test/grg_tests/GRGCreateReferenceSystemGRGFromAreaTestCase.py

Tests

Test 1

Test Name

testCreateReferenceSystemGRGFromArea_GZD

Test Description

Test of CreateReferenceSystemGRGFromArea with Grid Zone Designator(GZD) Option. Compares the tool output with a previous known good run of the tool.

Example Test Command

grid_size = "GRID_ZONE_DESIGNATOR"

arcpy.CreateReferenceSystemGRGFromArea_mt(inputArea,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")

CHECKS

Check 1

Does the tool output match the expected value and is the output feature class created?

Check 2

Does the output grid feature class match the previous known good run dataset: military-tools-geoprocessing-toolbox\testdata\Results.gdb\CompareGZD

Test 2

Test Name

testCreateReferenceSystemGRGFromArea_100KM

Test Description

Test of CreateReferenceSystemGRGFromArea with "100000M_GRID" Option. Compares the tool output with a previous known good run of the tool.

Example Test Command

grid_size = "100000M_GRID"

arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_100KM,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")

CHECKS

Check 1

Does the tool output match the expected value and is the output feature class created?

Check 2

Does the output grid feature class match the previous known good run dataset: military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare100km

Test 3

Test Name

testCreateReferenceSystemGRGFromArea_10KM

Test Description

Test of CreateReferenceSystemGRGFromArea with "10000M_GRID" Option. Compares the tool output with a previous known good run of the tool.

Example Test Command

grid_size = "10000M_GRID"

arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_10KM,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")

CHECKS

Check 1

Does the tool output match the expected value and is the output feature class created?

Check 2

Does the output grid feature class match the previous known good run dataset: military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare10km

Test 4

Test Name

testCreateReferenceSystemGRGFromArea_1000M

Test Description

Test of CreateReferenceSystemGRGFromArea with "1000M_GRID" Option. Compares the tool output with a previous known good run of the tool.

Example Test Command

grid_size = "1000M_GRID"

arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_1000M,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")

CHECKS

Check 1

Does the tool output match the expected value and is the output feature class created?

Check 2

Does the output grid feature class match the previous known good run dataset: military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare1000m

Test 5

Test Name

testCreateReferenceSystemGRGFromArea_100M

Test Description

Test of CreateReferenceSystemGRGFromArea with "100M_GRID" Option. Compares the tool output with a previous known good run of the tool.

Example Test Command

grid_size = "100M_GRID"

arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_100M,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")

CHECKS

Check 1

Does the tool output match the expected value and is the output feature class created?

Check 2

Does the output grid feature class match the previous known good run dataset: military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare100m

Test 6

Test Name

testCreateReferenceSystemGRGFromArea_10M

Test Description

Test of CreateReferenceSystemGRGFromArea with "10M_GRID" Option. Compares the tool output with a previous known good run of the tool.

Example Test Command

grid_size = "10M_GRID"

arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_10M,
"MGRS",
grid_size,
outputGrid,
"ALLOW_LARGE_GRIDS")

CHECKS

Check 1

Does the tool output match the expected value and is the output feature class created?

Check 2

Does the output grid feature class match the previous known good run dataset: military-tools-geoprocessing-toolbox\testdata\Results.gdb\Compare10m

Test 7

Test Name

testCreateReferenceSystemGRGFromArea_10mNoLargeGrids

Test Description

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.

Example Test Command

grid_size = "10M_GRID"

arcpy.CreateReferenceSystemGRGFromArea_mt(outgrg_10M,
"MGRS",
grid_size,
outputGrid,
"NO_LARGE_GRIDS")

CHECKS

Check 1

Does the tool raise an exception?