AOI Mask (Aeronautical)
Résumé
Generates a new masking feature that can be used to hide features that fall outside specified polygon features. It allows you to choose specific AOI and erase polygon features from within a feature class, creates a masking feature that is the difference between the selected erase features and the AOI, and commits the AOI MapId and erase feature class name to the new mask feature.
![Remarque Remarque](rsrc/note.png)
After running the AOI Mask tool you can use the Feature Display Settings tool to control which feature classes will be masked by the AOI Mask output feature for final cartographic display.
Usage
It is suggested that you have an output feature class per product (for example, Terminals_M).
-
You must select one or many polygon feature(s) that are within or concurrent with the AOI extent.
Input polygons that are coincident with AOI features will be removed from the selection set the tool is processing.
The AOI must be present in the data frame of the map document.
An SQL query is used to select features from a specific feature class.
If run from ArcMap, the tool will auto-populate the SQL queries based on the AOI in the data frame and the selected features. The queries will not display until the Input AOI and Erase feature classes are chosen.
If the output feature class already exists, the mask feature class will be appended; if the mask feature class does not exist, the feature class will be created.
This tool always runs in foreground mode. If you run this tool with Background Processing checked on, the tool will automatically switch to foreground processing.
Syntaxe
Paramètre | Explication | Type de donnée |
input_aoi_feature_class |
The polygon feature class containing the area of interest feature. | Feature Layer |
input_aoi_feature_query |
Query that retrieves a single AOI feature. This is automatically populated if layer definition queries exist in ArcMap. | SQL Expression |
input_id_field |
A field from the input AOI feature class used to identify which AOI was used to create the output feature. | Field |
input_erase_feature_class |
The feature class used to define the erase polygon features. | Feature Layer |
input_erase_features_query |
Query that retrieves a specific polygon feature. This is automatically populated if layer definition queries exist in ArcMap. | SQL Expression |
output_feature_class |
Feature class where the output mask polygon will be written. | Feature Class |
Exemple de code
This ArcGIS Python window script demonstrates a use of the AOIMask function.
import arcpy # Load Toolbox arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Aeronautical Tools.tbx') # Process: AOI Mask arcpy.AOIMask_Aeronautical("Database Servers\127.0.0.1_SQLEXPRESS.gds\ASPm(VERSION:dbo.DEFAULT)\ASPm.DBO.Airspace", "Name_Txt = 'AWP NV E5 MINDEN'", "Name_Txt", "Database Servers\127.0.0.1_SQLEXPRESS.gds\ASPm (VERSION:dbo.DEFAULT)\ASPm.DBO.ADHPSurfaceArea", "OBJECTID = '12366' OR OBJECTID = '12367'", "Database Servers\127.0.0.1_SQLEXPRESS.gds\ASPm (VERSION:dbo.DEFAULT)\ASPm.DBO.AOIMask")