Import FAA 18B Shapefile To Airports Geodatabase (Aviation Data Management)

许可等级:BasicStandardAdvanced

摘要

Imports one or more FAA 18B-compliant shapefiles into a geodatabase that contains the ArcGIS for Aviation:Airports schema. Once the shapefiles are imported, you can validate the features against the requirements in Advisory Circular 150/5300-18B.

用法

语法

ImportFAA18BShapefileToAirports_aviationmanagement (in_folder, airports_workspace, {in_features})
参数说明数据类型
in_folder

The directory that contains the FAA 18B shapefiles to be imported into a geodatabase. By default, all the shapefiles in the folder will be imported. To specify shapefiles to be imported, list them in the in_features parameter.

Folder
airports_workspace

The geodatabase into which the shapefiles will be imported.

Workspace
in_features
[in_features,...]
(可选)

Paths to individual shapefiles that will be imported into the geodatabase. These shapefiles must be in the directory specified in the in_folder parameter.

Shapefile

代码实例

ImportFAA18BShapefileToAirports example (stand-alone script)

The following script imports three shapefiles into a geodatabase with the Airports schema.

# Name: ImportFAA18BShapefileToAirportsGeodatabase.py
# Description: Imports all the shapefiles in a directory into a geodatabase
#              that contains the ArcGIS for Airports schema
# Author: Esri
# Date: October 2013

# Import arcpy module
import arcpy

# Check out Production Mapping license
arcpy.CheckOutExtension("Aeronautical")

# Define inputs
folder = r'c:\sampledata\10.2\aviation\shapefiles'
airports_gdb = r'c:\sampledata\10.2\aviation\dbs\airports.gdb'
shapefile1 = r'c:\sampledata\10.2\aviation\Shapefiles\AircraftGateStand.shp'
shapefile2 = r'c:\sampledata\10.2\aviation\Shapefiles\AircraftNonMovementArea.shp'
shapefile3 = r'c:\sampledata\10.2\aviation\Shapefiles\AirOperationsArea.shp'

# Import the shapefiles
arcpy.ImportFAA18BShapefileToAirports_aviationmanagement(folder,airports_gdb,
                                                         [shapefile1,shapefile2,
                                                         shapefile3])

# Check in license
arcpy.CheckInExtension("Aeronautical")

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 需要 Airports or Aviation Charting
ArcGIS for Desktop Advanced: 需要 Airports or Aviation Charting
4/27/2014