Resumen
Creates the Location Diagram for a Joint Operations Graphic (JOG) map sheet. The Location Diagram uses the JOG_Index features, WAC_Index features, ONC_Index features, and the LandPoly features for the area surrounding the processed sheet.
Uso
Extract the MapIndex geodatabase from the installed .zip folder before using this tool. The .zip folder is installed at <installation directory>\ArcGIS\EsriDefenseMapping\Desktop<version>\ReferenceData\MapIndex.zip and should be extracted in the same location. You need write permissions to the ReferenceData folder.
Sintaxis
arcpy.defense.CreateLocationDiagramData(input_geodatabase, input_area_of_interest, input_wac_features, input_onc_features, input_land_features, arrangement)
Parámetro | Explicación | Tipo de datos |
input_geodatabase | A VMap1JOG geodatabase that contains the CARTO feature dataset and JOG* feature classes. The Location Diagram will be appended to the feature classes in this geodatabase. | Workspace |
input_area_of_interest | A polygon feature layer with a single selected feature used to identify the center and surrounding areas of interest (AOIs). The Location Diagram will be created within these AOIs. | Layer |
input_wac_features | The WAC features that will used to create the Location Diagram feature classes in the input geodatabase. The default value is <installation directory>\ArcGIS\EsriDefenseMapping\Desktop<version>\ReferenceData\MapIndex.mdb\MapIndex\WAC_Index. | Feature Layer |
input_onc_features | The ONC features that will be used to create the Location Diagram feature classes in the input geodatabase. The default value is <installation directory>\ArcGIS\EsriDefenseMapping\Desktop<version>\ReferenceData\MapIndex.mdb\MapIndex\ONC_Index. | Feature Layer |
input_land_features | The land features that will be used to create the Location Diagram feature classes in the input geodatabase. The default value is <installation directory>\ArcGIS\EsriDefenseMapping\Desktop<version>\ReferenceData\MapIndex.mdb\MapIndex\LandPoly. | Feature Layer |
arrangement | Specifies the arrangement of the JOG map sheet that will be produced.
| String |
Salida derivada
Nombre | Explicación | Tipo de datos |
output_geodatabase | The updated input geodatabase that contains the location diagram feature classes. | Workspace |
Muestra de código
CreateLocationDiagramData example
The following code sample demonstrates how to use the CreateLocationDiagramData function.
# Importing necessary modules and checking out extensions
import arcpy
arcpy.CheckOutExtension('defense')
# Setting variables
jog_index = r'C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.3\ReferenceData\MapIndex.gdb\MapIndex\JOG_Index'
selection_string = "NRN = ''"
# Making feature selection
arcpy.management.MakeFeatureLayer(jog_index, 'jog_index', selection_string)
arcpy.management.SelectLayerByAttribute('jog_index', "NEW_SELECTION")
# Running Location Diagram
Input_Database = r'C:\DATA\VMap1JOG.gdb'
arcpy.defense.CreateLocationDiagramData(Input_Database, 'jog_index', "#", "#", "#", "A2")
Entornos
Información de licenciamiento
- Basic: No
- Standard: Requiere Defense Mapping
- Advanced: Requiere Defense Mapping