Resumen
Creates data used in the adjoining sheet guide of defense mapping templates. This tool uses an input area of interest (AOI) to identify surrounding AOIs. It creates data within those AOIs in the ASG_COAST_L and ASG_LAND_A feature classes.
Uso
The Input Geodatabase parameter must contain a CARTO dataset.
- ASG_SHEETS_A
- ASG_SHEETS_L
- ASG_AOI
- ASG_LAND_A
- ASG_COAST_L
The Area of Interest parameter must have only one selected feature.
The Scale and Area of Interest parameters are used together to identify surrounding AOIs. The extent of the AOI is expanded by a factor specified in MIL-T-89301A for scale 1:50000 or MIL-T-89306 for scale 1:100000. The expanded extent is used to select adjoining AOIs to include in the adjoining sheet guide.
Sintaxis
arcpy.defense.CreateAdjoiningSheetGuideData(input_geodatabase, input_area_of_interest, input_land_features, scale)
Parámetro | Explicación | Tipo de datos |
input_geodatabase | A geodatabase that contains the CARTO feature dataset and ASG* feature classes. Data created for the adjoining sheet guide is appended to the feature classes in this geodatabase. | Workspace |
input_area_of_interest | A feature layer with a single selected feature used to identify the center and surrounding AOIs. Adjoining sheet guide data is created within these AOIs. | Layer |
input_land_features | The land features used to create adjoining sheet guide data in the ASG_COAST_L and ASG_LAND_A feature classes in the input geodatabase. | Feature Layer |
scale | Specifies the factor by which the extent of the input_area_of_interest parameter layer will be expanded. The expanded extent is used to select adjoining AOIs. Data from the adjoining AOIs is included in the adjoining sheet guide.
| String |
Muestra de código
CreateAdjoiningSheetGuideData example (Python window)
The following code sample demonstrates how to use the CreateAdjoiningSheetGuideData function.
# set gp environment
arcpy.env.addOutputsToMap = True
# local variables
geodb="c:/data/CARTO.gdb"
areaOfInterest = "C:/Program Files (x86)/ArcGIS/EsriDefenseMapping/Desktop10.1/ReferenceData/MapIndex.mdb/MapIndex/TLM100_Index"
areaOfInterestLyr="TLM100IDX"
whereclause="NRN='V695X1856'"
landFeatures="C:/Program Files (x86)/ArcGIS/EsriDefenseMapping/Desktop10.1/ReferenceData/MapIndex.mdb/MapIndex/LandPoly"
scale="1:50000"
# create a feature layer for processing
arcpy.MakeFeatureLayer_management(areaOfInterest,areaOfInterestLyr)
arcpy.SelectLayerByAttribute_management(areaOfInterestLyr,"NEW_SELECTION",whereclause)
desc=arcpy.Describe(areaOfInterestLyr)
fidlist=desc.FIDSet.split(";")
if len(fidlist) == 1:
# execute the CreateAdjoiningSheetGuideData tool
arcpy.CreateAdjoiningSheetGuideData_defense(geodb, areaOfInterestLyr, landFeatures, scale)
Entornos
Información de licenciamiento
- Basic: No
- Standard: No
- Advanced: Requiere Defense Mapping